Adjust all dimensions to match native.
[wine/multimedia.git] / configure
blob984e26c38d1546b4e74cb7241556fb1c629b15e3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040213.
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='20040213'
273 PACKAGE_STRING='Wine 20040213'
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 CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 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 20040213 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 20040213:";;
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 20040213
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 20040213, 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 # Extract the first word of ""cpp"", so it can be a program name with args.
2786 set dummy "cpp"; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_CPP+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 if test -n "$CPP"; then
2793 ac_cv_prog_CPP="$CPP" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CPP=""cpp""
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2811 CPP=$ac_cv_prog_CPP
2812 if test -n "$CPP"; then
2813 echo "$as_me:$LINENO: result: $CPP" >&5
2814 echo "${ECHO_T}$CPP" >&6
2815 else
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2821 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2822 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2823 if test "${wine_cv_toolsdir+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 if test -z "$with_wine_tools"; then
2827 if test "$cross_compiling" = "yes"; then
2828 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2829 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2830 { (exit 1); exit 1; }; }
2831 else
2832 wine_cv_toolsdir="\$(TOPOBJDIR)"
2834 elif test -d "$with_wine_tools/tools/winebuild"; then
2835 case $with_wine_tools in
2836 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2837 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2838 esac
2839 else
2840 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2841 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2842 { (exit 1); exit 1; }; }
2845 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2846 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2847 TOOLSDIR=$wine_cv_toolsdir
2851 ac_ext=c
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2858 # On Suns, sometimes $CPP names a directory.
2859 if test -n "$CPP" && test -d "$CPP"; then
2860 CPP=
2862 if test -z "$CPP"; then
2863 if test "${ac_cv_prog_CPP+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 # Double quotes because CPP needs to be expanded
2867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2869 ac_preproc_ok=false
2870 for ac_c_preproc_warn_flag in '' yes
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
2876 # On the NeXT, cc -E runs the code through the compiler's parser,
2877 # not just through cpp. "Syntax error" is here to catch this case.
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #ifdef __STDC__
2885 # include <limits.h>
2886 #else
2887 # include <assert.h>
2888 #endif
2889 Syntax error
2890 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2905 else
2906 ac_cpp_err=yes
2908 if test -z "$ac_cpp_err"; then
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 # Broken: fails on valid input.
2915 continue
2917 rm -f conftest.err conftest.$ac_ext
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <ac_nonexistent.h>
2928 _ACEOF
2929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_c_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 else
2941 ac_cpp_err=
2943 else
2944 ac_cpp_err=yes
2946 if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948 continue
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Passes both tests.
2954 ac_preproc_ok=:
2955 break
2957 rm -f conftest.err conftest.$ac_ext
2959 done
2960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961 rm -f conftest.err conftest.$ac_ext
2962 if $ac_preproc_ok; then
2963 break
2966 done
2967 ac_cv_prog_CPP=$CPP
2970 CPP=$ac_cv_prog_CPP
2971 else
2972 ac_cv_prog_CPP=$CPP
2974 echo "$as_me:$LINENO: result: $CPP" >&5
2975 echo "${ECHO_T}$CPP" >&6
2976 ac_preproc_ok=false
2977 for ac_c_preproc_warn_flag in '' yes
2979 # Use a header file that comes with gcc, so configuring glibc
2980 # with a fresh cross-compiler works.
2981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2982 # <limits.h> exists even on freestanding compilers.
2983 # On the NeXT, cc -E runs the code through the compiler's parser,
2984 # not just through cpp. "Syntax error" is here to catch this case.
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #ifdef __STDC__
2992 # include <limits.h>
2993 #else
2994 # include <assert.h>
2995 #endif
2996 Syntax error
2997 _ACEOF
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 else
3010 ac_cpp_err=
3012 else
3013 ac_cpp_err=yes
3015 if test -z "$ac_cpp_err"; then
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 # Broken: fails on valid input.
3022 continue
3024 rm -f conftest.err conftest.$ac_ext
3026 # OK, works on sane cases. Now check whether non-existent headers
3027 # can be detected and how.
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #include <ac_nonexistent.h>
3035 _ACEOF
3036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null; then
3044 if test -s conftest.err; then
3045 ac_cpp_err=$ac_c_preproc_warn_flag
3046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 else
3048 ac_cpp_err=
3050 else
3051 ac_cpp_err=yes
3053 if test -z "$ac_cpp_err"; then
3054 # Broken: success on invalid input.
3055 continue
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 # Passes both tests.
3061 ac_preproc_ok=:
3062 break
3064 rm -f conftest.err conftest.$ac_ext
3066 done
3067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3068 rm -f conftest.err conftest.$ac_ext
3069 if $ac_preproc_ok; then
3071 else
3072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3075 See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 echo "$as_me:$LINENO: checking for X" >&5
3087 echo $ECHO_N "checking for X... $ECHO_C" >&6
3090 # Check whether --with-x or --without-x was given.
3091 if test "${with_x+set}" = set; then
3092 withval="$with_x"
3095 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3096 if test "x$with_x" = xno; then
3097 # The user explicitly disabled X.
3098 have_x=disabled
3099 else
3100 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3101 # Both variables are already set.
3102 have_x=yes
3103 else
3104 if test "${ac_cv_have_x+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 # One or both of the vars are not set, and there is no cached value.
3108 ac_x_includes=no ac_x_libraries=no
3109 rm -fr conftest.dir
3110 if mkdir conftest.dir; then
3111 cd conftest.dir
3112 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3113 cat >Imakefile <<'_ACEOF'
3114 acfindx:
3115 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3116 _ACEOF
3117 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3119 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3120 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3121 for ac_extension in a so sl; do
3122 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3123 test -f $ac_im_libdir/libX11.$ac_extension; then
3124 ac_im_usrlibdir=$ac_im_libdir; break
3126 done
3127 # Screen out bogus values from the imake configuration. They are
3128 # bogus both because they are the default anyway, and because
3129 # using them would break gcc on systems where it needs fixed includes.
3130 case $ac_im_incroot in
3131 /usr/include) ;;
3132 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3133 esac
3134 case $ac_im_usrlibdir in
3135 /usr/lib | /lib) ;;
3136 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3137 esac
3139 cd ..
3140 rm -fr conftest.dir
3143 # Standard set of common directories for X headers.
3144 # Check X11 before X11Rn because it is often a symlink to the current release.
3145 ac_x_header_dirs='
3146 /usr/X11/include
3147 /usr/X11R6/include
3148 /usr/X11R5/include
3149 /usr/X11R4/include
3151 /usr/include/X11
3152 /usr/include/X11R6
3153 /usr/include/X11R5
3154 /usr/include/X11R4
3156 /usr/local/X11/include
3157 /usr/local/X11R6/include
3158 /usr/local/X11R5/include
3159 /usr/local/X11R4/include
3161 /usr/local/include/X11
3162 /usr/local/include/X11R6
3163 /usr/local/include/X11R5
3164 /usr/local/include/X11R4
3166 /usr/X386/include
3167 /usr/x386/include
3168 /usr/XFree86/include/X11
3170 /usr/include
3171 /usr/local/include
3172 /usr/unsupported/include
3173 /usr/athena/include
3174 /usr/local/x11r5/include
3175 /usr/lpp/Xamples/include
3177 /usr/openwin/include
3178 /usr/openwin/share/include'
3180 if test "$ac_x_includes" = no; then
3181 # Guess where to find include files, by looking for Intrinsic.h.
3182 # First, try using that file with no special directory specified.
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <X11/Intrinsic.h>
3190 _ACEOF
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3202 else
3203 ac_cpp_err=
3205 else
3206 ac_cpp_err=yes
3208 if test -z "$ac_cpp_err"; then
3209 # We can compile using X headers with no special include directory.
3210 ac_x_includes=
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 for ac_dir in $ac_x_header_dirs; do
3216 if test -r "$ac_dir/X11/Intrinsic.h"; then
3217 ac_x_includes=$ac_dir
3218 break
3220 done
3222 rm -f conftest.err conftest.$ac_ext
3223 fi # $ac_x_includes = no
3225 if test "$ac_x_libraries" = no; then
3226 # Check for the libraries.
3227 # See if we find them without any special options.
3228 # Don't add to $LIBS permanently.
3229 ac_save_LIBS=$LIBS
3230 LIBS="-lXt $LIBS"
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>
3239 main ()
3241 XtMalloc (0)
3243 return 0;
3245 _ACEOF
3246 rm -f conftest.$ac_objext conftest$ac_exeext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3248 (eval $ac_link) 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 (eval $ac_try) 2>&5
3258 ac_status=$?
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; } &&
3261 { ac_try='test -s conftest$ac_exeext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3267 LIBS=$ac_save_LIBS
3268 # We can link X programs with no special library path.
3269 ac_x_libraries=
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 LIBS=$ac_save_LIBS
3275 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3277 # Don't even attempt the hair of trying to link an X program!
3278 for ac_extension in a so sl; do
3279 if test -r $ac_dir/libXt.$ac_extension; then
3280 ac_x_libraries=$ac_dir
3281 break 2
3283 done
3284 done
3286 rm -f conftest.err conftest.$ac_objext \
3287 conftest$ac_exeext conftest.$ac_ext
3288 fi # $ac_x_libraries = no
3290 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3291 # Didn't find X anywhere. Cache the known absence of X.
3292 ac_cv_have_x="have_x=no"
3293 else
3294 # Record where we found X for the cache.
3295 ac_cv_have_x="have_x=yes \
3296 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3301 eval "$ac_cv_have_x"
3302 fi # $with_x != no
3304 if test "$have_x" != yes; then
3305 echo "$as_me:$LINENO: result: $have_x" >&5
3306 echo "${ECHO_T}$have_x" >&6
3307 no_x=yes
3308 else
3309 # If each of the values was on the command line, it overrides each guess.
3310 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3311 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3312 # Update the cache value to reflect the command line values.
3313 ac_cv_have_x="have_x=yes \
3314 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3315 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3316 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3319 if test "$no_x" = yes; then
3320 # Not all programs may use this symbol, but it does not hurt to define it.
3322 cat >>confdefs.h <<\_ACEOF
3323 #define X_DISPLAY_MISSING 1
3324 _ACEOF
3326 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3327 else
3328 if test -n "$x_includes"; then
3329 X_CFLAGS="$X_CFLAGS -I$x_includes"
3332 # It would also be nice to do this for all -L options, not just this one.
3333 if test -n "$x_libraries"; then
3334 X_LIBS="$X_LIBS -L$x_libraries"
3335 # For Solaris; some versions of Sun CC require a space after -R and
3336 # others require no space. Words are not sufficient . . . .
3337 case `(uname -sr) 2>/dev/null` in
3338 "SunOS 5"*)
3339 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3340 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3341 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3350 main ()
3354 return 0;
3356 _ACEOF
3357 rm -f conftest.$ac_objext conftest$ac_exeext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359 (eval $ac_link) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; } &&
3372 { ac_try='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_R_nospace=yes
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_R_nospace=no
3385 rm -f conftest.err conftest.$ac_objext \
3386 conftest$ac_exeext conftest.$ac_ext
3387 if test $ac_R_nospace = yes; then
3388 echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3390 X_LIBS="$X_LIBS -R$x_libraries"
3391 else
3392 LIBS="$ac_xsave_LIBS -R $x_libraries"
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3401 main ()
3405 return 0;
3407 _ACEOF
3408 rm -f conftest.$ac_objext conftest$ac_exeext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3410 (eval $ac_link) 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; } &&
3423 { ac_try='test -s conftest$ac_exeext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 ac_R_space=yes
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 ac_R_space=no
3436 rm -f conftest.err conftest.$ac_objext \
3437 conftest$ac_exeext conftest.$ac_ext
3438 if test $ac_R_space = yes; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3441 X_LIBS="$X_LIBS -R $x_libraries"
3442 else
3443 echo "$as_me:$LINENO: result: neither works" >&5
3444 echo "${ECHO_T}neither works" >&6
3447 LIBS=$ac_xsave_LIBS
3448 esac
3451 # Check for system-dependent libraries X programs must link with.
3452 # Do this before checking for the system-independent R6 libraries
3453 # (-lICE), since we may need -lsocket or whatever for X linking.
3455 if test "$ISC" = yes; then
3456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3457 else
3458 # Martyn Johnson says this is needed for Ultrix, if the X
3459 # libraries were built with DECnet support. And Karl Berry says
3460 # the Alpha needs dnet_stub (dnet does not exist).
3461 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 /* Override any gcc2 internal prototype to avoid an error. */
3470 #ifdef __cplusplus
3471 extern "C"
3472 #endif
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3475 char XOpenDisplay ();
3477 main ()
3479 XOpenDisplay ();
3481 return 0;
3483 _ACEOF
3484 rm -f conftest.$ac_objext conftest$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3511 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3512 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 ac_check_lib_save_LIBS=$LIBS
3516 LIBS="-ldnet $LIBS"
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3524 /* Override any gcc2 internal prototype to avoid an error. */
3525 #ifdef __cplusplus
3526 extern "C"
3527 #endif
3528 /* We use char because int might match the return type of a gcc2
3529 builtin and then its argument prototype would still apply. */
3530 char dnet_ntoa ();
3532 main ()
3534 dnet_ntoa ();
3536 return 0;
3538 _ACEOF
3539 rm -f conftest.$ac_objext conftest$ac_exeext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3541 (eval $ac_link) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest$ac_exeext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3560 ac_cv_lib_dnet_dnet_ntoa=yes
3561 else
3562 echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 ac_cv_lib_dnet_dnet_ntoa=no
3567 rm -f conftest.err conftest.$ac_objext \
3568 conftest$ac_exeext conftest.$ac_ext
3569 LIBS=$ac_check_lib_save_LIBS
3571 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3572 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3573 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3574 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3577 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3578 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3579 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3580 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 ac_check_lib_save_LIBS=$LIBS
3584 LIBS="-ldnet_stub $LIBS"
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 #ifdef __cplusplus
3594 extern "C"
3595 #endif
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3598 char dnet_ntoa ();
3600 main ()
3602 dnet_ntoa ();
3604 return 0;
3606 _ACEOF
3607 rm -f conftest.$ac_objext conftest$ac_exeext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609 (eval $ac_link) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_cv_lib_dnet_stub_dnet_ntoa=no
3635 rm -f conftest.err conftest.$ac_objext \
3636 conftest$ac_exeext conftest.$ac_ext
3637 LIBS=$ac_check_lib_save_LIBS
3639 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3640 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3641 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3642 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3647 rm -f conftest.err conftest.$ac_objext \
3648 conftest$ac_exeext conftest.$ac_ext
3649 LIBS="$ac_xsave_LIBS"
3651 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3652 # to get the SysV transport functions.
3653 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3654 # needs -lnsl.
3655 # The nsl library prevents programs from opening the X display
3656 # on Irix 5.2, according to T.E. Dickey.
3657 # The functions gethostbyname, getservbyname, and inet_addr are
3658 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3659 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3660 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3661 if test "${ac_cv_func_gethostbyname+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3672 #define gethostbyname innocuous_gethostbyname
3674 /* System header to define __stub macros and hopefully few prototypes,
3675 which can conflict with char gethostbyname (); below.
3676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677 <limits.h> exists even on freestanding compilers. */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3685 #undef gethostbyname
3687 /* Override any gcc2 internal prototype to avoid an error. */
3688 #ifdef __cplusplus
3689 extern "C"
3691 #endif
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3694 char gethostbyname ();
3695 /* The GNU C library defines this for functions which it implements
3696 to always fail with ENOSYS. Some functions are actually named
3697 something starting with __ and the normal name is an alias. */
3698 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3699 choke me
3700 #else
3701 char (*f) () = gethostbyname;
3702 #endif
3703 #ifdef __cplusplus
3705 #endif
3708 main ()
3710 return f != gethostbyname;
3712 return 0;
3714 _ACEOF
3715 rm -f conftest.$ac_objext conftest$ac_exeext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3717 (eval $ac_link) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; } &&
3730 { ac_try='test -s conftest$ac_exeext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3736 ac_cv_func_gethostbyname=yes
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 ac_cv_func_gethostbyname=no
3743 rm -f conftest.err conftest.$ac_objext \
3744 conftest$ac_exeext conftest.$ac_ext
3746 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3747 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3749 if test $ac_cv_func_gethostbyname = no; then
3750 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3751 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3752 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 ac_check_lib_save_LIBS=$LIBS
3756 LIBS="-lnsl $LIBS"
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3764 /* Override any gcc2 internal prototype to avoid an error. */
3765 #ifdef __cplusplus
3766 extern "C"
3767 #endif
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3770 char gethostbyname ();
3772 main ()
3774 gethostbyname ();
3776 return 0;
3778 _ACEOF
3779 rm -f conftest.$ac_objext conftest$ac_exeext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781 (eval $ac_link) 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_lib_nsl_gethostbyname=yes
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_cv_lib_nsl_gethostbyname=no
3807 rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3809 LIBS=$ac_check_lib_save_LIBS
3811 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3812 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3813 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3817 if test $ac_cv_lib_nsl_gethostbyname = no; then
3818 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3819 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3820 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 ac_check_lib_save_LIBS=$LIBS
3824 LIBS="-lbsd $LIBS"
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3832 /* Override any gcc2 internal prototype to avoid an error. */
3833 #ifdef __cplusplus
3834 extern "C"
3835 #endif
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char gethostbyname ();
3840 main ()
3842 gethostbyname ();
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849 (eval $ac_link) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_cv_lib_bsd_gethostbyname=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_cv_lib_bsd_gethostbyname=no
3875 rm -f conftest.err conftest.$ac_objext \
3876 conftest$ac_exeext conftest.$ac_ext
3877 LIBS=$ac_check_lib_save_LIBS
3879 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3880 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3881 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3888 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3889 # socket/setsockopt and other routines are undefined under SCO ODT
3890 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3891 # on later versions), says Simon Leinen: it contains gethostby*
3892 # variants that don't use the name server (or something). -lsocket
3893 # must be given before -lnsl if both are needed. We assume that
3894 # if connect needs -lnsl, so does gethostbyname.
3895 echo "$as_me:$LINENO: checking for connect" >&5
3896 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3897 if test "${ac_cv_func_connect+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3908 #define connect innocuous_connect
3910 /* System header to define __stub macros and hopefully few prototypes,
3911 which can conflict with char connect (); below.
3912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 <limits.h> exists even on freestanding compilers. */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3921 #undef connect
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 #ifdef __cplusplus
3925 extern "C"
3927 #endif
3928 /* We use char because int might match the return type of a gcc2
3929 builtin and then its argument prototype would still apply. */
3930 char connect ();
3931 /* The GNU C library defines this for functions which it implements
3932 to always fail with ENOSYS. Some functions are actually named
3933 something starting with __ and the normal name is an alias. */
3934 #if defined (__stub_connect) || defined (__stub___connect)
3935 choke me
3936 #else
3937 char (*f) () = connect;
3938 #endif
3939 #ifdef __cplusplus
3941 #endif
3944 main ()
3946 return f != connect;
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest$ac_exeext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_func_connect=yes
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 ac_cv_func_connect=no
3979 rm -f conftest.err conftest.$ac_objext \
3980 conftest$ac_exeext conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3983 echo "${ECHO_T}$ac_cv_func_connect" >&6
3985 if test $ac_cv_func_connect = no; then
3986 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3987 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3988 if test "${ac_cv_lib_socket_connect+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 ac_check_lib_save_LIBS=$LIBS
3992 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
4000 /* Override any gcc2 internal prototype to avoid an error. */
4001 #ifdef __cplusplus
4002 extern "C"
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006 char connect ();
4008 main ()
4010 connect ();
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.$ac_objext conftest$ac_exeext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017 (eval $ac_link) 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest$ac_exeext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_cv_lib_socket_connect=yes
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 ac_cv_lib_socket_connect=no
4043 rm -f conftest.err conftest.$ac_objext \
4044 conftest$ac_exeext conftest.$ac_ext
4045 LIBS=$ac_check_lib_save_LIBS
4047 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4048 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4049 if test $ac_cv_lib_socket_connect = yes; then
4050 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4055 # Guillermo Gomez says -lposix is necessary on A/UX.
4056 echo "$as_me:$LINENO: checking for remove" >&5
4057 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4058 if test "${ac_cv_func_remove+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4069 #define remove innocuous_remove
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char remove (); below.
4073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 <limits.h> exists even on freestanding compilers. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4082 #undef remove
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 #ifdef __cplusplus
4086 extern "C"
4088 #endif
4089 /* We use char because int might match the return type of a gcc2
4090 builtin and then its argument prototype would still apply. */
4091 char remove ();
4092 /* The GNU C library defines this for functions which it implements
4093 to always fail with ENOSYS. Some functions are actually named
4094 something starting with __ and the normal name is an alias. */
4095 #if defined (__stub_remove) || defined (__stub___remove)
4096 choke me
4097 #else
4098 char (*f) () = remove;
4099 #endif
4100 #ifdef __cplusplus
4102 #endif
4105 main ()
4107 return f != remove;
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest$ac_exeext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ac_cv_func_remove=yes
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 ac_cv_func_remove=no
4140 rm -f conftest.err conftest.$ac_objext \
4141 conftest$ac_exeext conftest.$ac_ext
4143 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4144 echo "${ECHO_T}$ac_cv_func_remove" >&6
4146 if test $ac_cv_func_remove = no; then
4147 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4148 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4149 if test "${ac_cv_lib_posix_remove+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 ac_check_lib_save_LIBS=$LIBS
4153 LIBS="-lposix $LIBS"
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4161 /* Override any gcc2 internal prototype to avoid an error. */
4162 #ifdef __cplusplus
4163 extern "C"
4164 #endif
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4167 char remove ();
4169 main ()
4171 remove ();
4173 return 0;
4175 _ACEOF
4176 rm -f conftest.$ac_objext conftest$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_lib_posix_remove=yes
4198 else
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 ac_cv_lib_posix_remove=no
4204 rm -f conftest.err conftest.$ac_objext \
4205 conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4209 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4210 if test $ac_cv_lib_posix_remove = yes; then
4211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4216 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4217 echo "$as_me:$LINENO: checking for shmat" >&5
4218 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4219 if test "${ac_cv_func_shmat+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4230 #define shmat innocuous_shmat
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char shmat (); below.
4234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 <limits.h> exists even on freestanding compilers. */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4243 #undef shmat
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 #ifdef __cplusplus
4247 extern "C"
4249 #endif
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char shmat ();
4253 /* The GNU C library defines this for functions which it implements
4254 to always fail with ENOSYS. Some functions are actually named
4255 something starting with __ and the normal name is an alias. */
4256 #if defined (__stub_shmat) || defined (__stub___shmat)
4257 choke me
4258 #else
4259 char (*f) () = shmat;
4260 #endif
4261 #ifdef __cplusplus
4263 #endif
4266 main ()
4268 return f != shmat;
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest$ac_exeext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 ac_cv_func_shmat=yes
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_func_shmat=no
4301 rm -f conftest.err conftest.$ac_objext \
4302 conftest$ac_exeext conftest.$ac_ext
4304 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4305 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4307 if test $ac_cv_func_shmat = no; then
4308 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4309 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4310 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 ac_check_lib_save_LIBS=$LIBS
4314 LIBS="-lipc $LIBS"
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4322 /* Override any gcc2 internal prototype to avoid an error. */
4323 #ifdef __cplusplus
4324 extern "C"
4325 #endif
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328 char shmat ();
4330 main ()
4332 shmat ();
4334 return 0;
4336 _ACEOF
4337 rm -f conftest.$ac_objext conftest$ac_exeext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4339 (eval $ac_link) 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest$ac_exeext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_lib_ipc_shmat=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_lib_ipc_shmat=no
4365 rm -f conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
4367 LIBS=$ac_check_lib_save_LIBS
4369 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4370 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4371 if test $ac_cv_lib_ipc_shmat = yes; then
4372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4378 # Check for libraries that X11R6 Xt/Xaw programs need.
4379 ac_save_LDFLAGS=$LDFLAGS
4380 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4381 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4382 # check for ICE first), but we must link in the order -lSM -lICE or
4383 # we get undefined symbols. So assume we have SM if we have ICE.
4384 # These have to be linked with before -lX11, unlike the other
4385 # libraries we check for below, so use a different variable.
4386 # John Interrante, Karl Berry
4387 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4388 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4389 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 ac_check_lib_save_LIBS=$LIBS
4393 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4401 /* Override any gcc2 internal prototype to avoid an error. */
4402 #ifdef __cplusplus
4403 extern "C"
4404 #endif
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4407 char IceConnectionNumber ();
4409 main ()
4411 IceConnectionNumber ();
4413 return 0;
4415 _ACEOF
4416 rm -f conftest.$ac_objext conftest$ac_exeext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4418 (eval $ac_link) 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest$ac_exeext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_lib_ICE_IceConnectionNumber=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_cv_lib_ICE_IceConnectionNumber=no
4444 rm -f conftest.err conftest.$ac_objext \
4445 conftest$ac_exeext conftest.$ac_ext
4446 LIBS=$ac_check_lib_save_LIBS
4448 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4449 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4450 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4451 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4454 LDFLAGS=$ac_save_LDFLAGS
4458 for ac_prog in 'bison -y' byacc
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464 if test "${ac_cv_prog_YACC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 if test -n "$YACC"; then
4468 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_YACC="$ac_prog"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4486 YACC=$ac_cv_prog_YACC
4487 if test -n "$YACC"; then
4488 echo "$as_me:$LINENO: result: $YACC" >&5
4489 echo "${ECHO_T}$YACC" >&6
4490 else
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 test -n "$YACC" && break
4496 done
4497 test -n "$YACC" || YACC="yacc"
4499 for ac_prog in flex lex
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_LEX+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 if test -n "$LEX"; then
4509 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_LEX="$ac_prog"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4527 LEX=$ac_cv_prog_LEX
4528 if test -n "$LEX"; then
4529 echo "$as_me:$LINENO: result: $LEX" >&5
4530 echo "${ECHO_T}$LEX" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4536 test -n "$LEX" && break
4537 done
4538 test -n "$LEX" || LEX=":"
4540 if test -z "$LEXLIB"
4541 then
4542 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4543 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4544 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 ac_check_lib_save_LIBS=$LIBS
4548 LIBS="-lfl $LIBS"
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4556 /* Override any gcc2 internal prototype to avoid an error. */
4557 #ifdef __cplusplus
4558 extern "C"
4559 #endif
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562 char yywrap ();
4564 main ()
4566 yywrap ();
4568 return 0;
4570 _ACEOF
4571 rm -f conftest.$ac_objext conftest$ac_exeext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4573 (eval $ac_link) 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_lib_fl_yywrap=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_cv_lib_fl_yywrap=no
4599 rm -f conftest.err conftest.$ac_objext \
4600 conftest$ac_exeext conftest.$ac_ext
4601 LIBS=$ac_check_lib_save_LIBS
4603 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4604 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4605 if test $ac_cv_lib_fl_yywrap = yes; then
4606 LEXLIB="-lfl"
4607 else
4608 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4609 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4610 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 ac_check_lib_save_LIBS=$LIBS
4614 LIBS="-ll $LIBS"
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4622 /* Override any gcc2 internal prototype to avoid an error. */
4623 #ifdef __cplusplus
4624 extern "C"
4625 #endif
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4628 char yywrap ();
4630 main ()
4632 yywrap ();
4634 return 0;
4636 _ACEOF
4637 rm -f conftest.$ac_objext conftest$ac_exeext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639 (eval $ac_link) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_cv_lib_l_yywrap=yes
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_cv_lib_l_yywrap=no
4665 rm -f conftest.err conftest.$ac_objext \
4666 conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4669 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4670 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4671 if test $ac_cv_lib_l_yywrap = yes; then
4672 LEXLIB="-ll"
4679 if test "x$LEX" != "x:"; then
4680 echo "$as_me:$LINENO: checking lex output file root" >&5
4681 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4682 if test "${ac_cv_prog_lex_root+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685 # The minimal lex program is just a single line: %%. But some broken lexes
4686 # (Solaris, I think it was) want two %% lines, so accommodate them.
4687 cat >conftest.l <<_ACEOF
4690 _ACEOF
4691 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4692 (eval $LEX conftest.l) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }
4696 if test -f lex.yy.c; then
4697 ac_cv_prog_lex_root=lex.yy
4698 elif test -f lexyy.c; then
4699 ac_cv_prog_lex_root=lexyy
4700 else
4701 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4702 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4703 { (exit 1); exit 1; }; }
4706 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4707 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4708 rm -f conftest.l
4709 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4711 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4712 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4713 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716 # POSIX says lex can declare yytext either as a pointer or an array; the
4717 # default is implementation-dependent. Figure out which it is, since
4718 # not all implementations provide the %pointer and %array declarations.
4719 ac_cv_prog_lex_yytext_pointer=no
4720 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4721 ac_save_LIBS=$LIBS
4722 LIBS="$LIBS $LEXLIB"
4723 cat >conftest.$ac_ext <<_ACEOF
4724 `cat $LEX_OUTPUT_ROOT.c`
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>conftest.er1
4729 ac_status=$?
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; } &&
4741 { ac_try='test -s conftest$ac_exeext'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 (eval $ac_try) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; }; then
4747 ac_cv_prog_lex_yytext_pointer=yes
4748 else
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4753 rm -f conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755 LIBS=$ac_save_LIBS
4756 rm -f "${LEX_OUTPUT_ROOT}.c"
4759 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4760 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4761 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4763 cat >>confdefs.h <<\_ACEOF
4764 #define YYTEXT_POINTER 1
4765 _ACEOF
4771 for ac_prog in $YACC bison yacc
4773 # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy $ac_prog; ac_word=$2
4775 echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777 if test "${ac_cv_prog_XYACC+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 if test -n "$XYACC"; then
4781 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790 ac_cv_prog_XYACC="$ac_prog"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4794 done
4795 done
4799 XYACC=$ac_cv_prog_XYACC
4800 if test -n "$XYACC"; then
4801 echo "$as_me:$LINENO: result: $XYACC" >&5
4802 echo "${ECHO_T}$XYACC" >&6
4803 else
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4808 test -n "$XYACC" && break
4809 done
4810 test -n "$XYACC" || XYACC="none"
4812 if test "$XYACC" = "none"
4813 then
4814 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4815 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4816 { (exit 1); exit 1; }; }
4818 for ac_prog in $LEX flex lex
4820 # Extract the first word of "$ac_prog", so it can be a program name with args.
4821 set dummy $ac_prog; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_prog_XLEX+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 if test -n "$XLEX"; then
4828 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_prog_XLEX="$ac_prog"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4846 XLEX=$ac_cv_prog_XLEX
4847 if test -n "$XLEX"; then
4848 echo "$as_me:$LINENO: result: $XLEX" >&5
4849 echo "${ECHO_T}$XLEX" >&6
4850 else
4851 echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
4855 test -n "$XLEX" && break
4856 done
4857 test -n "$XLEX" || XLEX="none"
4859 if test "$XLEX" = "none"
4860 then
4861 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4862 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4863 { (exit 1); exit 1; }; }
4866 if test -n "$ac_tool_prefix"; then
4867 for ac_prog in gas as
4869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4871 echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4873 if test "${ac_cv_prog_AS+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876 if test -n "$AS"; then
4877 ac_cv_prog_AS="$AS" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4895 AS=$ac_cv_prog_AS
4896 if test -n "$AS"; then
4897 echo "$as_me:$LINENO: result: $AS" >&5
4898 echo "${ECHO_T}$AS" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4904 test -n "$AS" && break
4905 done
4907 if test -z "$AS"; then
4908 ac_ct_AS=$AS
4909 for ac_prog in gas as
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 if test -n "$ac_ct_AS"; then
4919 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_ac_ct_AS="$ac_prog"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4937 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4938 if test -n "$ac_ct_AS"; then
4939 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4940 echo "${ECHO_T}$ac_ct_AS" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 test -n "$ac_ct_AS" && break
4947 done
4948 test -n "$ac_ct_AS" || ac_ct_AS="as"
4950 AS=$ac_ct_AS
4953 if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}ld; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_LD+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961 if test -n "$LD"; then
4962 ac_cv_prog_LD="$LD" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_LD="${ac_tool_prefix}ld"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4980 LD=$ac_cv_prog_LD
4981 if test -n "$LD"; then
4982 echo "$as_me:$LINENO: result: $LD" >&5
4983 echo "${ECHO_T}$LD" >&6
4984 else
4985 echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6
4990 if test -z "$ac_cv_prog_LD"; then
4991 ac_ct_LD=$LD
4992 # Extract the first word of "ld", so it can be a program name with args.
4993 set dummy ld; ac_word=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 if test -n "$ac_ct_LD"; then
5000 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_ac_ct_LD="ld"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5013 done
5014 done
5016 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5019 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5020 if test -n "$ac_ct_LD"; then
5021 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5022 echo "${ECHO_T}$ac_ct_LD" >&6
5023 else
5024 echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5028 LD=$ac_ct_LD
5029 else
5030 LD="$ac_cv_prog_LD"
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}ar; ac_word=$2
5036 echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5038 if test "${ac_cv_prog_AR+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 if test -n "$AR"; then
5042 ac_cv_prog_AR="$AR" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_AR="${ac_tool_prefix}ar"
5052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5060 AR=$ac_cv_prog_AR
5061 if test -n "$AR"; then
5062 echo "$as_me:$LINENO: result: $AR" >&5
5063 echo "${ECHO_T}$AR" >&6
5064 else
5065 echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5070 if test -z "$ac_cv_prog_AR"; then
5071 ac_ct_AR=$AR
5072 # Extract the first word of "ar", so it can be a program name with args.
5073 set dummy ar; ac_word=$2
5074 echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 if test -n "$ac_ct_AR"; then
5080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_ac_ct_AR="ar"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5093 done
5094 done
5096 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5099 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5100 if test -n "$ac_ct_AR"; then
5101 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5102 echo "${ECHO_T}$ac_ct_AR" >&6
5103 else
5104 echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6
5108 AR=$ac_ct_AR
5109 else
5110 AR="$ac_cv_prog_AR"
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5116 echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5118 if test "${ac_cv_prog_RANLIB+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 if test -n "$RANLIB"; then
5122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5140 RANLIB=$ac_cv_prog_RANLIB
5141 if test -n "$RANLIB"; then
5142 echo "$as_me:$LINENO: result: $RANLIB" >&5
5143 echo "${ECHO_T}$RANLIB" >&6
5144 else
5145 echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6
5150 if test -z "$ac_cv_prog_RANLIB"; then
5151 ac_ct_RANLIB=$RANLIB
5152 # Extract the first word of "ranlib", so it can be a program name with args.
5153 set dummy ranlib; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$ac_ct_RANLIB"; then
5160 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_ac_ct_RANLIB="ranlib"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5176 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5179 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5180 if test -n "$ac_ct_RANLIB"; then
5181 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5182 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5183 else
5184 echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6
5188 RANLIB=$ac_ct_RANLIB
5189 else
5190 RANLIB="$ac_cv_prog_RANLIB"
5193 if test -n "$ac_tool_prefix"; then
5194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5195 set dummy ${ac_tool_prefix}strip; ac_word=$2
5196 echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198 if test "${ac_cv_prog_STRIP+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 if test -n "$STRIP"; then
5202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5215 done
5216 done
5220 STRIP=$ac_cv_prog_STRIP
5221 if test -n "$STRIP"; then
5222 echo "$as_me:$LINENO: result: $STRIP" >&5
5223 echo "${ECHO_T}$STRIP" >&6
5224 else
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5230 if test -z "$ac_cv_prog_STRIP"; then
5231 ac_ct_STRIP=$STRIP
5232 # Extract the first word of "strip", so it can be a program name with args.
5233 set dummy strip; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 if test -n "$ac_ct_STRIP"; then
5240 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_ac_ct_STRIP="strip"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5253 done
5254 done
5256 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5259 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5260 if test -n "$ac_ct_STRIP"; then
5261 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5262 echo "${ECHO_T}$ac_ct_STRIP" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5268 STRIP=$ac_ct_STRIP
5269 else
5270 STRIP="$ac_cv_prog_STRIP"
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}windres; ac_word=$2
5276 echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278 if test "${ac_cv_prog_WINDRES+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if test -n "$WINDRES"; then
5282 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5300 WINDRES=$ac_cv_prog_WINDRES
5301 if test -n "$WINDRES"; then
5302 echo "$as_me:$LINENO: result: $WINDRES" >&5
5303 echo "${ECHO_T}$WINDRES" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6
5310 if test -z "$ac_cv_prog_WINDRES"; then
5311 ac_ct_WINDRES=$WINDRES
5312 # Extract the first word of "windres", so it can be a program name with args.
5313 set dummy windres; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 if test -n "$ac_ct_WINDRES"; then
5320 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_WINDRES="windres"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5336 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5339 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5340 if test -n "$ac_ct_WINDRES"; then
5341 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5342 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5348 WINDRES=$ac_ct_WINDRES
5349 else
5350 WINDRES="$ac_cv_prog_WINDRES"
5353 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5354 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5355 LN_S=$as_ln_s
5356 if test "$LN_S" = "ln -s"; then
5357 echo "$as_me:$LINENO: result: yes" >&5
5358 echo "${ECHO_T}yes" >&6
5359 else
5360 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5361 echo "${ECHO_T}no, using $LN_S" >&6
5364 echo "$as_me:$LINENO: checking whether ln works" >&5
5365 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5366 rm -f conf$$ conf$$.file
5367 echo >conf$$.file
5368 if ln conf$$.file conf$$ 2>/dev/null; then
5369 LN=ln
5371 echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6
5373 else
5374 LN="cp -p"
5376 echo "$as_me:$LINENO: result: no, using $LN" >&5
5377 echo "${ECHO_T}no, using $LN" >&6
5379 rm -f conf$$ conf$$.file
5380 # Extract the first word of "ldconfig", so it can be a program name with args.
5381 set dummy ldconfig; ac_word=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 case $LDCONFIG in
5388 [\\/]* | ?:[\\/]*)
5389 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in /sbin /usr/sbin $PATH
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5403 done
5404 done
5406 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5408 esac
5410 LDCONFIG=$ac_cv_path_LDCONFIG
5412 if test -n "$LDCONFIG"; then
5413 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5414 echo "${ECHO_T}$LDCONFIG" >&6
5415 else
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5420 # Find a good install program. We prefer a C program (faster),
5421 # so one script is as good as another. But avoid the broken or
5422 # incompatible versions:
5423 # SysV /etc/install, /usr/sbin/install
5424 # SunOS /usr/etc/install
5425 # IRIX /sbin/install
5426 # AIX /bin/install
5427 # AmigaOS /C/install, which installs bootblocks on floppy discs
5428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5431 # OS/2's system install, which has a completely different semantic
5432 # ./install, which can be erroneously created by make from ./install.sh.
5433 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5434 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5435 if test -z "$INSTALL"; then
5436 if test "${ac_cv_path_install+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 # Account for people who put trailing slashes in PATH elements.
5445 case $as_dir/ in
5446 ./ | .// | /cC/* | \
5447 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5448 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5449 /usr/ucb/* ) ;;
5451 # OSF1 and SCO ODT 3.0 have their own names for install.
5452 # Don't use installbsd from OSF since it installs stuff as root
5453 # by default.
5454 for ac_prog in ginstall scoinst install; do
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5457 if test $ac_prog = install &&
5458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5459 # AIX install. It has an incompatible calling convention.
5461 elif test $ac_prog = install &&
5462 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5463 # program-specific install script used by HP pwplus--don't use.
5465 else
5466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5467 break 3
5470 done
5471 done
5473 esac
5474 done
5478 if test "${ac_cv_path_install+set}" = set; then
5479 INSTALL=$ac_cv_path_install
5480 else
5481 # As a last resort, use the slow shell script. We don't cache a
5482 # path for INSTALL within a source directory, because that will
5483 # break other packages using the cache if that directory is
5484 # removed, or if the path is relative.
5485 INSTALL=$ac_install_sh
5488 echo "$as_me:$LINENO: result: $INSTALL" >&5
5489 echo "${ECHO_T}$INSTALL" >&6
5491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5492 # It thinks the first close brace ends the variable substitution.
5493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5499 case "$INSTALL" in
5500 [\\/$]* | ?:[\\/]* ) ;;
5501 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5502 esac
5504 for ac_prog in lclint lint
5506 # Extract the first word of "$ac_prog", so it can be a program name with args.
5507 set dummy $ac_prog; ac_word=$2
5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510 if test "${ac_cv_prog_LINT+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 if test -n "$LINT"; then
5514 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_LINT="$ac_prog"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5532 LINT=$ac_cv_prog_LINT
5533 if test -n "$LINT"; then
5534 echo "$as_me:$LINENO: result: $LINT" >&5
5535 echo "${ECHO_T}$LINT" >&6
5536 else
5537 echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5541 test -n "$LINT" && break
5542 done
5544 if test "$LINT" = "lint"
5545 then
5546 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5551 for ac_prog in docbook2html db2html
5553 # Extract the first word of "$ac_prog", so it can be a program name with args.
5554 set dummy $ac_prog; ac_word=$2
5555 echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5557 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 if test -n "$DB2HTML"; then
5561 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_DB2HTML="$ac_prog"
5571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5574 done
5575 done
5579 DB2HTML=$ac_cv_prog_DB2HTML
5580 if test -n "$DB2HTML"; then
5581 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5582 echo "${ECHO_T}$DB2HTML" >&6
5583 else
5584 echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5588 test -n "$DB2HTML" && break
5589 done
5590 test -n "$DB2HTML" || DB2HTML="false"
5594 for ac_prog in docbook2pdf db2pdf
5596 # Extract the first word of "$ac_prog", so it can be a program name with args.
5597 set dummy $ac_prog; ac_word=$2
5598 echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5600 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 if test -n "$DB2PDF"; then
5604 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_DB2PDF="$ac_prog"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5622 DB2PDF=$ac_cv_prog_DB2PDF
5623 if test -n "$DB2PDF"; then
5624 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5625 echo "${ECHO_T}$DB2PDF" >&6
5626 else
5627 echo "$as_me:$LINENO: result: no" >&5
5628 echo "${ECHO_T}no" >&6
5631 test -n "$DB2PDF" && break
5632 done
5633 test -n "$DB2PDF" || DB2PDF="false"
5637 for ac_prog in docbook2ps db2ps
5639 # Extract the first word of "$ac_prog", so it can be a program name with args.
5640 set dummy $ac_prog; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_prog_DB2PS+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 if test -n "$DB2PS"; then
5647 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_DB2PS="$ac_prog"
5657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5660 done
5661 done
5665 DB2PS=$ac_cv_prog_DB2PS
5666 if test -n "$DB2PS"; then
5667 echo "$as_me:$LINENO: result: $DB2PS" >&5
5668 echo "${ECHO_T}$DB2PS" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5674 test -n "$DB2PS" && break
5675 done
5676 test -n "$DB2PS" || DB2PS="false"
5680 for ac_prog in docbook2txt db2txt
5682 # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test -n "$DB2TXT"; then
5690 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_DB2TXT="$ac_prog"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5703 done
5704 done
5708 DB2TXT=$ac_cv_prog_DB2TXT
5709 if test -n "$DB2TXT"; then
5710 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5711 echo "${ECHO_T}$DB2TXT" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 test -n "$DB2TXT" && break
5718 done
5719 test -n "$DB2TXT" || DB2TXT="false"
5725 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5726 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5727 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lm $LIBS"
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5745 char sqrt ();
5747 main ()
5749 sqrt ();
5751 return 0;
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest$ac_exeext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_lib_m_sqrt=yes
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 ac_cv_lib_m_sqrt=no
5782 rm -f conftest.err conftest.$ac_objext \
5783 conftest$ac_exeext conftest.$ac_ext
5784 LIBS=$ac_check_lib_save_LIBS
5786 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5787 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5788 if test $ac_cv_lib_m_sqrt = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_LIBM 1
5791 _ACEOF
5793 LIBS="-lm $LIBS"
5798 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5799 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5800 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 ac_check_lib_save_LIBS=$LIBS
5804 LIBS="-li386 $LIBS"
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5812 /* Override any gcc2 internal prototype to avoid an error. */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5818 char i386_set_ldt ();
5820 main ()
5822 i386_set_ldt ();
5824 return 0;
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_cv_lib_i386_i386_set_ldt=yes
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_cv_lib_i386_i386_set_ldt=no
5855 rm -f conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857 LIBS=$ac_check_lib_save_LIBS
5859 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5860 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5861 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5862 cat >>confdefs.h <<_ACEOF
5863 #define HAVE_LIBI386 1
5864 _ACEOF
5866 LIBS="-li386 $LIBS"
5871 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5872 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5873 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 ac_check_lib_save_LIBS=$LIBS
5877 LIBS="-lossaudio $LIBS"
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5891 char _oss_ioctl ();
5893 main ()
5895 _oss_ioctl ();
5897 return 0;
5899 _ACEOF
5900 rm -f conftest.$ac_objext conftest$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902 (eval $ac_link) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_lib_ossaudio__oss_ioctl=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_lib_ossaudio__oss_ioctl=no
5928 rm -f conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5933 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5934 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_LIBOSSAUDIO 1
5937 _ACEOF
5939 LIBS="-lossaudio $LIBS"
5944 for ac_func in iswalnum
5946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5947 echo "$as_me:$LINENO: checking for $ac_func" >&5
5948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_var+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5960 #define $ac_func innocuous_$ac_func
5962 /* System header to define __stub macros and hopefully few prototypes,
5963 which can conflict with char $ac_func (); below.
5964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965 <limits.h> exists even on freestanding compilers. */
5967 #ifdef __STDC__
5968 # include <limits.h>
5969 #else
5970 # include <assert.h>
5971 #endif
5973 #undef $ac_func
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 #ifdef __cplusplus
5977 extern "C"
5979 #endif
5980 /* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */
5982 char $ac_func ();
5983 /* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987 choke me
5988 #else
5989 char (*f) () = $ac_func;
5990 #endif
5991 #ifdef __cplusplus
5993 #endif
5996 main ()
5998 return f != $ac_func;
6000 return 0;
6002 _ACEOF
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; } &&
6018 { ac_try='test -s conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 eval "$as_ac_var=yes"
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 eval "$as_ac_var=no"
6031 rm -f conftest.err conftest.$ac_objext \
6032 conftest$ac_exeext conftest.$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6036 if test `eval echo '${'$as_ac_var'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6039 _ACEOF
6041 else
6043 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6044 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6045 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 ac_check_lib_save_LIBS=$LIBS
6049 LIBS="-lw $LIBS"
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 #ifdef __cplusplus
6059 extern "C"
6060 #endif
6061 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6063 char iswalnum ();
6065 main ()
6067 iswalnum ();
6069 return 0;
6071 _ACEOF
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_lib_w_iswalnum=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_cv_lib_w_iswalnum=no
6100 rm -f conftest.err conftest.$ac_objext \
6101 conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6105 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6106 if test $ac_cv_lib_w_iswalnum = yes; then
6107 cat >>confdefs.h <<_ACEOF
6108 #define HAVE_LIBW 1
6109 _ACEOF
6111 LIBS="-lw $LIBS"
6116 done
6119 for ac_func in gethostbyname
6121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122 echo "$as_me:$LINENO: checking for $ac_func" >&5
6123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6124 if eval "test \"\${$as_ac_var+set}\" = set"; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6135 #define $ac_func innocuous_$ac_func
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func (); below.
6139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 <limits.h> exists even on freestanding compilers. */
6142 #ifdef __STDC__
6143 # include <limits.h>
6144 #else
6145 # include <assert.h>
6146 #endif
6148 #undef $ac_func
6150 /* Override any gcc2 internal prototype to avoid an error. */
6151 #ifdef __cplusplus
6152 extern "C"
6154 #endif
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6157 char $ac_func ();
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 choke me
6163 #else
6164 char (*f) () = $ac_func;
6165 #endif
6166 #ifdef __cplusplus
6168 #endif
6171 main ()
6173 return f != $ac_func;
6175 return 0;
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 eval "$as_ac_var=yes"
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 eval "$as_ac_var=no"
6206 rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6211 if test `eval echo '${'$as_ac_var'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6214 _ACEOF
6216 else
6218 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6219 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6220 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-lnsl $LIBS"
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 /* Override any gcc2 internal prototype to avoid an error. */
6233 #ifdef __cplusplus
6234 extern "C"
6235 #endif
6236 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */
6238 char gethostbyname ();
6240 main ()
6242 gethostbyname ();
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest$ac_exeext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_lib_nsl_gethostbyname=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_lib_nsl_gethostbyname=no
6275 rm -f conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6279 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6280 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6281 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6282 cat >>confdefs.h <<_ACEOF
6283 #define HAVE_LIBNSL 1
6284 _ACEOF
6286 LIBS="-lnsl $LIBS"
6291 done
6294 for ac_func in connect
6296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6297 echo "$as_me:$LINENO: checking for $ac_func" >&5
6298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6299 if eval "test \"\${$as_ac_var+set}\" = set"; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6310 #define $ac_func innocuous_$ac_func
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char $ac_func (); below.
6314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6315 <limits.h> exists even on freestanding compilers. */
6317 #ifdef __STDC__
6318 # include <limits.h>
6319 #else
6320 # include <assert.h>
6321 #endif
6323 #undef $ac_func
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 #ifdef __cplusplus
6327 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6332 char $ac_func ();
6333 /* The GNU C library defines this for functions which it implements
6334 to always fail with ENOSYS. Some functions are actually named
6335 something starting with __ and the normal name is an alias. */
6336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6337 choke me
6338 #else
6339 char (*f) () = $ac_func;
6340 #endif
6341 #ifdef __cplusplus
6343 #endif
6346 main ()
6348 return f != $ac_func;
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext conftest$ac_exeext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest$ac_exeext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 eval "$as_ac_var=yes"
6375 else
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 eval "$as_ac_var=no"
6381 rm -f conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6386 if test `eval echo '${'$as_ac_var'}'` = yes; then
6387 cat >>confdefs.h <<_ACEOF
6388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6389 _ACEOF
6391 else
6393 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6395 if test "${ac_cv_lib_socket_connect+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 ac_check_lib_save_LIBS=$LIBS
6399 LIBS="-lsocket $LIBS"
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char connect ();
6415 main ()
6417 connect ();
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_lib_socket_connect=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_cv_lib_socket_connect=no
6450 rm -f conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6452 LIBS=$ac_check_lib_save_LIBS
6454 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6455 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6456 if test $ac_cv_lib_socket_connect = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458 #define HAVE_LIBSOCKET 1
6459 _ACEOF
6461 LIBS="-lsocket $LIBS"
6466 done
6469 for ac_func in inet_aton
6471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6472 echo "$as_me:$LINENO: checking for $ac_func" >&5
6473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6474 if eval "test \"\${$as_ac_var+set}\" = set"; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6485 #define $ac_func innocuous_$ac_func
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char $ac_func (); below.
6489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490 <limits.h> exists even on freestanding compilers. */
6492 #ifdef __STDC__
6493 # include <limits.h>
6494 #else
6495 # include <assert.h>
6496 #endif
6498 #undef $ac_func
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 #ifdef __cplusplus
6502 extern "C"
6504 #endif
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6507 char $ac_func ();
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6512 choke me
6513 #else
6514 char (*f) () = $ac_func;
6515 #endif
6516 #ifdef __cplusplus
6518 #endif
6521 main ()
6523 return f != $ac_func;
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; } &&
6543 { ac_try='test -s conftest$ac_exeext'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6549 eval "$as_ac_var=yes"
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 eval "$as_ac_var=no"
6556 rm -f conftest.err conftest.$ac_objext \
6557 conftest$ac_exeext conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6561 if test `eval echo '${'$as_ac_var'}'` = yes; then
6562 cat >>confdefs.h <<_ACEOF
6563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6564 _ACEOF
6566 else
6568 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6569 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6570 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 ac_check_lib_save_LIBS=$LIBS
6574 LIBS="-lresolv $LIBS"
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 #ifdef __cplusplus
6584 extern "C"
6585 #endif
6586 /* We use char because int might match the return type of a gcc2
6587 builtin and then its argument prototype would still apply. */
6588 char inet_aton ();
6590 main ()
6592 inet_aton ();
6594 return 0;
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_lib_resolv_inet_aton=yes
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 ac_cv_lib_resolv_inet_aton=no
6625 rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6629 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6630 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6631 if test $ac_cv_lib_resolv_inet_aton = yes; then
6632 cat >>confdefs.h <<_ACEOF
6633 #define HAVE_LIBRESOLV 1
6634 _ACEOF
6636 LIBS="-lresolv $LIBS"
6641 done
6644 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6645 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6646 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 ac_check_lib_save_LIBS=$LIBS
6650 LIBS="-lxpg4 $LIBS"
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 #ifdef __cplusplus
6660 extern "C"
6661 #endif
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664 char _xpg4_setrunelocale ();
6666 main ()
6668 _xpg4_setrunelocale ();
6670 return 0;
6672 _ACEOF
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest$ac_exeext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6701 rm -f conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6705 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6706 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6707 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709 #define HAVE_LIBXPG4 1
6710 _ACEOF
6712 LIBS="-lxpg4 $LIBS"
6717 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6718 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6719 if test "${ac_cv_lib_poll_poll+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 ac_check_lib_save_LIBS=$LIBS
6723 LIBS="-lpoll $LIBS"
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6731 /* Override any gcc2 internal prototype to avoid an error. */
6732 #ifdef __cplusplus
6733 extern "C"
6734 #endif
6735 /* We use char because int might match the return type of a gcc2
6736 builtin and then its argument prototype would still apply. */
6737 char poll ();
6739 main ()
6741 poll ();
6743 return 0;
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748 (eval $ac_link) 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_lib_poll_poll=yes
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 ac_cv_lib_poll_poll=no
6774 rm -f conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 LIBS=$ac_check_lib_save_LIBS
6778 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6779 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6780 if test $ac_cv_lib_poll_poll = yes; then
6781 cat >>confdefs.h <<_ACEOF
6782 #define HAVE_LIBPOLL 1
6783 _ACEOF
6785 LIBS="-lpoll $LIBS"
6789 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6790 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6791 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 ac_check_lib_save_LIBS=$LIBS
6795 LIBS="-lpthread $LIBS"
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809 char pthread_create ();
6811 main ()
6813 pthread_create ();
6815 return 0;
6817 _ACEOF
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_cv_lib_pthread_pthread_create=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 ac_cv_lib_pthread_pthread_create=no
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 LIBS=$ac_check_lib_save_LIBS
6850 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6851 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6852 if test $ac_cv_lib_pthread_pthread_create = yes; then
6853 LIBPTHREAD="-lpthread"
6858 JPEGLIB=""
6860 echo "$as_me:$LINENO: checking for egrep" >&5
6861 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6862 if test "${ac_cv_prog_egrep+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6866 then ac_cv_prog_egrep='grep -E'
6867 else ac_cv_prog_egrep='egrep'
6870 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6871 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6872 EGREP=$ac_cv_prog_egrep
6875 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6877 if test "${ac_cv_header_stdc+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <stdlib.h>
6887 #include <stdarg.h>
6888 #include <string.h>
6889 #include <float.h>
6892 main ()
6896 return 0;
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try='test -s conftest.$ac_objext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 ac_cv_header_stdc=yes
6921 else
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ac_cv_header_stdc=no
6927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 if test $ac_cv_header_stdc = yes; then
6930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <string.h>
6939 _ACEOF
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941 $EGREP "memchr" >/dev/null 2>&1; then
6943 else
6944 ac_cv_header_stdc=no
6946 rm -f conftest*
6950 if test $ac_cv_header_stdc = yes; then
6951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <stdlib.h>
6960 _ACEOF
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962 $EGREP "free" >/dev/null 2>&1; then
6964 else
6965 ac_cv_header_stdc=no
6967 rm -f conftest*
6971 if test $ac_cv_header_stdc = yes; then
6972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6973 if test "$cross_compiling" = yes; then
6975 else
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 #include <ctype.h>
6983 #if ((' ' & 0x0FF) == 0x020)
6984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986 #else
6987 # define ISLOWER(c) \
6988 (('a' <= (c) && (c) <= 'i') \
6989 || ('j' <= (c) && (c) <= 'r') \
6990 || ('s' <= (c) && (c) <= 'z'))
6991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992 #endif
6994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6996 main ()
6998 int i;
6999 for (i = 0; i < 256; i++)
7000 if (XOR (islower (i), ISLOWER (i))
7001 || toupper (i) != TOUPPER (i))
7002 exit(2);
7003 exit (0);
7005 _ACEOF
7006 rm -f conftest$ac_exeext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008 (eval $ac_link) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7018 else
7019 echo "$as_me: program exited with status $ac_status" >&5
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ( exit $ac_status )
7024 ac_cv_header_stdc=no
7026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7032 if test $ac_cv_header_stdc = yes; then
7034 cat >>confdefs.h <<\_ACEOF
7035 #define STDC_HEADERS 1
7036 _ACEOF
7040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7051 inttypes.h stdint.h unistd.h
7053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054 echo "$as_me:$LINENO: checking for $ac_header" >&5
7055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 $ac_includes_default
7067 #include <$ac_header>
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 eval "$as_ac_Header=yes"
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 eval "$as_ac_Header=no"
7097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7102 cat >>confdefs.h <<_ACEOF
7103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7104 _ACEOF
7108 done
7112 for ac_header in jpeglib.h
7114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7116 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7123 else
7124 # Is the header compilable?
7125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h. */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 $ac_includes_default
7134 #include <$ac_header>
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7138 (eval $ac_compile) 2>conftest.er1
7139 ac_status=$?
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest.$ac_objext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_header_compiler=yes
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_header_compiler=no
7164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 echo "${ECHO_T}$ac_header_compiler" >&6
7168 # Is the header present?
7169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <$ac_header>
7178 _ACEOF
7179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } >/dev/null; then
7187 if test -s conftest.err; then
7188 ac_cpp_err=$ac_c_preproc_warn_flag
7189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7190 else
7191 ac_cpp_err=
7193 else
7194 ac_cpp_err=yes
7196 if test -z "$ac_cpp_err"; then
7197 ac_header_preproc=yes
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_header_preproc=no
7204 rm -f conftest.err conftest.$ac_ext
7205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7206 echo "${ECHO_T}$ac_header_preproc" >&6
7208 # So? What about this header?
7209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7210 yes:no: )
7211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7215 ac_header_preproc=yes
7217 no:yes:* )
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7231 cat <<\_ASBOX
7232 ## ------------------------------------ ##
7233 ## Report this to wine-devel@winehq.org ##
7234 ## ------------------------------------ ##
7235 _ASBOX
7237 sed "s/^/$as_me: WARNING: /" >&2
7239 esac
7240 echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 eval "$as_ac_Header=\$ac_header_preproc"
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7254 _ACEOF
7255 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7256 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7257 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 ac_check_lib_save_LIBS=$LIBS
7261 LIBS="-ljpeg $LIBS"
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 #ifdef __cplusplus
7271 extern "C"
7272 #endif
7273 /* We use char because int might match the return type of a gcc2
7274 builtin and then its argument prototype would still apply. */
7275 char jpeg_start_decompress ();
7277 main ()
7279 jpeg_start_decompress ();
7281 return 0;
7283 _ACEOF
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7286 (eval $ac_link) 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_lib_jpeg_jpeg_start_decompress=no
7312 rm -f conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 LIBS=$ac_check_lib_save_LIBS
7316 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7317 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7318 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_LIBJPEG 1
7322 _ACEOF
7324 JPEGLIB="-ljpeg"
7331 done
7334 GIFLIB=""
7337 for ac_header in gif_lib.h
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341 echo "$as_me:$LINENO: checking for $ac_header" >&5
7342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348 else
7349 # Is the header compilable?
7350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7359 #include <$ac_header>
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try='test -s conftest.$ac_objext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_header_compiler=yes
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 ac_header_compiler=no
7389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7391 echo "${ECHO_T}$ac_header_compiler" >&6
7393 # Is the header present?
7394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 #include <$ac_header>
7403 _ACEOF
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } >/dev/null; then
7412 if test -s conftest.err; then
7413 ac_cpp_err=$ac_c_preproc_warn_flag
7414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7415 else
7416 ac_cpp_err=
7418 else
7419 ac_cpp_err=yes
7421 if test -z "$ac_cpp_err"; then
7422 ac_header_preproc=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_header_preproc=no
7429 rm -f conftest.err conftest.$ac_ext
7430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7431 echo "${ECHO_T}$ac_header_preproc" >&6
7433 # So? What about this header?
7434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7435 yes:no: )
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7440 ac_header_preproc=yes
7442 no:yes:* )
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7456 cat <<\_ASBOX
7457 ## ------------------------------------ ##
7458 ## Report this to wine-devel@winehq.org ##
7459 ## ------------------------------------ ##
7460 _ASBOX
7462 sed "s/^/$as_me: WARNING: /" >&2
7464 esac
7465 echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 eval "$as_ac_Header=\$ac_header_preproc"
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477 cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479 _ACEOF
7480 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7481 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7482 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 ac_check_lib_save_LIBS=$LIBS
7486 LIBS="-lungif $LIBS"
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500 char DGifOpen ();
7502 main ()
7504 DGifOpen ();
7506 return 0;
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_ungif_DGifOpen=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_lib_ungif_DGifOpen=no
7537 rm -f conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7542 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7543 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_LIBGIF 1
7547 _ACEOF
7549 GIFLIB="-lungif"
7550 else
7551 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7552 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7553 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 ac_check_lib_save_LIBS=$LIBS
7557 LIBS="-lgif $LIBS"
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 #ifdef __cplusplus
7567 extern "C"
7568 #endif
7569 /* We use char because int might match the return type of a gcc2
7570 builtin and then its argument prototype would still apply. */
7571 char DGifOpen ();
7573 main ()
7575 DGifOpen ();
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582 (eval $ac_link) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 (eval $ac_try) 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_lib_gif_DGifOpen=yes
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_cv_lib_gif_DGifOpen=no
7608 rm -f conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7613 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7614 if test $ac_cv_lib_gif_DGifOpen = yes; then
7615 cat >>confdefs.h <<\_ACEOF
7616 #define HAVE_LIBGIF 1
7617 _ACEOF
7619 GIFLIB="-lgif"
7626 done
7631 XFILES=""
7633 OPENGLFILES=""
7635 GLU32FILES=""
7637 OPENGL_LIBS=""
7638 if test "$have_x" = "yes"
7639 then
7640 XLIB="-lXext -lX11"
7641 ac_save_CPPFLAGS="$CPPFLAGS"
7642 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7645 for ac_header in X11/Xlib.h
7647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7649 echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7656 else
7657 # Is the header compilable?
7658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 $ac_includes_default
7667 #include <$ac_header>
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671 (eval $ac_compile) 2>conftest.er1
7672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest.$ac_objext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_header_compiler=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_header_compiler=no
7697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7699 echo "${ECHO_T}$ac_header_compiler" >&6
7701 # Is the header present?
7702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7704 cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 #include <$ac_header>
7711 _ACEOF
7712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } >/dev/null; then
7720 if test -s conftest.err; then
7721 ac_cpp_err=$ac_c_preproc_warn_flag
7722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7723 else
7724 ac_cpp_err=
7726 else
7727 ac_cpp_err=yes
7729 if test -z "$ac_cpp_err"; then
7730 ac_header_preproc=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_header_preproc=no
7737 rm -f conftest.err conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7739 echo "${ECHO_T}$ac_header_preproc" >&6
7741 # So? What about this header?
7742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7743 yes:no: )
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7748 ac_header_preproc=yes
7750 no:yes:* )
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7764 cat <<\_ASBOX
7765 ## ------------------------------------ ##
7766 ## Report this to wine-devel@winehq.org ##
7767 ## ------------------------------------ ##
7768 _ASBOX
7770 sed "s/^/$as_me: WARNING: /" >&2
7772 esac
7773 echo "$as_me:$LINENO: checking for $ac_header" >&5
7774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 eval "$as_ac_Header=\$ac_header_preproc"
7780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7785 cat >>confdefs.h <<_ACEOF
7786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7787 _ACEOF
7799 for ac_header in X11/XKBlib.h \
7800 X11/Xutil.h \
7801 X11/extensions/shape.h \
7802 X11/extensions/XInput.h \
7803 X11/extensions/XShm.h \
7804 X11/extensions/Xrandr.h \
7805 X11/extensions/Xrender.h \
7806 X11/extensions/Xvlib.h \
7807 X11/extensions/xf86dga.h \
7808 X11/extensions/xf86vmode.h
7810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7811 echo "$as_me:$LINENO: checking for $ac_header" >&5
7812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h. */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <X11/Xlib.h>
7823 #ifdef HAVE_X11_XUTIL_H
7824 # include <X11/Xutil.h>
7825 #endif
7827 #include <$ac_header>
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 eval "$as_ac_Header=yes"
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 eval "$as_ac_Header=no"
7857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 _ACEOF
7868 done
7871 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7872 then
7873 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7874 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7875 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 ac_check_lib_save_LIBS=$LIBS
7879 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h. */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 #ifdef __cplusplus
7889 extern "C"
7890 #endif
7891 /* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7893 char XkbQueryExtension ();
7895 main ()
7897 XkbQueryExtension ();
7899 return 0;
7901 _ACEOF
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_X11_XkbQueryExtension=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_lib_X11_XkbQueryExtension=no
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7935 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7936 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7938 cat >>confdefs.h <<\_ACEOF
7939 #define HAVE_XKB 1
7940 _ACEOF
7946 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7947 then
7948 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7949 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7950 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 ac_check_lib_save_LIBS=$LIBS
7954 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 #ifdef __cplusplus
7964 extern "C"
7965 #endif
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7968 char XShmQueryExtension ();
7970 main ()
7972 XShmQueryExtension ();
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979 (eval $ac_link) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_lib_Xext_XShmQueryExtension=yes
7999 else
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_cv_lib_Xext_XShmQueryExtension=no
8005 rm -f conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8007 LIBS=$ac_check_lib_save_LIBS
8009 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8010 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
8011 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_LIBXXSHM 1
8015 _ACEOF
8021 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8022 then
8023 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8024 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8025 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028 ac_check_lib_save_LIBS=$LIBS
8029 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8037 /* Override any gcc2 internal prototype to avoid an error. */
8038 #ifdef __cplusplus
8039 extern "C"
8040 #endif
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8043 char XShapeQueryExtension ();
8045 main ()
8047 XShapeQueryExtension ();
8049 return 0;
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063 (eval $ac_try) 2>&5
8064 ac_status=$?
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 ac_cv_lib_Xext_XShapeQueryExtension=yes
8074 else
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 ac_cv_lib_Xext_XShapeQueryExtension=no
8080 rm -f conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LIBS=$ac_check_lib_save_LIBS
8084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8085 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8086 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_LIBXSHAPE 1
8090 _ACEOF
8096 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8097 then
8098 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8099 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8100 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 ac_check_lib_save_LIBS=$LIBS
8104 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 #ifdef __cplusplus
8114 extern "C"
8115 #endif
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8118 char XDGAQueryExtension ();
8120 main ()
8122 XDGAQueryExtension ();
8124 return 0;
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest$ac_exeext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8155 rm -f conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LIBS=$ac_check_lib_save_LIBS
8159 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8160 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8161 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_LIBXXF86DGA2 1
8165 _ACEOF
8167 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8169 else
8170 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8171 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8172 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 ac_check_lib_save_LIBS=$LIBS
8176 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8177 $LIBS"
8178 cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h. */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8185 /* Override any gcc2 internal prototype to avoid an error. */
8186 #ifdef __cplusplus
8187 extern "C"
8188 #endif
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191 char XF86DGAQueryExtension ();
8193 main ()
8195 XF86DGAQueryExtension ();
8197 return 0;
8199 _ACEOF
8200 rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8202 (eval $ac_link) 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8228 rm -f conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 LIBS=$ac_check_lib_save_LIBS
8232 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8233 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8234 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_LIBXXF86DGA 1
8238 _ACEOF
8240 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8249 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8250 then
8251 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8252 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8253 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256 ac_check_lib_save_LIBS=$LIBS
8257 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8271 char XF86VidModeQueryExtension ();
8273 main ()
8275 XF86VidModeQueryExtension ();
8277 return 0;
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8308 rm -f conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310 LIBS=$ac_check_lib_save_LIBS
8312 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8313 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8314 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8316 cat >>confdefs.h <<\_ACEOF
8317 #define HAVE_LIBXXF86VM 1
8318 _ACEOF
8320 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8326 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8327 then
8328 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8329 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
8330 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 ac_check_lib_save_LIBS=$LIBS
8334 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 #ifdef __cplusplus
8344 extern "C"
8345 #endif
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8348 char XRRSetScreenConfigAndRate ();
8350 main ()
8352 XRRSetScreenConfigAndRate ();
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 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_exeext'
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
8378 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
8385 rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8389 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8390 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8391 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8393 cat >>confdefs.h <<\_ACEOF
8394 #define HAVE_LIBXRANDR 1
8395 _ACEOF
8397 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8403 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8404 then
8405 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8406 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8407 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 ac_check_lib_save_LIBS=$LIBS
8411 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8412 cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8419 /* Override any gcc2 internal prototype to avoid an error. */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char XvShmCreateImage ();
8427 main ()
8429 XvShmCreateImage ();
8431 return 0;
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest$ac_exeext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_lib_Xv_XvShmCreateImage=yes
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 ac_cv_lib_Xv_XvShmCreateImage=no
8462 rm -f conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464 LIBS=$ac_check_lib_save_LIBS
8466 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8467 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8468 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_XVIDEO 1
8472 _ACEOF
8474 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8483 done
8485 if test "x$with_opengl" != "xno"
8486 then
8487 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8488 then
8489 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8490 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8491 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8492 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8493 { (exit 1); exit 1; }; }
8498 for ac_header in GL/gl.h GL/glx.h
8500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8509 else
8510 # Is the header compilable?
8511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #include <$ac_header>
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest.$ac_objext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_header_compiler=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_header_compiler=no
8550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8552 echo "${ECHO_T}$ac_header_compiler" >&6
8554 # Is the header present?
8555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 #include <$ac_header>
8564 _ACEOF
8565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } >/dev/null; then
8573 if test -s conftest.err; then
8574 ac_cpp_err=$ac_c_preproc_warn_flag
8575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8576 else
8577 ac_cpp_err=
8579 else
8580 ac_cpp_err=yes
8582 if test -z "$ac_cpp_err"; then
8583 ac_header_preproc=yes
8584 else
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 ac_header_preproc=no
8590 rm -f conftest.err conftest.$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8596 yes:no: )
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8601 ac_header_preproc=yes
8603 no:yes:* )
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8617 cat <<\_ASBOX
8618 ## ------------------------------------ ##
8619 ## Report this to wine-devel@winehq.org ##
8620 ## ------------------------------------ ##
8621 _ASBOX
8623 sed "s/^/$as_me: WARNING: /" >&2
8625 esac
8626 echo "$as_me:$LINENO: checking for $ac_header" >&5
8627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631 eval "$as_ac_Header=\$ac_header_preproc"
8633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8638 cat >>confdefs.h <<_ACEOF
8639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8640 _ACEOF
8644 done
8646 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8647 then
8649 for ac_header in GL/glext.h
8651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_header" >&5
8653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 #include <GL/glx.h>
8665 #include <$ac_header>
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>conftest.er1
8670 ac_status=$?
8671 grep -v '^ *+' conftest.er1 >conftest.err
8672 rm -f conftest.er1
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; } &&
8682 { ac_try='test -s conftest.$ac_objext'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 eval "$as_ac_Header=yes"
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 eval "$as_ac_Header=no"
8695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702 _ACEOF
8706 done
8708 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8709 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8710 if test "${wine_cv_opengl_version_OK+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <GL/gl.h>
8721 main ()
8723 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8725 return 0;
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 wine_cv_opengl_version_OK="yes"
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 wine_cv_opengl_version_OK="no"
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8761 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8763 if test "$wine_cv_opengl_version_OK" = "yes"
8764 then
8765 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8766 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8767 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8779 /* Override any gcc2 internal prototype to avoid an error. */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785 char glXCreateContext ();
8787 main ()
8789 glXCreateContext ();
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_cv_lib_GL_glXCreateContext=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_lib_GL_glXCreateContext=no
8822 rm -f conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8827 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8828 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8829 OPENGL_LIBS="-lGL"
8834 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8835 then
8836 OPENGLFILES='$(OPENGLFILES)'
8838 cat >>confdefs.h <<\_ACEOF
8839 #define HAVE_OPENGL 1
8840 _ACEOF
8843 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8844 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8845 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 ac_check_lib_save_LIBS=$LIBS
8849 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8857 /* Override any gcc2 internal prototype to avoid an error. */
8858 #ifdef __cplusplus
8859 extern "C"
8860 #endif
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8863 char glXGetProcAddressARB ();
8865 main ()
8867 glXGetProcAddressARB ();
8869 return 0;
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest$ac_exeext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 ac_cv_lib_GL_glXGetProcAddressARB=yes
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_cv_lib_GL_glXGetProcAddressARB=no
8900 rm -f conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902 LIBS=$ac_check_lib_save_LIBS
8904 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8905 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8906 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_GLX_GETPROCADDRESS 1
8910 _ACEOF
8915 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8916 then
8917 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8918 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8919 if test "${wine_cv_extension_prototypes+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 #include <GL/gl.h>
8929 #ifdef HAVE_GL_GLEXT_H
8930 # include <GL/glext.h>
8931 #endif
8934 main ()
8936 PFNGLCOLORTABLEEXTPROC test_proc;
8938 return 0;
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest.$ac_objext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 wine_cv_extension_prototypes="yes"
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 wine_cv_extension_prototypes="no"
8970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8974 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8975 if test "$wine_cv_extension_prototypes" = "yes"
8976 then
8978 cat >>confdefs.h <<\_ACEOF
8979 #define HAVE_GLEXT_PROTOTYPES 1
8980 _ACEOF
8986 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8987 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8988 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991 ac_check_lib_save_LIBS=$LIBS
8992 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8993 $LIBS"
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9001 /* Override any gcc2 internal prototype to avoid an error. */
9002 #ifdef __cplusplus
9003 extern "C"
9004 #endif
9005 /* We use char because int might match the return type of a gcc2
9006 builtin and then its argument prototype would still apply. */
9007 char gluLookAt ();
9009 main ()
9011 gluLookAt ();
9013 return 0;
9015 _ACEOF
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_lib_GLU_gluLookAt=yes
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_cv_lib_GLU_gluLookAt=no
9044 rm -f conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9046 LIBS=$ac_check_lib_save_LIBS
9048 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9049 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9050 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9051 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9052 GLU32FILES='$(GLU32FILES)'
9058 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9059 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9060 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 ac_check_lib_save_LIBS=$LIBS
9064 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9072 /* Override any gcc2 internal prototype to avoid an error. */
9073 #ifdef __cplusplus
9074 extern "C"
9075 #endif
9076 /* We use char because int might match the return type of a gcc2
9077 builtin and then its argument prototype would still apply. */
9078 char glutMainLoop ();
9080 main ()
9082 glutMainLoop ();
9084 return 0;
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest$ac_exeext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_cv_lib_glut_glutMainLoop=yes
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_cv_lib_glut_glutMainLoop=no
9115 rm -f conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9120 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9121 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9122 GLUT_LIBS="-lglut -lXmu -lXi"
9124 GLUT32FILES='$(GLUT32FILES)'
9131 NASLIBS=""
9134 for ac_header in audio/audiolib.h
9136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9145 else
9146 # Is the header compilable?
9147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9156 #include <$ac_header>
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160 (eval $ac_compile) 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest.$ac_objext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_header_compiler=yes
9180 else
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_header_compiler=no
9186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 echo "${ECHO_T}$ac_header_compiler" >&6
9190 # Is the header present?
9191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <$ac_header>
9200 _ACEOF
9201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } >/dev/null; then
9209 if test -s conftest.err; then
9210 ac_cpp_err=$ac_c_preproc_warn_flag
9211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9212 else
9213 ac_cpp_err=
9215 else
9216 ac_cpp_err=yes
9218 if test -z "$ac_cpp_err"; then
9219 ac_header_preproc=yes
9220 else
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_header_preproc=no
9226 rm -f conftest.err conftest.$ac_ext
9227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9228 echo "${ECHO_T}$ac_header_preproc" >&6
9230 # So? What about this header?
9231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9232 yes:no: )
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9237 ac_header_preproc=yes
9239 no:yes:* )
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9253 cat <<\_ASBOX
9254 ## ------------------------------------ ##
9255 ## Report this to wine-devel@winehq.org ##
9256 ## ------------------------------------ ##
9257 _ASBOX
9259 sed "s/^/$as_me: WARNING: /" >&2
9261 esac
9262 echo "$as_me:$LINENO: checking for $ac_header" >&5
9263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 eval "$as_ac_Header=\$ac_header_preproc"
9269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9276 _ACEOF
9278 for ac_header in audio/soundlib.h
9280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9281 echo "$as_me:$LINENO: checking for $ac_header" >&5
9282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h. */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 #include <audio/audiolib.h>
9294 #include <$ac_header>
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298 (eval $ac_compile) 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest.$ac_objext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_Header=yes"
9318 else
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9322 eval "$as_ac_Header=no"
9324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9331 _ACEOF
9335 done
9337 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9338 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9339 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 ac_check_lib_save_LIBS=$LIBS
9343 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9351 /* Override any gcc2 internal prototype to avoid an error. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357 char AuCreateFlow ();
9359 main ()
9361 AuCreateFlow ();
9363 return 0;
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_cv_lib_audio_AuCreateFlow=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_cv_lib_audio_AuCreateFlow=no
9394 rm -f conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9398 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9399 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9400 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9402 cat >>confdefs.h <<\_ACEOF
9403 #define HAVE_NAS 1
9404 _ACEOF
9406 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9411 done
9414 CPPFLAGS="$ac_save_CPPFLAGS"
9415 XFILES='$(XFILES)'
9416 else
9417 XLIB=""
9418 X_CFLAGS=""
9419 X_LIBS=""
9422 CURSESLIBS=""
9423 if test "x$with_curses" != "xno"
9424 then
9426 for ac_header in ncurses.h
9428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9430 echo "$as_me:$LINENO: checking for $ac_header" >&5
9431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9437 else
9438 # Is the header compilable?
9439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 $ac_includes_default
9448 #include <$ac_header>
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_header_compiler=yes
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_header_compiler=no
9478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9480 echo "${ECHO_T}$ac_header_compiler" >&6
9482 # Is the header present?
9483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h. */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 #include <$ac_header>
9492 _ACEOF
9493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } >/dev/null; then
9501 if test -s conftest.err; then
9502 ac_cpp_err=$ac_c_preproc_warn_flag
9503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9504 else
9505 ac_cpp_err=
9507 else
9508 ac_cpp_err=yes
9510 if test -z "$ac_cpp_err"; then
9511 ac_header_preproc=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_header_preproc=no
9518 rm -f conftest.err conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 echo "${ECHO_T}$ac_header_preproc" >&6
9522 # So? What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524 yes:no: )
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9529 ac_header_preproc=yes
9531 no:yes:* )
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9545 cat <<\_ASBOX
9546 ## ------------------------------------ ##
9547 ## Report this to wine-devel@winehq.org ##
9548 ## ------------------------------------ ##
9549 _ASBOX
9551 sed "s/^/$as_me: WARNING: /" >&2
9553 esac
9554 echo "$as_me:$LINENO: checking for $ac_header" >&5
9555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 eval "$as_ac_Header=\$ac_header_preproc"
9561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9566 cat >>confdefs.h <<_ACEOF
9567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9568 _ACEOF
9569 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9570 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9571 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 ac_check_lib_save_LIBS=$LIBS
9575 LIBS="-lncurses $LIBS"
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9583 /* Override any gcc2 internal prototype to avoid an error. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9589 char waddch ();
9591 main ()
9593 waddch ();
9595 return 0;
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_lib_ncurses_waddch=yes
9620 else
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_cv_lib_ncurses_waddch=no
9626 rm -f conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9630 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9631 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9632 if test $ac_cv_lib_ncurses_waddch = yes; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define HAVE_LIBNCURSES 1
9636 _ACEOF
9638 CURSESLIBS="-lncurses"
9639 else
9641 for ac_header in curses.h
9643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645 echo "$as_me:$LINENO: checking for $ac_header" >&5
9646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652 else
9653 # Is the header compilable?
9654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_header_compiler=yes
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_header_compiler=no
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9695 echo "${ECHO_T}$ac_header_compiler" >&6
9697 # Is the header present?
9698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <$ac_header>
9707 _ACEOF
9708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9719 else
9720 ac_cpp_err=
9722 else
9723 ac_cpp_err=yes
9725 if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
9727 else
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_preproc=no
9733 rm -f conftest.err conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9735 echo "${ECHO_T}$ac_header_preproc" >&6
9737 # So? What about this header?
9738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9739 yes:no: )
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9744 ac_header_preproc=yes
9746 no:yes:* )
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9760 cat <<\_ASBOX
9761 ## ------------------------------------ ##
9762 ## Report this to wine-devel@winehq.org ##
9763 ## ------------------------------------ ##
9764 _ASBOX
9766 sed "s/^/$as_me: WARNING: /" >&2
9768 esac
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 eval "$as_ac_Header=\$ac_header_preproc"
9776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 _ACEOF
9784 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9785 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9786 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 ac_check_lib_save_LIBS=$LIBS
9790 LIBS="-lcurses $LIBS"
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 #ifdef __cplusplus
9800 extern "C"
9801 #endif
9802 /* We use char because int might match the return type of a gcc2
9803 builtin and then its argument prototype would still apply. */
9804 char waddch ();
9806 main ()
9808 waddch ();
9810 return 0;
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815 (eval $ac_link) 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 ac_cv_lib_curses_waddch=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ac_cv_lib_curses_waddch=no
9841 rm -f conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843 LIBS=$ac_check_lib_save_LIBS
9845 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9846 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9847 if test $ac_cv_lib_curses_waddch = yes; then
9849 cat >>confdefs.h <<\_ACEOF
9850 #define HAVE_LIBCURSES 1
9851 _ACEOF
9853 CURSESLIBS="-lcurses"
9858 done
9864 done
9866 saved_libs="$LIBS"
9867 LIBS="$CURSESLIBS $LIBS"
9870 for ac_func in getbkgd resizeterm
9872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9873 echo "$as_me:$LINENO: checking for $ac_func" >&5
9874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9875 if eval "test \"\${$as_ac_var+set}\" = set"; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h. */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9886 #define $ac_func innocuous_$ac_func
9888 /* System header to define __stub macros and hopefully few prototypes,
9889 which can conflict with char $ac_func (); below.
9890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9891 <limits.h> exists even on freestanding compilers. */
9893 #ifdef __STDC__
9894 # include <limits.h>
9895 #else
9896 # include <assert.h>
9897 #endif
9899 #undef $ac_func
9901 /* Override any gcc2 internal prototype to avoid an error. */
9902 #ifdef __cplusplus
9903 extern "C"
9905 #endif
9906 /* We use char because int might match the return type of a gcc2
9907 builtin and then its argument prototype would still apply. */
9908 char $ac_func ();
9909 /* The GNU C library defines this for functions which it implements
9910 to always fail with ENOSYS. Some functions are actually named
9911 something starting with __ and the normal name is an alias. */
9912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9913 choke me
9914 #else
9915 char (*f) () = $ac_func;
9916 #endif
9917 #ifdef __cplusplus
9919 #endif
9922 main ()
9924 return f != $ac_func;
9926 return 0;
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931 (eval $ac_link) 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try='test -s conftest$ac_exeext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 eval "$as_ac_var=yes"
9951 else
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9955 eval "$as_ac_var=no"
9957 rm -f conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9962 if test `eval echo '${'$as_ac_var'}'` = yes; then
9963 cat >>confdefs.h <<_ACEOF
9964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9965 _ACEOF
9968 done
9970 LIBS="$saved_libs"
9974 # Extract the first word of "sane-config", so it can be a program name with args.
9975 set dummy sane-config; ac_word=$2
9976 echo "$as_me:$LINENO: checking for $ac_word" >&5
9977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978 if test "${ac_cv_prog_sane_devel+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 if test -n "$sane_devel"; then
9982 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_prog_sane_devel="sane-config"
9992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9998 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10001 sane_devel=$ac_cv_prog_sane_devel
10002 if test -n "$sane_devel"; then
10003 echo "$as_me:$LINENO: result: $sane_devel" >&5
10004 echo "${ECHO_T}$sane_devel" >&6
10005 else
10006 echo "$as_me:$LINENO: result: no" >&5
10007 echo "${ECHO_T}no" >&6
10010 if test "$sane_devel" = "no"
10011 then
10012 SANELIBS=""
10013 SANEINCL=""
10014 else
10015 SANELIBS="`$sane_devel --libs`"
10016 SANEINCL="`$sane_devel --cflags`"
10017 ac_save_CPPFLAGS="$CPPFLAGS"
10018 ac_save_LIBS="$LIBS"
10019 CPPFLAGS="$CPPFLAGS $SANEINCL"
10020 LIBS="$LIBS $SANELIBS"
10021 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10022 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10023 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10024 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10028 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10029 else
10030 # Is the header compilable?
10031 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10032 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039 $ac_includes_default
10040 #include <sane/sane.h>
10041 _ACEOF
10042 rm -f conftest.$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044 (eval $ac_compile) 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_compiler=no
10070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10076 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <sane/sane.h>
10084 _ACEOF
10085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_c_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10096 else
10097 ac_cpp_err=
10099 else
10100 ac_cpp_err=yes
10102 if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_preproc=no
10110 rm -f conftest.err conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10116 yes:no: )
10117 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10120 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10123 no:yes:* )
10124 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10125 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10127 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10129 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10131 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10135 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10137 cat <<\_ASBOX
10138 ## ------------------------------------ ##
10139 ## Report this to wine-devel@winehq.org ##
10140 ## ------------------------------------ ##
10141 _ASBOX
10143 sed "s/^/$as_me: WARNING: /" >&2
10145 esac
10146 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10147 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10148 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 ac_cv_header_sane_sane_h=$ac_header_preproc
10153 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10154 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10157 if test $ac_cv_header_sane_sane_h = yes; then
10158 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10159 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10160 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-lsane $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 /* We use char because int might match the return type of a gcc2
10177 builtin and then its argument prototype would still apply. */
10178 char sane_open ();
10180 main ()
10182 sane_open ();
10184 return 0;
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_sane_sane_open=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_lib_sane_sane_open=no
10215 rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10220 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10221 if test $ac_cv_lib_sane_sane_open = yes; then
10223 cat >>confdefs.h <<\_ACEOF
10224 #define HAVE_SANE 1
10225 _ACEOF
10227 else
10228 SANELIBS=""
10229 SANEINCL=""
10232 else
10233 SANELIBS=""
10234 SANEINCL=""
10238 LIBS="$ac_save_LIBS"
10239 CPPFLAGS="$ac_save_CPPFLAGS"
10245 for ac_header in unicode/ubidi.h
10247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo "$as_me:$LINENO: checking for $ac_header" >&5
10250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10256 else
10257 # Is the header compilable?
10258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10260 cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h. */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #include <$ac_header>
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest.$ac_objext'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 ac_header_compiler=yes
10291 else
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_header_compiler=no
10297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10299 echo "${ECHO_T}$ac_header_compiler" >&6
10301 # Is the header present?
10302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 #include <$ac_header>
10311 _ACEOF
10312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } >/dev/null; then
10320 if test -s conftest.err; then
10321 ac_cpp_err=$ac_c_preproc_warn_flag
10322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10323 else
10324 ac_cpp_err=
10326 else
10327 ac_cpp_err=yes
10329 if test -z "$ac_cpp_err"; then
10330 ac_header_preproc=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 ac_header_preproc=no
10337 rm -f conftest.err conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10339 echo "${ECHO_T}$ac_header_preproc" >&6
10341 # So? What about this header?
10342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10343 yes:no: )
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10348 ac_header_preproc=yes
10350 no:yes:* )
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364 cat <<\_ASBOX
10365 ## ------------------------------------ ##
10366 ## Report this to wine-devel@winehq.org ##
10367 ## ------------------------------------ ##
10368 _ASBOX
10370 sed "s/^/$as_me: WARNING: /" >&2
10372 esac
10373 echo "$as_me:$LINENO: checking for $ac_header" >&5
10374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 eval "$as_ac_Header=\$ac_header_preproc"
10380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387 _ACEOF
10391 done
10393 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10394 then
10395 saved_libs="$LIBS"
10396 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10397 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10398 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10399 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 #include <unicode/ubidi.h>
10408 main ()
10410 ubidi_open()
10412 return 0;
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10437 cat >>confdefs.h <<\_ACEOF
10438 #define HAVE_ICU 1
10439 _ACEOF
10441 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10448 rm -f conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS="$saved_libs"
10453 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10454 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10455 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458 ac_check_lib_save_LIBS=$LIBS
10459 LIBS="-lfreetype $X_LIBS $LIBS"
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10467 /* Override any gcc2 internal prototype to avoid an error. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10473 char FT_Init_FreeType ();
10475 main ()
10477 FT_Init_FreeType ();
10479 return 0;
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_lib_freetype_FT_Init_FreeType=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_lib_freetype_FT_Init_FreeType=no
10510 rm -f conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10515 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10516 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10517 ft_lib=yes
10518 else
10519 ft_lib=no
10522 if test "$ft_lib" = "no"
10523 then
10524 FREETYPEINCL=""
10525 wine_cv_msg_freetype=no
10526 else
10527 # Extract the first word of "freetype-config", so it can be a program name with args.
10528 set dummy freetype-config; ac_word=$2
10529 echo "$as_me:$LINENO: checking for $ac_word" >&5
10530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531 if test "${ac_cv_prog_ft_devel+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 if test -n "$ft_devel"; then
10535 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10536 else
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_ft_devel="freetype-config"
10545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10548 done
10549 done
10551 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10554 ft_devel=$ac_cv_prog_ft_devel
10555 if test -n "$ft_devel"; then
10556 echo "$as_me:$LINENO: result: $ft_devel" >&5
10557 echo "${ECHO_T}$ft_devel" >&6
10558 else
10559 echo "$as_me:$LINENO: result: no" >&5
10560 echo "${ECHO_T}no" >&6
10563 if test "$ft_devel" = "no"
10564 then
10565 # Extract the first word of "freetype2-config", so it can be a program name with args.
10566 set dummy freetype2-config; ac_word=$2
10567 echo "$as_me:$LINENO: checking for $ac_word" >&5
10568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10569 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 if test -n "$ft_devel2"; then
10573 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10574 else
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_ft_devel2="freetype2-config"
10583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10586 done
10587 done
10589 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10592 ft_devel2=$ac_cv_prog_ft_devel2
10593 if test -n "$ft_devel2"; then
10594 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10595 echo "${ECHO_T}$ft_devel2" >&6
10596 else
10597 echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10601 if test "$ft_devel2" = "freetype2-config"
10602 then
10603 ft_devel=$ft_devel2
10606 if test "$ft_devel" = "no"
10607 then
10608 FREETYPEINCL=""
10609 wine_cv_msg_freetype=yes
10610 else
10611 FREETYPEINCL=`$ft_devel --cflags`
10612 ac_save_CPPFLAGS="$CPPFLAGS"
10613 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10623 for ac_header in ft2build.h \
10624 freetype/freetype.h \
10625 freetype/ftglyph.h \
10626 freetype/tttables.h \
10627 freetype/ftnames.h \
10628 freetype/ftsnames.h \
10629 freetype/ttnameid.h \
10630 freetype/ftoutln.h \
10631 freetype/internal/sfnt.h
10633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10634 echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 #if HAVE_FT2BUILD_H
10646 #include <ft2build.h>
10647 #endif
10649 #include <$ac_header>
10650 _ACEOF
10651 rm -f conftest.$ac_objext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653 (eval $ac_compile) 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest.$ac_objext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 eval "$as_ac_Header=yes"
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 eval "$as_ac_Header=no"
10679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10684 cat >>confdefs.h <<_ACEOF
10685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686 _ACEOF
10690 done
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 #include <ft2build.h>
10699 #include <freetype/fttrigon.h>
10700 _ACEOF
10701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10712 else
10713 ac_cpp_err=
10715 else
10716 ac_cpp_err=yes
10718 if test -z "$ac_cpp_err"; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_FREETYPE_FTTRIGON_H 1
10722 _ACEOF
10724 wine_cv_fttrigon=yes
10725 else
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 wine_cv_fttrigon=no
10731 rm -f conftest.err conftest.$ac_ext
10732 CPPFLAGS="$ac_save_CPPFLAGS"
10733 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10734 then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_FREETYPE 1
10738 _ACEOF
10740 wine_cv_msg_freetype=no
10741 else
10742 FREETYPEINCL=""
10743 wine_cv_msg_freetype=yes
10749 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10750 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10751 if test "${ac_cv_c_ppdev+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <linux/ppdev.h>
10762 main ()
10764 ioctl (1,PPCLAIM,0)
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771 (eval $ac_compile) 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_c_ppdev="yes"
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_c_ppdev="no"
10797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10801 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10802 if test "$ac_cv_c_ppdev" = "yes"
10803 then
10805 cat >>confdefs.h <<\_ACEOF
10806 #define HAVE_PPDEV 1
10807 _ACEOF
10811 echo "$as_me:$LINENO: checking for va_copy" >&5
10812 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10813 if test "${ac_cv_c_va_copy+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <stdarg.h>
10824 main ()
10826 va_list ap1, ap2;
10827 va_copy(ap1,ap2);
10830 return 0;
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835 (eval $ac_link) 2>conftest.er1
10836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; }; then
10854 ac_cv_c_va_copy="yes"
10855 else
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 ac_cv_c_va_copy="no"
10861 rm -f conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10866 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10867 if test "$ac_cv_c_va_copy" = "yes"
10868 then
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_VA_COPY 1
10872 _ACEOF
10875 echo "$as_me:$LINENO: checking for __va_copy" >&5
10876 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10877 if test "${ac_cv_c___va_copy+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <stdarg.h>
10888 main ()
10890 va_list ap1, ap2;
10891 __va_copy(ap1,ap2);
10894 return 0;
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest$ac_exeext'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_c___va_copy="yes"
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_c___va_copy="no"
10925 rm -f conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10929 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10930 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10931 if test "$ac_cv_c___va_copy" = "yes"
10932 then
10934 cat >>confdefs.h <<\_ACEOF
10935 #define HAVE___VA_COPY 1
10936 _ACEOF
10940 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10941 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10942 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <setjmp.h>
10953 main ()
10955 sigjmp_buf buf;
10956 sigsetjmp( buf, 1 );
10957 siglongjmp( buf, 1 );
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext conftest$ac_exeext
10963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10964 (eval $ac_link) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_c_sigsetjmp="yes"
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 ac_cv_c_sigsetjmp="no"
10990 rm -f conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10994 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10995 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10996 if test "$ac_cv_c_sigsetjmp" = "yes"
10997 then
10999 cat >>confdefs.h <<\_ACEOF
11000 #define HAVE_SIGSETJMP 1
11001 _ACEOF
11005 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11006 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11007 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 #define _GNU_SOURCE
11017 #include <pthread.h>
11020 main ()
11022 if ((pthread_rwlock_t *) 0)
11023 return 0;
11024 if (sizeof (pthread_rwlock_t))
11025 return 0;
11027 return 0;
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest.$ac_objext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_type_pthread_rwlock_t=yes
11052 else
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_cv_type_pthread_rwlock_t=no
11058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11060 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11061 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11062 if test $ac_cv_type_pthread_rwlock_t = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define HAVE_PTHREAD_RWLOCK_T 1
11066 _ACEOF
11070 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11071 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11072 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h. */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081 #define _GNU_SOURCE
11082 #include <pthread.h>
11085 main ()
11087 if ((pthread_rwlockattr_t *) 0)
11088 return 0;
11089 if (sizeof (pthread_rwlockattr_t))
11090 return 0;
11092 return 0;
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try='test -s conftest.$ac_objext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_type_pthread_rwlockattr_t=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_cv_type_pthread_rwlockattr_t=no
11123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11126 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11127 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11131 _ACEOF
11137 ac_save_LIBS="$LIBS"
11138 LIBS="$LIBS $LIBPTHREAD"
11140 for ac_func in pthread_getattr_np
11142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11143 echo "$as_me:$LINENO: checking for $ac_func" >&5
11144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11145 if eval "test \"\${$as_ac_var+set}\" = set"; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11156 #define $ac_func innocuous_$ac_func
11158 /* System header to define __stub macros and hopefully few prototypes,
11159 which can conflict with char $ac_func (); below.
11160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11161 <limits.h> exists even on freestanding compilers. */
11163 #ifdef __STDC__
11164 # include <limits.h>
11165 #else
11166 # include <assert.h>
11167 #endif
11169 #undef $ac_func
11171 /* Override any gcc2 internal prototype to avoid an error. */
11172 #ifdef __cplusplus
11173 extern "C"
11175 #endif
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178 char $ac_func ();
11179 /* The GNU C library defines this for functions which it implements
11180 to always fail with ENOSYS. Some functions are actually named
11181 something starting with __ and the normal name is an alias. */
11182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11183 choke me
11184 #else
11185 char (*f) () = $ac_func;
11186 #endif
11187 #ifdef __cplusplus
11189 #endif
11192 main ()
11194 return f != $ac_func;
11196 return 0;
11198 _ACEOF
11199 rm -f conftest.$ac_objext conftest$ac_exeext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 eval "$as_ac_var=yes"
11221 else
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 eval "$as_ac_var=no"
11227 rm -f conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11232 if test `eval echo '${'$as_ac_var'}'` = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11235 _ACEOF
11238 done
11240 LIBS="$ac_save_LIBS"
11245 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11249 echo "$as_me:$LINENO: checking for $ac_header" >&5
11250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11256 else
11257 # Is the header compilable?
11258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h. */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 $ac_includes_default
11267 #include <$ac_header>
11268 _ACEOF
11269 rm -f conftest.$ac_objext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11271 (eval $ac_compile) 2>conftest.er1
11272 ac_status=$?
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_header_compiler=yes
11291 else
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11295 ac_header_compiler=no
11297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6
11301 # Is the header present?
11302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11311 _ACEOF
11312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } >/dev/null; then
11320 if test -s conftest.err; then
11321 ac_cpp_err=$ac_c_preproc_warn_flag
11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11323 else
11324 ac_cpp_err=
11326 else
11327 ac_cpp_err=yes
11329 if test -z "$ac_cpp_err"; then
11330 ac_header_preproc=yes
11331 else
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_header_preproc=no
11337 rm -f conftest.err conftest.$ac_ext
11338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339 echo "${ECHO_T}$ac_header_preproc" >&6
11341 # So? What about this header?
11342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343 yes:no: )
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348 ac_header_preproc=yes
11350 no:yes:* )
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364 cat <<\_ASBOX
11365 ## ------------------------------------ ##
11366 ## Report this to wine-devel@winehq.org ##
11367 ## ------------------------------------ ##
11368 _ASBOX
11370 sed "s/^/$as_me: WARNING: /" >&2
11372 esac
11373 echo "$as_me:$LINENO: checking for $ac_header" >&5
11374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 eval "$as_ac_Header=\$ac_header_preproc"
11380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387 _ACEOF
11388 break
11391 done
11394 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11395 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11396 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11406 #if defined(HAVE_SYS_SOUNDCARD_H)
11407 #include <sys/soundcard.h>
11408 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11409 #include <machine/soundcard.h>
11410 #elif defined(HAVE_SOUNDCARD_H)
11411 #include <soundcard.h>
11412 #endif
11415 main ()
11419 /* check for one of the Open Sound System specific SNDCTL_ defines */
11420 #if !defined(SNDCTL_DSP_STEREO)
11421 #error No open sound system
11422 #endif
11425 return 0;
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try='test -s conftest.$ac_objext'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 ac_cv_c_opensoundsystem="yes"
11450 else
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_cv_c_opensoundsystem="no"
11456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11458 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11459 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11461 if test "$ac_cv_c_opensoundsystem" = "yes"
11462 then
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_OSS 1
11466 _ACEOF
11470 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11471 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11472 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h. */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11482 #if defined(HAVE_SYS_SOUNDCARD_H)
11483 #include <sys/soundcard.h>
11484 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11485 #include <machine/soundcard.h>
11486 #elif defined(HAVE_SOUNDCARD_H)
11487 #include <soundcard.h>
11488 #endif
11491 main ()
11495 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11496 #if !defined(SNDCTL_SEQ_SYNC)
11497 #error No open sound system MIDI interface
11498 #endif
11501 return 0;
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11506 (eval $ac_compile) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; } &&
11519 { ac_try='test -s conftest.$ac_objext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_cv_c_opensoundsystem_midi="yes"
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_cv_c_opensoundsystem_midi="no"
11532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11535 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11537 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11538 then
11540 cat >>confdefs.h <<\_ACEOF
11541 #define HAVE_OSS_MIDI 1
11542 _ACEOF
11546 # Extract the first word of "artsc-config", so it can be a program name with args.
11547 set dummy artsc-config; ac_word=$2
11548 echo "$as_me:$LINENO: checking for $ac_word" >&5
11549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11550 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553 case $ARTSCCONFIG in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11569 done
11570 done
11573 esac
11575 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11577 if test -n "$ARTSCCONFIG"; then
11578 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11579 echo "${ECHO_T}$ARTSCCONFIG" >&6
11580 else
11581 echo "$as_me:$LINENO: result: no" >&5
11582 echo "${ECHO_T}no" >&6
11585 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11586 then
11587 ARTSC_CFLAGS=""
11588 for i in `$ARTSCCONFIG --cflags`
11590 case "$i" in
11591 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11592 esac
11593 done
11594 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11595 save_CFLAGS="$CFLAGS"
11596 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <artsc.h>
11605 main ()
11607 arts_stream_t stream;
11609 return 0;
11611 _ACEOF
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614 (eval $ac_compile) 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ARTSLIBS=$ARTSC_LIBS
11635 ARTSINCL=$ARTSC_CFLAGS
11638 cat >>confdefs.h <<\_ACEOF
11639 #define HAVE_ARTS 1
11640 _ACEOF
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 CFLAGS="$save_CFLAGS"
11651 ALSALIBS=""
11655 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11659 echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11666 else
11667 # Is the header compilable?
11668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h. */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 $ac_includes_default
11677 #include <$ac_header>
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler=yes
11701 else
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_header_compiler=no
11707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11709 echo "${ECHO_T}$ac_header_compiler" >&6
11711 # Is the header present?
11712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #include <$ac_header>
11721 _ACEOF
11722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } >/dev/null; then
11730 if test -s conftest.err; then
11731 ac_cpp_err=$ac_c_preproc_warn_flag
11732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11733 else
11734 ac_cpp_err=
11736 else
11737 ac_cpp_err=yes
11739 if test -z "$ac_cpp_err"; then
11740 ac_header_preproc=yes
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_header_preproc=no
11747 rm -f conftest.err conftest.$ac_ext
11748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11749 echo "${ECHO_T}$ac_header_preproc" >&6
11751 # So? What about this header?
11752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11753 yes:no: )
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11758 ac_header_preproc=yes
11760 no:yes:* )
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11774 cat <<\_ASBOX
11775 ## ------------------------------------ ##
11776 ## Report this to wine-devel@winehq.org ##
11777 ## ------------------------------------ ##
11778 _ASBOX
11780 sed "s/^/$as_me: WARNING: /" >&2
11782 esac
11783 echo "$as_me:$LINENO: checking for $ac_header" >&5
11784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788 eval "$as_ac_Header=\$ac_header_preproc"
11790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11795 cat >>confdefs.h <<_ACEOF
11796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11797 _ACEOF
11798 break
11801 done
11803 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11804 then
11805 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11806 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11807 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-lasound $LIBS"
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 /* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */
11825 char snd_pcm_open ();
11827 main ()
11829 snd_pcm_open ();
11831 return 0;
11833 _ACEOF
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836 (eval $ac_link) 2>conftest.er1
11837 ac_status=$?
11838 grep -v '^ *+' conftest.er1 >conftest.err
11839 rm -f conftest.er1
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } &&
11843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_cv_lib_asound_snd_pcm_open=yes
11856 else
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_lib_asound_snd_pcm_open=no
11862 rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11866 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11867 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11868 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11870 cat >>confdefs.h <<\_ACEOF
11871 #define HAVE_ALSA 1
11872 _ACEOF
11874 ALSALIBS="-lasound"
11880 AUDIOIOLIBS=""
11883 for ac_header in libaudioio.h
11885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11887 echo "$as_me:$LINENO: checking for $ac_header" >&5
11888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11894 else
11895 # Is the header compilable?
11896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 $ac_includes_default
11905 #include <$ac_header>
11906 _ACEOF
11907 rm -f conftest.$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909 (eval $ac_compile) 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest.$ac_objext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_header_compiler=yes
11929 else
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_header_compiler=no
11935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6
11939 # Is the header present?
11940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <$ac_header>
11949 _ACEOF
11950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } >/dev/null; then
11958 if test -s conftest.err; then
11959 ac_cpp_err=$ac_c_preproc_warn_flag
11960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11961 else
11962 ac_cpp_err=
11964 else
11965 ac_cpp_err=yes
11967 if test -z "$ac_cpp_err"; then
11968 ac_header_preproc=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_header_preproc=no
11975 rm -f conftest.err conftest.$ac_ext
11976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 yes:no: )
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11988 no:yes:* )
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12002 cat <<\_ASBOX
12003 ## ------------------------------------ ##
12004 ## Report this to wine-devel@winehq.org ##
12005 ## ------------------------------------ ##
12006 _ASBOX
12008 sed "s/^/$as_me: WARNING: /" >&2
12010 esac
12011 echo "$as_me:$LINENO: checking for $ac_header" >&5
12012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016 eval "$as_ac_Header=\$ac_header_preproc"
12018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12025 _ACEOF
12026 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12027 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12028 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-laudioio $LIBS"
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12040 /* Override any gcc2 internal prototype to avoid an error. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 /* We use char because int might match the return type of a gcc2
12045 builtin and then its argument prototype would still apply. */
12046 char AudioIOGetVersion ();
12048 main ()
12050 AudioIOGetVersion ();
12052 return 0;
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_lib_audioio_AudioIOGetVersion=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_lib_audioio_AudioIOGetVersion=no
12083 rm -f conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12087 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12088 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12089 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12090 AUDIOIOLIBS="-laudioio"
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_LIBAUDIOIO 1
12094 _ACEOF
12100 done
12105 for ac_header in capi20.h
12107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12109 echo "$as_me:$LINENO: checking for $ac_header" >&5
12110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12116 else
12117 # Is the header compilable?
12118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h. */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 $ac_includes_default
12127 #include <$ac_header>
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_header_compiler=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_compiler=no
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159 echo "${ECHO_T}$ac_header_compiler" >&6
12161 # Is the header present?
12162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <$ac_header>
12171 _ACEOF
12172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 else
12184 ac_cpp_err=
12186 else
12187 ac_cpp_err=yes
12189 if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_header_preproc=no
12197 rm -f conftest.err conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12203 yes:no: )
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc=yes
12210 no:yes:* )
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12224 cat <<\_ASBOX
12225 ## ------------------------------------ ##
12226 ## Report this to wine-devel@winehq.org ##
12227 ## ------------------------------------ ##
12228 _ASBOX
12230 sed "s/^/$as_me: WARNING: /" >&2
12232 esac
12233 echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 eval "$as_ac_Header=\$ac_header_preproc"
12240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247 _ACEOF
12250 for ac_header in linux/capi.h
12252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12261 else
12262 # Is the header compilable?
12263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 #include <$ac_header>
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest.$ac_objext'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_header_compiler=yes
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_header_compiler=no
12302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12304 echo "${ECHO_T}$ac_header_compiler" >&6
12306 # Is the header present?
12307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h. */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315 #include <$ac_header>
12316 _ACEOF
12317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } >/dev/null; then
12325 if test -s conftest.err; then
12326 ac_cpp_err=$ac_c_preproc_warn_flag
12327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12328 else
12329 ac_cpp_err=
12331 else
12332 ac_cpp_err=yes
12334 if test -z "$ac_cpp_err"; then
12335 ac_header_preproc=yes
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 ac_header_preproc=no
12342 rm -f conftest.err conftest.$ac_ext
12343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12344 echo "${ECHO_T}$ac_header_preproc" >&6
12346 # So? What about this header?
12347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12348 yes:no: )
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12353 ac_header_preproc=yes
12355 no:yes:* )
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12369 cat <<\_ASBOX
12370 ## ------------------------------------ ##
12371 ## Report this to wine-devel@winehq.org ##
12372 ## ------------------------------------ ##
12373 _ASBOX
12375 sed "s/^/$as_me: WARNING: /" >&2
12377 esac
12378 echo "$as_me:$LINENO: checking for $ac_header" >&5
12379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383 eval "$as_ac_Header=\$ac_header_preproc"
12385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12392 _ACEOF
12394 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12395 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12396 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-lcapi20 $LIBS"
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12408 /* Override any gcc2 internal prototype to avoid an error. */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 /* We use char because int might match the return type of a gcc2
12413 builtin and then its argument prototype would still apply. */
12414 char capi20_register ();
12416 main ()
12418 capi20_register ();
12420 return 0;
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425 (eval $ac_link) 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_lib_capi20_capi20_register=yes
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_lib_capi20_capi20_register=no
12451 rm -f conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12455 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12456 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12457 if test $ac_cv_lib_capi20_capi20_register = yes; then
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_CAPI4LINUX 1
12462 _ACEOF
12464 CAPI4LINUXLIBS="-lcapi20"
12472 done
12477 done
12481 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12482 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12483 if test "${ac_cv_mmap64_works+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486 if test "$cross_compiling" = yes; then
12487 ac_cv_mmap64_works="no"
12488 else
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h. */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12496 #define _FILE_OFFSET_BITS 64
12497 #include <stdio.h>
12498 #include <unistd.h>
12499 #include <fcntl.h>
12500 #include <sys/mman.h>
12501 #include <errno.h>
12503 int main(int argc,char **argv) {
12504 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12505 if (fd == -1) exit(1);
12507 unlink("conftest.map");
12509 write(fd,"test",4);
12511 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12512 (errno == EINVAL)
12514 exit(1);
12516 close(fd);
12517 fprintf(stderr,"success!\n");
12518 exit(0);
12522 _ACEOF
12523 rm -f conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_mmap64_works="yes"
12535 else
12536 echo "$as_me: program exited with status $ac_status" >&5
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 ( exit $ac_status )
12541 ac_cv_mmap64_works="no"
12543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12547 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12549 if test "$ac_cv_mmap64_works" = "yes"
12550 then
12552 cat >>confdefs.h <<\_ACEOF
12553 #define _FILE_OFFSET_BITS 64
12554 _ACEOF
12559 EXTRACFLAGS=""
12561 if test "x${GCC}" = "xyes"
12562 then
12563 EXTRACFLAGS="-Wall -pipe"
12565 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12566 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12567 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570 if test "$cross_compiling" = yes; then
12571 ac_cv_c_gcc_strength_bug="yes"
12572 else
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12580 int L[4] = {0,1,2,3};
12581 int main(void) {
12582 static int Array[3];
12583 unsigned int B = 3;
12584 int i;
12585 for(i=0; i<B; i++) Array[i] = i - 3;
12586 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12587 L[i] = 4;
12589 exit( Array[1] != -2 || L[2] != 3);
12591 _ACEOF
12592 rm -f conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594 (eval $ac_link) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_c_gcc_strength_bug="no"
12604 else
12605 echo "$as_me: program exited with status $ac_status" >&5
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12609 ( exit $ac_status )
12610 ac_cv_c_gcc_strength_bug="yes"
12612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12615 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12616 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12617 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12618 then
12619 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12622 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12623 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12624 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627 ac_wine_try_cflags_saved=$CFLAGS
12628 CFLAGS="$CFLAGS -fshort-wchar"
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h. */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12637 main ()
12641 return 0;
12643 _ACEOF
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646 (eval $ac_link) 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_cv_c_gcc_fshort_wchar="yes"
12666 else
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_cv_c_gcc_fshort_wchar="no"
12672 rm -f conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 CFLAGS=$ac_wine_try_cflags_saved
12676 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12677 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12678 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12679 then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12683 _ACEOF
12687 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12688 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12689 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 ac_wine_try_cflags_saved=$CFLAGS
12693 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h. */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12702 main ()
12706 return 0;
12708 _ACEOF
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711 (eval $ac_link) 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; } &&
12724 { ac_try='test -s conftest$ac_exeext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_cv_c_gcc_stack_boundary="yes"
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 ac_cv_c_gcc_stack_boundary="no"
12737 rm -f conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 CFLAGS=$ac_wine_try_cflags_saved
12741 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12742 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12743 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12744 then
12745 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12748 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12749 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12750 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 ac_wine_try_cflags_saved=$CFLAGS
12754 CFLAGS="$CFLAGS -fno-strict-aliasing"
12755 cat >conftest.$ac_ext <<_ACEOF
12756 /* confdefs.h. */
12757 _ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12763 main ()
12767 return 0;
12769 _ACEOF
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_c_gcc_no_strict_aliasing="yes"
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_cv_c_gcc_no_strict_aliasing="no"
12798 rm -f conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 CFLAGS=$ac_wine_try_cflags_saved
12802 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12803 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12804 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12805 then
12806 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12809 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12810 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12811 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814 ac_wine_try_cflags_saved=$CFLAGS
12815 CFLAGS="$CFLAGS -gstabs+"
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12824 main ()
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_c_gcc_gstabs="yes"
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_cv_c_gcc_gstabs="no"
12859 rm -f conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 CFLAGS=$ac_wine_try_cflags_saved
12863 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12864 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12865 if test "$ac_cv_c_gcc_gstabs" = "yes"
12866 then
12867 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12870 saved_CFLAGS="$CFLAGS"
12871 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12872 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12873 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12874 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 #include <string.h>
12885 main ()
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_c_string_h_warnings=no
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_cv_c_string_h_warnings=yes
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12923 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12924 CFLAGS="$saved_CFLAGS"
12925 if test "$ac_cv_c_string_h_warnings" = "no"
12926 then
12927 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12932 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12933 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12934 if test "${ac_cv_asm_func_def+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 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"); }
12946 main ()
12950 return 0;
12952 _ACEOF
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12955 (eval $ac_link) 2>conftest.er1
12956 ac_status=$?
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
12962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_asm_func_def=".def"
12975 else
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12988 main ()
12992 return 0;
12994 _ACEOF
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12997 (eval $ac_link) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest$ac_exeext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 ac_cv_asm_func_def=".type @function"
13017 else
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13030 main ()
13034 return 0;
13036 _ACEOF
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_asm_func_def=".type 2"
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_asm_func_def="unknown"
13065 rm -f conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13068 rm -f conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext conftest.$ac_ext
13071 rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13074 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13075 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13079 case "$ac_cv_asm_func_def" in
13080 ".def")
13081 cat >>confdefs.h <<\_ACEOF
13082 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13083 _ACEOF
13085 ".type @function")
13086 cat >>confdefs.h <<\_ACEOF
13087 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13088 _ACEOF
13090 ".type 2")
13091 cat >>confdefs.h <<\_ACEOF
13092 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13093 _ACEOF
13096 cat >>confdefs.h <<\_ACEOF
13097 #define __ASM_FUNC(name) ""
13098 _ACEOF
13100 esac
13103 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13104 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13105 if test "${ac_cv_c_extern_prefix+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13115 extern int ac_test;
13117 main ()
13119 if (ac_test) return 1
13121 return 0;
13123 _ACEOF
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126 (eval $ac_link) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest$ac_exeext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 ac_cv_c_extern_prefix="yes"
13146 else
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ac_cv_c_extern_prefix="no"
13152 rm -f conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13156 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13160 if test "$ac_cv_c_extern_prefix" = "yes"
13161 then
13162 cat >>confdefs.h <<\_ACEOF
13163 #define __ASM_NAME(name) "_" name
13164 _ACEOF
13166 else
13167 cat >>confdefs.h <<\_ACEOF
13168 #define __ASM_NAME(name) name
13169 _ACEOF
13174 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13175 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13176 if test "${ac_cv_c_asm_string+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13188 main ()
13192 return 0;
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_c_asm_string=".string"
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13230 main ()
13234 return 0;
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest$ac_exeext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_cv_c_asm_string=".asciz"
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13272 main ()
13276 return 0;
13278 _ACEOF
13279 rm -f conftest.$ac_objext conftest$ac_exeext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13281 (eval $ac_link) 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } &&
13288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_c_asm_string=".ascii"
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13306 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13307 { (exit 1); exit 1; }; }
13309 rm -f conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13312 rm -f conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13315 rm -f conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13318 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13319 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13322 cat >>confdefs.h <<_ACEOF
13323 #define __ASM_STRING "$ac_cv_c_asm_string"
13324 _ACEOF
13328 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13329 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13330 if test "${ac_cv_c_asm_short+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13342 main ()
13346 return 0;
13348 _ACEOF
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 ac_cv_c_asm_short=".short"
13371 else
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13384 main ()
13388 return 0;
13390 _ACEOF
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13393 (eval $ac_link) 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest$ac_exeext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_cv_c_asm_short=".half"
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13418 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13419 { (exit 1); exit 1; }; }
13421 rm -f conftest.err conftest.$ac_objext \
13422 conftest$ac_exeext conftest.$ac_ext
13424 rm -f conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13427 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13428 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13431 cat >>confdefs.h <<_ACEOF
13432 #define __ASM_SHORT "$ac_cv_c_asm_short"
13433 _ACEOF
13437 DLLEXT=""
13439 DLLFLAGS="-D_REENTRANT"
13441 DLLIBS=""
13443 LDSHARED=""
13445 LDDLLFLAGS=""
13447 LIBEXT="so"
13449 IMPLIBEXT="def"
13452 case $host_os in
13453 cygwin*|mingw32*)
13454 if test -n "$ac_tool_prefix"; then
13455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13456 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13457 echo "$as_me:$LINENO: checking for $ac_word" >&5
13458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13459 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 if test -n "$DLLTOOL"; then
13463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13464 else
13465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in $PATH
13468 IFS=$as_save_IFS
13469 test -z "$as_dir" && as_dir=.
13470 for ac_exec_ext in '' $ac_executable_extensions; do
13471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 break 2
13476 done
13477 done
13481 DLLTOOL=$ac_cv_prog_DLLTOOL
13482 if test -n "$DLLTOOL"; then
13483 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13484 echo "${ECHO_T}$DLLTOOL" >&6
13485 else
13486 echo "$as_me:$LINENO: result: no" >&5
13487 echo "${ECHO_T}no" >&6
13491 if test -z "$ac_cv_prog_DLLTOOL"; then
13492 ac_ct_DLLTOOL=$DLLTOOL
13493 # Extract the first word of "dlltool", so it can be a program name with args.
13494 set dummy dlltool; ac_word=$2
13495 echo "$as_me:$LINENO: checking for $ac_word" >&5
13496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13497 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500 if test -n "$ac_ct_DLLTOOL"; then
13501 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13502 else
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13510 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13514 done
13515 done
13517 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13520 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13521 if test -n "$ac_ct_DLLTOOL"; then
13522 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13523 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13524 else
13525 echo "$as_me:$LINENO: result: no" >&5
13526 echo "${ECHO_T}no" >&6
13529 DLLTOOL=$ac_ct_DLLTOOL
13530 else
13531 DLLTOOL="$ac_cv_prog_DLLTOOL"
13534 if test -n "$ac_tool_prefix"; then
13535 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13536 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13537 echo "$as_me:$LINENO: checking for $ac_word" >&5
13538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13539 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542 if test -n "$DLLWRAP"; then
13543 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13544 else
13545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546 for as_dir in $PATH
13548 IFS=$as_save_IFS
13549 test -z "$as_dir" && as_dir=.
13550 for ac_exec_ext in '' $ac_executable_extensions; do
13551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13552 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 break 2
13556 done
13557 done
13561 DLLWRAP=$ac_cv_prog_DLLWRAP
13562 if test -n "$DLLWRAP"; then
13563 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13564 echo "${ECHO_T}$DLLWRAP" >&6
13565 else
13566 echo "$as_me:$LINENO: result: no" >&5
13567 echo "${ECHO_T}no" >&6
13571 if test -z "$ac_cv_prog_DLLWRAP"; then
13572 ac_ct_DLLWRAP=$DLLWRAP
13573 # Extract the first word of "dllwrap", so it can be a program name with args.
13574 set dummy dllwrap; ac_word=$2
13575 echo "$as_me:$LINENO: checking for $ac_word" >&5
13576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13577 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580 if test -n "$ac_ct_DLLWRAP"; then
13581 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13582 else
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13594 done
13595 done
13597 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13600 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13601 if test -n "$ac_ct_DLLWRAP"; then
13602 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13603 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13604 else
13605 echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6
13609 DLLWRAP=$ac_ct_DLLWRAP
13610 else
13611 DLLWRAP="$ac_cv_prog_DLLWRAP"
13614 if test "$DLLWRAP" = "false"; then
13615 LIBEXT="a"
13616 else
13617 LIBEXT="dll"
13619 IMPLIBEXT="a"
13623 for ac_header in dlfcn.h
13625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13627 echo "$as_me:$LINENO: checking for $ac_header" >&5
13628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13634 else
13635 # Is the header compilable?
13636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h. */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 $ac_includes_default
13645 #include <$ac_header>
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 (eval $ac_compile) 2>conftest.er1
13650 ac_status=$?
13651 grep -v '^ *+' conftest.er1 >conftest.err
13652 rm -f conftest.er1
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_header_compiler=yes
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 ac_header_compiler=no
13675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13677 echo "${ECHO_T}$ac_header_compiler" >&6
13679 # Is the header present?
13680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 #include <$ac_header>
13689 _ACEOF
13690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } >/dev/null; then
13698 if test -s conftest.err; then
13699 ac_cpp_err=$ac_c_preproc_warn_flag
13700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13701 else
13702 ac_cpp_err=
13704 else
13705 ac_cpp_err=yes
13707 if test -z "$ac_cpp_err"; then
13708 ac_header_preproc=yes
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_header_preproc=no
13715 rm -f conftest.err conftest.$ac_ext
13716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13717 echo "${ECHO_T}$ac_header_preproc" >&6
13719 # So? What about this header?
13720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13721 yes:no: )
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13726 ac_header_preproc=yes
13728 no:yes:* )
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13742 cat <<\_ASBOX
13743 ## ------------------------------------ ##
13744 ## Report this to wine-devel@winehq.org ##
13745 ## ------------------------------------ ##
13746 _ASBOX
13748 sed "s/^/$as_me: WARNING: /" >&2
13750 esac
13751 echo "$as_me:$LINENO: checking for $ac_header" >&5
13752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756 eval "$as_ac_Header=\$ac_header_preproc"
13758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13763 cat >>confdefs.h <<_ACEOF
13764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13765 _ACEOF
13767 for ac_func in dlopen
13769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13770 echo "$as_me:$LINENO: checking for $ac_func" >&5
13771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13772 if eval "test \"\${$as_ac_var+set}\" = set"; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13783 #define $ac_func innocuous_$ac_func
13785 /* System header to define __stub macros and hopefully few prototypes,
13786 which can conflict with char $ac_func (); below.
13787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13788 <limits.h> exists even on freestanding compilers. */
13790 #ifdef __STDC__
13791 # include <limits.h>
13792 #else
13793 # include <assert.h>
13794 #endif
13796 #undef $ac_func
13798 /* Override any gcc2 internal prototype to avoid an error. */
13799 #ifdef __cplusplus
13800 extern "C"
13802 #endif
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char $ac_func ();
13806 /* The GNU C library defines this for functions which it implements
13807 to always fail with ENOSYS. Some functions are actually named
13808 something starting with __ and the normal name is an alias. */
13809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13810 choke me
13811 #else
13812 char (*f) () = $ac_func;
13813 #endif
13814 #ifdef __cplusplus
13816 #endif
13819 main ()
13821 return f != $ac_func;
13823 return 0;
13825 _ACEOF
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828 (eval $ac_link) 2>conftest.er1
13829 ac_status=$?
13830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest$ac_exeext'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13847 eval "$as_ac_var=yes"
13848 else
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13852 eval "$as_ac_var=no"
13854 rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13859 if test `eval echo '${'$as_ac_var'}'` = yes; then
13860 cat >>confdefs.h <<_ACEOF
13861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13862 _ACEOF
13864 else
13865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870 ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-ldl $LIBS"
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h. */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13879 /* Override any gcc2 internal prototype to avoid an error. */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 /* We use char because int might match the return type of a gcc2
13884 builtin and then its argument prototype would still apply. */
13885 char dlopen ();
13887 main ()
13889 dlopen ();
13891 return 0;
13893 _ACEOF
13894 rm -f conftest.$ac_objext conftest$ac_exeext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896 (eval $ac_link) 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_lib_dl_dlopen=yes
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_lib_dl_dlopen=no
13922 rm -f conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 LIBS=$ac_check_lib_save_LIBS
13926 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13927 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13928 if test $ac_cv_lib_dl_dlopen = yes; then
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_DLOPEN 1
13932 _ACEOF
13934 DLLIBS="-ldl"
13935 else
13936 LIBEXT="a"
13940 done
13942 else
13943 LIBEXT="a"
13946 done
13949 if test "$LIBEXT" = "so"
13950 then
13951 DLLFLAGS="$DLLFLAGS -fPIC"
13952 DLLEXT=".so"
13953 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13954 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13955 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 ac_wine_try_cflags_saved=$CFLAGS
13959 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13968 main ()
13972 return 0;
13974 _ACEOF
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13977 (eval $ac_link) 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_c_dll_gnuelf="yes"
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_cv_c_dll_gnuelf="no"
14003 rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 CFLAGS=$ac_wine_try_cflags_saved
14007 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14008 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14009 if test "$ac_cv_c_dll_gnuelf" = "yes"
14010 then
14011 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14012 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14013 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14014 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14015 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018 ac_wine_try_cflags_saved=$CFLAGS
14019 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14028 main ()
14032 return 0;
14034 _ACEOF
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14037 (eval $ac_link) 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_c_dll_zdefs="yes"
14057 else
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_cv_c_dll_zdefs="no"
14063 rm -f conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14065 CFLAGS=$ac_wine_try_cflags_saved
14067 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14068 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14069 if test "$ac_cv_c_dll_zdefs" = "yes"
14070 then
14071 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14074 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14075 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14076 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079 ac_wine_try_cflags_saved=$CFLAGS
14080 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14089 main ()
14093 return 0;
14095 _ACEOF
14096 rm -f conftest.$ac_objext conftest$ac_exeext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>conftest.er1
14099 ac_status=$?
14100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } &&
14105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14117 ac_cv_c_dll_init_fini="yes"
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_cv_c_dll_init_fini="no"
14124 rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 CFLAGS=$ac_wine_try_cflags_saved
14128 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14129 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14130 if test "$ac_cv_c_dll_init_fini" = "yes"
14131 then
14132 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14135 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14136 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14137 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140 echo '{ global: *; };' >conftest.map
14141 ac_wine_try_cflags_saved=$CFLAGS
14142 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14151 main ()
14155 return 0;
14157 _ACEOF
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14160 (eval $ac_link) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_c_ld_version_scripts="yes"
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_c_ld_version_scripts="no"
14186 rm -f conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14188 CFLAGS=$ac_wine_try_cflags_saved
14189 rm -f conftest.map
14191 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14192 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14193 if test "$ac_cv_c_ld_version_scripts" = "yes"
14194 then
14195 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14198 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14199 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14200 if test "${ac_cv_c_export_dynamic+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 ac_wine_try_cflags_saved=$CFLAGS
14204 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h. */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14213 main ()
14217 return 0;
14219 _ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14222 (eval $ac_link) 2>conftest.er1
14223 ac_status=$?
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_c_export_dynamic="yes"
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_c_export_dynamic="no"
14248 rm -f conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250 CFLAGS=$ac_wine_try_cflags_saved
14252 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14253 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14254 if test "$ac_cv_c_export_dynamic" = "yes"
14255 then
14256 LDEXECFLAGS="-Wl,--export-dynamic"
14260 case $host_cpu in
14261 *i[3456789]86*)
14262 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
14263 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
14264 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 saved_CFLAGS="$CFLAGS"
14268 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
14269 if test "$cross_compiling" = yes; then
14270 ac_cv_ld_reloc_exec="no"
14271 else
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. */
14278 #include <unistd.h>
14279 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
14280 _ACEOF
14281 rm -f conftest$ac_exeext
14282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14283 (eval $ac_link) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_ld_reloc_exec="yes"
14293 else
14294 echo "$as_me: program exited with status $ac_status" >&5
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ( exit $ac_status )
14299 ac_cv_ld_reloc_exec="no"
14301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14303 CFLAGS="$saved_CFLAGS"
14305 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14306 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14307 if test "$ac_cv_ld_reloc_exec" = "yes"
14308 then
14309 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
14312 esac
14314 else
14315 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14316 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14317 if test "${ac_cv_c_dll_unixware+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320 ac_wine_try_cflags_saved=$CFLAGS
14321 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h. */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14330 main ()
14334 return 0;
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest$ac_exeext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 ac_cv_c_dll_unixware="yes"
14359 else
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14363 ac_cv_c_dll_unixware="no"
14365 rm -f conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 CFLAGS=$ac_wine_try_cflags_saved
14369 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14370 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14371 if test "$ac_cv_c_dll_unixware" = "yes"
14372 then
14373 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14374 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14376 else
14377 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14378 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14379 if test "${ac_cv_c_dll_macho+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382 ac_wine_try_cflags_saved=$CFLAGS
14383 CFLAGS="$CFLAGS -bundle"
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14392 main ()
14396 return 0;
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } &&
14414 { ac_try='test -s conftest$ac_exeext'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_c_dll_macho="yes"
14421 else
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_cv_c_dll_macho="no"
14427 rm -f conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 CFLAGS=$ac_wine_try_cflags_saved
14431 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14432 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14433 if test "$ac_cv_c_dll_macho" = "yes"
14434 then
14435 LIBEXT="dylib"
14436 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14437 LDSHARED="\$(CC) -dynamiclib"
14438 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14444 CROSSTEST=""
14446 if test "$cross_compiling" = "no"
14447 then
14448 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14450 # Extract the first word of "$ac_prog", so it can be a program name with args.
14451 set dummy $ac_prog; ac_word=$2
14452 echo "$as_me:$LINENO: checking for $ac_word" >&5
14453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14454 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 if test -n "$CROSSCC"; then
14458 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_CROSSCC="$ac_prog"
14468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14471 done
14472 done
14476 CROSSCC=$ac_cv_prog_CROSSCC
14477 if test -n "$CROSSCC"; then
14478 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14479 echo "${ECHO_T}$CROSSCC" >&6
14480 else
14481 echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6
14485 test -n "$CROSSCC" && break
14486 done
14487 test -n "$CROSSCC" || CROSSCC="false"
14489 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14491 # Extract the first word of "$ac_prog", so it can be a program name with args.
14492 set dummy $ac_prog; ac_word=$2
14493 echo "$as_me:$LINENO: checking for $ac_word" >&5
14494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14495 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 if test -n "$DLLTOOL"; then
14499 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14500 else
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14504 IFS=$as_save_IFS
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14508 ac_cv_prog_DLLTOOL="$ac_prog"
14509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14510 break 2
14512 done
14513 done
14517 DLLTOOL=$ac_cv_prog_DLLTOOL
14518 if test -n "$DLLTOOL"; then
14519 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14520 echo "${ECHO_T}$DLLTOOL" >&6
14521 else
14522 echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6
14526 test -n "$DLLTOOL" && break
14527 done
14528 test -n "$DLLTOOL" || DLLTOOL="false"
14530 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14532 # Extract the first word of "$ac_prog", so it can be a program name with args.
14533 set dummy $ac_prog; ac_word=$2
14534 echo "$as_me:$LINENO: checking for $ac_word" >&5
14535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14536 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539 if test -n "$CROSSWINDRES"; then
14540 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549 ac_cv_prog_CROSSWINDRES="$ac_prog"
14550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14551 break 2
14553 done
14554 done
14558 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14559 if test -n "$CROSSWINDRES"; then
14560 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14561 echo "${ECHO_T}$CROSSWINDRES" >&6
14562 else
14563 echo "$as_me:$LINENO: result: no" >&5
14564 echo "${ECHO_T}no" >&6
14567 test -n "$CROSSWINDRES" && break
14568 done
14569 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14571 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14574 esac
14576 if test "$LIBEXT" = "a"; then
14577 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14578 It is currently not possible to build Wine without shared library
14579 (.so) support to allow transparent switch between .so and .dll files.
14580 If you are using Linux, you will need a newer binutils.
14581 " >&5
14582 echo "$as_me: error: could not find a way to build shared libraries.
14583 It is currently not possible to build Wine without shared library
14584 (.so) support to allow transparent switch between .so and .dll files.
14585 If you are using Linux, you will need a newer binutils.
14586 " >&2;}
14587 { (exit 1); exit 1; }; }
14590 case $build_os in
14591 cygwin*|mingw32*)
14592 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14594 darwin*|macosx*)
14595 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14598 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14600 esac
14602 case $host_os in
14603 mingw32*)
14604 CRTLIBS="-lmsvcrt"
14606 esac
14608 case $host_os in
14609 linux*)
14610 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14612 MAIN_BINARY="wine-glibc"
14616 WINE_BINARIES="wine-kthread"
14618 MAIN_BINARY="wine-kthread"
14621 esac
14624 if test "$LIBEXT" = "so"
14625 then
14626 # Extract the first word of "ldd", so it can be a program name with args.
14627 set dummy ldd; ac_word=$2
14628 echo "$as_me:$LINENO: checking for $ac_word" >&5
14629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14630 if test "${ac_cv_path_LDD+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 case $LDD in
14634 [\\/]* | ?:[\\/]*)
14635 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 as_dummy="/sbin:/usr/sbin:$PATH"
14640 for as_dir in $as_dummy
14642 IFS=$as_save_IFS
14643 test -z "$as_dir" && as_dir=.
14644 for ac_exec_ext in '' $ac_executable_extensions; do
14645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14646 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14648 break 2
14650 done
14651 done
14653 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14655 esac
14657 LDD=$ac_cv_path_LDD
14659 if test -n "$LDD"; then
14660 echo "$as_me:$LINENO: result: $LDD" >&5
14661 echo "${ECHO_T}$LDD" >&6
14662 else
14663 echo "$as_me:$LINENO: result: no" >&5
14664 echo "${ECHO_T}no" >&6
14668 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14669 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14670 if test "${ac_cv_lib_soname_X11+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 ac_get_soname_save_LIBS=$LIBS
14674 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14682 /* Override any gcc2 internal prototype to avoid an error. */
14683 #ifdef __cplusplus
14684 extern "C"
14685 #endif
14686 /* We use char because int might match the return type of a gcc2
14687 builtin and then its argument prototype would still apply. */
14688 char XCreateWindow ();
14690 main ()
14692 XCreateWindow ();
14694 return 0;
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14719 if test "x$ac_cv_lib_soname_X11" = "x"
14720 then
14721 ac_cv_lib_soname_X11="libX11.so"
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_cv_lib_soname_X11="libX11.so"
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_get_soname_save_LIBS
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14734 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14735 if test "x$ac_cv_lib_soname_X11" != xNONE
14736 then
14737 cat >>confdefs.h <<_ACEOF
14738 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14739 _ACEOF
14742 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14743 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14744 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747 ac_get_soname_save_LIBS=$LIBS
14748 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any gcc2 internal prototype to avoid an error. */
14757 #ifdef __cplusplus
14758 extern "C"
14759 #endif
14760 /* We use char because int might match the return type of a gcc2
14761 builtin and then its argument prototype would still apply. */
14762 char XextCreateExtension ();
14764 main ()
14766 XextCreateExtension ();
14768 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } &&
14786 { ac_try='test -s conftest$ac_exeext'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14793 if test "x$ac_cv_lib_soname_Xext" = "x"
14794 then
14795 ac_cv_lib_soname_Xext="libXext.so"
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_lib_soname_Xext="libXext.so"
14803 rm -f conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14805 LIBS=$ac_get_soname_save_LIBS
14807 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14808 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14809 if test "x$ac_cv_lib_soname_Xext" != xNONE
14810 then
14811 cat >>confdefs.h <<_ACEOF
14812 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14813 _ACEOF
14816 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14817 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14818 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821 ac_get_soname_save_LIBS=$LIBS
14822 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h. */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14830 /* Override any gcc2 internal prototype to avoid an error. */
14831 #ifdef __cplusplus
14832 extern "C"
14833 #endif
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14836 char XOpenDevice ();
14838 main ()
14840 XOpenDevice ();
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14867 if test "x$ac_cv_lib_soname_Xi" = "x"
14868 then
14869 ac_cv_lib_soname_Xi="libXi.so"
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_cv_lib_soname_Xi="libXi.so"
14877 rm -f conftest.err conftest.$ac_objext \
14878 conftest$ac_exeext conftest.$ac_ext
14879 LIBS=$ac_get_soname_save_LIBS
14881 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14882 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14883 if test "x$ac_cv_lib_soname_Xi" != xNONE
14884 then
14885 cat >>confdefs.h <<_ACEOF
14886 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14887 _ACEOF
14890 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14891 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14892 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 ac_get_soname_save_LIBS=$LIBS
14896 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14904 /* Override any gcc2 internal prototype to avoid an error. */
14905 #ifdef __cplusplus
14906 extern "C"
14907 #endif
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14910 char XRenderQueryExtension ();
14912 main ()
14914 XRenderQueryExtension ();
14916 return 0;
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14941 if test "x$ac_cv_lib_soname_Xrender" = "x"
14942 then
14943 ac_cv_lib_soname_Xrender="libXrender.so"
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_cv_lib_soname_Xrender="libXrender.so"
14951 rm -f conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_get_soname_save_LIBS
14955 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14956 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14957 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14958 then
14959 cat >>confdefs.h <<_ACEOF
14960 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14961 _ACEOF
14964 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14965 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14966 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 ac_get_soname_save_LIBS=$LIBS
14970 LIBS="-lfreetype $X_LIBS $LIBS"
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14978 /* Override any gcc2 internal prototype to avoid an error. */
14979 #ifdef __cplusplus
14980 extern "C"
14981 #endif
14982 /* We use char because int might match the return type of a gcc2
14983 builtin and then its argument prototype would still apply. */
14984 char FT_Init_FreeType ();
14986 main ()
14988 FT_Init_FreeType ();
14990 return 0;
14992 _ACEOF
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995 (eval $ac_link) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest$ac_exeext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
15015 if test "x$ac_cv_lib_soname_freetype" = "x"
15016 then
15017 ac_cv_lib_soname_freetype="libfreetype.so"
15019 else
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_lib_soname_freetype="libfreetype.so"
15025 rm -f conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_get_soname_save_LIBS
15029 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15030 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15031 if test "x$ac_cv_lib_soname_freetype" != xNONE
15032 then
15033 cat >>confdefs.h <<_ACEOF
15034 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15035 _ACEOF
15038 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15039 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15040 if test "${ac_cv_lib_soname_GL+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 ac_get_soname_save_LIBS=$LIBS
15044 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any gcc2 internal prototype to avoid an error. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15058 char glXQueryExtension ();
15060 main ()
15062 glXQueryExtension ();
15064 return 0;
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest$ac_exeext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
15089 if test "x$ac_cv_lib_soname_GL" = "x"
15090 then
15091 ac_cv_lib_soname_GL="libGL.so"
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_lib_soname_GL="libGL.so"
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_get_soname_save_LIBS
15103 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15104 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15105 if test "x$ac_cv_lib_soname_GL" != xNONE
15106 then
15107 cat >>confdefs.h <<_ACEOF
15108 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15109 _ACEOF
15112 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15113 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15114 if test "${ac_cv_lib_soname_cups+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117 ac_get_soname_save_LIBS=$LIBS
15118 LIBS="-lcups $LIBS"
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15126 /* Override any gcc2 internal prototype to avoid an error. */
15127 #ifdef __cplusplus
15128 extern "C"
15129 #endif
15130 /* We use char because int might match the return type of a gcc2
15131 builtin and then its argument prototype would still apply. */
15132 char cupsGetDefault ();
15134 main ()
15136 cupsGetDefault ();
15138 return 0;
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest$ac_exeext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
15163 if test "x$ac_cv_lib_soname_cups" = "x"
15164 then
15165 ac_cv_lib_soname_cups="libcups.so"
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_soname_cups="libcups.so"
15173 rm -f conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_get_soname_save_LIBS
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15178 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15179 if test "x$ac_cv_lib_soname_cups" != xNONE
15180 then
15181 cat >>confdefs.h <<_ACEOF
15182 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15183 _ACEOF
15186 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15187 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15188 if test "${ac_cv_lib_soname_jack+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191 ac_get_soname_save_LIBS=$LIBS
15192 LIBS="-ljack $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any gcc2 internal prototype to avoid an error. */
15201 #ifdef __cplusplus
15202 extern "C"
15203 #endif
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char jack_client_new ();
15208 main ()
15210 jack_client_new ();
15212 return 0;
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest$ac_exeext'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
15237 if test "x$ac_cv_lib_soname_jack" = "x"
15238 then
15239 ac_cv_lib_soname_jack="libjack.so"
15241 else
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_cv_lib_soname_jack="libjack.so"
15247 rm -f conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_get_soname_save_LIBS
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15252 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15253 if test "x$ac_cv_lib_soname_jack" != xNONE
15254 then
15255 cat >>confdefs.h <<_ACEOF
15256 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15257 _ACEOF
15260 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15261 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15262 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 ac_get_soname_save_LIBS=$LIBS
15266 LIBS="-lfontconfig $LIBS"
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15274 /* Override any gcc2 internal prototype to avoid an error. */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 /* We use char because int might match the return type of a gcc2
15279 builtin and then its argument prototype would still apply. */
15280 char FcInit ();
15282 main ()
15284 FcInit ();
15286 return 0;
15288 _ACEOF
15289 rm -f conftest.$ac_objext conftest$ac_exeext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291 (eval $ac_link) 2>conftest.er1
15292 ac_status=$?
15293 grep -v '^ *+' conftest.er1 >conftest.err
15294 rm -f conftest.er1
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } &&
15304 { ac_try='test -s conftest$ac_exeext'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
15311 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15312 then
15313 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15321 rm -f conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_get_soname_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15326 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15327 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15328 then
15329 cat >>confdefs.h <<_ACEOF
15330 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15331 _ACEOF
15334 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15335 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15336 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 ac_get_soname_save_LIBS=$LIBS
15340 LIBS="-lssl $LIBS"
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any gcc2 internal prototype to avoid an error. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15354 char SSL_library_init ();
15356 main ()
15358 SSL_library_init ();
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
15385 if test "x$ac_cv_lib_soname_ssl" = "x"
15386 then
15387 ac_cv_lib_soname_ssl="libssl.so"
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_lib_soname_ssl="libssl.so"
15395 rm -f conftest.err conftest.$ac_objext \
15396 conftest$ac_exeext conftest.$ac_ext
15397 LIBS=$ac_get_soname_save_LIBS
15399 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15400 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15401 if test "x$ac_cv_lib_soname_ssl" != xNONE
15402 then
15403 cat >>confdefs.h <<_ACEOF
15404 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15405 _ACEOF
15408 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15409 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15410 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 ac_get_soname_save_LIBS=$LIBS
15414 LIBS="-lcrypto $LIBS"
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15422 /* Override any gcc2 internal prototype to avoid an error. */
15423 #ifdef __cplusplus
15424 extern "C"
15425 #endif
15426 /* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15428 char BIO_new_socket ();
15430 main ()
15432 BIO_new_socket ();
15434 return 0;
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15459 if test "x$ac_cv_lib_soname_crypto" = "x"
15460 then
15461 ac_cv_lib_soname_crypto="libcrypto.so"
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_lib_soname_crypto="libcrypto.so"
15469 rm -f conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15471 LIBS=$ac_get_soname_save_LIBS
15473 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15474 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15475 if test "x$ac_cv_lib_soname_crypto" != xNONE
15476 then
15477 cat >>confdefs.h <<_ACEOF
15478 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15479 _ACEOF
15482 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15483 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15484 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487 ac_get_soname_save_LIBS=$LIBS
15488 LIBS="-lncurses $LIBS"
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15496 /* Override any gcc2 internal prototype to avoid an error. */
15497 #ifdef __cplusplus
15498 extern "C"
15499 #endif
15500 /* We use char because int might match the return type of a gcc2
15501 builtin and then its argument prototype would still apply. */
15502 char waddch ();
15504 main ()
15506 waddch ();
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext conftest$ac_exeext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15513 (eval $ac_link) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest$ac_exeext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15533 if test "x$ac_cv_lib_soname_ncurses" = "x"
15534 then
15535 ac_cv_lib_soname_ncurses="libncurses.so"
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_cv_lib_soname_ncurses="libncurses.so"
15543 rm -f conftest.err conftest.$ac_objext \
15544 conftest$ac_exeext conftest.$ac_ext
15545 LIBS=$ac_get_soname_save_LIBS
15547 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15548 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15549 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15550 then
15551 cat >>confdefs.h <<_ACEOF
15552 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15553 _ACEOF
15556 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15557 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15558 if test "${ac_cv_lib_soname_curses+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561 ac_get_soname_save_LIBS=$LIBS
15562 LIBS="-lcurses $LIBS"
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15570 /* Override any gcc2 internal prototype to avoid an error. */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15576 char waddch ();
15578 main ()
15580 waddch ();
15582 return 0;
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
15594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; } &&
15600 { ac_try='test -s conftest$ac_exeext'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15607 if test "x$ac_cv_lib_soname_curses" = "x"
15608 then
15609 ac_cv_lib_soname_curses="libcurses.so"
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_cv_lib_soname_curses="libcurses.so"
15617 rm -f conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_get_soname_save_LIBS
15621 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15622 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15623 if test "x$ac_cv_lib_soname_curses" != xNONE
15624 then
15625 cat >>confdefs.h <<_ACEOF
15626 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15627 _ACEOF
15633 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15634 # for constant arguments. Useless!
15635 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15636 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15637 if test "${ac_cv_working_alloca_h+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <alloca.h>
15648 main ()
15650 char *p = (char *) alloca (2 * sizeof (int));
15652 return 0;
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15657 (eval $ac_link) 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; } &&
15670 { ac_try='test -s conftest$ac_exeext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_cv_working_alloca_h=yes
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_cv_working_alloca_h=no
15683 rm -f conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15687 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15688 if test $ac_cv_working_alloca_h = yes; then
15690 cat >>confdefs.h <<\_ACEOF
15691 #define HAVE_ALLOCA_H 1
15692 _ACEOF
15696 echo "$as_me:$LINENO: checking for alloca" >&5
15697 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15698 if test "${ac_cv_func_alloca_works+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 #ifdef __GNUC__
15708 # define alloca __builtin_alloca
15709 #else
15710 # ifdef _MSC_VER
15711 # include <malloc.h>
15712 # define alloca _alloca
15713 # else
15714 # if HAVE_ALLOCA_H
15715 # include <alloca.h>
15716 # else
15717 # ifdef _AIX
15718 #pragma alloca
15719 # else
15720 # ifndef alloca /* predefined by HP cc +Olibcalls */
15721 char *alloca ();
15722 # endif
15723 # endif
15724 # endif
15725 # endif
15726 #endif
15729 main ()
15731 char *p = (char *) alloca (1);
15733 return 0;
15735 _ACEOF
15736 rm -f conftest.$ac_objext conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738 (eval $ac_link) 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; } &&
15751 { ac_try='test -s conftest$ac_exeext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_func_alloca_works=yes
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_func_alloca_works=no
15764 rm -f conftest.err conftest.$ac_objext \
15765 conftest$ac_exeext conftest.$ac_ext
15767 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15768 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15770 if test $ac_cv_func_alloca_works = yes; then
15772 cat >>confdefs.h <<\_ACEOF
15773 #define HAVE_ALLOCA 1
15774 _ACEOF
15776 else
15777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15778 # that cause trouble. Some versions do not even contain alloca or
15779 # contain a buggy version. If you still want to use their alloca,
15780 # use ar to extract alloca.o from them instead of compiling alloca.c.
15782 ALLOCA=alloca.$ac_objext
15784 cat >>confdefs.h <<\_ACEOF
15785 #define C_ALLOCA 1
15786 _ACEOF
15789 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15790 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15791 if test "${ac_cv_os_cray+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #if defined(CRAY) && ! defined(CRAY2)
15801 webecray
15802 #else
15803 wenotbecray
15804 #endif
15806 _ACEOF
15807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15808 $EGREP "webecray" >/dev/null 2>&1; then
15809 ac_cv_os_cray=yes
15810 else
15811 ac_cv_os_cray=no
15813 rm -f conftest*
15816 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15817 echo "${ECHO_T}$ac_cv_os_cray" >&6
15818 if test $ac_cv_os_cray = yes; then
15819 for ac_func in _getb67 GETB67 getb67; do
15820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15821 echo "$as_me:$LINENO: checking for $ac_func" >&5
15822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15823 if eval "test \"\${$as_ac_var+set}\" = set"; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15834 #define $ac_func innocuous_$ac_func
15836 /* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func (); below.
15838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15839 <limits.h> exists even on freestanding compilers. */
15841 #ifdef __STDC__
15842 # include <limits.h>
15843 #else
15844 # include <assert.h>
15845 #endif
15847 #undef $ac_func
15849 /* Override any gcc2 internal prototype to avoid an error. */
15850 #ifdef __cplusplus
15851 extern "C"
15853 #endif
15854 /* We use char because int might match the return type of a gcc2
15855 builtin and then its argument prototype would still apply. */
15856 char $ac_func ();
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15861 choke me
15862 #else
15863 char (*f) () = $ac_func;
15864 #endif
15865 #ifdef __cplusplus
15867 #endif
15870 main ()
15872 return f != $ac_func;
15874 return 0;
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15879 (eval $ac_link) 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
15886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest$ac_exeext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 eval "$as_ac_var=yes"
15899 else
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15903 eval "$as_ac_var=no"
15905 rm -f conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15910 if test `eval echo '${'$as_ac_var'}'` = yes; then
15912 cat >>confdefs.h <<_ACEOF
15913 #define CRAY_STACKSEG_END $ac_func
15914 _ACEOF
15916 break
15919 done
15922 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15923 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15924 if test "${ac_cv_c_stack_direction+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927 if test "$cross_compiling" = yes; then
15928 ac_cv_c_stack_direction=0
15929 else
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15937 find_stack_direction ()
15939 static char *addr = 0;
15940 auto char dummy;
15941 if (addr == 0)
15943 addr = &dummy;
15944 return find_stack_direction ();
15946 else
15947 return (&dummy > addr) ? 1 : -1;
15951 main ()
15953 exit (find_stack_direction () < 0);
15955 _ACEOF
15956 rm -f conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958 (eval $ac_link) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_cv_c_stack_direction=1
15968 else
15969 echo "$as_me: program exited with status $ac_status" >&5
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ( exit $ac_status )
15974 ac_cv_c_stack_direction=-1
15976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15979 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15980 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15982 cat >>confdefs.h <<_ACEOF
15983 #define STACK_DIRECTION $ac_cv_c_stack_direction
15984 _ACEOF
16042 for ac_func in \
16043 _lwp_create \
16044 _lwp_self \
16045 _pclose \
16046 _popen \
16047 _snprintf \
16048 _spawnvp \
16049 _stricmp \
16050 _strnicmp \
16051 _vsnprintf \
16052 chsize \
16053 clone \
16054 finite \
16055 fpclass \
16056 ftruncate \
16057 ftruncate64 \
16058 getnetbyaddr \
16059 getnetbyname \
16060 getopt_long \
16061 getpagesize \
16062 getprotobyname \
16063 getprotobynumber \
16064 getpwuid \
16065 getservbyport \
16066 gettid \
16067 gettimeofday \
16068 inet_network \
16069 lseek64 \
16070 lstat \
16071 memmove \
16072 mmap \
16073 pclose \
16074 popen \
16075 pread \
16076 pwrite \
16077 readlink \
16078 rfork \
16079 select \
16080 sendmsg \
16081 settimeofday \
16082 sigaltstack \
16083 snprintf \
16084 spawnvp \
16085 statfs \
16086 strcasecmp \
16087 strerror \
16088 strncasecmp \
16089 tcgetattr \
16090 timegm \
16091 usleep \
16092 vfscanf \
16093 vsnprintf \
16094 wait4 \
16095 waitpid \
16098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16099 echo "$as_me:$LINENO: checking for $ac_func" >&5
16100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16101 if eval "test \"\${$as_ac_var+set}\" = set"; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16112 #define $ac_func innocuous_$ac_func
16114 /* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char $ac_func (); below.
16116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16117 <limits.h> exists even on freestanding compilers. */
16119 #ifdef __STDC__
16120 # include <limits.h>
16121 #else
16122 # include <assert.h>
16123 #endif
16125 #undef $ac_func
16127 /* Override any gcc2 internal prototype to avoid an error. */
16128 #ifdef __cplusplus
16129 extern "C"
16131 #endif
16132 /* We use char because int might match the return type of a gcc2
16133 builtin and then its argument prototype would still apply. */
16134 char $ac_func ();
16135 /* The GNU C library defines this for functions which it implements
16136 to always fail with ENOSYS. Some functions are actually named
16137 something starting with __ and the normal name is an alias. */
16138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16139 choke me
16140 #else
16141 char (*f) () = $ac_func;
16142 #endif
16143 #ifdef __cplusplus
16145 #endif
16148 main ()
16150 return f != $ac_func;
16152 return 0;
16154 _ACEOF
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157 (eval $ac_link) 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
16164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 eval "$as_ac_var=yes"
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 eval "$as_ac_var=no"
16183 rm -f conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16188 if test `eval echo '${'$as_ac_var'}'` = yes; then
16189 cat >>confdefs.h <<_ACEOF
16190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16191 _ACEOF
16194 done
16281 for ac_header in \
16282 arpa/inet.h \
16283 arpa/nameser.h \
16284 cups/cups.h \
16285 direct.h \
16286 elf.h \
16287 float.h \
16288 fontconfig/fontconfig.h \
16289 getopt.h \
16290 ieeefp.h \
16291 io.h \
16292 jack/jack.h \
16293 libio.h \
16294 libutil.h \
16295 link.h \
16296 linux/cdrom.h \
16297 linux/hdreg.h \
16298 linux/input.h \
16299 linux/ioctl.h \
16300 linux/joystick.h \
16301 linux/major.h \
16302 linux/param.h \
16303 linux/serial.h \
16304 linux/ucdrom.h \
16305 machine/cpu.h \
16306 netdb.h \
16307 netinet/in.h \
16308 netinet/in_systm.h \
16309 netinet/tcp.h \
16310 netinet/tcp_fsm.h \
16311 openssl/ssl.h \
16312 process.h \
16313 pthread.h \
16314 pty.h \
16315 pwd.h \
16316 regex.h \
16317 sched.h \
16318 scsi/sg.h \
16319 scsi/scsi.h \
16320 scsi/scsi_ioctl.h \
16321 socket.h \
16322 stdint.h \
16323 strings.h \
16324 sys/cdio.h \
16325 sys/elf32.h \
16326 sys/errno.h \
16327 sys/exec_elf.h \
16328 sys/file.h \
16329 sys/filio.h \
16330 sys/inttypes.h \
16331 sys/ioctl.h \
16332 sys/ipc.h \
16333 sys/link.h \
16334 sys/lwp.h \
16335 sys/mman.h \
16336 sys/modem.h \
16337 sys/msg.h \
16338 sys/param.h \
16339 sys/poll.h \
16340 sys/ptrace.h \
16341 sys/reg.h \
16342 sys/scsiio.h \
16343 sys/shm.h \
16344 sys/signal.h \
16345 sys/socket.h \
16346 sys/sockio.h \
16347 sys/statfs.h \
16348 sys/strtio.h \
16349 sys/syscall.h \
16350 sys/sysctl.h \
16351 sys/time.h \
16352 sys/times.h \
16353 sys/uio.h \
16354 sys/un.h \
16355 sys/v86.h \
16356 sys/v86intr.h \
16357 sys/vfs.h \
16358 sys/vm86.h \
16359 sys/wait.h \
16360 syscall.h \
16361 termios.h \
16362 unistd.h \
16363 utime.h \
16364 valgrind/memcheck.h
16367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16369 echo "$as_me:$LINENO: checking for $ac_header" >&5
16370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16376 else
16377 # Is the header compilable?
16378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h. */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 $ac_includes_default
16387 #include <$ac_header>
16388 _ACEOF
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_header_compiler=no
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16419 echo "${ECHO_T}$ac_header_compiler" >&6
16421 # Is the header present?
16422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16424 cat >conftest.$ac_ext <<_ACEOF
16425 /* confdefs.h. */
16426 _ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 #include <$ac_header>
16431 _ACEOF
16432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev/null; then
16440 if test -s conftest.err; then
16441 ac_cpp_err=$ac_c_preproc_warn_flag
16442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16443 else
16444 ac_cpp_err=
16446 else
16447 ac_cpp_err=yes
16449 if test -z "$ac_cpp_err"; then
16450 ac_header_preproc=yes
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 ac_header_preproc=no
16457 rm -f conftest.err conftest.$ac_ext
16458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 yes:no: )
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16468 ac_header_preproc=yes
16470 no:yes:* )
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16484 cat <<\_ASBOX
16485 ## ------------------------------------ ##
16486 ## Report this to wine-devel@winehq.org ##
16487 ## ------------------------------------ ##
16488 _ASBOX
16490 sed "s/^/$as_me: WARNING: /" >&2
16492 esac
16493 echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498 eval "$as_ac_Header=\$ac_header_preproc"
16500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16507 _ACEOF
16511 done
16513 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16514 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16515 if test "${ac_cv_header_stat_broken+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <sys/types.h>
16525 #include <sys/stat.h>
16527 #if defined(S_ISBLK) && defined(S_IFDIR)
16528 # if S_ISBLK (S_IFDIR)
16529 You lose.
16530 # endif
16531 #endif
16533 #if defined(S_ISBLK) && defined(S_IFCHR)
16534 # if S_ISBLK (S_IFCHR)
16535 You lose.
16536 # endif
16537 #endif
16539 #if defined(S_ISLNK) && defined(S_IFREG)
16540 # if S_ISLNK (S_IFREG)
16541 You lose.
16542 # endif
16543 #endif
16545 #if defined(S_ISSOCK) && defined(S_IFREG)
16546 # if S_ISSOCK (S_IFREG)
16547 You lose.
16548 # endif
16549 #endif
16551 _ACEOF
16552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16553 $EGREP "You lose" >/dev/null 2>&1; then
16554 ac_cv_header_stat_broken=yes
16555 else
16556 ac_cv_header_stat_broken=no
16558 rm -f conftest*
16561 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16562 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16563 if test $ac_cv_header_stat_broken = yes; then
16565 cat >>confdefs.h <<\_ACEOF
16566 #define STAT_MACROS_BROKEN 1
16567 _ACEOF
16575 for ac_header in sys/mount.h sys/user.h
16577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16578 echo "$as_me:$LINENO: checking for $ac_header" >&5
16579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 else
16583 cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h. */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16589 #include <sys/types.h>
16590 #if HAVE_SYS_PARAM_H
16591 # include <sys/param.h>
16592 #endif
16594 #include <$ac_header>
16595 _ACEOF
16596 rm -f conftest.$ac_objext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16598 (eval $ac_compile) 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest.$ac_objext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 eval "$as_ac_Header=yes"
16618 else
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 eval "$as_ac_Header=no"
16624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16631 _ACEOF
16635 done
16643 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16646 echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 #include <sys/types.h>
16658 #if HAVE_SYS_SOCKET_H
16659 # include <sys/socket.h>
16660 #endif
16662 #include <$ac_header>
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16666 (eval $ac_compile) 2>conftest.er1
16667 ac_status=$?
16668 grep -v '^ *+' conftest.er1 >conftest.err
16669 rm -f conftest.er1
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 eval "$as_ac_Header=yes"
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 eval "$as_ac_Header=no"
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16697 cat >>confdefs.h <<_ACEOF
16698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16699 _ACEOF
16703 done
16707 for ac_header in resolv.h
16709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16710 echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h. */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721 #include <sys/types.h>
16722 #if HAVE_SYS_SOCKET_H
16723 # include <sys/socket.h>
16724 #endif
16725 #if HAVE_NETINET_IN_H
16726 # include <netinet/in.h>
16727 #endif
16728 #if HAVE_ARPA_NAMESER_H
16729 # include <arpa/nameser.h>
16730 #endif
16732 #include <$ac_header>
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 eval "$as_ac_Header=yes"
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 eval "$as_ac_Header=no"
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16767 cat >>confdefs.h <<_ACEOF
16768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16769 _ACEOF
16773 done
16777 for ac_header in netinet/ip.h
16779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16780 echo "$as_me:$LINENO: checking for $ac_header" >&5
16781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h. */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 #include <sys/types.h>
16792 #if HAVE_SYS_SOCKET_H
16793 # include <sys/socket.h>
16794 #endif
16795 #if HAVE_NETINET_IN_SYSTM_H
16796 # include <netinet/in_systm.h>
16797 #endif
16799 #include <$ac_header>
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803 (eval $ac_compile) 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 eval "$as_ac_Header=yes"
16823 else
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 eval "$as_ac_Header=no"
16829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16834 cat >>confdefs.h <<_ACEOF
16835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16836 _ACEOF
16840 done
16844 for ac_header in ucontext.h
16846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16847 echo "$as_me:$LINENO: checking for $ac_header" >&5
16848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 #include <signal.h>
16860 #include <$ac_header>
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest.$ac_objext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 eval "$as_ac_Header=yes"
16884 else
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 eval "$as_ac_Header=no"
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16895 cat >>confdefs.h <<_ACEOF
16896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16897 _ACEOF
16901 done
16905 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16906 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16907 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 #include <sys/types.h>
16917 #ifdef HAVE_SYS_SOCKET_H
16918 # include <sys/socket.h>
16919 #endif
16920 #include <netipx/ipx.h>
16922 main ()
16924 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16926 return 0;
16928 _ACEOF
16929 rm -f conftest.$ac_objext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16931 (eval $ac_compile) 2>conftest.er1
16932 ac_status=$?
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest.$ac_objext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_c_ipx_gnu="yes"
16951 else
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_cv_c_ipx_gnu="no"
16957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16960 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16961 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16962 if test "$ac_cv_c_ipx_gnu" = "yes"
16963 then
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_IPX_GNU 1
16967 _ACEOF
16971 if test "$ac_cv_c_ipx_gnu" = "no"
16972 then
16973 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16974 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16975 if test "${ac_cv_c_ipx_linux+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978 cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h. */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984 #include <sys/types.h>
16985 #ifdef HAVE_SYS_SOCKET_H
16986 # include <sys/socket.h>
16987 #endif
16988 #include <asm/types.h>
16989 #include <linux/ipx.h>
16991 main ()
16993 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16995 return 0;
16997 _ACEOF
16998 rm -f conftest.$ac_objext
16999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17000 (eval $ac_compile) 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; } &&
17013 { ac_try='test -s conftest.$ac_objext'
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_cv_c_ipx_linux="yes"
17020 else
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 ac_cv_c_ipx_linux="no"
17026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17030 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17031 if test "$ac_cv_c_ipx_linux" = "yes"
17032 then
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_IPX_LINUX 1
17036 _ACEOF
17042 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17044 if test "${ac_cv_c_const+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h. */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17055 main ()
17057 /* FIXME: Include the comments suggested by Paul. */
17058 #ifndef __cplusplus
17059 /* Ultrix mips cc rejects this. */
17060 typedef int charset[2];
17061 const charset x;
17062 /* SunOS 4.1.1 cc rejects this. */
17063 char const *const *ccp;
17064 char **p;
17065 /* NEC SVR4.0.2 mips cc rejects this. */
17066 struct point {int x, y;};
17067 static struct point const zero = {0,0};
17068 /* AIX XL C 1.02.0.0 rejects this.
17069 It does not let you subtract one const X* pointer from another in
17070 an arm of an if-expression whose if-part is not a constant
17071 expression */
17072 const char *g = "string";
17073 ccp = &g + (g ? g-g : 0);
17074 /* HPUX 7.0 cc rejects these. */
17075 ++ccp;
17076 p = (char**) ccp;
17077 ccp = (char const *const *) p;
17078 { /* SCO 3.2v4 cc rejects this. */
17079 char *t;
17080 char const *s = 0 ? (char *) 0 : (char const *) 0;
17082 *t++ = 0;
17084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17085 int x[] = {25, 17};
17086 const int *foo = &x[0];
17087 ++foo;
17089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17090 typedef const int *iptr;
17091 iptr p = 0;
17092 ++p;
17094 { /* AIX XL C 1.02.0.0 rejects this saying
17095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17096 struct s { int j; const int *ap[3]; };
17097 struct s *b; b->j = 5;
17099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17100 const int foo = 10;
17102 #endif
17105 return 0;
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110 (eval $ac_compile) 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
17117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest.$ac_objext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_cv_c_const=yes
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ac_cv_c_const=no
17136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17138 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17139 echo "${ECHO_T}$ac_cv_c_const" >&6
17140 if test $ac_cv_c_const = no; then
17142 cat >>confdefs.h <<\_ACEOF
17143 #define const
17144 _ACEOF
17148 echo "$as_me:$LINENO: checking for inline" >&5
17149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17150 if test "${ac_cv_c_inline+set}" = set; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 else
17153 ac_cv_c_inline=no
17154 for ac_kw in inline __inline__ __inline; do
17155 cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h. */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17161 #ifndef __cplusplus
17162 typedef int foo_t;
17163 static $ac_kw foo_t static_foo () {return 0; }
17164 $ac_kw foo_t foo () {return 0; }
17165 #endif
17167 _ACEOF
17168 rm -f conftest.$ac_objext
17169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170 (eval $ac_compile) 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try='test -s conftest.$ac_objext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_c_inline=$ac_kw; break
17190 else
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17196 done
17199 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17200 echo "${ECHO_T}$ac_cv_c_inline" >&6
17203 case $ac_cv_c_inline in
17204 inline | yes) ;;
17206 case $ac_cv_c_inline in
17207 no) ac_val=;;
17208 *) ac_val=$ac_cv_c_inline;;
17209 esac
17210 cat >>confdefs.h <<_ACEOF
17211 #ifndef __cplusplus
17212 #define inline $ac_val
17213 #endif
17214 _ACEOF
17216 esac
17218 echo "$as_me:$LINENO: checking for mode_t" >&5
17219 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17220 if test "${ac_cv_type_mode_t+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 $ac_includes_default
17231 main ()
17233 if ((mode_t *) 0)
17234 return 0;
17235 if (sizeof (mode_t))
17236 return 0;
17238 return 0;
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17262 ac_cv_type_mode_t=yes
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_cv_type_mode_t=no
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17272 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17273 if test $ac_cv_type_mode_t = yes; then
17275 cat >>confdefs.h <<_ACEOF
17276 #define HAVE_MODE_T 1
17277 _ACEOF
17281 echo "$as_me:$LINENO: checking for off_t" >&5
17282 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17283 if test "${ac_cv_type_off_t+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 $ac_includes_default
17294 main ()
17296 if ((off_t *) 0)
17297 return 0;
17298 if (sizeof (off_t))
17299 return 0;
17301 return 0;
17303 _ACEOF
17304 rm -f conftest.$ac_objext
17305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17306 (eval $ac_compile) 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest.$ac_objext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_type_off_t=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_cv_type_off_t=no
17332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17335 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17336 if test $ac_cv_type_off_t = yes; then
17338 cat >>confdefs.h <<_ACEOF
17339 #define HAVE_OFF_T 1
17340 _ACEOF
17344 echo "$as_me:$LINENO: checking for pid_t" >&5
17345 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17346 if test "${ac_cv_type_pid_t+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 $ac_includes_default
17357 main ()
17359 if ((pid_t *) 0)
17360 return 0;
17361 if (sizeof (pid_t))
17362 return 0;
17364 return 0;
17366 _ACEOF
17367 rm -f conftest.$ac_objext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17369 (eval $ac_compile) 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest.$ac_objext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_type_pid_t=yes
17389 else
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 ac_cv_type_pid_t=no
17395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17397 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17398 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17399 if test $ac_cv_type_pid_t = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_PID_T 1
17403 _ACEOF
17407 echo "$as_me:$LINENO: checking for size_t" >&5
17408 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17409 if test "${ac_cv_type_size_t+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17420 main ()
17422 if ((size_t *) 0)
17423 return 0;
17424 if (sizeof (size_t))
17425 return 0;
17427 return 0;
17429 _ACEOF
17430 rm -f conftest.$ac_objext
17431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432 (eval $ac_compile) 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest.$ac_objext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_type_size_t=yes
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_cv_type_size_t=no
17458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17460 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17461 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17462 if test $ac_cv_type_size_t = yes; then
17464 cat >>confdefs.h <<_ACEOF
17465 #define HAVE_SIZE_T 1
17466 _ACEOF
17470 echo "$as_me:$LINENO: checking for ssize_t" >&5
17471 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17472 if test "${ac_cv_type_ssize_t+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 $ac_includes_default
17483 main ()
17485 if ((ssize_t *) 0)
17486 return 0;
17487 if (sizeof (ssize_t))
17488 return 0;
17490 return 0;
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495 (eval $ac_compile) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_type_ssize_t=yes
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 ac_cv_type_ssize_t=no
17521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17523 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17524 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17525 if test $ac_cv_type_ssize_t = yes; then
17527 cat >>confdefs.h <<_ACEOF
17528 #define HAVE_SSIZE_T 1
17529 _ACEOF
17533 echo "$as_me:$LINENO: checking for long long" >&5
17534 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17535 if test "${ac_cv_type_long_long+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17546 main ()
17548 if ((long long *) 0)
17549 return 0;
17550 if (sizeof (long long))
17551 return 0;
17553 return 0;
17555 _ACEOF
17556 rm -f conftest.$ac_objext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest.$ac_objext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_type_long_long=yes
17578 else
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_cv_type_long_long=no
17584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17586 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17587 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17588 if test $ac_cv_type_long_long = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_LONG_LONG 1
17592 _ACEOF
17598 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17599 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17600 if test "${wine_cv_linux_input_h+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h. */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17610 #include <linux/input.h>
17613 main ()
17616 int foo = EVIOCGBIT(EV_ABS,42);
17617 int bar = BTN_PINKIE;
17618 int fortytwo = 42;
17621 return 0;
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 wine_cv_linux_input_h=yes
17646 else
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 wine_cv_linux_input_h=no
17652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17655 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17656 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17657 if test "$wine_cv_linux_input_h" = "yes"
17658 then
17660 cat >>confdefs.h <<\_ACEOF
17661 #define HAVE_CORRECT_LINUXINPUT_H 1
17662 _ACEOF
17667 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17668 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17669 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h. */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17679 #include <netdb.h>
17682 main ()
17685 char *name=NULL;
17686 struct hostent he;
17687 struct hostent *result;
17688 char *buf=NULL;
17689 int bufsize=0;
17690 int res,errnr;
17691 char *addr=NULL;
17692 int addrlen=0;
17693 int addrtype=0;
17694 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17695 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17703 (eval $ac_link) 2>conftest.er1
17704 ac_status=$?
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest$ac_exeext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 wine_cv_linux_gethostbyname_r_6=yes
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 wine_cv_linux_gethostbyname_r_6=no
17730 rm -f conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17734 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17735 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17736 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17737 then
17739 cat >>confdefs.h <<\_ACEOF
17740 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17741 _ACEOF
17745 if test "$ac_cv_header_linux_joystick_h" = "yes"
17746 then
17747 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17748 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17749 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h. */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 #include <sys/ioctl.h>
17760 #include <linux/joystick.h>
17762 struct js_event blub;
17763 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17764 #error "no 2.2 header"
17765 #endif
17768 main ()
17770 /*empty*/
17772 return 0;
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777 (eval $ac_compile) 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest.$ac_objext'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 wine_cv_linux_joystick_22_api=yes
17797 else
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 wine_cv_linux_joystick_22_api=no
17803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17806 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17807 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17808 if test "$wine_cv_linux_joystick_22_api" = "yes"
17809 then
17811 cat >>confdefs.h <<\_ACEOF
17812 #define HAVE_LINUX_22_JOYSTICK_API 1
17813 _ACEOF
17819 if test "$ac_cv_header_sys_vfs_h" = "yes"
17820 then
17821 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17822 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17823 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17833 #include <sys/types.h>
17834 #ifdef HAVE_SYS_PARAM_H
17835 # include <sys/param.h>
17836 #endif
17837 #include <sys/vfs.h>
17840 main ()
17843 struct statfs stfs;
17845 memset(&stfs,0,sizeof(stfs));
17848 return 0;
17850 _ACEOF
17851 rm -f conftest.$ac_objext
17852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17853 (eval $ac_compile) 2>conftest.er1
17854 ac_status=$?
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 wine_cv_sys_vfs_has_statfs=yes
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 wine_cv_sys_vfs_has_statfs=no
17880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17883 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17884 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17885 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17886 then
17888 cat >>confdefs.h <<\_ACEOF
17889 #define STATFS_DEFINED_BY_SYS_VFS 1
17890 _ACEOF
17895 if test "$ac_cv_header_sys_statfs_h" = "yes"
17896 then
17897 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17898 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17899 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 else
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17909 #include <sys/types.h>
17910 #ifdef HAVE_SYS_PARAM_H
17911 # include <sys/param.h>
17912 #endif
17913 #include <sys/statfs.h>
17916 main ()
17919 struct statfs stfs;
17922 return 0;
17924 _ACEOF
17925 rm -f conftest.$ac_objext
17926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17927 (eval $ac_compile) 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17946 wine_cv_sys_statfs_has_statfs=yes
17947 else
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 wine_cv_sys_statfs_has_statfs=no
17954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
17958 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
17959 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17960 then
17962 cat >>confdefs.h <<\_ACEOF
17963 #define STATFS_DEFINED_BY_SYS_STATFS 1
17964 _ACEOF
17969 if test "$ac_cv_header_sys_mount_h" = "yes"
17970 then
17971 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
17972 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17973 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h. */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17983 #include <sys/types.h>
17984 #ifdef HAVE_SYS_PARAM_H
17985 # include <sys/param.h>
17986 #endif
17987 #include <sys/mount.h>
17990 main ()
17993 struct statfs stfs;
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_sys_mount_has_statfs=yes
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 wine_cv_sys_mount_has_statfs=no
18028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18032 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18033 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18034 then
18036 cat >>confdefs.h <<\_ACEOF
18037 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18038 _ACEOF
18044 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18045 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18046 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049 cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 #include <sys/types.h>
18056 #ifdef HAVE_SYS_PARAM_H
18057 # include <sys/param.h>
18058 #endif
18059 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18060 # include <sys/mount.h>
18061 #else
18062 # ifdef STATFS_DEFINED_BY_SYS_VFS
18063 # include <sys/vfs.h>
18064 # else
18065 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18066 # include <sys/statfs.h>
18067 # endif
18068 # endif
18069 #endif
18072 main ()
18074 static struct statfs ac_aggr;
18075 if (ac_aggr.f_bfree)
18076 return 0;
18078 return 0;
18080 _ACEOF
18081 rm -f conftest.$ac_objext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18083 (eval $ac_compile) 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_member_struct_statfs_f_bfree=yes
18103 else
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 #include <sys/types.h>
18114 #ifdef HAVE_SYS_PARAM_H
18115 # include <sys/param.h>
18116 #endif
18117 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18118 # include <sys/mount.h>
18119 #else
18120 # ifdef STATFS_DEFINED_BY_SYS_VFS
18121 # include <sys/vfs.h>
18122 # else
18123 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18124 # include <sys/statfs.h>
18125 # endif
18126 # endif
18127 #endif
18130 main ()
18132 static struct statfs ac_aggr;
18133 if (sizeof ac_aggr.f_bfree)
18134 return 0;
18136 return 0;
18138 _ACEOF
18139 rm -f conftest.$ac_objext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18141 (eval $ac_compile) 2>conftest.er1
18142 ac_status=$?
18143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_cv_member_struct_statfs_f_bfree=yes
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_cv_member_struct_statfs_f_bfree=no
18167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18171 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18172 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18173 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define HAVE_STRUCT_STATFS_F_BFREE 1
18177 _ACEOF
18181 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18182 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18183 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 #include <sys/types.h>
18193 #ifdef HAVE_SYS_PARAM_H
18194 # include <sys/param.h>
18195 #endif
18196 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18197 # include <sys/mount.h>
18198 #else
18199 # ifdef STATFS_DEFINED_BY_SYS_VFS
18200 # include <sys/vfs.h>
18201 # else
18202 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18203 # include <sys/statfs.h>
18204 # endif
18205 # endif
18206 #endif
18209 main ()
18211 static struct statfs ac_aggr;
18212 if (ac_aggr.f_bavail)
18213 return 0;
18215 return 0;
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220 (eval $ac_compile) 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest.$ac_objext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_cv_member_struct_statfs_f_bavail=yes
18240 else
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h. */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 #include <sys/types.h>
18251 #ifdef HAVE_SYS_PARAM_H
18252 # include <sys/param.h>
18253 #endif
18254 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18255 # include <sys/mount.h>
18256 #else
18257 # ifdef STATFS_DEFINED_BY_SYS_VFS
18258 # include <sys/vfs.h>
18259 # else
18260 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18261 # include <sys/statfs.h>
18262 # endif
18263 # endif
18264 #endif
18267 main ()
18269 static struct statfs ac_aggr;
18270 if (sizeof ac_aggr.f_bavail)
18271 return 0;
18273 return 0;
18275 _ACEOF
18276 rm -f conftest.$ac_objext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278 (eval $ac_compile) 2>conftest.er1
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } &&
18285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest.$ac_objext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_member_struct_statfs_f_bavail=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_member_struct_statfs_f_bavail=no
18304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18309 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18310 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18314 _ACEOF
18320 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18321 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18322 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <sys/types.h>
18332 #ifdef HAVE_SYS_SOCKET_H
18333 # include <sys/socket.h>
18334 #endif
18335 #ifdef HAVE_SYS_UN_H
18336 # include <sys/un.h>
18337 #endif
18340 main ()
18342 static struct msghdr ac_aggr;
18343 if (ac_aggr.msg_accrights)
18344 return 0;
18346 return 0;
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18351 (eval $ac_compile) 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest.$ac_objext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_member_struct_msghdr_msg_accrights=yes
18371 else
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include <sys/types.h>
18382 #ifdef HAVE_SYS_SOCKET_H
18383 # include <sys/socket.h>
18384 #endif
18385 #ifdef HAVE_SYS_UN_H
18386 # include <sys/un.h>
18387 #endif
18390 main ()
18392 static struct msghdr ac_aggr;
18393 if (sizeof ac_aggr.msg_accrights)
18394 return 0;
18396 return 0;
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401 (eval $ac_compile) 2>conftest.er1
18402 ac_status=$?
18403 grep -v '^ *+' conftest.er1 >conftest.err
18404 rm -f conftest.er1
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
18408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_member_struct_msghdr_msg_accrights=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ac_cv_member_struct_msghdr_msg_accrights=no
18427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18432 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18433 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18437 _ACEOF
18441 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18442 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18443 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 cat >conftest.$ac_ext <<_ACEOF
18447 /* confdefs.h. */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452 #include <sys/types.h>
18453 #ifdef HAVE_SYS_SOCKET_H
18454 # include <sys/socket.h>
18455 #endif
18456 #ifdef HAVE_SYS_UN_H
18457 # include <sys/un.h>
18458 #endif
18461 main ()
18463 static struct sockaddr ac_aggr;
18464 if (ac_aggr.sa_len)
18465 return 0;
18467 return 0;
18469 _ACEOF
18470 rm -f conftest.$ac_objext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472 (eval $ac_compile) 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_cv_member_struct_sockaddr_sa_len=yes
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 #include <sys/types.h>
18503 #ifdef HAVE_SYS_SOCKET_H
18504 # include <sys/socket.h>
18505 #endif
18506 #ifdef HAVE_SYS_UN_H
18507 # include <sys/un.h>
18508 #endif
18511 main ()
18513 static struct sockaddr ac_aggr;
18514 if (sizeof ac_aggr.sa_len)
18515 return 0;
18517 return 0;
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_member_struct_sockaddr_sa_len=yes
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_member_struct_sockaddr_sa_len=no
18548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18553 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18554 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18558 _ACEOF
18562 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18563 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18564 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h. */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 #include <sys/types.h>
18574 #ifdef HAVE_SYS_SOCKET_H
18575 # include <sys/socket.h>
18576 #endif
18577 #ifdef HAVE_SYS_UN_H
18578 # include <sys/un.h>
18579 #endif
18582 main ()
18584 static struct sockaddr_un ac_aggr;
18585 if (ac_aggr.sun_len)
18586 return 0;
18588 return 0;
18590 _ACEOF
18591 rm -f conftest.$ac_objext
18592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18593 (eval $ac_compile) 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest.$ac_objext'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 ac_cv_member_struct_sockaddr_un_sun_len=yes
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 #include <sys/types.h>
18624 #ifdef HAVE_SYS_SOCKET_H
18625 # include <sys/socket.h>
18626 #endif
18627 #ifdef HAVE_SYS_UN_H
18628 # include <sys/un.h>
18629 #endif
18632 main ()
18634 static struct sockaddr_un ac_aggr;
18635 if (sizeof ac_aggr.sun_len)
18636 return 0;
18638 return 0;
18640 _ACEOF
18641 rm -f conftest.$ac_objext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643 (eval $ac_compile) 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest.$ac_objext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 ac_cv_member_struct_sockaddr_un_sun_len=yes
18663 else
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18667 ac_cv_member_struct_sockaddr_un_sun_len=no
18669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18674 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18675 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18679 _ACEOF
18685 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18686 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18687 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18690 cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h. */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 #include <signal.h>
18699 main ()
18701 static siginfo_t ac_aggr;
18702 if (ac_aggr.si_fd)
18703 return 0;
18705 return 0;
18707 _ACEOF
18708 rm -f conftest.$ac_objext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18710 (eval $ac_compile) 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest.$ac_objext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_member_siginfo_t_si_fd=yes
18730 else
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 #include <signal.h>
18743 main ()
18745 static siginfo_t ac_aggr;
18746 if (sizeof ac_aggr.si_fd)
18747 return 0;
18749 return 0;
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754 (eval $ac_compile) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_member_siginfo_t_si_fd=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_cv_member_siginfo_t_si_fd=no
18780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18784 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18785 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18786 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789 #define HAVE_SIGINFO_T_SI_FD 1
18790 _ACEOF
18796 echo "$as_me:$LINENO: checking for struct option.name" >&5
18797 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18798 if test "${ac_cv_member_struct_option_name+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #ifdef HAVE_GETOPT_H
18808 #include <getopt.h>
18809 #endif
18812 main ()
18814 static struct option ac_aggr;
18815 if (ac_aggr.name)
18816 return 0;
18818 return 0;
18820 _ACEOF
18821 rm -f conftest.$ac_objext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18823 (eval $ac_compile) 2>conftest.er1
18824 ac_status=$?
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } &&
18830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest.$ac_objext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_member_struct_option_name=yes
18843 else
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h. */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 #ifdef HAVE_GETOPT_H
18854 #include <getopt.h>
18855 #endif
18858 main ()
18860 static struct option ac_aggr;
18861 if (sizeof ac_aggr.name)
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_option_name=yes
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_cv_member_struct_option_name=no
18895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18899 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18900 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18901 if test $ac_cv_member_struct_option_name = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_STRUCT_OPTION_NAME 1
18905 _ACEOF
18911 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18912 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18913 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h. */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 $ac_includes_default
18924 main ()
18926 static struct stat ac_aggr;
18927 if (ac_aggr.st_blocks)
18928 return 0;
18930 return 0;
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935 (eval $ac_compile) 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_cv_member_struct_stat_st_blocks=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h. */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18965 $ac_includes_default
18967 main ()
18969 static struct stat ac_aggr;
18970 if (sizeof ac_aggr.st_blocks)
18971 return 0;
18973 return 0;
18975 _ACEOF
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18979 ac_status=$?
18980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_cv_member_struct_stat_st_blocks=yes
18998 else
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_cv_member_struct_stat_st_blocks=no
19004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19009 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19010 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19014 _ACEOF
19021 case $host_cpu in
19022 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19023 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19024 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 else
19027 cat >conftest.$ac_ext <<_ACEOF
19028 /* confdefs.h. */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h. */
19033 #ifndef __i386__
19035 #endif
19036 _ACEOF
19037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19038 $EGREP "yes" >/dev/null 2>&1; then
19039 ac_cv_cpp_def___i386__=yes
19040 else
19041 ac_cv_cpp_def___i386__=no
19043 rm -f conftest*
19046 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19047 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19048 if test $ac_cv_cpp_def___i386__ = yes; then
19049 CFLAGS="$CFLAGS -D__i386__"
19050 LINTFLAGS="$LINTFLAGS -D__i386__"
19053 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19054 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19055 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #ifndef __ALPHA__
19066 #endif
19067 _ACEOF
19068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19069 $EGREP "yes" >/dev/null 2>&1; then
19070 ac_cv_cpp_def___ALPHA__=yes
19071 else
19072 ac_cv_cpp_def___ALPHA__=no
19074 rm -f conftest*
19077 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19078 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19079 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19080 CFLAGS="$CFLAGS -D__ALPHA__"
19081 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19084 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19085 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19086 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 #ifndef __sparc__
19097 #endif
19098 _ACEOF
19099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19100 $EGREP "yes" >/dev/null 2>&1; then
19101 ac_cv_cpp_def___sparc__=yes
19102 else
19103 ac_cv_cpp_def___sparc__=no
19105 rm -f conftest*
19108 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19109 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19110 if test $ac_cv_cpp_def___sparc__ = yes; then
19111 CFLAGS="$CFLAGS -D__sparc__"
19112 LINTFLAGS="$LINTFLAGS -D__sparc__"
19115 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19116 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19117 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #ifndef __powerpc__
19128 #endif
19129 _ACEOF
19130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19131 $EGREP "yes" >/dev/null 2>&1; then
19132 ac_cv_cpp_def___powerpc__=yes
19133 else
19134 ac_cv_cpp_def___powerpc__=no
19136 rm -f conftest*
19139 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19140 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19141 if test $ac_cv_cpp_def___powerpc__ = yes; then
19142 CFLAGS="$CFLAGS -D__powerpc__"
19143 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19146 esac
19148 case $host_vendor in
19149 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19150 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19151 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #ifndef __sun__
19162 #endif
19163 _ACEOF
19164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19165 $EGREP "yes" >/dev/null 2>&1; then
19166 ac_cv_cpp_def___sun__=yes
19167 else
19168 ac_cv_cpp_def___sun__=no
19170 rm -f conftest*
19173 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19174 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19175 if test $ac_cv_cpp_def___sun__ = yes; then
19176 CFLAGS="$CFLAGS -D__sun__"
19177 LINTFLAGS="$LINTFLAGS -D__sun__"
19180 esac
19186 ac_config_commands="$ac_config_commands controls"
19188 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19190 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19192 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19194 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19196 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19198 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19200 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19202 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19204 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19206 ac_config_commands="$ac_config_commands dlls/user/dde"
19208 ac_config_commands="$ac_config_commands dlls/user/resources"
19210 ac_config_commands="$ac_config_commands dlls/wineps/data"
19212 ac_config_commands="$ac_config_commands files"
19214 ac_config_commands="$ac_config_commands include/wine"
19216 ac_config_commands="$ac_config_commands misc"
19218 ac_config_commands="$ac_config_commands objects"
19220 ac_config_commands="$ac_config_commands programs/regedit/tests"
19222 ac_config_commands="$ac_config_commands windows"
19225 MAKE_RULES=Make.rules
19228 MAKE_DLL_RULES=dlls/Makedll.rules
19231 MAKE_TEST_RULES=dlls/Maketest.rules
19234 MAKE_LIB_RULES=libs/Makelib.rules
19237 MAKE_PROG_RULES=programs/Makeprog.rules
19240 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/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/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/d3dx8/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/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/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/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/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/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/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/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/version/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/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/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"
19243 cat >confcache <<\_ACEOF
19244 # This file is a shell script that caches the results of configure
19245 # tests run on this system so they can be shared between configure
19246 # scripts and configure runs, see configure's option --config-cache.
19247 # It is not useful on other systems. If it contains results you don't
19248 # want to keep, you may remove or edit it.
19250 # config.status only pays attention to the cache file if you give it
19251 # the --recheck option to rerun configure.
19253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19255 # following values.
19257 _ACEOF
19259 # The following way of writing the cache mishandles newlines in values,
19260 # but we know of no workaround that is simple, portable, and efficient.
19261 # So, don't put newlines in cache variables' values.
19262 # Ultrix sh set writes to stderr and can't be redirected directly,
19263 # and sets the high bit in the cache file unless we assign to the vars.
19265 (set) 2>&1 |
19266 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19267 *ac_space=\ *)
19268 # `set' does not quote correctly, so add quotes (double-quote
19269 # substitution turns \\\\ into \\, and sed turns \\ into \).
19270 sed -n \
19271 "s/'/'\\\\''/g;
19272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19275 # `set' quotes correctly as required by POSIX, so do not add quotes.
19276 sed -n \
19277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19279 esac;
19281 sed '
19282 t clear
19283 : clear
19284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19285 t end
19286 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19287 : end' >>confcache
19288 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19289 if test -w $cache_file; then
19290 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19291 cat confcache >$cache_file
19292 else
19293 echo "not updating unwritable cache $cache_file"
19296 rm -f confcache
19298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19299 # Let make expand exec_prefix.
19300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19304 # trailing colons and then remove the whole line if VPATH becomes empty
19305 # (actually we leave an empty line to preserve line numbers).
19306 if test "x$srcdir" = x.; then
19307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19308 s/:*\$(srcdir):*/:/;
19309 s/:*\${srcdir}:*/:/;
19310 s/:*@srcdir@:*/:/;
19311 s/^\([^=]*=[ ]*\):*/\1/;
19312 s/:*$//;
19313 s/^[^=]*=[ ]*$//;
19317 DEFS=-DHAVE_CONFIG_H
19319 ac_libobjs=
19320 ac_ltlibobjs=
19321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19322 # 1. Remove the extension, and $U if already installed.
19323 ac_i=`echo "$ac_i" |
19324 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19325 # 2. Add them.
19326 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19327 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19328 done
19329 LIBOBJS=$ac_libobjs
19331 LTLIBOBJS=$ac_ltlibobjs
19335 : ${CONFIG_STATUS=./config.status}
19336 ac_clean_files_save=$ac_clean_files
19337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19338 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19339 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19340 cat >$CONFIG_STATUS <<_ACEOF
19341 #! $SHELL
19342 # Generated by $as_me.
19343 # Run this file to recreate the current configuration.
19344 # Compiler output produced by configure, useful for debugging
19345 # configure, is in config.log if it exists.
19347 debug=false
19348 ac_cs_recheck=false
19349 ac_cs_silent=false
19350 SHELL=\${CONFIG_SHELL-$SHELL}
19351 _ACEOF
19353 cat >>$CONFIG_STATUS <<\_ACEOF
19354 ## --------------------- ##
19355 ## M4sh Initialization. ##
19356 ## --------------------- ##
19358 # Be Bourne compatible
19359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19360 emulate sh
19361 NULLCMD=:
19362 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19363 # is contrary to our usage. Disable this feature.
19364 alias -g '${1+"$@"}'='"$@"'
19365 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19366 set -o posix
19368 DUALCASE=1; export DUALCASE # for MKS sh
19370 # Support unset when possible.
19371 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19372 as_unset=unset
19373 else
19374 as_unset=false
19378 # Work around bugs in pre-3.0 UWIN ksh.
19379 $as_unset ENV MAIL MAILPATH
19380 PS1='$ '
19381 PS2='> '
19382 PS4='+ '
19384 # NLS nuisances.
19385 for as_var in \
19386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19388 LC_TELEPHONE LC_TIME
19390 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19391 eval $as_var=C; export $as_var
19392 else
19393 $as_unset $as_var
19395 done
19397 # Required to use basename.
19398 if expr a : '\(a\)' >/dev/null 2>&1; then
19399 as_expr=expr
19400 else
19401 as_expr=false
19404 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19405 as_basename=basename
19406 else
19407 as_basename=false
19411 # Name of the executable.
19412 as_me=`$as_basename "$0" ||
19413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19414 X"$0" : 'X\(//\)$' \| \
19415 X"$0" : 'X\(/\)$' \| \
19416 . : '\(.\)' 2>/dev/null ||
19417 echo X/"$0" |
19418 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19419 /^X\/\(\/\/\)$/{ s//\1/; q; }
19420 /^X\/\(\/\).*/{ s//\1/; q; }
19421 s/.*/./; q'`
19424 # PATH needs CR, and LINENO needs CR and PATH.
19425 # Avoid depending upon Character Ranges.
19426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19429 as_cr_digits='0123456789'
19430 as_cr_alnum=$as_cr_Letters$as_cr_digits
19432 # The user is always right.
19433 if test "${PATH_SEPARATOR+set}" != set; then
19434 echo "#! /bin/sh" >conf$$.sh
19435 echo "exit 0" >>conf$$.sh
19436 chmod +x conf$$.sh
19437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19438 PATH_SEPARATOR=';'
19439 else
19440 PATH_SEPARATOR=:
19442 rm -f conf$$.sh
19446 as_lineno_1=$LINENO
19447 as_lineno_2=$LINENO
19448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19449 test "x$as_lineno_1" != "x$as_lineno_2" &&
19450 test "x$as_lineno_3" = "x$as_lineno_2" || {
19451 # Find who we are. Look in the path if we contain no path at all
19452 # relative or not.
19453 case $0 in
19454 *[\\/]* ) as_myself=$0 ;;
19455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19456 for as_dir in $PATH
19458 IFS=$as_save_IFS
19459 test -z "$as_dir" && as_dir=.
19460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19461 done
19464 esac
19465 # We did not find ourselves, most probably we were run as `sh COMMAND'
19466 # in which case we are not to be found in the path.
19467 if test "x$as_myself" = x; then
19468 as_myself=$0
19470 if test ! -f "$as_myself"; then
19471 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19472 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19473 { (exit 1); exit 1; }; }
19475 case $CONFIG_SHELL in
19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19478 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19480 IFS=$as_save_IFS
19481 test -z "$as_dir" && as_dir=.
19482 for as_base in sh bash ksh sh5; do
19483 case $as_dir in
19485 if ("$as_dir/$as_base" -c '
19486 as_lineno_1=$LINENO
19487 as_lineno_2=$LINENO
19488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19489 test "x$as_lineno_1" != "x$as_lineno_2" &&
19490 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19491 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19492 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19493 CONFIG_SHELL=$as_dir/$as_base
19494 export CONFIG_SHELL
19495 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19496 fi;;
19497 esac
19498 done
19499 done
19501 esac
19503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19504 # uniformly replaced by the line number. The first 'sed' inserts a
19505 # line-number line before each line; the second 'sed' does the real
19506 # work. The second script uses 'N' to pair each line-number line
19507 # with the numbered line, and appends trailing '-' during
19508 # substitution so that $LINENO is not a special case at line end.
19509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19510 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19511 sed '=' <$as_myself |
19512 sed '
19514 s,$,-,
19515 : loop
19516 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19517 t loop
19518 s,-$,,
19519 s,^['$as_cr_digits']*\n,,
19520 ' >$as_me.lineno &&
19521 chmod +x $as_me.lineno ||
19522 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19523 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19524 { (exit 1); exit 1; }; }
19526 # Don't try to exec as it changes $[0], causing all sort of problems
19527 # (the dirname of $[0] is not the place where we might find the
19528 # original and so on. Autoconf is especially sensible to this).
19529 . ./$as_me.lineno
19530 # Exit status is that of the last command.
19531 exit
19535 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19536 *c*,-n*) ECHO_N= ECHO_C='
19537 ' ECHO_T=' ' ;;
19538 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19539 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19540 esac
19542 if expr a : '\(a\)' >/dev/null 2>&1; then
19543 as_expr=expr
19544 else
19545 as_expr=false
19548 rm -f conf$$ conf$$.exe conf$$.file
19549 echo >conf$$.file
19550 if ln -s conf$$.file conf$$ 2>/dev/null; then
19551 # We could just check for DJGPP; but this test a) works b) is more generic
19552 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19553 if test -f conf$$.exe; then
19554 # Don't use ln at all; we don't have any links
19555 as_ln_s='cp -p'
19556 else
19557 as_ln_s='ln -s'
19559 elif ln conf$$.file conf$$ 2>/dev/null; then
19560 as_ln_s=ln
19561 else
19562 as_ln_s='cp -p'
19564 rm -f conf$$ conf$$.exe conf$$.file
19566 if mkdir -p . 2>/dev/null; then
19567 as_mkdir_p=:
19568 else
19569 test -d ./-p && rmdir ./-p
19570 as_mkdir_p=false
19573 as_executable_p="test -f"
19575 # Sed expression to map a string onto a valid CPP name.
19576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19578 # Sed expression to map a string onto a valid variable name.
19579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19582 # IFS
19583 # We need space, tab and new line, in precisely that order.
19584 as_nl='
19586 IFS=" $as_nl"
19588 # CDPATH.
19589 $as_unset CDPATH
19591 exec 6>&1
19593 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19594 # report actual input values of CONFIG_FILES etc. instead of their
19595 # values after options handling. Logging --version etc. is OK.
19596 exec 5>>config.log
19598 echo
19599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19600 ## Running $as_me. ##
19601 _ASBOX
19602 } >&5
19603 cat >&5 <<_CSEOF
19605 This file was extended by Wine $as_me 20040213, which was
19606 generated by GNU Autoconf 2.59. Invocation command line was
19608 CONFIG_FILES = $CONFIG_FILES
19609 CONFIG_HEADERS = $CONFIG_HEADERS
19610 CONFIG_LINKS = $CONFIG_LINKS
19611 CONFIG_COMMANDS = $CONFIG_COMMANDS
19612 $ $0 $@
19614 _CSEOF
19615 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19616 echo >&5
19617 _ACEOF
19619 # Files that config.status was made for.
19620 if test -n "$ac_config_files"; then
19621 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19624 if test -n "$ac_config_headers"; then
19625 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19628 if test -n "$ac_config_links"; then
19629 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19632 if test -n "$ac_config_commands"; then
19633 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19636 cat >>$CONFIG_STATUS <<\_ACEOF
19638 ac_cs_usage="\
19639 \`$as_me' instantiates files from templates according to the
19640 current configuration.
19642 Usage: $0 [OPTIONS] [FILE]...
19644 -h, --help print this help, then exit
19645 -V, --version print version number, then exit
19646 -q, --quiet do not print progress messages
19647 -d, --debug don't remove temporary files
19648 --recheck update $as_me by reconfiguring in the same conditions
19649 --file=FILE[:TEMPLATE]
19650 instantiate the configuration file FILE
19651 --header=FILE[:TEMPLATE]
19652 instantiate the configuration header FILE
19654 Configuration files:
19655 $config_files
19657 Configuration headers:
19658 $config_headers
19660 Configuration commands:
19661 $config_commands
19663 Report bugs to <bug-autoconf@gnu.org>."
19664 _ACEOF
19666 cat >>$CONFIG_STATUS <<_ACEOF
19667 ac_cs_version="\\
19668 Wine config.status 20040213
19669 configured by $0, generated by GNU Autoconf 2.59,
19670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19672 Copyright (C) 2003 Free Software Foundation, Inc.
19673 This config.status script is free software; the Free Software Foundation
19674 gives unlimited permission to copy, distribute and modify it."
19675 srcdir=$srcdir
19676 INSTALL="$INSTALL"
19677 _ACEOF
19679 cat >>$CONFIG_STATUS <<\_ACEOF
19680 # If no file are specified by the user, then we need to provide default
19681 # value. By we need to know if files were specified by the user.
19682 ac_need_defaults=:
19683 while test $# != 0
19685 case $1 in
19686 --*=*)
19687 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19688 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19689 ac_shift=:
19692 ac_option=$1
19693 ac_optarg=$2
19694 ac_shift=shift
19696 *) # This is not an option, so the user has probably given explicit
19697 # arguments.
19698 ac_option=$1
19699 ac_need_defaults=false;;
19700 esac
19702 case $ac_option in
19703 # Handling of the options.
19704 _ACEOF
19705 cat >>$CONFIG_STATUS <<\_ACEOF
19706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19707 ac_cs_recheck=: ;;
19708 --version | --vers* | -V )
19709 echo "$ac_cs_version"; exit 0 ;;
19710 --he | --h)
19711 # Conflict between --help and --header
19712 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19713 Try \`$0 --help' for more information." >&5
19714 echo "$as_me: error: ambiguous option: $1
19715 Try \`$0 --help' for more information." >&2;}
19716 { (exit 1); exit 1; }; };;
19717 --help | --hel | -h )
19718 echo "$ac_cs_usage"; exit 0 ;;
19719 --debug | --d* | -d )
19720 debug=: ;;
19721 --file | --fil | --fi | --f )
19722 $ac_shift
19723 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19724 ac_need_defaults=false;;
19725 --header | --heade | --head | --hea )
19726 $ac_shift
19727 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19728 ac_need_defaults=false;;
19729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19731 ac_cs_silent=: ;;
19733 # This is an error.
19734 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19735 Try \`$0 --help' for more information." >&5
19736 echo "$as_me: error: unrecognized option: $1
19737 Try \`$0 --help' for more information." >&2;}
19738 { (exit 1); exit 1; }; } ;;
19740 *) ac_config_targets="$ac_config_targets $1" ;;
19742 esac
19743 shift
19744 done
19746 ac_configure_extra_args=
19748 if $ac_cs_silent; then
19749 exec 6>/dev/null
19750 ac_configure_extra_args="$ac_configure_extra_args --silent"
19753 _ACEOF
19754 cat >>$CONFIG_STATUS <<_ACEOF
19755 if \$ac_cs_recheck; then
19756 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19757 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19760 _ACEOF
19766 cat >>$CONFIG_STATUS <<\_ACEOF
19767 for ac_config_target in $ac_config_targets
19769 case "$ac_config_target" in
19770 # Handling of arguments.
19771 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19772 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19773 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19774 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19775 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19776 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19777 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19778 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19779 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19780 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19781 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19782 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19783 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19784 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19785 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19786 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19787 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19788 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19789 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19790 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19791 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19792 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19793 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19794 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19795 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19796 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19797 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19798 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19799 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19800 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19801 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19802 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19803 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19804 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19805 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19806 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19807 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19808 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19809 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19810 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19811 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19812 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19813 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19814 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19815 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19816 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
19817 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
19818 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19819 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19820 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19821 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19822 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19823 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19824 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
19825 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19826 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19827 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19828 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19829 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19830 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19831 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19832 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19833 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
19834 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
19835 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19836 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19837 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19838 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19839 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19840 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19841 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19842 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19843 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19844 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19845 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19846 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19847 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
19848 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19849 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19850 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19851 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19852 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19853 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
19854 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19855 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19856 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19857 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19858 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19859 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19860 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19861 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19862 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19863 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19864 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19865 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19866 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19867 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19868 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19869 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19870 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19871 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19872 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19873 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19874 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19875 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19876 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19877 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19878 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
19879 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19880 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19881 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19882 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19883 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19884 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19885 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19886 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19887 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19888 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19889 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19890 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19891 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19892 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19893 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19894 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19895 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19896 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19897 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19898 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
19899 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19900 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
19901 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19902 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
19903 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
19904 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
19905 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
19906 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
19907 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19908 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19909 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19910 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19911 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19912 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19913 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19914 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19915 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19916 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19917 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19918 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19919 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19920 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19921 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19922 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19923 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19924 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19925 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19926 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19927 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19928 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19929 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19930 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19931 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19932 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19933 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19934 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19935 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19936 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19937 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19938 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19939 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19940 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19941 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19942 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19943 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19944 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19945 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19946 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19947 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19948 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19949 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19950 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19951 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19952 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19953 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19954 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19955 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19956 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19957 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19958 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19959 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19960 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19961 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19962 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19963 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19964 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19965 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
19966 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19967 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19968 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19969 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19970 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19971 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19972 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19973 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19974 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19975 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19976 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19977 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19978 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19979 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19980 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19981 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19982 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19983 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19984 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19985 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19986 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
19987 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
19988 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
19989 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
19990 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
19991 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
19992 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
19993 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19994 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19995 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19996 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
19997 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19998 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19999 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
20000 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20001 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20002 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20003 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20004 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20005 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20006 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20007 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20008 { (exit 1); exit 1; }; };;
20009 esac
20010 done
20012 # If the user did not use the arguments to specify the items to instantiate,
20013 # then the envvar interface is used. Set only those that are not.
20014 # We use the long form for the default assignment because of an extremely
20015 # bizarre bug on SunOS 4.1.3.
20016 if $ac_need_defaults; then
20017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20019 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20022 # Have a temporary directory for convenience. Make it in the build tree
20023 # simply because there is no reason to put it here, and in addition,
20024 # creating and moving files from /tmp can sometimes cause problems.
20025 # Create a temporary directory, and hook for its removal unless debugging.
20026 $debug ||
20028 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20029 trap '{ (exit 1); exit 1; }' 1 2 13 15
20032 # Create a (secure) tmp directory for tmp files.
20035 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20036 test -n "$tmp" && test -d "$tmp"
20037 } ||
20039 tmp=./confstat$$-$RANDOM
20040 (umask 077 && mkdir $tmp)
20041 } ||
20043 echo "$me: cannot create a temporary directory in ." >&2
20044 { (exit 1); exit 1; }
20047 _ACEOF
20049 cat >>$CONFIG_STATUS <<_ACEOF
20052 # CONFIG_FILES section.
20055 # No need to generate the scripts if there are no CONFIG_FILES.
20056 # This happens for instance when ./config.status config.h
20057 if test -n "\$CONFIG_FILES"; then
20058 # Protect against being on the right side of a sed subst in config.status.
20059 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20060 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20061 s,@SHELL@,$SHELL,;t t
20062 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20063 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20064 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20065 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20066 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20067 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20068 s,@exec_prefix@,$exec_prefix,;t t
20069 s,@prefix@,$prefix,;t t
20070 s,@program_transform_name@,$program_transform_name,;t t
20071 s,@bindir@,$bindir,;t t
20072 s,@sbindir@,$sbindir,;t t
20073 s,@libexecdir@,$libexecdir,;t t
20074 s,@datadir@,$datadir,;t t
20075 s,@sysconfdir@,$sysconfdir,;t t
20076 s,@sharedstatedir@,$sharedstatedir,;t t
20077 s,@localstatedir@,$localstatedir,;t t
20078 s,@libdir@,$libdir,;t t
20079 s,@includedir@,$includedir,;t t
20080 s,@oldincludedir@,$oldincludedir,;t t
20081 s,@infodir@,$infodir,;t t
20082 s,@mandir@,$mandir,;t t
20083 s,@build_alias@,$build_alias,;t t
20084 s,@host_alias@,$host_alias,;t t
20085 s,@target_alias@,$target_alias,;t t
20086 s,@DEFS@,$DEFS,;t t
20087 s,@ECHO_C@,$ECHO_C,;t t
20088 s,@ECHO_N@,$ECHO_N,;t t
20089 s,@ECHO_T@,$ECHO_T,;t t
20090 s,@LIBS@,$LIBS,;t t
20091 s,@WIN16_FILES@,$WIN16_FILES,;t t
20092 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20093 s,@build@,$build,;t t
20094 s,@build_cpu@,$build_cpu,;t t
20095 s,@build_vendor@,$build_vendor,;t t
20096 s,@build_os@,$build_os,;t t
20097 s,@host@,$host,;t t
20098 s,@host_cpu@,$host_cpu,;t t
20099 s,@host_vendor@,$host_vendor,;t t
20100 s,@host_os@,$host_os,;t t
20101 s,@SET_MAKE@,$SET_MAKE,;t t
20102 s,@CC@,$CC,;t t
20103 s,@CFLAGS@,$CFLAGS,;t t
20104 s,@LDFLAGS@,$LDFLAGS,;t t
20105 s,@CPPFLAGS@,$CPPFLAGS,;t t
20106 s,@ac_ct_CC@,$ac_ct_CC,;t t
20107 s,@EXEEXT@,$EXEEXT,;t t
20108 s,@OBJEXT@,$OBJEXT,;t t
20109 s,@CXX@,$CXX,;t t
20110 s,@CXXFLAGS@,$CXXFLAGS,;t t
20111 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20112 s,@CPP@,$CPP,;t t
20113 s,@TOOLSDIR@,$TOOLSDIR,;t t
20114 s,@X_CFLAGS@,$X_CFLAGS,;t t
20115 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20116 s,@X_LIBS@,$X_LIBS,;t t
20117 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20118 s,@YACC@,$YACC,;t t
20119 s,@LEX@,$LEX,;t t
20120 s,@LEXLIB@,$LEXLIB,;t t
20121 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20122 s,@XYACC@,$XYACC,;t t
20123 s,@XLEX@,$XLEX,;t t
20124 s,@AS@,$AS,;t t
20125 s,@ac_ct_AS@,$ac_ct_AS,;t t
20126 s,@LD@,$LD,;t t
20127 s,@ac_ct_LD@,$ac_ct_LD,;t t
20128 s,@AR@,$AR,;t t
20129 s,@ac_ct_AR@,$ac_ct_AR,;t t
20130 s,@RANLIB@,$RANLIB,;t t
20131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20132 s,@STRIP@,$STRIP,;t t
20133 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20134 s,@WINDRES@,$WINDRES,;t t
20135 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20136 s,@LN_S@,$LN_S,;t t
20137 s,@LN@,$LN,;t t
20138 s,@LDCONFIG@,$LDCONFIG,;t t
20139 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20140 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20141 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20142 s,@LINT@,$LINT,;t t
20143 s,@LINTFLAGS@,$LINTFLAGS,;t t
20144 s,@DB2HTML@,$DB2HTML,;t t
20145 s,@DB2PDF@,$DB2PDF,;t t
20146 s,@DB2PS@,$DB2PS,;t t
20147 s,@DB2TXT@,$DB2TXT,;t t
20148 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20149 s,@JPEGLIB@,$JPEGLIB,;t t
20150 s,@EGREP@,$EGREP,;t t
20151 s,@GIFLIB@,$GIFLIB,;t t
20152 s,@XLIB@,$XLIB,;t t
20153 s,@XFILES@,$XFILES,;t t
20154 s,@OPENGLFILES@,$OPENGLFILES,;t t
20155 s,@GLU32FILES@,$GLU32FILES,;t t
20156 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20157 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20158 s,@GLUT32FILES@,$GLUT32FILES,;t t
20159 s,@NASLIBS@,$NASLIBS,;t t
20160 s,@CURSESLIBS@,$CURSESLIBS,;t t
20161 s,@sane_devel@,$sane_devel,;t t
20162 s,@SANELIBS@,$SANELIBS,;t t
20163 s,@SANEINCL@,$SANEINCL,;t t
20164 s,@ICULIBS@,$ICULIBS,;t t
20165 s,@ft_devel@,$ft_devel,;t t
20166 s,@ft_devel2@,$ft_devel2,;t t
20167 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20168 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20169 s,@ARTSLIBS@,$ARTSLIBS,;t t
20170 s,@ARTSINCL@,$ARTSINCL,;t t
20171 s,@ALSALIBS@,$ALSALIBS,;t t
20172 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20173 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20174 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20175 s,@DLLEXT@,$DLLEXT,;t t
20176 s,@DLLFLAGS@,$DLLFLAGS,;t t
20177 s,@DLLIBS@,$DLLIBS,;t t
20178 s,@LDSHARED@,$LDSHARED,;t t
20179 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20180 s,@LIBEXT@,$LIBEXT,;t t
20181 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20182 s,@DLLTOOL@,$DLLTOOL,;t t
20183 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20184 s,@DLLWRAP@,$DLLWRAP,;t t
20185 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20186 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20187 s,@CROSSTEST@,$CROSSTEST,;t t
20188 s,@CROSSCC@,$CROSSCC,;t t
20189 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20190 s,@LDPATH@,$LDPATH,;t t
20191 s,@CRTLIBS@,$CRTLIBS,;t t
20192 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20193 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20194 s,@LDD@,$LDD,;t t
20195 s,@ALLOCA@,$ALLOCA,;t t
20196 s,@LIBOBJS@,$LIBOBJS,;t t
20197 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20198 /@MAKE_RULES@/r $MAKE_RULES
20199 s,@MAKE_RULES@,,;t t
20200 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20201 s,@MAKE_DLL_RULES@,,;t t
20202 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20203 s,@MAKE_TEST_RULES@,,;t t
20204 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20205 s,@MAKE_LIB_RULES@,,;t t
20206 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20207 s,@MAKE_PROG_RULES@,,;t t
20208 CEOF
20210 _ACEOF
20212 cat >>$CONFIG_STATUS <<\_ACEOF
20213 # Split the substitutions into bite-sized pieces for seds with
20214 # small command number limits, like on Digital OSF/1 and HP-UX.
20215 ac_max_sed_lines=48
20216 ac_sed_frag=1 # Number of current file.
20217 ac_beg=1 # First line for current file.
20218 ac_end=$ac_max_sed_lines # Line after last line for current file.
20219 ac_more_lines=:
20220 ac_sed_cmds=
20221 while $ac_more_lines; do
20222 if test $ac_beg -gt 1; then
20223 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20224 else
20225 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20227 if test ! -s $tmp/subs.frag; then
20228 ac_more_lines=false
20229 else
20230 # The purpose of the label and of the branching condition is to
20231 # speed up the sed processing (if there are no `@' at all, there
20232 # is no need to browse any of the substitutions).
20233 # These are the two extra sed commands mentioned above.
20234 (echo ':t
20235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20236 if test -z "$ac_sed_cmds"; then
20237 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20238 else
20239 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20241 ac_sed_frag=`expr $ac_sed_frag + 1`
20242 ac_beg=$ac_end
20243 ac_end=`expr $ac_end + $ac_max_sed_lines`
20245 done
20246 if test -z "$ac_sed_cmds"; then
20247 ac_sed_cmds=cat
20249 fi # test -n "$CONFIG_FILES"
20251 _ACEOF
20252 cat >>$CONFIG_STATUS <<\_ACEOF
20253 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20255 case $ac_file in
20256 - | *:- | *:-:* ) # input from stdin
20257 cat >$tmp/stdin
20258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20262 * ) ac_file_in=$ac_file.in ;;
20263 esac
20265 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20266 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20267 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20268 X"$ac_file" : 'X\(//\)[^/]' \| \
20269 X"$ac_file" : 'X\(//\)$' \| \
20270 X"$ac_file" : 'X\(/\)' \| \
20271 . : '\(.\)' 2>/dev/null ||
20272 echo X"$ac_file" |
20273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20275 /^X\(\/\/\)$/{ s//\1/; q; }
20276 /^X\(\/\).*/{ s//\1/; q; }
20277 s/.*/./; q'`
20278 { if $as_mkdir_p; then
20279 mkdir -p "$ac_dir"
20280 else
20281 as_dir="$ac_dir"
20282 as_dirs=
20283 while test ! -d "$as_dir"; do
20284 as_dirs="$as_dir $as_dirs"
20285 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20287 X"$as_dir" : 'X\(//\)[^/]' \| \
20288 X"$as_dir" : 'X\(//\)$' \| \
20289 X"$as_dir" : 'X\(/\)' \| \
20290 . : '\(.\)' 2>/dev/null ||
20291 echo X"$as_dir" |
20292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20294 /^X\(\/\/\)$/{ s//\1/; q; }
20295 /^X\(\/\).*/{ s//\1/; q; }
20296 s/.*/./; q'`
20297 done
20298 test ! -n "$as_dirs" || mkdir $as_dirs
20299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20300 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20301 { (exit 1); exit 1; }; }; }
20303 ac_builddir=.
20305 if test "$ac_dir" != .; then
20306 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20307 # A "../" for each directory in $ac_dir_suffix.
20308 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20309 else
20310 ac_dir_suffix= ac_top_builddir=
20313 case $srcdir in
20314 .) # No --srcdir option. We are building in place.
20315 ac_srcdir=.
20316 if test -z "$ac_top_builddir"; then
20317 ac_top_srcdir=.
20318 else
20319 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20320 fi ;;
20321 [\\/]* | ?:[\\/]* ) # Absolute path.
20322 ac_srcdir=$srcdir$ac_dir_suffix;
20323 ac_top_srcdir=$srcdir ;;
20324 *) # Relative path.
20325 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20326 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20327 esac
20329 # Do not use `cd foo && pwd` to compute absolute paths, because
20330 # the directories may not exist.
20331 case `pwd` in
20332 .) ac_abs_builddir="$ac_dir";;
20334 case "$ac_dir" in
20335 .) ac_abs_builddir=`pwd`;;
20336 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20337 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20338 esac;;
20339 esac
20340 case $ac_abs_builddir in
20341 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20343 case ${ac_top_builddir}. in
20344 .) ac_abs_top_builddir=$ac_abs_builddir;;
20345 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20346 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20347 esac;;
20348 esac
20349 case $ac_abs_builddir in
20350 .) ac_abs_srcdir=$ac_srcdir;;
20352 case $ac_srcdir in
20353 .) ac_abs_srcdir=$ac_abs_builddir;;
20354 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20355 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20356 esac;;
20357 esac
20358 case $ac_abs_builddir in
20359 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20361 case $ac_top_srcdir in
20362 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20363 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20364 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20365 esac;;
20366 esac
20369 case $INSTALL in
20370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20371 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20372 esac
20374 # Let's still pretend it is `configure' which instantiates (i.e., don't
20375 # use $as_me), people would be surprised to read:
20376 # /* config.h. Generated by config.status. */
20377 if test x"$ac_file" = x-; then
20378 configure_input=
20379 else
20380 configure_input="$ac_file. "
20382 configure_input=$configure_input"Generated from `echo $ac_file_in |
20383 sed 's,.*/,,'` by configure."
20385 # First look for the input files in the build tree, otherwise in the
20386 # src tree.
20387 ac_file_inputs=`IFS=:
20388 for f in $ac_file_in; do
20389 case $f in
20390 -) echo $tmp/stdin ;;
20391 [\\/$]*)
20392 # Absolute (can't be DOS-style, as IFS=:)
20393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20394 echo "$as_me: error: cannot find input file: $f" >&2;}
20395 { (exit 1); exit 1; }; }
20396 echo "$f";;
20397 *) # Relative
20398 if test -f "$f"; then
20399 # Build tree
20400 echo "$f"
20401 elif test -f "$srcdir/$f"; then
20402 # Source tree
20403 echo "$srcdir/$f"
20404 else
20405 # /dev/null tree
20406 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20407 echo "$as_me: error: cannot find input file: $f" >&2;}
20408 { (exit 1); exit 1; }; }
20409 fi;;
20410 esac
20411 done` || { (exit 1); exit 1; }
20413 if test x"$ac_file" != x-; then
20414 { echo "$as_me:$LINENO: creating $ac_file" >&5
20415 echo "$as_me: creating $ac_file" >&6;}
20416 rm -f "$ac_file"
20418 _ACEOF
20419 cat >>$CONFIG_STATUS <<_ACEOF
20420 sed "$ac_vpsub
20421 $extrasub
20422 _ACEOF
20423 cat >>$CONFIG_STATUS <<\_ACEOF
20425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20426 s,@configure_input@,$configure_input,;t t
20427 s,@srcdir@,$ac_srcdir,;t t
20428 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20429 s,@top_srcdir@,$ac_top_srcdir,;t t
20430 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20431 s,@builddir@,$ac_builddir,;t t
20432 s,@abs_builddir@,$ac_abs_builddir,;t t
20433 s,@top_builddir@,$ac_top_builddir,;t t
20434 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20435 s,@INSTALL@,$ac_INSTALL,;t t
20436 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20437 rm -f $tmp/stdin
20438 if test x"$ac_file" != x-; then
20439 mv $tmp/out $ac_file
20440 else
20441 cat $tmp/out
20442 rm -f $tmp/out
20445 done
20446 _ACEOF
20447 cat >>$CONFIG_STATUS <<\_ACEOF
20450 # CONFIG_HEADER section.
20453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20456 # ac_d sets the value in "#define NAME VALUE" lines.
20457 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20458 ac_dB='[ ].*$,\1#\2'
20459 ac_dC=' '
20460 ac_dD=',;t'
20461 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20462 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20463 ac_uB='$,\1#\2define\3'
20464 ac_uC=' '
20465 ac_uD=',;t'
20467 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20469 case $ac_file in
20470 - | *:- | *:-:* ) # input from stdin
20471 cat >$tmp/stdin
20472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20476 * ) ac_file_in=$ac_file.in ;;
20477 esac
20479 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20480 echo "$as_me: creating $ac_file" >&6;}
20482 # First look for the input files in the build tree, otherwise in the
20483 # src tree.
20484 ac_file_inputs=`IFS=:
20485 for f in $ac_file_in; do
20486 case $f in
20487 -) echo $tmp/stdin ;;
20488 [\\/$]*)
20489 # Absolute (can't be DOS-style, as IFS=:)
20490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20491 echo "$as_me: error: cannot find input file: $f" >&2;}
20492 { (exit 1); exit 1; }; }
20493 # Do quote $f, to prevent DOS paths from being IFS'd.
20494 echo "$f";;
20495 *) # Relative
20496 if test -f "$f"; then
20497 # Build tree
20498 echo "$f"
20499 elif test -f "$srcdir/$f"; then
20500 # Source tree
20501 echo "$srcdir/$f"
20502 else
20503 # /dev/null tree
20504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20505 echo "$as_me: error: cannot find input file: $f" >&2;}
20506 { (exit 1); exit 1; }; }
20507 fi;;
20508 esac
20509 done` || { (exit 1); exit 1; }
20510 # Remove the trailing spaces.
20511 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20513 _ACEOF
20515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20516 # `conftest.undefs', that substitutes the proper values into
20517 # config.h.in to produce config.h. The first handles `#define'
20518 # templates, and the second `#undef' templates.
20519 # And first: Protect against being on the right side of a sed subst in
20520 # config.status. Protect against being in an unquoted here document
20521 # in config.status.
20522 rm -f conftest.defines conftest.undefs
20523 # Using a here document instead of a string reduces the quoting nightmare.
20524 # Putting comments in sed scripts is not portable.
20526 # `end' is used to avoid that the second main sed command (meant for
20527 # 0-ary CPP macros) applies to n-ary macro definitions.
20528 # See the Autoconf documentation for `clear'.
20529 cat >confdef2sed.sed <<\_ACEOF
20530 s/[\\&,]/\\&/g
20531 s,[\\$`],\\&,g
20532 t clear
20533 : clear
20534 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20535 t end
20536 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20537 : end
20538 _ACEOF
20539 # If some macros were called several times there might be several times
20540 # the same #defines, which is useless. Nevertheless, we may not want to
20541 # sort them, since we want the *last* AC-DEFINE to be honored.
20542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20544 rm -f confdef2sed.sed
20546 # This sed command replaces #undef with comments. This is necessary, for
20547 # example, in the case of _POSIX_SOURCE, which is predefined and required
20548 # on some systems where configure will not decide to define it.
20549 cat >>conftest.undefs <<\_ACEOF
20550 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20551 _ACEOF
20553 # Break up conftest.defines because some shells have a limit on the size
20554 # of here documents, and old seds have small limits too (100 cmds).
20555 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20556 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20557 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20558 echo ' :' >>$CONFIG_STATUS
20559 rm -f conftest.tail
20560 while grep . conftest.defines >/dev/null
20562 # Write a limited-size here document to $tmp/defines.sed.
20563 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20564 # Speed up: don't consider the non `#define' lines.
20565 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20566 # Work around the forget-to-reset-the-flag bug.
20567 echo 't clr' >>$CONFIG_STATUS
20568 echo ': clr' >>$CONFIG_STATUS
20569 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20570 echo 'CEOF
20571 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20572 rm -f $tmp/in
20573 mv $tmp/out $tmp/in
20574 ' >>$CONFIG_STATUS
20575 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20576 rm -f conftest.defines
20577 mv conftest.tail conftest.defines
20578 done
20579 rm -f conftest.defines
20580 echo ' fi # grep' >>$CONFIG_STATUS
20581 echo >>$CONFIG_STATUS
20583 # Break up conftest.undefs because some shells have a limit on the size
20584 # of here documents, and old seds have small limits too (100 cmds).
20585 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20586 rm -f conftest.tail
20587 while grep . conftest.undefs >/dev/null
20589 # Write a limited-size here document to $tmp/undefs.sed.
20590 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20591 # Speed up: don't consider the non `#undef'
20592 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20593 # Work around the forget-to-reset-the-flag bug.
20594 echo 't clr' >>$CONFIG_STATUS
20595 echo ': clr' >>$CONFIG_STATUS
20596 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20597 echo 'CEOF
20598 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20599 rm -f $tmp/in
20600 mv $tmp/out $tmp/in
20601 ' >>$CONFIG_STATUS
20602 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20603 rm -f conftest.undefs
20604 mv conftest.tail conftest.undefs
20605 done
20606 rm -f conftest.undefs
20608 cat >>$CONFIG_STATUS <<\_ACEOF
20609 # Let's still pretend it is `configure' which instantiates (i.e., don't
20610 # use $as_me), people would be surprised to read:
20611 # /* config.h. Generated by config.status. */
20612 if test x"$ac_file" = x-; then
20613 echo "/* Generated by configure. */" >$tmp/config.h
20614 else
20615 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20617 cat $tmp/in >>$tmp/config.h
20618 rm -f $tmp/in
20619 if test x"$ac_file" != x-; then
20620 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20621 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20622 echo "$as_me: $ac_file is unchanged" >&6;}
20623 else
20624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20626 X"$ac_file" : 'X\(//\)[^/]' \| \
20627 X"$ac_file" : 'X\(//\)$' \| \
20628 X"$ac_file" : 'X\(/\)' \| \
20629 . : '\(.\)' 2>/dev/null ||
20630 echo X"$ac_file" |
20631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20633 /^X\(\/\/\)$/{ s//\1/; q; }
20634 /^X\(\/\).*/{ s//\1/; q; }
20635 s/.*/./; q'`
20636 { if $as_mkdir_p; then
20637 mkdir -p "$ac_dir"
20638 else
20639 as_dir="$ac_dir"
20640 as_dirs=
20641 while test ! -d "$as_dir"; do
20642 as_dirs="$as_dir $as_dirs"
20643 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20645 X"$as_dir" : 'X\(//\)[^/]' \| \
20646 X"$as_dir" : 'X\(//\)$' \| \
20647 X"$as_dir" : 'X\(/\)' \| \
20648 . : '\(.\)' 2>/dev/null ||
20649 echo X"$as_dir" |
20650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20652 /^X\(\/\/\)$/{ s//\1/; q; }
20653 /^X\(\/\).*/{ s//\1/; q; }
20654 s/.*/./; q'`
20655 done
20656 test ! -n "$as_dirs" || mkdir $as_dirs
20657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20659 { (exit 1); exit 1; }; }; }
20661 rm -f $ac_file
20662 mv $tmp/config.h $ac_file
20664 else
20665 cat $tmp/config.h
20666 rm -f $tmp/config.h
20668 done
20669 _ACEOF
20670 cat >>$CONFIG_STATUS <<\_ACEOF
20673 # CONFIG_COMMANDS section.
20675 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20676 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20677 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20678 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20679 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20680 X"$ac_dest" : 'X\(//\)[^/]' \| \
20681 X"$ac_dest" : 'X\(//\)$' \| \
20682 X"$ac_dest" : 'X\(/\)' \| \
20683 . : '\(.\)' 2>/dev/null ||
20684 echo X"$ac_dest" |
20685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20687 /^X\(\/\/\)$/{ s//\1/; q; }
20688 /^X\(\/\).*/{ s//\1/; q; }
20689 s/.*/./; q'`
20690 { if $as_mkdir_p; then
20691 mkdir -p "$ac_dir"
20692 else
20693 as_dir="$ac_dir"
20694 as_dirs=
20695 while test ! -d "$as_dir"; do
20696 as_dirs="$as_dir $as_dirs"
20697 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20699 X"$as_dir" : 'X\(//\)[^/]' \| \
20700 X"$as_dir" : 'X\(//\)$' \| \
20701 X"$as_dir" : 'X\(/\)' \| \
20702 . : '\(.\)' 2>/dev/null ||
20703 echo X"$as_dir" |
20704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20706 /^X\(\/\/\)$/{ s//\1/; q; }
20707 /^X\(\/\).*/{ s//\1/; q; }
20708 s/.*/./; q'`
20709 done
20710 test ! -n "$as_dirs" || mkdir $as_dirs
20711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20713 { (exit 1); exit 1; }; }; }
20715 ac_builddir=.
20717 if test "$ac_dir" != .; then
20718 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20719 # A "../" for each directory in $ac_dir_suffix.
20720 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20721 else
20722 ac_dir_suffix= ac_top_builddir=
20725 case $srcdir in
20726 .) # No --srcdir option. We are building in place.
20727 ac_srcdir=.
20728 if test -z "$ac_top_builddir"; then
20729 ac_top_srcdir=.
20730 else
20731 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20732 fi ;;
20733 [\\/]* | ?:[\\/]* ) # Absolute path.
20734 ac_srcdir=$srcdir$ac_dir_suffix;
20735 ac_top_srcdir=$srcdir ;;
20736 *) # Relative path.
20737 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20738 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20739 esac
20741 # Do not use `cd foo && pwd` to compute absolute paths, because
20742 # the directories may not exist.
20743 case `pwd` in
20744 .) ac_abs_builddir="$ac_dir";;
20746 case "$ac_dir" in
20747 .) ac_abs_builddir=`pwd`;;
20748 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20749 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20750 esac;;
20751 esac
20752 case $ac_abs_builddir in
20753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20755 case ${ac_top_builddir}. in
20756 .) ac_abs_top_builddir=$ac_abs_builddir;;
20757 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20758 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20759 esac;;
20760 esac
20761 case $ac_abs_builddir in
20762 .) ac_abs_srcdir=$ac_srcdir;;
20764 case $ac_srcdir in
20765 .) ac_abs_srcdir=$ac_abs_builddir;;
20766 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20767 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20768 esac;;
20769 esac
20770 case $ac_abs_builddir in
20771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20773 case $ac_top_srcdir in
20774 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20775 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20776 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20777 esac;;
20778 esac
20781 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20782 echo "$as_me: executing $ac_dest commands" >&6;}
20783 case $ac_dest in
20784 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20785 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20786 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20787 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20788 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20789 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20790 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20791 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20792 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20793 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20794 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20795 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20796 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20797 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20798 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20799 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20800 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20801 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20802 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20803 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20804 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20805 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20806 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20807 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20808 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20809 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20810 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20811 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20812 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20813 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20814 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20815 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20816 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20817 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20818 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20819 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20820 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20821 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20822 esac
20823 done
20824 _ACEOF
20826 cat >>$CONFIG_STATUS <<\_ACEOF
20828 { (exit 0); exit 0; }
20829 _ACEOF
20830 chmod +x $CONFIG_STATUS
20831 ac_clean_files=$ac_clean_files_save
20834 # configure is writing to config.log, and then calls config.status.
20835 # config.status does its own redirection, appending to config.log.
20836 # Unfortunately, on DOS this fails, as config.log is still kept open
20837 # by configure, so config.status won't be able to write to it; its
20838 # output is simply discarded. So we exec the FD to /dev/null,
20839 # effectively closing config.log, so it can be properly (re)opened and
20840 # appended to by config.status. When coming back to configure, we
20841 # need to make the FD available again.
20842 if test "$no_create" != yes; then
20843 ac_cs_success=:
20844 ac_config_status_args=
20845 test "$silent" = yes &&
20846 ac_config_status_args="$ac_config_status_args --quiet"
20847 exec 5>/dev/null
20848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20849 exec 5>>config.log
20850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20851 # would make configure fail if this is the last instruction.
20852 $ac_cs_success || { (exit 1); exit 1; }
20856 if test "$have_x" = "no"
20857 then
20858 echo
20859 echo "*** Warning: X development files not found. Wine will be built without"
20860 echo "*** X support, which currently does not work, and would probably not be"
20861 echo "*** what you want anyway. You will need to install devel packages of"
20862 echo "*** Xlib/Xfree86 at the very least."
20865 if test "$wine_cv_opengl_version_OK" = "no"
20866 then
20867 echo
20868 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20869 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20872 if test "$wine_cv_msg_freetype" = "yes"
20873 then
20874 echo
20875 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20876 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20877 echo "*** freetype-devel package (or its equivalent on your distribution) to"
20878 echo "*** enable Wine to use TrueType fonts."
20881 echo
20882 echo "Configure finished. Do 'make depend && make' to compile Wine."
20883 echo