Move implementation of SysParametersInfo from Ascii to Unicode.
[wine.git] / configure
blob8674f3ef51b6c2e7a6cc70f666f6ccaa8bd1d85a
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 CPPBIN ac_ct_CPPBIN TOOLSDIR CPP 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 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
2824 # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CPPBIN="cpp"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CPPBIN=$ac_ct_CPPBIN
2861 else
2862 CPPBIN="$ac_cv_prog_CPPBIN"
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for X" >&5
3132 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135 # Check whether --with-x or --without-x was given.
3136 if test "${with_x+set}" = set; then
3137 withval="$with_x"
3140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3141 if test "x$with_x" = xno; then
3142 # The user explicitly disabled X.
3143 have_x=disabled
3144 else
3145 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3146 # Both variables are already set.
3147 have_x=yes
3148 else
3149 if test "${ac_cv_have_x+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 # One or both of the vars are not set, and there is no cached value.
3153 ac_x_includes=no ac_x_libraries=no
3154 rm -fr conftest.dir
3155 if mkdir conftest.dir; then
3156 cd conftest.dir
3157 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3158 cat >Imakefile <<'_ACEOF'
3159 acfindx:
3160 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3161 _ACEOF
3162 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3164 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3165 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3166 for ac_extension in a so sl; do
3167 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3168 test -f $ac_im_libdir/libX11.$ac_extension; then
3169 ac_im_usrlibdir=$ac_im_libdir; break
3171 done
3172 # Screen out bogus values from the imake configuration. They are
3173 # bogus both because they are the default anyway, and because
3174 # using them would break gcc on systems where it needs fixed includes.
3175 case $ac_im_incroot in
3176 /usr/include) ;;
3177 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3178 esac
3179 case $ac_im_usrlibdir in
3180 /usr/lib | /lib) ;;
3181 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3182 esac
3184 cd ..
3185 rm -fr conftest.dir
3188 # Standard set of common directories for X headers.
3189 # Check X11 before X11Rn because it is often a symlink to the current release.
3190 ac_x_header_dirs='
3191 /usr/X11/include
3192 /usr/X11R6/include
3193 /usr/X11R5/include
3194 /usr/X11R4/include
3196 /usr/include/X11
3197 /usr/include/X11R6
3198 /usr/include/X11R5
3199 /usr/include/X11R4
3201 /usr/local/X11/include
3202 /usr/local/X11R6/include
3203 /usr/local/X11R5/include
3204 /usr/local/X11R4/include
3206 /usr/local/include/X11
3207 /usr/local/include/X11R6
3208 /usr/local/include/X11R5
3209 /usr/local/include/X11R4
3211 /usr/X386/include
3212 /usr/x386/include
3213 /usr/XFree86/include/X11
3215 /usr/include
3216 /usr/local/include
3217 /usr/unsupported/include
3218 /usr/athena/include
3219 /usr/local/x11r5/include
3220 /usr/lpp/Xamples/include
3222 /usr/openwin/include
3223 /usr/openwin/share/include'
3225 if test "$ac_x_includes" = no; then
3226 # Guess where to find include files, by looking for Intrinsic.h.
3227 # First, try using that file with no special directory specified.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <X11/Intrinsic.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3250 else
3251 ac_cpp_err=yes
3253 if test -z "$ac_cpp_err"; then
3254 # We can compile using X headers with no special include directory.
3255 ac_x_includes=
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 for ac_dir in $ac_x_header_dirs; do
3261 if test -r "$ac_dir/X11/Intrinsic.h"; then
3262 ac_x_includes=$ac_dir
3263 break
3265 done
3267 rm -f conftest.err conftest.$ac_ext
3268 fi # $ac_x_includes = no
3270 if test "$ac_x_libraries" = no; then
3271 # Check for the libraries.
3272 # See if we find them without any special options.
3273 # Don't add to $LIBS permanently.
3274 ac_save_LIBS=$LIBS
3275 LIBS="-lXt $LIBS"
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <X11/Intrinsic.h>
3284 main ()
3286 XtMalloc (0)
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext conftest$ac_exeext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 LIBS=$ac_save_LIBS
3313 # We can link X programs with no special library path.
3314 ac_x_libraries=
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 LIBS=$ac_save_LIBS
3320 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3322 # Don't even attempt the hair of trying to link an X program!
3323 for ac_extension in a so sl; do
3324 if test -r $ac_dir/libXt.$ac_extension; then
3325 ac_x_libraries=$ac_dir
3326 break 2
3328 done
3329 done
3331 rm -f conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext conftest.$ac_ext
3333 fi # $ac_x_libraries = no
3335 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3336 # Didn't find X anywhere. Cache the known absence of X.
3337 ac_cv_have_x="have_x=no"
3338 else
3339 # Record where we found X for the cache.
3340 ac_cv_have_x="have_x=yes \
3341 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3346 eval "$ac_cv_have_x"
3347 fi # $with_x != no
3349 if test "$have_x" != yes; then
3350 echo "$as_me:$LINENO: result: $have_x" >&5
3351 echo "${ECHO_T}$have_x" >&6
3352 no_x=yes
3353 else
3354 # If each of the values was on the command line, it overrides each guess.
3355 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3356 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3357 # Update the cache value to reflect the command line values.
3358 ac_cv_have_x="have_x=yes \
3359 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3360 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3361 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3364 if test "$no_x" = yes; then
3365 # Not all programs may use this symbol, but it does not hurt to define it.
3367 cat >>confdefs.h <<\_ACEOF
3368 #define X_DISPLAY_MISSING 1
3369 _ACEOF
3371 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3372 else
3373 if test -n "$x_includes"; then
3374 X_CFLAGS="$X_CFLAGS -I$x_includes"
3377 # It would also be nice to do this for all -L options, not just this one.
3378 if test -n "$x_libraries"; then
3379 X_LIBS="$X_LIBS -L$x_libraries"
3380 # For Solaris; some versions of Sun CC require a space after -R and
3381 # others require no space. Words are not sufficient . . . .
3382 case `(uname -sr) 2>/dev/null` in
3383 "SunOS 5"*)
3384 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3385 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3386 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 rm -f conftest.$ac_objext conftest$ac_exeext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3404 (eval $ac_link) 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3423 ac_R_nospace=yes
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_R_nospace=no
3430 rm -f conftest.err conftest.$ac_objext \
3431 conftest$ac_exeext conftest.$ac_ext
3432 if test $ac_R_nospace = yes; then
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 X_LIBS="$X_LIBS -R$x_libraries"
3436 else
3437 LIBS="$ac_xsave_LIBS -R $x_libraries"
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3446 main ()
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_R_space=yes
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 ac_R_space=no
3481 rm -f conftest.err conftest.$ac_objext \
3482 conftest$ac_exeext conftest.$ac_ext
3483 if test $ac_R_space = yes; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 X_LIBS="$X_LIBS -R $x_libraries"
3487 else
3488 echo "$as_me:$LINENO: result: neither works" >&5
3489 echo "${ECHO_T}neither works" >&6
3492 LIBS=$ac_xsave_LIBS
3493 esac
3496 # Check for system-dependent libraries X programs must link with.
3497 # Do this before checking for the system-independent R6 libraries
3498 # (-lICE), since we may need -lsocket or whatever for X linking.
3500 if test "$ISC" = yes; then
3501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3502 else
3503 # Martyn Johnson says this is needed for Ultrix, if the X
3504 # libraries were built with DECnet support. And Karl Berry says
3505 # the Alpha needs dnet_stub (dnet does not exist).
3506 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 #ifdef __cplusplus
3516 extern "C"
3517 #endif
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char XOpenDisplay ();
3522 main ()
3524 XOpenDisplay ();
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.$ac_objext conftest$ac_exeext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3556 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 ac_check_lib_save_LIBS=$LIBS
3561 LIBS="-ldnet $LIBS"
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char dnet_ntoa ();
3577 main ()
3579 dnet_ntoa ();
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_dnet_dnet_ntoa=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ac_cv_lib_dnet_dnet_ntoa=no
3612 rm -f conftest.err conftest.$ac_objext \
3613 conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_check_lib_save_LIBS
3616 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3617 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3618 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3619 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3622 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3623 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3624 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3625 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_check_lib_save_LIBS=$LIBS
3629 LIBS="-ldnet_stub $LIBS"
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 #ifdef __cplusplus
3639 extern "C"
3640 #endif
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3643 char dnet_ntoa ();
3645 main ()
3647 dnet_ntoa ();
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 ac_cv_lib_dnet_stub_dnet_ntoa=no
3680 rm -f conftest.err conftest.$ac_objext \
3681 conftest$ac_exeext conftest.$ac_ext
3682 LIBS=$ac_check_lib_save_LIBS
3684 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3685 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3686 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3692 rm -f conftest.err conftest.$ac_objext \
3693 conftest$ac_exeext conftest.$ac_ext
3694 LIBS="$ac_xsave_LIBS"
3696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3697 # to get the SysV transport functions.
3698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3699 # needs -lnsl.
3700 # The nsl library prevents programs from opening the X display
3701 # on Irix 5.2, according to T.E. Dickey.
3702 # The functions gethostbyname, getservbyname, and inet_addr are
3703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3704 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3706 if test "${ac_cv_func_gethostbyname+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3717 #define gethostbyname innocuous_gethostbyname
3719 /* System header to define __stub macros and hopefully few prototypes,
3720 which can conflict with char gethostbyname (); below.
3721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 <limits.h> exists even on freestanding compilers. */
3724 #ifdef __STDC__
3725 # include <limits.h>
3726 #else
3727 # include <assert.h>
3728 #endif
3730 #undef gethostbyname
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 #ifdef __cplusplus
3734 extern "C"
3736 #endif
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3739 char gethostbyname ();
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3744 choke me
3745 #else
3746 char (*f) () = gethostbyname;
3747 #endif
3748 #ifdef __cplusplus
3750 #endif
3753 main ()
3755 return f != gethostbyname;
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_func_gethostbyname=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 ac_cv_func_gethostbyname=no
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3792 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3794 if test $ac_cv_func_gethostbyname = no; then
3795 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3796 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3797 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 ac_check_lib_save_LIBS=$LIBS
3801 LIBS="-lnsl $LIBS"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char gethostbyname ();
3817 main ()
3819 gethostbyname ();
3821 return 0;
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_lib_nsl_gethostbyname=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_lib_nsl_gethostbyname=no
3852 rm -f conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
3854 LIBS=$ac_check_lib_save_LIBS
3856 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3857 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3858 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3862 if test $ac_cv_lib_nsl_gethostbyname = no; then
3863 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3864 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3865 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_check_lib_save_LIBS=$LIBS
3869 LIBS="-lbsd $LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 #ifdef __cplusplus
3879 extern "C"
3880 #endif
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char gethostbyname ();
3885 main ()
3887 gethostbyname ();
3889 return 0;
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest$ac_exeext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_lib_bsd_gethostbyname=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 ac_cv_lib_bsd_gethostbyname=no
3920 rm -f conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3922 LIBS=$ac_check_lib_save_LIBS
3924 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3925 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3926 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3933 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3934 # socket/setsockopt and other routines are undefined under SCO ODT
3935 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3936 # on later versions), says Simon Leinen: it contains gethostby*
3937 # variants that don't use the name server (or something). -lsocket
3938 # must be given before -lnsl if both are needed. We assume that
3939 # if connect needs -lnsl, so does gethostbyname.
3940 echo "$as_me:$LINENO: checking for connect" >&5
3941 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3942 if test "${ac_cv_func_connect+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953 #define connect innocuous_connect
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char connect (); below.
3957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 <limits.h> exists even on freestanding compilers. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3966 #undef connect
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 #ifdef __cplusplus
3970 extern "C"
3972 #endif
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3975 char connect ();
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_connect) || defined (__stub___connect)
3980 choke me
3981 #else
3982 char (*f) () = connect;
3983 #endif
3984 #ifdef __cplusplus
3986 #endif
3989 main ()
3991 return f != connect;
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_connect=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_func_connect=no
4024 rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4027 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4028 echo "${ECHO_T}$ac_cv_func_connect" >&6
4030 if test $ac_cv_func_connect = no; then
4031 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4032 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4033 if test "${ac_cv_lib_socket_connect+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 ac_check_lib_save_LIBS=$LIBS
4037 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 #ifdef __cplusplus
4047 extern "C"
4048 #endif
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4051 char connect ();
4053 main ()
4055 connect ();
4057 return 0;
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_cv_lib_socket_connect=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_lib_socket_connect=no
4088 rm -f conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
4090 LIBS=$ac_check_lib_save_LIBS
4092 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4093 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4094 if test $ac_cv_lib_socket_connect = yes; then
4095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4100 # Guillermo Gomez says -lposix is necessary on A/UX.
4101 echo "$as_me:$LINENO: checking for remove" >&5
4102 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4103 if test "${ac_cv_func_remove+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4114 #define remove innocuous_remove
4116 /* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char remove (); below.
4118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 <limits.h> exists even on freestanding compilers. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4127 #undef remove
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 #ifdef __cplusplus
4131 extern "C"
4133 #endif
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char remove ();
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_remove) || defined (__stub___remove)
4141 choke me
4142 #else
4143 char (*f) () = remove;
4144 #endif
4145 #ifdef __cplusplus
4147 #endif
4150 main ()
4152 return f != remove;
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest$ac_exeext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_func_remove=yes
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_func_remove=no
4185 rm -f conftest.err conftest.$ac_objext \
4186 conftest$ac_exeext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4189 echo "${ECHO_T}$ac_cv_func_remove" >&6
4191 if test $ac_cv_func_remove = no; then
4192 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4193 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4194 if test "${ac_cv_lib_posix_remove+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lposix $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char remove ();
4214 main ()
4216 remove ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_lib_posix_remove=yes
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_lib_posix_remove=no
4249 rm -f conftest.err conftest.$ac_objext \
4250 conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4254 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4255 if test $ac_cv_lib_posix_remove = yes; then
4256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4261 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4262 echo "$as_me:$LINENO: checking for shmat" >&5
4263 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4264 if test "${ac_cv_func_shmat+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4275 #define shmat innocuous_shmat
4277 /* System header to define __stub macros and hopefully few prototypes,
4278 which can conflict with char shmat (); below.
4279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 <limits.h> exists even on freestanding compilers. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4288 #undef shmat
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 #ifdef __cplusplus
4292 extern "C"
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char shmat ();
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_shmat) || defined (__stub___shmat)
4302 choke me
4303 #else
4304 char (*f) () = shmat;
4305 #endif
4306 #ifdef __cplusplus
4308 #endif
4311 main ()
4313 return f != shmat;
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_func_shmat=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_func_shmat=no
4346 rm -f conftest.err conftest.$ac_objext \
4347 conftest$ac_exeext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4350 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4352 if test $ac_cv_func_shmat = no; then
4353 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-lipc $LIBS"
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 #ifdef __cplusplus
4369 extern "C"
4370 #endif
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4373 char shmat ();
4375 main ()
4377 shmat ();
4379 return 0;
4381 _ACEOF
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_lib_ipc_shmat=yes
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_cv_lib_ipc_shmat=no
4410 rm -f conftest.err conftest.$ac_objext \
4411 conftest$ac_exeext conftest.$ac_ext
4412 LIBS=$ac_check_lib_save_LIBS
4414 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4415 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4416 if test $ac_cv_lib_ipc_shmat = yes; then
4417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4423 # Check for libraries that X11R6 Xt/Xaw programs need.
4424 ac_save_LDFLAGS=$LDFLAGS
4425 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4426 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4427 # check for ICE first), but we must link in the order -lSM -lICE or
4428 # we get undefined symbols. So assume we have SM if we have ICE.
4429 # These have to be linked with before -lX11, unlike the other
4430 # libraries we check for below, so use a different variable.
4431 # John Interrante, Karl Berry
4432 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4433 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4434 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_check_lib_save_LIBS=$LIBS
4438 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char IceConnectionNumber ();
4454 main ()
4456 IceConnectionNumber ();
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_lib_ICE_IceConnectionNumber=yes
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_lib_ICE_IceConnectionNumber=no
4489 rm -f conftest.err conftest.$ac_objext \
4490 conftest$ac_exeext conftest.$ac_ext
4491 LIBS=$ac_check_lib_save_LIBS
4493 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4494 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4495 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4499 LDFLAGS=$ac_save_LDFLAGS
4503 for ac_prog in 'bison -y' byacc
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_prog_YACC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$YACC"; then
4513 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_YACC="$ac_prog"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4531 YACC=$ac_cv_prog_YACC
4532 if test -n "$YACC"; then
4533 echo "$as_me:$LINENO: result: $YACC" >&5
4534 echo "${ECHO_T}$YACC" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4540 test -n "$YACC" && break
4541 done
4542 test -n "$YACC" || YACC="yacc"
4544 for ac_prog in flex lex
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_LEX+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$LEX"; then
4554 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_LEX="$ac_prog"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4572 LEX=$ac_cv_prog_LEX
4573 if test -n "$LEX"; then
4574 echo "$as_me:$LINENO: result: $LEX" >&5
4575 echo "${ECHO_T}$LEX" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4581 test -n "$LEX" && break
4582 done
4583 test -n "$LEX" || LEX=":"
4585 if test -z "$LEXLIB"
4586 then
4587 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4588 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4589 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592 ac_check_lib_save_LIBS=$LIBS
4593 LIBS="-lfl $LIBS"
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 #ifdef __cplusplus
4603 extern "C"
4604 #endif
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4607 char yywrap ();
4609 main ()
4611 yywrap ();
4613 return 0;
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_cv_lib_fl_yywrap=yes
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_cv_lib_fl_yywrap=no
4644 rm -f conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4646 LIBS=$ac_check_lib_save_LIBS
4648 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4649 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4650 if test $ac_cv_lib_fl_yywrap = yes; then
4651 LEXLIB="-lfl"
4652 else
4653 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4654 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4655 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 ac_check_lib_save_LIBS=$LIBS
4659 LIBS="-ll $LIBS"
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 #ifdef __cplusplus
4669 extern "C"
4670 #endif
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4673 char yywrap ();
4675 main ()
4677 yywrap ();
4679 return 0;
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_lib_l_yywrap=yes
4704 else
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_lib_l_yywrap=no
4710 rm -f conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 LIBS=$ac_check_lib_save_LIBS
4714 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4715 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4716 if test $ac_cv_lib_l_yywrap = yes; then
4717 LEXLIB="-ll"
4724 if test "x$LEX" != "x:"; then
4725 echo "$as_me:$LINENO: checking lex output file root" >&5
4726 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4727 if test "${ac_cv_prog_lex_root+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 # The minimal lex program is just a single line: %%. But some broken lexes
4731 # (Solaris, I think it was) want two %% lines, so accommodate them.
4732 cat >conftest.l <<_ACEOF
4735 _ACEOF
4736 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4737 (eval $LEX conftest.l) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }
4741 if test -f lex.yy.c; then
4742 ac_cv_prog_lex_root=lex.yy
4743 elif test -f lexyy.c; then
4744 ac_cv_prog_lex_root=lexyy
4745 else
4746 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4747 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4748 { (exit 1); exit 1; }; }
4751 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4752 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4753 rm -f conftest.l
4754 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4756 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4757 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4758 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 # POSIX says lex can declare yytext either as a pointer or an array; the
4762 # default is implementation-dependent. Figure out which it is, since
4763 # not all implementations provide the %pointer and %array declarations.
4764 ac_cv_prog_lex_yytext_pointer=no
4765 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4766 ac_save_LIBS=$LIBS
4767 LIBS="$LIBS $LEXLIB"
4768 cat >conftest.$ac_ext <<_ACEOF
4769 `cat $LEX_OUTPUT_ROOT.c`
4770 _ACEOF
4771 rm -f conftest.$ac_objext conftest$ac_exeext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773 (eval $ac_link) 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try='test -s conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_prog_lex_yytext_pointer=yes
4793 else
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4798 rm -f conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4800 LIBS=$ac_save_LIBS
4801 rm -f "${LEX_OUTPUT_ROOT}.c"
4804 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4805 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4806 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4808 cat >>confdefs.h <<\_ACEOF
4809 #define YYTEXT_POINTER 1
4810 _ACEOF
4816 for ac_prog in $YACC bison yacc
4818 # Extract the first word of "$ac_prog", so it can be a program name with args.
4819 set dummy $ac_prog; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_prog_XYACC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$XYACC"; then
4826 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_XYACC="$ac_prog"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4844 XYACC=$ac_cv_prog_XYACC
4845 if test -n "$XYACC"; then
4846 echo "$as_me:$LINENO: result: $XYACC" >&5
4847 echo "${ECHO_T}$XYACC" >&6
4848 else
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4853 test -n "$XYACC" && break
4854 done
4855 test -n "$XYACC" || XYACC="none"
4857 if test "$XYACC" = "none"
4858 then
4859 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4860 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4861 { (exit 1); exit 1; }; }
4863 for ac_prog in $LEX flex lex
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 if test "${ac_cv_prog_XLEX+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 if test -n "$XLEX"; then
4873 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_XLEX="$ac_prog"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4891 XLEX=$ac_cv_prog_XLEX
4892 if test -n "$XLEX"; then
4893 echo "$as_me:$LINENO: result: $XLEX" >&5
4894 echo "${ECHO_T}$XLEX" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4900 test -n "$XLEX" && break
4901 done
4902 test -n "$XLEX" || XLEX="none"
4904 if test "$XLEX" = "none"
4905 then
4906 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4907 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4908 { (exit 1); exit 1; }; }
4911 if test -n "$ac_tool_prefix"; then
4912 for ac_prog in gas as
4914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_prog_AS+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 if test -n "$AS"; then
4922 ac_cv_prog_AS="$AS" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4940 AS=$ac_cv_prog_AS
4941 if test -n "$AS"; then
4942 echo "$as_me:$LINENO: result: $AS" >&5
4943 echo "${ECHO_T}$AS" >&6
4944 else
4945 echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6
4949 test -n "$AS" && break
4950 done
4952 if test -z "$AS"; then
4953 ac_ct_AS=$AS
4954 for ac_prog in gas as
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$ac_ct_AS"; then
4964 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_AS="$ac_prog"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4982 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4983 if test -n "$ac_ct_AS"; then
4984 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4985 echo "${ECHO_T}$ac_ct_AS" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4991 test -n "$ac_ct_AS" && break
4992 done
4993 test -n "$ac_ct_AS" || ac_ct_AS="as"
4995 AS=$ac_ct_AS
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}ld; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_prog_LD+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test -n "$LD"; then
5007 ac_cv_prog_LD="$LD" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_LD="${ac_tool_prefix}ld"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5025 LD=$ac_cv_prog_LD
5026 if test -n "$LD"; then
5027 echo "$as_me:$LINENO: result: $LD" >&5
5028 echo "${ECHO_T}$LD" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5035 if test -z "$ac_cv_prog_LD"; then
5036 ac_ct_LD=$LD
5037 # Extract the first word of "ld", so it can be a program name with args.
5038 set dummy ld; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 if test -n "$ac_ct_LD"; then
5045 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_LD="ld"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5061 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5064 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5065 if test -n "$ac_ct_LD"; then
5066 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5067 echo "${ECHO_T}$ac_ct_LD" >&6
5068 else
5069 echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6
5073 LD=$ac_ct_LD
5074 else
5075 LD="$ac_cv_prog_LD"
5078 if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}ar; ac_word=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_AR+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test -n "$AR"; then
5087 ac_cv_prog_AR="$AR" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_AR="${ac_tool_prefix}ar"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5105 AR=$ac_cv_prog_AR
5106 if test -n "$AR"; then
5107 echo "$as_me:$LINENO: result: $AR" >&5
5108 echo "${ECHO_T}$AR" >&6
5109 else
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5115 if test -z "$ac_cv_prog_AR"; then
5116 ac_ct_AR=$AR
5117 # Extract the first word of "ar", so it can be a program name with args.
5118 set dummy ar; ac_word=$2
5119 echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 if test -n "$ac_ct_AR"; then
5125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_ac_ct_AR="ar"
5135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5141 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5145 if test -n "$ac_ct_AR"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5147 echo "${ECHO_T}$ac_ct_AR" >&6
5148 else
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5153 AR=$ac_ct_AR
5154 else
5155 AR="$ac_cv_prog_AR"
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_RANLIB+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 if test -n "$RANLIB"; then
5167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5185 RANLIB=$ac_cv_prog_RANLIB
5186 if test -n "$RANLIB"; then
5187 echo "$as_me:$LINENO: result: $RANLIB" >&5
5188 echo "${ECHO_T}$RANLIB" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 if test -z "$ac_cv_prog_RANLIB"; then
5196 ac_ct_RANLIB=$RANLIB
5197 # Extract the first word of "ranlib", so it can be a program name with args.
5198 set dummy ranlib; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 if test -n "$ac_ct_RANLIB"; then
5205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_RANLIB="ranlib"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5225 if test -n "$ac_ct_RANLIB"; then
5226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5227 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5233 RANLIB=$ac_ct_RANLIB
5234 else
5235 RANLIB="$ac_cv_prog_RANLIB"
5238 if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}strip; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_STRIP+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 if test -n "$STRIP"; then
5247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5265 STRIP=$ac_cv_prog_STRIP
5266 if test -n "$STRIP"; then
5267 echo "$as_me:$LINENO: result: $STRIP" >&5
5268 echo "${ECHO_T}$STRIP" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5275 if test -z "$ac_cv_prog_STRIP"; then
5276 ac_ct_STRIP=$STRIP
5277 # Extract the first word of "strip", so it can be a program name with args.
5278 set dummy strip; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$ac_ct_STRIP"; then
5285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_ac_ct_STRIP="strip"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5301 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5305 if test -n "$ac_ct_STRIP"; then
5306 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5307 echo "${ECHO_T}$ac_ct_STRIP" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5313 STRIP=$ac_ct_STRIP
5314 else
5315 STRIP="$ac_cv_prog_STRIP"
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5320 set dummy ${ac_tool_prefix}windres; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_WINDRES+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test -n "$WINDRES"; then
5327 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5340 done
5341 done
5345 WINDRES=$ac_cv_prog_WINDRES
5346 if test -n "$WINDRES"; then
5347 echo "$as_me:$LINENO: result: $WINDRES" >&5
5348 echo "${ECHO_T}$WINDRES" >&6
5349 else
5350 echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5355 if test -z "$ac_cv_prog_WINDRES"; then
5356 ac_ct_WINDRES=$WINDRES
5357 # Extract the first word of "windres", so it can be a program name with args.
5358 set dummy windres; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test -n "$ac_ct_WINDRES"; then
5365 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_ac_ct_WINDRES="windres"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5381 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5384 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5385 if test -n "$ac_ct_WINDRES"; then
5386 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5387 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5388 else
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5393 WINDRES=$ac_ct_WINDRES
5394 else
5395 WINDRES="$ac_cv_prog_WINDRES"
5398 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5399 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5400 LN_S=$as_ln_s
5401 if test "$LN_S" = "ln -s"; then
5402 echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5406 echo "${ECHO_T}no, using $LN_S" >&6
5409 echo "$as_me:$LINENO: checking whether ln works" >&5
5410 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5411 rm -f conf$$ conf$$.file
5412 echo >conf$$.file
5413 if ln conf$$.file conf$$ 2>/dev/null; then
5414 LN=ln
5416 echo "$as_me:$LINENO: result: yes" >&5
5417 echo "${ECHO_T}yes" >&6
5418 else
5419 LN="cp -p"
5421 echo "$as_me:$LINENO: result: no, using $LN" >&5
5422 echo "${ECHO_T}no, using $LN" >&6
5424 rm -f conf$$ conf$$.file
5425 # Extract the first word of "ldconfig", so it can be a program name with args.
5426 set dummy ldconfig; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 case $LDCONFIG in
5433 [\\/]* | ?:[\\/]*)
5434 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in /sbin /usr/sbin $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5451 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5453 esac
5455 LDCONFIG=$ac_cv_path_LDCONFIG
5457 if test -n "$LDCONFIG"; then
5458 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5459 echo "${ECHO_T}$LDCONFIG" >&6
5460 else
5461 echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5465 # Find a good install program. We prefer a C program (faster),
5466 # so one script is as good as another. But avoid the broken or
5467 # incompatible versions:
5468 # SysV /etc/install, /usr/sbin/install
5469 # SunOS /usr/etc/install
5470 # IRIX /sbin/install
5471 # AIX /bin/install
5472 # AmigaOS /C/install, which installs bootblocks on floppy discs
5473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5476 # OS/2's system install, which has a completely different semantic
5477 # ./install, which can be erroneously created by make from ./install.sh.
5478 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5479 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5480 if test -z "$INSTALL"; then
5481 if test "${ac_cv_path_install+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 # Account for people who put trailing slashes in PATH elements.
5490 case $as_dir/ in
5491 ./ | .// | /cC/* | \
5492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5493 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5494 /usr/ucb/* ) ;;
5496 # OSF1 and SCO ODT 3.0 have their own names for install.
5497 # Don't use installbsd from OSF since it installs stuff as root
5498 # by default.
5499 for ac_prog in ginstall scoinst install; do
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5502 if test $ac_prog = install &&
5503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504 # AIX install. It has an incompatible calling convention.
5506 elif test $ac_prog = install &&
5507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5508 # program-specific install script used by HP pwplus--don't use.
5510 else
5511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5512 break 3
5515 done
5516 done
5518 esac
5519 done
5523 if test "${ac_cv_path_install+set}" = set; then
5524 INSTALL=$ac_cv_path_install
5525 else
5526 # As a last resort, use the slow shell script. We don't cache a
5527 # path for INSTALL within a source directory, because that will
5528 # break other packages using the cache if that directory is
5529 # removed, or if the path is relative.
5530 INSTALL=$ac_install_sh
5533 echo "$as_me:$LINENO: result: $INSTALL" >&5
5534 echo "${ECHO_T}$INSTALL" >&6
5536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5537 # It thinks the first close brace ends the variable substitution.
5538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5544 case "$INSTALL" in
5545 [\\/$]* | ?:[\\/]* ) ;;
5546 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5547 esac
5549 for ac_prog in lclint lint
5551 # Extract the first word of "$ac_prog", so it can be a program name with args.
5552 set dummy $ac_prog; ac_word=$2
5553 echo "$as_me:$LINENO: checking for $ac_word" >&5
5554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5555 if test "${ac_cv_prog_LINT+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 if test -n "$LINT"; then
5559 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568 ac_cv_prog_LINT="$ac_prog"
5569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5572 done
5573 done
5577 LINT=$ac_cv_prog_LINT
5578 if test -n "$LINT"; then
5579 echo "$as_me:$LINENO: result: $LINT" >&5
5580 echo "${ECHO_T}$LINT" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 test -n "$LINT" && break
5587 done
5589 if test "$LINT" = "lint"
5590 then
5591 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5596 for ac_prog in docbook2html db2html
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test -n "$DB2HTML"; then
5606 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_DB2HTML="$ac_prog"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5624 DB2HTML=$ac_cv_prog_DB2HTML
5625 if test -n "$DB2HTML"; then
5626 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5627 echo "${ECHO_T}$DB2HTML" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5633 test -n "$DB2HTML" && break
5634 done
5635 test -n "$DB2HTML" || DB2HTML="false"
5639 for ac_prog in docbook2pdf db2pdf
5641 # Extract the first word of "$ac_prog", so it can be a program name with args.
5642 set dummy $ac_prog; ac_word=$2
5643 echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 if test -n "$DB2PDF"; then
5649 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_DB2PDF="$ac_prog"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5667 DB2PDF=$ac_cv_prog_DB2PDF
5668 if test -n "$DB2PDF"; then
5669 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5670 echo "${ECHO_T}$DB2PDF" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5676 test -n "$DB2PDF" && break
5677 done
5678 test -n "$DB2PDF" || DB2PDF="false"
5682 for ac_prog in docbook2ps db2ps
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688 if test "${ac_cv_prog_DB2PS+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 if test -n "$DB2PS"; then
5692 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_DB2PS="$ac_prog"
5702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5710 DB2PS=$ac_cv_prog_DB2PS
5711 if test -n "$DB2PS"; then
5712 echo "$as_me:$LINENO: result: $DB2PS" >&5
5713 echo "${ECHO_T}$DB2PS" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716 echo "${ECHO_T}no" >&6
5719 test -n "$DB2PS" && break
5720 done
5721 test -n "$DB2PS" || DB2PS="false"
5725 for ac_prog in docbook2txt db2txt
5727 # Extract the first word of "$ac_prog", so it can be a program name with args.
5728 set dummy $ac_prog; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 if test -n "$DB2TXT"; then
5735 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_DB2TXT="$ac_prog"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5748 done
5749 done
5753 DB2TXT=$ac_cv_prog_DB2TXT
5754 if test -n "$DB2TXT"; then
5755 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5756 echo "${ECHO_T}$DB2TXT" >&6
5757 else
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5762 test -n "$DB2TXT" && break
5763 done
5764 test -n "$DB2TXT" || DB2TXT="false"
5770 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5771 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5772 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 ac_check_lib_save_LIBS=$LIBS
5776 LIBS="-lm $LIBS"
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 #ifdef __cplusplus
5786 extern "C"
5787 #endif
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5790 char sqrt ();
5792 main ()
5794 sqrt ();
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest$ac_exeext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_lib_m_sqrt=yes
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 ac_cv_lib_m_sqrt=no
5827 rm -f conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5832 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5833 if test $ac_cv_lib_m_sqrt = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define HAVE_LIBM 1
5836 _ACEOF
5838 LIBS="-lm $LIBS"
5843 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5844 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5845 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 ac_check_lib_save_LIBS=$LIBS
5849 LIBS="-li386 $LIBS"
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5863 char i386_set_ldt ();
5865 main ()
5867 i386_set_ldt ();
5869 return 0;
5871 _ACEOF
5872 rm -f conftest.$ac_objext conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest$ac_exeext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_lib_i386_i386_set_ldt=yes
5894 else
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_cv_lib_i386_i386_set_ldt=no
5900 rm -f conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5904 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5905 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5906 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5907 cat >>confdefs.h <<_ACEOF
5908 #define HAVE_LIBI386 1
5909 _ACEOF
5911 LIBS="-li386 $LIBS"
5916 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5917 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5918 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 ac_check_lib_save_LIBS=$LIBS
5922 LIBS="-lossaudio $LIBS"
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 #ifdef __cplusplus
5932 extern "C"
5933 #endif
5934 /* We use char because int might match the return type of a gcc2
5935 builtin and then its argument prototype would still apply. */
5936 char _oss_ioctl ();
5938 main ()
5940 _oss_ioctl ();
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_lib_ossaudio__oss_ioctl=yes
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_cv_lib_ossaudio__oss_ioctl=no
5973 rm -f conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 LIBS=$ac_check_lib_save_LIBS
5977 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5978 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5979 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5980 cat >>confdefs.h <<_ACEOF
5981 #define HAVE_LIBOSSAUDIO 1
5982 _ACEOF
5984 LIBS="-lossaudio $LIBS"
5989 for ac_func in iswalnum
5991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5992 echo "$as_me:$LINENO: checking for $ac_func" >&5
5993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_var+set}\" = set"; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6005 #define $ac_func innocuous_$ac_func
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func (); below.
6009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6010 <limits.h> exists even on freestanding compilers. */
6012 #ifdef __STDC__
6013 # include <limits.h>
6014 #else
6015 # include <assert.h>
6016 #endif
6018 #undef $ac_func
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 #ifdef __cplusplus
6022 extern "C"
6024 #endif
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6027 char $ac_func ();
6028 /* The GNU C library defines this for functions which it implements
6029 to always fail with ENOSYS. Some functions are actually named
6030 something starting with __ and the normal name is an alias. */
6031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6032 choke me
6033 #else
6034 char (*f) () = $ac_func;
6035 #endif
6036 #ifdef __cplusplus
6038 #endif
6041 main ()
6043 return f != $ac_func;
6045 return 0;
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 eval "$as_ac_var=yes"
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 eval "$as_ac_var=no"
6076 rm -f conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6081 if test `eval echo '${'$as_ac_var'}'` = yes; then
6082 cat >>confdefs.h <<_ACEOF
6083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6084 _ACEOF
6086 else
6088 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6089 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6090 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 ac_check_lib_save_LIBS=$LIBS
6094 LIBS="-lw $LIBS"
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6102 /* Override any gcc2 internal prototype to avoid an error. */
6103 #ifdef __cplusplus
6104 extern "C"
6105 #endif
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108 char iswalnum ();
6110 main ()
6112 iswalnum ();
6114 return 0;
6116 _ACEOF
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_lib_w_iswalnum=yes
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_cv_lib_w_iswalnum=no
6145 rm -f conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_check_lib_save_LIBS
6149 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6150 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6151 if test $ac_cv_lib_w_iswalnum = yes; then
6152 cat >>confdefs.h <<_ACEOF
6153 #define HAVE_LIBW 1
6154 _ACEOF
6156 LIBS="-lw $LIBS"
6161 done
6164 for ac_func in gethostbyname
6166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6167 echo "$as_me:$LINENO: checking for $ac_func" >&5
6168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6169 if eval "test \"\${$as_ac_var+set}\" = set"; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6180 #define $ac_func innocuous_$ac_func
6182 /* System header to define __stub macros and hopefully few prototypes,
6183 which can conflict with char $ac_func (); below.
6184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6185 <limits.h> exists even on freestanding compilers. */
6187 #ifdef __STDC__
6188 # include <limits.h>
6189 #else
6190 # include <assert.h>
6191 #endif
6193 #undef $ac_func
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 #ifdef __cplusplus
6197 extern "C"
6199 #endif
6200 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6202 char $ac_func ();
6203 /* The GNU C library defines this for functions which it implements
6204 to always fail with ENOSYS. Some functions are actually named
6205 something starting with __ and the normal name is an alias. */
6206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6207 choke me
6208 #else
6209 char (*f) () = $ac_func;
6210 #endif
6211 #ifdef __cplusplus
6213 #endif
6216 main ()
6218 return f != $ac_func;
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; } &&
6238 { ac_try='test -s conftest$ac_exeext'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 eval "$as_ac_var=yes"
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 eval "$as_ac_var=no"
6251 rm -f conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6256 if test `eval echo '${'$as_ac_var'}'` = yes; then
6257 cat >>confdefs.h <<_ACEOF
6258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6259 _ACEOF
6261 else
6263 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6264 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6265 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 ac_check_lib_save_LIBS=$LIBS
6269 LIBS="-lnsl $LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char gethostbyname ();
6285 main ()
6287 gethostbyname ();
6289 return 0;
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_lib_nsl_gethostbyname=yes
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_cv_lib_nsl_gethostbyname=no
6320 rm -f conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
6322 LIBS=$ac_check_lib_save_LIBS
6324 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6325 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6326 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define HAVE_LIBNSL 1
6329 _ACEOF
6331 LIBS="-lnsl $LIBS"
6336 done
6339 for ac_func in connect
6341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6342 echo "$as_me:$LINENO: checking for $ac_func" >&5
6343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6344 if eval "test \"\${$as_ac_var+set}\" = set"; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6355 #define $ac_func innocuous_$ac_func
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func (); below.
6359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6360 <limits.h> exists even on freestanding compilers. */
6362 #ifdef __STDC__
6363 # include <limits.h>
6364 #else
6365 # include <assert.h>
6366 #endif
6368 #undef $ac_func
6370 /* Override any gcc2 internal prototype to avoid an error. */
6371 #ifdef __cplusplus
6372 extern "C"
6374 #endif
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6377 char $ac_func ();
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 choke me
6383 #else
6384 char (*f) () = $ac_func;
6385 #endif
6386 #ifdef __cplusplus
6388 #endif
6391 main ()
6393 return f != $ac_func;
6395 return 0;
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 eval "$as_ac_var=yes"
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_var=no"
6426 rm -f conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6431 if test `eval echo '${'$as_ac_var'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6434 _ACEOF
6436 else
6438 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6439 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6440 if test "${ac_cv_lib_socket_connect+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 ac_check_lib_save_LIBS=$LIBS
6444 LIBS="-lsocket $LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6452 /* Override any gcc2 internal prototype to avoid an error. */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 /* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */
6458 char connect ();
6460 main ()
6462 connect ();
6464 return 0;
6466 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_lib_socket_connect=yes
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_cv_lib_socket_connect=no
6495 rm -f conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_check_lib_save_LIBS
6499 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6500 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6501 if test $ac_cv_lib_socket_connect = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define HAVE_LIBSOCKET 1
6504 _ACEOF
6506 LIBS="-lsocket $LIBS"
6511 done
6514 for ac_func in inet_aton
6516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6517 echo "$as_me:$LINENO: checking for $ac_func" >&5
6518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6519 if eval "test \"\${$as_ac_var+set}\" = set"; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6530 #define $ac_func innocuous_$ac_func
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func (); below.
6534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6535 <limits.h> exists even on freestanding compilers. */
6537 #ifdef __STDC__
6538 # include <limits.h>
6539 #else
6540 # include <assert.h>
6541 #endif
6543 #undef $ac_func
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 #ifdef __cplusplus
6547 extern "C"
6549 #endif
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6552 char $ac_func ();
6553 /* The GNU C library defines this for functions which it implements
6554 to always fail with ENOSYS. Some functions are actually named
6555 something starting with __ and the normal name is an alias. */
6556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6557 choke me
6558 #else
6559 char (*f) () = $ac_func;
6560 #endif
6561 #ifdef __cplusplus
6563 #endif
6566 main ()
6568 return f != $ac_func;
6570 return 0;
6572 _ACEOF
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 eval "$as_ac_var=yes"
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 eval "$as_ac_var=no"
6601 rm -f conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6606 if test `eval echo '${'$as_ac_var'}'` = yes; then
6607 cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6609 _ACEOF
6611 else
6613 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6614 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6615 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 ac_check_lib_save_LIBS=$LIBS
6619 LIBS="-lresolv $LIBS"
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633 char inet_aton ();
6635 main ()
6637 inet_aton ();
6639 return 0;
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_lib_resolv_inet_aton=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 ac_cv_lib_resolv_inet_aton=no
6670 rm -f conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 LIBS=$ac_check_lib_save_LIBS
6674 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6675 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6676 if test $ac_cv_lib_resolv_inet_aton = yes; then
6677 cat >>confdefs.h <<_ACEOF
6678 #define HAVE_LIBRESOLV 1
6679 _ACEOF
6681 LIBS="-lresolv $LIBS"
6686 done
6689 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6690 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6691 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 ac_check_lib_save_LIBS=$LIBS
6695 LIBS="-lxpg4 $LIBS"
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 #ifdef __cplusplus
6705 extern "C"
6706 #endif
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709 char _xpg4_setrunelocale ();
6711 main ()
6713 _xpg4_setrunelocale ();
6715 return 0;
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6746 rm -f conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
6748 LIBS=$ac_check_lib_save_LIBS
6750 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6751 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6752 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6753 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_LIBXPG4 1
6755 _ACEOF
6757 LIBS="-lxpg4 $LIBS"
6762 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6763 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6764 if test "${ac_cv_lib_poll_poll+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 ac_check_lib_save_LIBS=$LIBS
6768 LIBS="-lpoll $LIBS"
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 #ifdef __cplusplus
6778 extern "C"
6779 #endif
6780 /* We use char because int might match the return type of a gcc2
6781 builtin and then its argument prototype would still apply. */
6782 char poll ();
6784 main ()
6786 poll ();
6788 return 0;
6790 _ACEOF
6791 rm -f conftest.$ac_objext conftest$ac_exeext
6792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6793 (eval $ac_link) 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_lib_poll_poll=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_lib_poll_poll=no
6819 rm -f conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821 LIBS=$ac_check_lib_save_LIBS
6823 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6824 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6825 if test $ac_cv_lib_poll_poll = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_LIBPOLL 1
6828 _ACEOF
6830 LIBS="-lpoll $LIBS"
6834 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6835 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6836 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 ac_check_lib_save_LIBS=$LIBS
6840 LIBS="-lpthread $LIBS"
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 #ifdef __cplusplus
6850 extern "C"
6851 #endif
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6854 char pthread_create ();
6856 main ()
6858 pthread_create ();
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; } &&
6878 { ac_try='test -s conftest$ac_exeext'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6884 ac_cv_lib_pthread_pthread_create=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_lib_pthread_pthread_create=no
6891 rm -f conftest.err conftest.$ac_objext \
6892 conftest$ac_exeext conftest.$ac_ext
6893 LIBS=$ac_check_lib_save_LIBS
6895 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6896 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6897 if test $ac_cv_lib_pthread_pthread_create = yes; then
6898 LIBPTHREAD="-lpthread"
6903 JPEGLIB=""
6905 echo "$as_me:$LINENO: checking for egrep" >&5
6906 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6907 if test "${ac_cv_prog_egrep+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6911 then ac_cv_prog_egrep='grep -E'
6912 else ac_cv_prog_egrep='egrep'
6915 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6916 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6917 EGREP=$ac_cv_prog_egrep
6920 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6921 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6922 if test "${ac_cv_header_stdc+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <stdlib.h>
6932 #include <stdarg.h>
6933 #include <string.h>
6934 #include <float.h>
6937 main ()
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest.$ac_objext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_header_stdc=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_stdc=no
6972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 if test $ac_cv_header_stdc = yes; then
6975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
6984 _ACEOF
6985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986 $EGREP "memchr" >/dev/null 2>&1; then
6988 else
6989 ac_cv_header_stdc=no
6991 rm -f conftest*
6995 if test $ac_cv_header_stdc = yes; then
6996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <stdlib.h>
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "free" >/dev/null 2>&1; then
7009 else
7010 ac_cv_header_stdc=no
7012 rm -f conftest*
7016 if test $ac_cv_header_stdc = yes; then
7017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7018 if test "$cross_compiling" = yes; then
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <ctype.h>
7028 #if ((' ' & 0x0FF) == 0x020)
7029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7031 #else
7032 # define ISLOWER(c) \
7033 (('a' <= (c) && (c) <= 'i') \
7034 || ('j' <= (c) && (c) <= 'r') \
7035 || ('s' <= (c) && (c) <= 'z'))
7036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7037 #endif
7039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7041 main ()
7043 int i;
7044 for (i = 0; i < 256; i++)
7045 if (XOR (islower (i), ISLOWER (i))
7046 || toupper (i) != TOUPPER (i))
7047 exit(2);
7048 exit (0);
7050 _ACEOF
7051 rm -f conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7063 else
7064 echo "$as_me: program exited with status $ac_status" >&5
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ( exit $ac_status )
7069 ac_cv_header_stdc=no
7071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7077 if test $ac_cv_header_stdc = yes; then
7079 cat >>confdefs.h <<\_ACEOF
7080 #define STDC_HEADERS 1
7081 _ACEOF
7085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7096 inttypes.h stdint.h unistd.h
7098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7099 echo "$as_me:$LINENO: checking for $ac_header" >&5
7100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 $ac_includes_default
7112 #include <$ac_header>
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 eval "$as_ac_Header=yes"
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 eval "$as_ac_Header=no"
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7147 cat >>confdefs.h <<_ACEOF
7148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7149 _ACEOF
7153 done
7157 for ac_header in jpeglib.h
7159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7161 echo "$as_me:$LINENO: checking for $ac_header" >&5
7162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7168 else
7169 # Is the header compilable?
7170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #include <$ac_header>
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try='test -s conftest.$ac_objext'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 ac_header_compiler=yes
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_header_compiler=no
7209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6
7213 # Is the header present?
7214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <$ac_header>
7223 _ACEOF
7224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } >/dev/null; then
7232 if test -s conftest.err; then
7233 ac_cpp_err=$ac_c_preproc_warn_flag
7234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7235 else
7236 ac_cpp_err=
7238 else
7239 ac_cpp_err=yes
7241 if test -z "$ac_cpp_err"; then
7242 ac_header_preproc=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_header_preproc=no
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7253 # So? What about this header?
7254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7255 yes:no: )
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7260 ac_header_preproc=yes
7262 no:yes:* )
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7276 cat <<\_ASBOX
7277 ## ------------------------------------ ##
7278 ## Report this to wine-devel@winehq.org ##
7279 ## ------------------------------------ ##
7280 _ASBOX
7282 sed "s/^/$as_me: WARNING: /" >&2
7284 esac
7285 echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290 eval "$as_ac_Header=\$ac_header_preproc"
7292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297 cat >>confdefs.h <<_ACEOF
7298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 _ACEOF
7300 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7301 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7302 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-ljpeg $LIBS"
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 #ifdef __cplusplus
7316 extern "C"
7317 #endif
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320 char jpeg_start_decompress ();
7322 main ()
7324 jpeg_start_decompress ();
7326 return 0;
7328 _ACEOF
7329 rm -f conftest.$ac_objext conftest$ac_exeext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7331 (eval $ac_link) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_cv_lib_jpeg_jpeg_start_decompress=no
7357 rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359 LIBS=$ac_check_lib_save_LIBS
7361 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7362 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7363 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_LIBJPEG 1
7367 _ACEOF
7369 JPEGLIB="-ljpeg"
7376 done
7379 GIFLIB=""
7382 for ac_header in gif_lib.h
7384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7386 echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7393 else
7394 # Is the header compilable?
7395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 #include <$ac_header>
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try='test -s conftest.$ac_objext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_header_compiler=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 ac_header_compiler=no
7434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7436 echo "${ECHO_T}$ac_header_compiler" >&6
7438 # Is the header present?
7439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 #include <$ac_header>
7448 _ACEOF
7449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev/null; then
7457 if test -s conftest.err; then
7458 ac_cpp_err=$ac_c_preproc_warn_flag
7459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7460 else
7461 ac_cpp_err=
7463 else
7464 ac_cpp_err=yes
7466 if test -z "$ac_cpp_err"; then
7467 ac_header_preproc=yes
7468 else
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 ac_header_preproc=no
7474 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7476 echo "${ECHO_T}$ac_header_preproc" >&6
7478 # So? What about this header?
7479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7480 yes:no: )
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7485 ac_header_preproc=yes
7487 no:yes:* )
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7501 cat <<\_ASBOX
7502 ## ------------------------------------ ##
7503 ## Report this to wine-devel@winehq.org ##
7504 ## ------------------------------------ ##
7505 _ASBOX
7507 sed "s/^/$as_me: WARNING: /" >&2
7509 esac
7510 echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 eval "$as_ac_Header=\$ac_header_preproc"
7517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7522 cat >>confdefs.h <<_ACEOF
7523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7524 _ACEOF
7525 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7526 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7527 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lungif $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545 char DGifOpen ();
7547 main ()
7549 DGifOpen ();
7551 return 0;
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_lib_ungif_DGifOpen=yes
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_lib_ungif_DGifOpen=no
7582 rm -f conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_check_lib_save_LIBS
7586 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7587 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7588 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_LIBGIF 1
7592 _ACEOF
7594 GIFLIB="-lungif"
7595 else
7596 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7597 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7598 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-lgif $LIBS"
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 #ifdef __cplusplus
7612 extern "C"
7613 #endif
7614 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7616 char DGifOpen ();
7618 main ()
7620 DGifOpen ();
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_lib_gif_DGifOpen=yes
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_cv_lib_gif_DGifOpen=no
7653 rm -f conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 LIBS=$ac_check_lib_save_LIBS
7657 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7658 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7659 if test $ac_cv_lib_gif_DGifOpen = yes; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_LIBGIF 1
7662 _ACEOF
7664 GIFLIB="-lgif"
7671 done
7676 XFILES=""
7678 OPENGLFILES=""
7680 GLU32FILES=""
7682 OPENGL_LIBS=""
7683 if test "$have_x" = "yes"
7684 then
7685 XLIB="-lXext -lX11"
7686 ac_save_CPPFLAGS="$CPPFLAGS"
7687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7690 for ac_header in X11/Xlib.h
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7694 echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701 else
7702 # Is the header compilable?
7703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>conftest.er1
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
7723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_header_compiler=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_header_compiler=no
7742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7744 echo "${ECHO_T}$ac_header_compiler" >&6
7746 # Is the header present?
7747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <$ac_header>
7756 _ACEOF
7757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } >/dev/null; then
7765 if test -s conftest.err; then
7766 ac_cpp_err=$ac_c_preproc_warn_flag
7767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7768 else
7769 ac_cpp_err=
7771 else
7772 ac_cpp_err=yes
7774 if test -z "$ac_cpp_err"; then
7775 ac_header_preproc=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_header_preproc=no
7782 rm -f conftest.err conftest.$ac_ext
7783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7784 echo "${ECHO_T}$ac_header_preproc" >&6
7786 # So? What about this header?
7787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7788 yes:no: )
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7793 ac_header_preproc=yes
7795 no:yes:* )
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7809 cat <<\_ASBOX
7810 ## ------------------------------------ ##
7811 ## Report this to wine-devel@winehq.org ##
7812 ## ------------------------------------ ##
7813 _ASBOX
7815 sed "s/^/$as_me: WARNING: /" >&2
7817 esac
7818 echo "$as_me:$LINENO: checking for $ac_header" >&5
7819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 eval "$as_ac_Header=\$ac_header_preproc"
7825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7830 cat >>confdefs.h <<_ACEOF
7831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7832 _ACEOF
7844 for ac_header in X11/XKBlib.h \
7845 X11/Xutil.h \
7846 X11/extensions/shape.h \
7847 X11/extensions/XInput.h \
7848 X11/extensions/XShm.h \
7849 X11/extensions/Xrandr.h \
7850 X11/extensions/Xrender.h \
7851 X11/extensions/Xvlib.h \
7852 X11/extensions/xf86dga.h \
7853 X11/extensions/xf86vmode.h
7855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 echo "$as_me:$LINENO: checking for $ac_header" >&5
7857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <X11/Xlib.h>
7868 #ifdef HAVE_X11_XUTIL_H
7869 # include <X11/Xutil.h>
7870 #endif
7872 #include <$ac_header>
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 eval "$as_ac_Header=yes"
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 eval "$as_ac_Header=no"
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7909 _ACEOF
7913 done
7916 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7917 then
7918 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7919 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7920 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 ac_check_lib_save_LIBS=$LIBS
7924 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 #ifdef __cplusplus
7934 extern "C"
7935 #endif
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7938 char XkbQueryExtension ();
7940 main ()
7942 XkbQueryExtension ();
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_lib_X11_XkbQueryExtension=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_lib_X11_XkbQueryExtension=no
7975 rm -f conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7980 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7981 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_XKB 1
7985 _ACEOF
7991 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7992 then
7993 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7994 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7995 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 ac_check_lib_save_LIBS=$LIBS
7999 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 #ifdef __cplusplus
8009 extern "C"
8010 #endif
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013 char XShmQueryExtension ();
8015 main ()
8017 XShmQueryExtension ();
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 (eval $ac_try) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_cv_lib_Xext_XShmQueryExtension=yes
8044 else
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_cv_lib_Xext_XShmQueryExtension=no
8050 rm -f conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 LIBS=$ac_check_lib_save_LIBS
8054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8055 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
8056 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_LIBXXSHM 1
8060 _ACEOF
8066 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8067 then
8068 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8069 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8070 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 ac_check_lib_save_LIBS=$LIBS
8074 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8082 /* Override any gcc2 internal prototype to avoid an error. */
8083 #ifdef __cplusplus
8084 extern "C"
8085 #endif
8086 /* We use char because int might match the return type of a gcc2
8087 builtin and then its argument prototype would still apply. */
8088 char XShapeQueryExtension ();
8090 main ()
8092 XShapeQueryExtension ();
8094 return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest$ac_exeext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_cv_lib_Xext_XShapeQueryExtension=yes
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_cv_lib_Xext_XShapeQueryExtension=no
8125 rm -f conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8127 LIBS=$ac_check_lib_save_LIBS
8129 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8130 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8131 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8133 cat >>confdefs.h <<\_ACEOF
8134 #define HAVE_LIBXSHAPE 1
8135 _ACEOF
8141 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8142 then
8143 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8144 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8145 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 ac_check_lib_save_LIBS=$LIBS
8149 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 #ifdef __cplusplus
8159 extern "C"
8160 #endif
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8163 char XDGAQueryExtension ();
8165 main ()
8167 XDGAQueryExtension ();
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8200 rm -f conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS
8204 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8205 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8206 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_LIBXXF86DGA2 1
8210 _ACEOF
8212 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8214 else
8215 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8216 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8217 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8222 $LIBS"
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8230 /* Override any gcc2 internal prototype to avoid an error. */
8231 #ifdef __cplusplus
8232 extern "C"
8233 #endif
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char XF86DGAQueryExtension ();
8238 main ()
8240 XF86DGAQueryExtension ();
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8273 rm -f conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8277 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8278 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8279 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_LIBXXF86DGA 1
8283 _ACEOF
8285 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8294 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8295 then
8296 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8297 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8298 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 ac_check_lib_save_LIBS=$LIBS
8302 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 #ifdef __cplusplus
8312 extern "C"
8313 #endif
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8316 char XF86VidModeQueryExtension ();
8318 main ()
8320 XF86VidModeQueryExtension ();
8322 return 0;
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8353 rm -f conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8357 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8358 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8359 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_LIBXXF86VM 1
8363 _ACEOF
8365 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8371 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8372 then
8373 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8374 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
8375 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 ac_check_lib_save_LIBS=$LIBS
8379 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 #ifdef __cplusplus
8389 extern "C"
8390 #endif
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8393 char XRRSetScreenConfigAndRate ();
8395 main ()
8397 XRRSetScreenConfigAndRate ();
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
8430 rm -f conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8434 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8435 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8436 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8438 cat >>confdefs.h <<\_ACEOF
8439 #define HAVE_LIBXRANDR 1
8440 _ACEOF
8442 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8448 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8449 then
8450 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8451 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8452 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455 ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 /* Override any gcc2 internal prototype to avoid an error. */
8465 #ifdef __cplusplus
8466 extern "C"
8467 #endif
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8470 char XvShmCreateImage ();
8472 main ()
8474 XvShmCreateImage ();
8476 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_Xv_XvShmCreateImage=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_lib_Xv_XvShmCreateImage=no
8507 rm -f conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8511 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8512 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8513 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_XVIDEO 1
8517 _ACEOF
8519 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8528 done
8530 if test "x$with_opengl" != "xno"
8531 then
8532 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8533 then
8534 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8535 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8536 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8537 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8538 { (exit 1); exit 1; }; }
8543 for ac_header in GL/gl.h GL/glx.h
8545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547 echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8554 else
8555 # Is the header compilable?
8556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #include <$ac_header>
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_header_compiler=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_header_compiler=no
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8597 echo "${ECHO_T}$ac_header_compiler" >&6
8599 # Is the header present?
8600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h. */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 #include <$ac_header>
8609 _ACEOF
8610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } >/dev/null; then
8618 if test -s conftest.err; then
8619 ac_cpp_err=$ac_c_preproc_warn_flag
8620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8621 else
8622 ac_cpp_err=
8624 else
8625 ac_cpp_err=yes
8627 if test -z "$ac_cpp_err"; then
8628 ac_header_preproc=yes
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_header_preproc=no
8635 rm -f conftest.err conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8637 echo "${ECHO_T}$ac_header_preproc" >&6
8639 # So? What about this header?
8640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8641 yes:no: )
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8646 ac_header_preproc=yes
8648 no:yes:* )
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8662 cat <<\_ASBOX
8663 ## ------------------------------------ ##
8664 ## Report this to wine-devel@winehq.org ##
8665 ## ------------------------------------ ##
8666 _ASBOX
8668 sed "s/^/$as_me: WARNING: /" >&2
8670 esac
8671 echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676 eval "$as_ac_Header=\$ac_header_preproc"
8678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8683 cat >>confdefs.h <<_ACEOF
8684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8685 _ACEOF
8689 done
8691 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8692 then
8694 for ac_header in GL/glext.h
8696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8697 echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 #include <GL/glx.h>
8710 #include <$ac_header>
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_Header=yes"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 eval "$as_ac_Header=no"
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747 _ACEOF
8751 done
8753 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8754 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8755 if test "${wine_cv_opengl_version_OK+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 #include <GL/gl.h>
8766 main ()
8768 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest.$ac_objext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 wine_cv_opengl_version_OK="yes"
8795 else
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 wine_cv_opengl_version_OK="no"
8802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8806 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8808 if test "$wine_cv_opengl_version_OK" = "yes"
8809 then
8810 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8811 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8812 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 ac_check_lib_save_LIBS=$LIBS
8816 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h. */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8824 /* Override any gcc2 internal prototype to avoid an error. */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8830 char glXCreateContext ();
8832 main ()
8834 glXCreateContext ();
8836 return 0;
8838 _ACEOF
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_lib_GL_glXCreateContext=yes
8861 else
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_cv_lib_GL_glXCreateContext=no
8867 rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8872 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8873 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8874 OPENGL_LIBS="-lGL"
8879 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8880 then
8881 OPENGLFILES='$(OPENGLFILES)'
8883 cat >>confdefs.h <<\_ACEOF
8884 #define HAVE_OPENGL 1
8885 _ACEOF
8888 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8889 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8890 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 ac_check_lib_save_LIBS=$LIBS
8894 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any gcc2 internal prototype to avoid an error. */
8903 #ifdef __cplusplus
8904 extern "C"
8905 #endif
8906 /* We use char because int might match the return type of a gcc2
8907 builtin and then its argument prototype would still apply. */
8908 char glXGetProcAddressARB ();
8910 main ()
8912 glXGetProcAddressARB ();
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_GL_glXGetProcAddressARB=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_GL_glXGetProcAddressARB=no
8945 rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8950 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8951 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_GLX_GETPROCADDRESS 1
8955 _ACEOF
8960 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8961 then
8962 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8963 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8964 if test "${wine_cv_extension_prototypes+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h. */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 #include <GL/gl.h>
8974 #ifdef HAVE_GL_GLEXT_H
8975 # include <GL/glext.h>
8976 #endif
8979 main ()
8981 PFNGLCOLORTABLEEXTPROC test_proc;
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 wine_cv_extension_prototypes="yes"
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 wine_cv_extension_prototypes="no"
9015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
9019 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
9020 if test "$wine_cv_extension_prototypes" = "yes"
9021 then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_GLEXT_PROTOTYPES 1
9025 _ACEOF
9031 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9032 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
9033 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 ac_check_lib_save_LIBS=$LIBS
9037 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9038 $LIBS"
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 /* We use char because int might match the return type of a gcc2
9051 builtin and then its argument prototype would still apply. */
9052 char gluLookAt ();
9054 main ()
9056 gluLookAt ();
9058 return 0;
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_cv_lib_GLU_gluLookAt=yes
9083 else
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_cv_lib_GLU_gluLookAt=no
9089 rm -f conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9093 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9094 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9095 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9096 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9097 GLU32FILES='$(GLU32FILES)'
9103 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9104 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9105 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 ac_check_lib_save_LIBS=$LIBS
9109 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9117 /* Override any gcc2 internal prototype to avoid an error. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9123 char glutMainLoop ();
9125 main ()
9127 glutMainLoop ();
9129 return 0;
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; } &&
9147 { ac_try='test -s conftest$ac_exeext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_lib_glut_glutMainLoop=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_cv_lib_glut_glutMainLoop=no
9160 rm -f conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9164 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9165 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9166 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9167 GLUT_LIBS="-lglut -lXmu -lXi"
9169 GLUT32FILES='$(GLUT32FILES)'
9176 NASLIBS=""
9179 for ac_header in audio/audiolib.h
9181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9183 echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190 else
9191 # Is the header compilable?
9192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 $ac_includes_default
9201 #include <$ac_header>
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205 (eval $ac_compile) 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; } &&
9218 { ac_try='test -s conftest.$ac_objext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 ac_header_compiler=yes
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 ac_header_compiler=no
9231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6
9235 # Is the header present?
9236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 #include <$ac_header>
9245 _ACEOF
9246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } >/dev/null; then
9254 if test -s conftest.err; then
9255 ac_cpp_err=$ac_c_preproc_warn_flag
9256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9257 else
9258 ac_cpp_err=
9260 else
9261 ac_cpp_err=yes
9263 if test -z "$ac_cpp_err"; then
9264 ac_header_preproc=yes
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_header_preproc=no
9271 rm -f conftest.err conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9273 echo "${ECHO_T}$ac_header_preproc" >&6
9275 # So? What about this header?
9276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9277 yes:no: )
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9282 ac_header_preproc=yes
9284 no:yes:* )
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9298 cat <<\_ASBOX
9299 ## ------------------------------------ ##
9300 ## Report this to wine-devel@winehq.org ##
9301 ## ------------------------------------ ##
9302 _ASBOX
9304 sed "s/^/$as_me: WARNING: /" >&2
9306 esac
9307 echo "$as_me:$LINENO: checking for $ac_header" >&5
9308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 eval "$as_ac_Header=\$ac_header_preproc"
9314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9319 cat >>confdefs.h <<_ACEOF
9320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9321 _ACEOF
9323 for ac_header in audio/soundlib.h
9325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9326 echo "$as_me:$LINENO: checking for $ac_header" >&5
9327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 else
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h. */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 #include <audio/audiolib.h>
9339 #include <$ac_header>
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 eval "$as_ac_Header=yes"
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 eval "$as_ac_Header=no"
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9374 cat >>confdefs.h <<_ACEOF
9375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9376 _ACEOF
9380 done
9382 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9383 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9384 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 ac_check_lib_save_LIBS=$LIBS
9388 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h. */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9396 /* Override any gcc2 internal prototype to avoid an error. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9402 char AuCreateFlow ();
9404 main ()
9406 AuCreateFlow ();
9408 return 0;
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 ac_cv_lib_audio_AuCreateFlow=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_lib_audio_AuCreateFlow=no
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9443 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9444 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9445 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_NAS 1
9449 _ACEOF
9451 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9456 done
9459 CPPFLAGS="$ac_save_CPPFLAGS"
9460 XFILES='$(XFILES)'
9461 else
9462 XLIB=""
9463 X_CFLAGS=""
9464 X_LIBS=""
9467 CURSESLIBS=""
9468 if test "x$with_curses" != "xno"
9469 then
9471 for ac_header in ncurses.h
9473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475 echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9482 else
9483 # Is the header compilable?
9484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 $ac_includes_default
9493 #include <$ac_header>
9494 _ACEOF
9495 rm -f conftest.$ac_objext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_header_compiler=yes
9517 else
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_header_compiler=no
9523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9525 echo "${ECHO_T}$ac_header_compiler" >&6
9527 # Is the header present?
9528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 #include <$ac_header>
9537 _ACEOF
9538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } >/dev/null; then
9546 if test -s conftest.err; then
9547 ac_cpp_err=$ac_c_preproc_warn_flag
9548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9549 else
9550 ac_cpp_err=
9552 else
9553 ac_cpp_err=yes
9555 if test -z "$ac_cpp_err"; then
9556 ac_header_preproc=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_header_preproc=no
9563 rm -f conftest.err conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9565 echo "${ECHO_T}$ac_header_preproc" >&6
9567 # So? What about this header?
9568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9569 yes:no: )
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9574 ac_header_preproc=yes
9576 no:yes:* )
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9590 cat <<\_ASBOX
9591 ## ------------------------------------ ##
9592 ## Report this to wine-devel@winehq.org ##
9593 ## ------------------------------------ ##
9594 _ASBOX
9596 sed "s/^/$as_me: WARNING: /" >&2
9598 esac
9599 echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 eval "$as_ac_Header=\$ac_header_preproc"
9606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9611 cat >>confdefs.h <<_ACEOF
9612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9613 _ACEOF
9614 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9615 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9616 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-lncurses $LIBS"
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9628 /* Override any gcc2 internal prototype to avoid an error. */
9629 #ifdef __cplusplus
9630 extern "C"
9631 #endif
9632 /* We use char because int might match the return type of a gcc2
9633 builtin and then its argument prototype would still apply. */
9634 char waddch ();
9636 main ()
9638 waddch ();
9640 return 0;
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_lib_ncurses_waddch=yes
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_ncurses_waddch=no
9671 rm -f conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 LIBS=$ac_check_lib_save_LIBS
9675 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9676 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9677 if test $ac_cv_lib_ncurses_waddch = yes; then
9679 cat >>confdefs.h <<\_ACEOF
9680 #define HAVE_LIBNCURSES 1
9681 _ACEOF
9683 CURSESLIBS="-lncurses"
9684 else
9686 for ac_header in curses.h
9688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo "$as_me:$LINENO: checking for $ac_header" >&5
9691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9697 else
9698 # Is the header compilable?
9699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <$ac_header>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_header_compiler=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_header_compiler=no
9738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9740 echo "${ECHO_T}$ac_header_compiler" >&6
9742 # Is the header present?
9743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 #include <$ac_header>
9752 _ACEOF
9753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } >/dev/null; then
9761 if test -s conftest.err; then
9762 ac_cpp_err=$ac_c_preproc_warn_flag
9763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9764 else
9765 ac_cpp_err=
9767 else
9768 ac_cpp_err=yes
9770 if test -z "$ac_cpp_err"; then
9771 ac_header_preproc=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_header_preproc=no
9778 rm -f conftest.err conftest.$ac_ext
9779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9780 echo "${ECHO_T}$ac_header_preproc" >&6
9782 # So? What about this header?
9783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9784 yes:no: )
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9789 ac_header_preproc=yes
9791 no:yes:* )
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9805 cat <<\_ASBOX
9806 ## ------------------------------------ ##
9807 ## Report this to wine-devel@winehq.org ##
9808 ## ------------------------------------ ##
9809 _ASBOX
9811 sed "s/^/$as_me: WARNING: /" >&2
9813 esac
9814 echo "$as_me:$LINENO: checking for $ac_header" >&5
9815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 eval "$as_ac_Header=\$ac_header_preproc"
9821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9826 cat >>confdefs.h <<_ACEOF
9827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 _ACEOF
9829 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9830 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9831 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-lcurses $LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any gcc2 internal prototype to avoid an error. */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849 char waddch ();
9851 main ()
9853 waddch ();
9855 return 0;
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_curses_waddch=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_lib_curses_waddch=no
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9891 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9892 if test $ac_cv_lib_curses_waddch = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_LIBCURSES 1
9896 _ACEOF
9898 CURSESLIBS="-lcurses"
9903 done
9909 done
9911 saved_libs="$LIBS"
9912 LIBS="$CURSESLIBS $LIBS"
9915 for ac_func in getbkgd resizeterm
9917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9944 #undef $ac_func
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 #ifdef __cplusplus
9948 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953 char $ac_func ();
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9958 choke me
9959 #else
9960 char (*f) () = $ac_func;
9961 #endif
9962 #ifdef __cplusplus
9964 #endif
9967 main ()
9969 return f != $ac_func;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 eval "$as_ac_var=yes"
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 eval "$as_ac_var=no"
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10010 _ACEOF
10013 done
10015 LIBS="$saved_libs"
10019 # Extract the first word of "sane-config", so it can be a program name with args.
10020 set dummy sane-config; ac_word=$2
10021 echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10023 if test "${ac_cv_prog_sane_devel+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 if test -n "$sane_devel"; then
10027 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10028 else
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_prog_sane_devel="sane-config"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10043 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10046 sane_devel=$ac_cv_prog_sane_devel
10047 if test -n "$sane_devel"; then
10048 echo "$as_me:$LINENO: result: $sane_devel" >&5
10049 echo "${ECHO_T}$sane_devel" >&6
10050 else
10051 echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6
10055 if test "$sane_devel" = "no"
10056 then
10057 SANELIBS=""
10058 SANEINCL=""
10059 else
10060 SANELIBS="`$sane_devel --libs`"
10061 SANEINCL="`$sane_devel --cflags`"
10062 ac_save_CPPFLAGS="$CPPFLAGS"
10063 ac_save_LIBS="$LIBS"
10064 CPPFLAGS="$CPPFLAGS $SANEINCL"
10065 LIBS="$LIBS $SANELIBS"
10066 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10067 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10068 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10069 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10073 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10074 else
10075 # Is the header compilable?
10076 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10077 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <sane/sane.h>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_header_compiler=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_header_compiler=no
10115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10117 echo "${ECHO_T}$ac_header_compiler" >&6
10119 # Is the header present?
10120 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10121 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <sane/sane.h>
10129 _ACEOF
10130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } >/dev/null; then
10138 if test -s conftest.err; then
10139 ac_cpp_err=$ac_c_preproc_warn_flag
10140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10141 else
10142 ac_cpp_err=
10144 else
10145 ac_cpp_err=yes
10147 if test -z "$ac_cpp_err"; then
10148 ac_header_preproc=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_preproc=no
10155 rm -f conftest.err conftest.$ac_ext
10156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10157 echo "${ECHO_T}$ac_header_preproc" >&6
10159 # So? What about this header?
10160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10161 yes:no: )
10162 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10163 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10165 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10166 ac_header_preproc=yes
10168 no:yes:* )
10169 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10170 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10172 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10174 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10176 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10178 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10180 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10182 cat <<\_ASBOX
10183 ## ------------------------------------ ##
10184 ## Report this to wine-devel@winehq.org ##
10185 ## ------------------------------------ ##
10186 _ASBOX
10188 sed "s/^/$as_me: WARNING: /" >&2
10190 esac
10191 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10192 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10193 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196 ac_cv_header_sane_sane_h=$ac_header_preproc
10198 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10199 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10202 if test $ac_cv_header_sane_sane_h = yes; then
10203 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10204 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10205 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208 ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-lsane $LIBS"
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10217 /* Override any gcc2 internal prototype to avoid an error. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 /* We use char because int might match the return type of a gcc2
10222 builtin and then its argument prototype would still apply. */
10223 char sane_open ();
10225 main ()
10227 sane_open ();
10229 return 0;
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_lib_sane_sane_open=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_cv_lib_sane_sane_open=no
10260 rm -f conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10265 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10266 if test $ac_cv_lib_sane_sane_open = yes; then
10268 cat >>confdefs.h <<\_ACEOF
10269 #define HAVE_SANE 1
10270 _ACEOF
10272 else
10273 SANELIBS=""
10274 SANEINCL=""
10277 else
10278 SANELIBS=""
10279 SANEINCL=""
10283 LIBS="$ac_save_LIBS"
10284 CPPFLAGS="$ac_save_CPPFLAGS"
10290 for ac_header in unicode/ubidi.h
10292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo "$as_me:$LINENO: checking for $ac_header" >&5
10295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10301 else
10302 # Is the header compilable?
10303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <$ac_header>
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_header_compiler=yes
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_header_compiler=no
10342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10344 echo "${ECHO_T}$ac_header_compiler" >&6
10346 # Is the header present?
10347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <$ac_header>
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev/null; then
10365 if test -s conftest.err; then
10366 ac_cpp_err=$ac_c_preproc_warn_flag
10367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10368 else
10369 ac_cpp_err=
10371 else
10372 ac_cpp_err=yes
10374 if test -z "$ac_cpp_err"; then
10375 ac_header_preproc=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_header_preproc=no
10382 rm -f conftest.err conftest.$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10384 echo "${ECHO_T}$ac_header_preproc" >&6
10386 # So? What about this header?
10387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10388 yes:no: )
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10393 ac_header_preproc=yes
10395 no:yes:* )
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10409 cat <<\_ASBOX
10410 ## ------------------------------------ ##
10411 ## Report this to wine-devel@winehq.org ##
10412 ## ------------------------------------ ##
10413 _ASBOX
10415 sed "s/^/$as_me: WARNING: /" >&2
10417 esac
10418 echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 eval "$as_ac_Header=\$ac_header_preproc"
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 _ACEOF
10436 done
10438 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10439 then
10440 saved_libs="$LIBS"
10441 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10442 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10443 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10444 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <unicode/ubidi.h>
10453 main ()
10455 ubidi_open()
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_ICU 1
10484 _ACEOF
10486 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS="$saved_libs"
10498 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10499 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10500 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lfreetype $X_LIBS $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
10518 char FT_Init_FreeType ();
10520 main ()
10522 FT_Init_FreeType ();
10524 return 0;
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529 (eval $ac_link) 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest$ac_exeext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_lib_freetype_FT_Init_FreeType=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_lib_freetype_FT_Init_FreeType=no
10555 rm -f conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LIBS=$ac_check_lib_save_LIBS
10559 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10560 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10561 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10562 ft_lib=yes
10563 else
10564 ft_lib=no
10567 if test "$ft_lib" = "no"
10568 then
10569 FREETYPEINCL=""
10570 wine_cv_msg_freetype=no
10571 else
10572 # Extract the first word of "freetype-config", so it can be a program name with args.
10573 set dummy freetype-config; ac_word=$2
10574 echo "$as_me:$LINENO: checking for $ac_word" >&5
10575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576 if test "${ac_cv_prog_ft_devel+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 if test -n "$ft_devel"; then
10580 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10589 ac_cv_prog_ft_devel="freetype-config"
10590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10593 done
10594 done
10596 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10599 ft_devel=$ac_cv_prog_ft_devel
10600 if test -n "$ft_devel"; then
10601 echo "$as_me:$LINENO: result: $ft_devel" >&5
10602 echo "${ECHO_T}$ft_devel" >&6
10603 else
10604 echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6
10608 if test "$ft_devel" = "no"
10609 then
10610 # Extract the first word of "freetype2-config", so it can be a program name with args.
10611 set dummy freetype2-config; ac_word=$2
10612 echo "$as_me:$LINENO: checking for $ac_word" >&5
10613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10614 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 if test -n "$ft_devel2"; then
10618 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_prog_ft_devel2="freetype2-config"
10628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10631 done
10632 done
10634 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10637 ft_devel2=$ac_cv_prog_ft_devel2
10638 if test -n "$ft_devel2"; then
10639 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10640 echo "${ECHO_T}$ft_devel2" >&6
10641 else
10642 echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10646 if test "$ft_devel2" = "freetype2-config"
10647 then
10648 ft_devel=$ft_devel2
10651 if test "$ft_devel" = "no"
10652 then
10653 FREETYPEINCL=""
10654 wine_cv_msg_freetype=yes
10655 else
10656 FREETYPEINCL=`$ft_devel --cflags`
10657 ac_save_CPPFLAGS="$CPPFLAGS"
10658 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10668 for ac_header in ft2build.h \
10669 freetype/freetype.h \
10670 freetype/ftglyph.h \
10671 freetype/tttables.h \
10672 freetype/ftnames.h \
10673 freetype/ftsnames.h \
10674 freetype/ttnameid.h \
10675 freetype/ftoutln.h \
10676 freetype/internal/sfnt.h
10678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10679 echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #if HAVE_FT2BUILD_H
10691 #include <ft2build.h>
10692 #endif
10694 #include <$ac_header>
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 eval "$as_ac_Header=yes"
10718 else
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 eval "$as_ac_Header=no"
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 _ACEOF
10735 done
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <ft2build.h>
10744 #include <freetype/fttrigon.h>
10745 _ACEOF
10746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } >/dev/null; then
10754 if test -s conftest.err; then
10755 ac_cpp_err=$ac_c_preproc_warn_flag
10756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10757 else
10758 ac_cpp_err=
10760 else
10761 ac_cpp_err=yes
10763 if test -z "$ac_cpp_err"; then
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_FREETYPE_FTTRIGON_H 1
10767 _ACEOF
10769 wine_cv_fttrigon=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 wine_cv_fttrigon=no
10776 rm -f conftest.err conftest.$ac_ext
10777 CPPFLAGS="$ac_save_CPPFLAGS"
10778 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10779 then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define HAVE_FREETYPE 1
10783 _ACEOF
10785 wine_cv_msg_freetype=no
10786 else
10787 FREETYPEINCL=""
10788 wine_cv_msg_freetype=yes
10794 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10795 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10796 if test "${ac_cv_c_ppdev+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <linux/ppdev.h>
10807 main ()
10809 ioctl (1,PPCLAIM,0)
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10816 (eval $ac_compile) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_cv_c_ppdev="yes"
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_cv_c_ppdev="no"
10842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10846 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10847 if test "$ac_cv_c_ppdev" = "yes"
10848 then
10850 cat >>confdefs.h <<\_ACEOF
10851 #define HAVE_PPDEV 1
10852 _ACEOF
10856 echo "$as_me:$LINENO: checking for va_copy" >&5
10857 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10858 if test "${ac_cv_c_va_copy+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 #include <stdarg.h>
10869 main ()
10871 va_list ap1, ap2;
10872 va_copy(ap1,ap2);
10875 return 0;
10877 _ACEOF
10878 rm -f conftest.$ac_objext conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880 (eval $ac_link) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest$ac_exeext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_cv_c_va_copy="yes"
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_cv_c_va_copy="no"
10906 rm -f conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10911 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10912 if test "$ac_cv_c_va_copy" = "yes"
10913 then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_VA_COPY 1
10917 _ACEOF
10920 echo "$as_me:$LINENO: checking for __va_copy" >&5
10921 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10922 if test "${ac_cv_c___va_copy+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #include <stdarg.h>
10933 main ()
10935 va_list ap1, ap2;
10936 __va_copy(ap1,ap2);
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_c___va_copy="yes"
10964 else
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_cv_c___va_copy="no"
10970 rm -f conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10975 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10976 if test "$ac_cv_c___va_copy" = "yes"
10977 then
10979 cat >>confdefs.h <<\_ACEOF
10980 #define HAVE___VA_COPY 1
10981 _ACEOF
10985 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10986 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10987 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <setjmp.h>
10998 main ()
11000 sigjmp_buf buf;
11001 sigsetjmp( buf, 1 );
11002 siglongjmp( buf, 1 );
11004 return 0;
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_cv_c_sigsetjmp="yes"
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_cv_c_sigsetjmp="no"
11035 rm -f conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11040 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11041 if test "$ac_cv_c_sigsetjmp" = "yes"
11042 then
11044 cat >>confdefs.h <<\_ACEOF
11045 #define HAVE_SIGSETJMP 1
11046 _ACEOF
11050 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11051 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11052 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 #define _GNU_SOURCE
11062 #include <pthread.h>
11065 main ()
11067 if ((pthread_rwlock_t *) 0)
11068 return 0;
11069 if (sizeof (pthread_rwlock_t))
11070 return 0;
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest.$ac_objext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_type_pthread_rwlock_t=yes
11097 else
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 ac_cv_type_pthread_rwlock_t=no
11103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11105 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11106 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11107 if test $ac_cv_type_pthread_rwlock_t = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_PTHREAD_RWLOCK_T 1
11111 _ACEOF
11115 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11116 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11117 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #define _GNU_SOURCE
11127 #include <pthread.h>
11130 main ()
11132 if ((pthread_rwlockattr_t *) 0)
11133 return 0;
11134 if (sizeof (pthread_rwlockattr_t))
11135 return 0;
11137 return 0;
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest.$ac_objext'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_cv_type_pthread_rwlockattr_t=yes
11162 else
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_cv_type_pthread_rwlockattr_t=no
11168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11171 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11172 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11176 _ACEOF
11182 ac_save_LIBS="$LIBS"
11183 LIBS="$LIBS $LIBPTHREAD"
11185 for ac_func in pthread_getattr_np
11187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11188 echo "$as_me:$LINENO: checking for $ac_func" >&5
11189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_var+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11201 #define $ac_func innocuous_$ac_func
11203 /* System header to define __stub macros and hopefully few prototypes,
11204 which can conflict with char $ac_func (); below.
11205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11206 <limits.h> exists even on freestanding compilers. */
11208 #ifdef __STDC__
11209 # include <limits.h>
11210 #else
11211 # include <assert.h>
11212 #endif
11214 #undef $ac_func
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 #ifdef __cplusplus
11218 extern "C"
11220 #endif
11221 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */
11223 char $ac_func ();
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11228 choke me
11229 #else
11230 char (*f) () = $ac_func;
11231 #endif
11232 #ifdef __cplusplus
11234 #endif
11237 main ()
11239 return f != $ac_func;
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 eval "$as_ac_var=yes"
11266 else
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 eval "$as_ac_var=no"
11272 rm -f conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11277 if test `eval echo '${'$as_ac_var'}'` = yes; then
11278 cat >>confdefs.h <<_ACEOF
11279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280 _ACEOF
11283 done
11285 LIBS="$ac_save_LIBS"
11290 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11301 else
11302 # Is the header compilable?
11303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11312 #include <$ac_header>
11313 _ACEOF
11314 rm -f conftest.$ac_objext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11316 (eval $ac_compile) 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_header_compiler=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_compiler=no
11342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11344 echo "${ECHO_T}$ac_header_compiler" >&6
11346 # Is the header present?
11347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <$ac_header>
11356 _ACEOF
11357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } >/dev/null; then
11365 if test -s conftest.err; then
11366 ac_cpp_err=$ac_c_preproc_warn_flag
11367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11368 else
11369 ac_cpp_err=
11371 else
11372 ac_cpp_err=yes
11374 if test -z "$ac_cpp_err"; then
11375 ac_header_preproc=yes
11376 else
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_header_preproc=no
11382 rm -f conftest.err conftest.$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11384 echo "${ECHO_T}$ac_header_preproc" >&6
11386 # So? What about this header?
11387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11388 yes:no: )
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11393 ac_header_preproc=yes
11395 no:yes:* )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11409 cat <<\_ASBOX
11410 ## ------------------------------------ ##
11411 ## Report this to wine-devel@winehq.org ##
11412 ## ------------------------------------ ##
11413 _ASBOX
11415 sed "s/^/$as_me: WARNING: /" >&2
11417 esac
11418 echo "$as_me:$LINENO: checking for $ac_header" >&5
11419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423 eval "$as_ac_Header=\$ac_header_preproc"
11425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11430 cat >>confdefs.h <<_ACEOF
11431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432 _ACEOF
11433 break
11436 done
11439 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11440 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11441 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 #if defined(HAVE_SYS_SOUNDCARD_H)
11452 #include <sys/soundcard.h>
11453 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11454 #include <machine/soundcard.h>
11455 #elif defined(HAVE_SOUNDCARD_H)
11456 #include <soundcard.h>
11457 #endif
11460 main ()
11464 /* check for one of the Open Sound System specific SNDCTL_ defines */
11465 #if !defined(SNDCTL_DSP_STEREO)
11466 #error No open sound system
11467 #endif
11470 return 0;
11472 _ACEOF
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>conftest.er1
11476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_cv_c_opensoundsystem="yes"
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_cv_c_opensoundsystem="no"
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11504 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11506 if test "$ac_cv_c_opensoundsystem" = "yes"
11507 then
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_OSS 1
11511 _ACEOF
11515 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11516 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11517 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 else
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11527 #if defined(HAVE_SYS_SOUNDCARD_H)
11528 #include <sys/soundcard.h>
11529 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11530 #include <machine/soundcard.h>
11531 #elif defined(HAVE_SOUNDCARD_H)
11532 #include <soundcard.h>
11533 #endif
11536 main ()
11540 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11541 #if !defined(SNDCTL_SEQ_SYNC)
11542 #error No open sound system MIDI interface
11543 #endif
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest.$ac_objext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 ac_cv_c_opensoundsystem_midi="yes"
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_cv_c_opensoundsystem_midi="no"
11577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11580 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11582 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11583 then
11585 cat >>confdefs.h <<\_ACEOF
11586 #define HAVE_OSS_MIDI 1
11587 _ACEOF
11591 # Extract the first word of "artsc-config", so it can be a program name with args.
11592 set dummy artsc-config; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598 case $ARTSCCONFIG in
11599 [\\/]* | ?:[\\/]*)
11600 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11614 done
11615 done
11618 esac
11620 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11622 if test -n "$ARTSCCONFIG"; then
11623 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11624 echo "${ECHO_T}$ARTSCCONFIG" >&6
11625 else
11626 echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11630 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11631 then
11632 ARTSC_CFLAGS=""
11633 for i in `$ARTSCCONFIG --cflags`
11635 case "$i" in
11636 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11637 esac
11638 done
11639 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11640 save_CFLAGS="$CFLAGS"
11641 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include <artsc.h>
11650 main ()
11652 arts_stream_t stream;
11654 return 0;
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest.$ac_objext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ARTSLIBS=$ARTSC_LIBS
11680 ARTSINCL=$ARTSC_CFLAGS
11683 cat >>confdefs.h <<\_ACEOF
11684 #define HAVE_ARTS 1
11685 _ACEOF
11687 else
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11693 CFLAGS="$save_CFLAGS"
11696 ALSALIBS=""
11700 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11704 echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11711 else
11712 # Is the header compilable?
11713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 $ac_includes_default
11722 #include <$ac_header>
11723 _ACEOF
11724 rm -f conftest.$ac_objext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_header_compiler=yes
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_header_compiler=no
11752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11754 echo "${ECHO_T}$ac_header_compiler" >&6
11756 # Is the header present?
11757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 #include <$ac_header>
11766 _ACEOF
11767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } >/dev/null; then
11775 if test -s conftest.err; then
11776 ac_cpp_err=$ac_c_preproc_warn_flag
11777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11778 else
11779 ac_cpp_err=
11781 else
11782 ac_cpp_err=yes
11784 if test -z "$ac_cpp_err"; then
11785 ac_header_preproc=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_preproc=no
11792 rm -f conftest.err conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11794 echo "${ECHO_T}$ac_header_preproc" >&6
11796 # So? What about this header?
11797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11798 yes:no: )
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11803 ac_header_preproc=yes
11805 no:yes:* )
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11819 cat <<\_ASBOX
11820 ## ------------------------------------ ##
11821 ## Report this to wine-devel@winehq.org ##
11822 ## ------------------------------------ ##
11823 _ASBOX
11825 sed "s/^/$as_me: WARNING: /" >&2
11827 esac
11828 echo "$as_me:$LINENO: checking for $ac_header" >&5
11829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833 eval "$as_ac_Header=\$ac_header_preproc"
11835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11842 _ACEOF
11843 break
11846 done
11848 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11849 then
11850 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11851 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11852 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lasound $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11864 /* Override any gcc2 internal prototype to avoid an error. */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 /* We use char because int might match the return type of a gcc2
11869 builtin and then its argument prototype would still apply. */
11870 char snd_pcm_open ();
11872 main ()
11874 snd_pcm_open ();
11876 return 0;
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881 (eval $ac_link) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_asound_snd_pcm_open=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_lib_asound_snd_pcm_open=no
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11912 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11913 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_ALSA 1
11917 _ACEOF
11919 ALSALIBS="-lasound"
11925 AUDIOIOLIBS=""
11928 for ac_header in libaudioio.h
11930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11932 echo "$as_me:$LINENO: checking for $ac_header" >&5
11933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11939 else
11940 # Is the header compilable?
11941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11950 #include <$ac_header>
11951 _ACEOF
11952 rm -f conftest.$ac_objext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11954 (eval $ac_compile) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_header_compiler=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_compiler=no
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11982 echo "${ECHO_T}$ac_header_compiler" >&6
11984 # Is the header present?
11985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 #include <$ac_header>
11994 _ACEOF
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12006 else
12007 ac_cpp_err=
12009 else
12010 ac_cpp_err=yes
12012 if test -z "$ac_cpp_err"; then
12013 ac_header_preproc=yes
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 ac_header_preproc=no
12020 rm -f conftest.err conftest.$ac_ext
12021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12022 echo "${ECHO_T}$ac_header_preproc" >&6
12024 # So? What about this header?
12025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12026 yes:no: )
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12031 ac_header_preproc=yes
12033 no:yes:* )
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12047 cat <<\_ASBOX
12048 ## ------------------------------------ ##
12049 ## Report this to wine-devel@winehq.org ##
12050 ## ------------------------------------ ##
12051 _ASBOX
12053 sed "s/^/$as_me: WARNING: /" >&2
12055 esac
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061 eval "$as_ac_Header=\$ac_header_preproc"
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070 _ACEOF
12071 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12072 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12073 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-laudioio $LIBS"
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12091 char AudioIOGetVersion ();
12093 main ()
12095 AudioIOGetVersion ();
12097 return 0;
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_lib_audioio_AudioIOGetVersion=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_cv_lib_audioio_AudioIOGetVersion=no
12128 rm -f conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 LIBS=$ac_check_lib_save_LIBS
12132 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12133 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12134 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12135 AUDIOIOLIBS="-laudioio"
12137 cat >>confdefs.h <<\_ACEOF
12138 #define HAVE_LIBAUDIOIO 1
12139 _ACEOF
12145 done
12150 for ac_header in capi20.h
12152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12154 echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12161 else
12162 # Is the header compilable?
12163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12172 #include <$ac_header>
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12176 (eval $ac_compile) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_header_compiler=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_compiler=no
12202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12204 echo "${ECHO_T}$ac_header_compiler" >&6
12206 # Is the header present?
12207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 #include <$ac_header>
12216 _ACEOF
12217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } >/dev/null; then
12225 if test -s conftest.err; then
12226 ac_cpp_err=$ac_c_preproc_warn_flag
12227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12228 else
12229 ac_cpp_err=
12231 else
12232 ac_cpp_err=yes
12234 if test -z "$ac_cpp_err"; then
12235 ac_header_preproc=yes
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ac_header_preproc=no
12242 rm -f conftest.err conftest.$ac_ext
12243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244 echo "${ECHO_T}$ac_header_preproc" >&6
12246 # So? What about this header?
12247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12248 yes:no: )
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12253 ac_header_preproc=yes
12255 no:yes:* )
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12269 cat <<\_ASBOX
12270 ## ------------------------------------ ##
12271 ## Report this to wine-devel@winehq.org ##
12272 ## ------------------------------------ ##
12273 _ASBOX
12275 sed "s/^/$as_me: WARNING: /" >&2
12277 esac
12278 echo "$as_me:$LINENO: checking for $ac_header" >&5
12279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 eval "$as_ac_Header=\$ac_header_preproc"
12285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12290 cat >>confdefs.h <<_ACEOF
12291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12292 _ACEOF
12295 for ac_header in linux/capi.h
12297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12299 echo "$as_me:$LINENO: checking for $ac_header" >&5
12300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12306 else
12307 # Is the header compilable?
12308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 $ac_includes_default
12317 #include <$ac_header>
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12321 (eval $ac_compile) 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_header_compiler=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_compiler=no
12347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12349 echo "${ECHO_T}$ac_header_compiler" >&6
12351 # Is the header present?
12352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 #include <$ac_header>
12361 _ACEOF
12362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } >/dev/null; then
12370 if test -s conftest.err; then
12371 ac_cpp_err=$ac_c_preproc_warn_flag
12372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12373 else
12374 ac_cpp_err=
12376 else
12377 ac_cpp_err=yes
12379 if test -z "$ac_cpp_err"; then
12380 ac_header_preproc=yes
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_header_preproc=no
12387 rm -f conftest.err conftest.$ac_ext
12388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12389 echo "${ECHO_T}$ac_header_preproc" >&6
12391 # So? What about this header?
12392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12393 yes:no: )
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12398 ac_header_preproc=yes
12400 no:yes:* )
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12414 cat <<\_ASBOX
12415 ## ------------------------------------ ##
12416 ## Report this to wine-devel@winehq.org ##
12417 ## ------------------------------------ ##
12418 _ASBOX
12420 sed "s/^/$as_me: WARNING: /" >&2
12422 esac
12423 echo "$as_me:$LINENO: checking for $ac_header" >&5
12424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 eval "$as_ac_Header=\$ac_header_preproc"
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12435 cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12437 _ACEOF
12439 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12440 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12441 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lcapi20 $LIBS"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459 char capi20_register ();
12461 main ()
12463 capi20_register ();
12465 return 0;
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_lib_capi20_capi20_register=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_cv_lib_capi20_capi20_register=no
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12500 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12501 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12502 if test $ac_cv_lib_capi20_capi20_register = yes; then
12505 cat >>confdefs.h <<\_ACEOF
12506 #define HAVE_CAPI4LINUX 1
12507 _ACEOF
12509 CAPI4LINUXLIBS="-lcapi20"
12517 done
12522 done
12526 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12527 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12528 if test "${ac_cv_mmap64_works+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 if test "$cross_compiling" = yes; then
12532 ac_cv_mmap64_works="no"
12533 else
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 #define _FILE_OFFSET_BITS 64
12542 #include <stdio.h>
12543 #include <unistd.h>
12544 #include <fcntl.h>
12545 #include <sys/mman.h>
12546 #include <errno.h>
12548 int main(int argc,char **argv) {
12549 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12550 if (fd == -1) exit(1);
12552 unlink("conftest.map");
12554 write(fd,"test",4);
12556 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12557 (errno == EINVAL)
12559 exit(1);
12561 close(fd);
12562 fprintf(stderr,"success!\n");
12563 exit(0);
12567 _ACEOF
12568 rm -f conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 (eval $ac_link) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_cv_mmap64_works="yes"
12580 else
12581 echo "$as_me: program exited with status $ac_status" >&5
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ( exit $ac_status )
12586 ac_cv_mmap64_works="no"
12588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12592 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12594 if test "$ac_cv_mmap64_works" = "yes"
12595 then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define _FILE_OFFSET_BITS 64
12599 _ACEOF
12604 EXTRACFLAGS=""
12606 if test "x${GCC}" = "xyes"
12607 then
12608 EXTRACFLAGS="-Wall -pipe"
12610 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12611 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12612 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 if test "$cross_compiling" = yes; then
12616 ac_cv_c_gcc_strength_bug="yes"
12617 else
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12625 int L[4] = {0,1,2,3};
12626 int main(void) {
12627 static int Array[3];
12628 unsigned int B = 3;
12629 int i;
12630 for(i=0; i<B; i++) Array[i] = i - 3;
12631 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12632 L[i] = 4;
12634 exit( Array[1] != -2 || L[2] != 3);
12636 _ACEOF
12637 rm -f conftest$ac_exeext
12638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12639 (eval $ac_link) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_c_gcc_strength_bug="no"
12649 else
12650 echo "$as_me: program exited with status $ac_status" >&5
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ( exit $ac_status )
12655 ac_cv_c_gcc_strength_bug="yes"
12657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12661 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12662 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12663 then
12664 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12667 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12668 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12669 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_wine_try_cflags_saved=$CFLAGS
12673 CFLAGS="$CFLAGS -fshort-wchar"
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12682 main ()
12686 return 0;
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_c_gcc_fshort_wchar="yes"
12711 else
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_cv_c_gcc_fshort_wchar="no"
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 CFLAGS=$ac_wine_try_cflags_saved
12721 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12722 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12723 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12724 then
12726 cat >>confdefs.h <<\_ACEOF
12727 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12728 _ACEOF
12732 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12733 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12734 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 ac_wine_try_cflags_saved=$CFLAGS
12738 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12747 main ()
12751 return 0;
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_c_gcc_stack_boundary="yes"
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_cv_c_gcc_stack_boundary="no"
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 CFLAGS=$ac_wine_try_cflags_saved
12786 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12787 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12788 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12789 then
12790 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12793 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12794 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12795 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 ac_wine_try_cflags_saved=$CFLAGS
12799 CFLAGS="$CFLAGS -fno-strict-aliasing"
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12808 main ()
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest$ac_exeext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_c_gcc_no_strict_aliasing="yes"
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_cv_c_gcc_no_strict_aliasing="no"
12843 rm -f conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 CFLAGS=$ac_wine_try_cflags_saved
12847 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12848 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12849 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12850 then
12851 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12854 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12855 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12856 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859 ac_wine_try_cflags_saved=$CFLAGS
12860 CFLAGS="$CFLAGS -gstabs+"
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12869 main ()
12873 return 0;
12875 _ACEOF
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878 (eval $ac_link) 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_c_gcc_gstabs="yes"
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ac_cv_c_gcc_gstabs="no"
12904 rm -f conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 CFLAGS=$ac_wine_try_cflags_saved
12908 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12909 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12910 if test "$ac_cv_c_gcc_gstabs" = "yes"
12911 then
12912 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12915 saved_CFLAGS="$CFLAGS"
12916 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12917 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12918 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12919 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 #include <string.h>
12930 main ()
12934 return 0;
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest.$ac_objext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_c_string_h_warnings=no
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 ac_cv_c_string_h_warnings=yes
12965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12968 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12969 CFLAGS="$saved_CFLAGS"
12970 if test "$ac_cv_c_string_h_warnings" = "no"
12971 then
12972 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12977 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12978 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12979 if test "${ac_cv_asm_func_def+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 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"); }
12991 main ()
12995 return 0;
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_asm_func_def=".def"
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13033 main ()
13037 return 0;
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest$ac_exeext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 ac_cv_asm_func_def=".type @function"
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13075 main ()
13079 return 0;
13081 _ACEOF
13082 rm -f conftest.$ac_objext conftest$ac_exeext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13084 (eval $ac_link) 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest$ac_exeext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_asm_func_def=".type 2"
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_cv_asm_func_def="unknown"
13110 rm -f conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13113 rm -f conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13116 rm -f conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13120 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13124 case "$ac_cv_asm_func_def" in
13125 ".def")
13126 cat >>confdefs.h <<\_ACEOF
13127 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13128 _ACEOF
13130 ".type @function")
13131 cat >>confdefs.h <<\_ACEOF
13132 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13133 _ACEOF
13135 ".type 2")
13136 cat >>confdefs.h <<\_ACEOF
13137 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13138 _ACEOF
13141 cat >>confdefs.h <<\_ACEOF
13142 #define __ASM_FUNC(name) ""
13143 _ACEOF
13145 esac
13148 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13149 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13150 if test "${ac_cv_c_extern_prefix+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13160 extern int ac_test;
13162 main ()
13164 if (ac_test) return 1
13166 return 0;
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_cv_c_extern_prefix="yes"
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13195 ac_cv_c_extern_prefix="no"
13197 rm -f conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13200 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13201 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13205 if test "$ac_cv_c_extern_prefix" = "yes"
13206 then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define __ASM_NAME(name) "_" name
13209 _ACEOF
13211 else
13212 cat >>confdefs.h <<\_ACEOF
13213 #define __ASM_NAME(name) name
13214 _ACEOF
13219 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13220 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13221 if test "${ac_cv_c_asm_string+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13233 main ()
13237 return 0;
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_c_asm_string=".string"
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h. */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13275 main ()
13279 return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_cv_c_asm_string=".asciz"
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13317 main ()
13321 return 0;
13323 _ACEOF
13324 rm -f conftest.$ac_objext conftest$ac_exeext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13326 (eval $ac_link) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_cv_c_asm_string=".ascii"
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13351 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13352 { (exit 1); exit 1; }; }
13354 rm -f conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13357 rm -f conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13360 rm -f conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13363 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13364 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13367 cat >>confdefs.h <<_ACEOF
13368 #define __ASM_STRING "$ac_cv_c_asm_string"
13369 _ACEOF
13373 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13374 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13375 if test "${ac_cv_c_asm_short+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13387 main ()
13391 return 0;
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest$ac_exeext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_cv_c_asm_short=".short"
13416 else
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13429 main ()
13433 return 0;
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438 (eval $ac_link) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest$ac_exeext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_c_asm_short=".half"
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13463 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13464 { (exit 1); exit 1; }; }
13466 rm -f conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13469 rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13473 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13476 cat >>confdefs.h <<_ACEOF
13477 #define __ASM_SHORT "$ac_cv_c_asm_short"
13478 _ACEOF
13482 DLLEXT=""
13484 DLLFLAGS="-D_REENTRANT"
13486 DLLIBS=""
13488 LDSHARED=""
13490 LDDLLFLAGS=""
13492 LIBEXT="so"
13494 IMPLIBEXT="def"
13497 case $host_os in
13498 cygwin*|mingw32*)
13499 if test -n "$ac_tool_prefix"; then
13500 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13501 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13502 echo "$as_me:$LINENO: checking for $ac_word" >&5
13503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13504 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 if test -n "$DLLTOOL"; then
13508 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13509 else
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13517 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 break 2
13521 done
13522 done
13526 DLLTOOL=$ac_cv_prog_DLLTOOL
13527 if test -n "$DLLTOOL"; then
13528 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13529 echo "${ECHO_T}$DLLTOOL" >&6
13530 else
13531 echo "$as_me:$LINENO: result: no" >&5
13532 echo "${ECHO_T}no" >&6
13536 if test -z "$ac_cv_prog_DLLTOOL"; then
13537 ac_ct_DLLTOOL=$DLLTOOL
13538 # Extract the first word of "dlltool", so it can be a program name with args.
13539 set dummy dlltool; ac_word=$2
13540 echo "$as_me:$LINENO: checking for $ac_word" >&5
13541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13542 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 if test -n "$ac_ct_DLLTOOL"; then
13546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13559 done
13560 done
13562 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13565 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13566 if test -n "$ac_ct_DLLTOOL"; then
13567 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13568 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13569 else
13570 echo "$as_me:$LINENO: result: no" >&5
13571 echo "${ECHO_T}no" >&6
13574 DLLTOOL=$ac_ct_DLLTOOL
13575 else
13576 DLLTOOL="$ac_cv_prog_DLLTOOL"
13579 if test -n "$ac_tool_prefix"; then
13580 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13581 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13582 echo "$as_me:$LINENO: checking for $ac_word" >&5
13583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13584 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 if test -n "$DLLWRAP"; then
13588 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13601 done
13602 done
13606 DLLWRAP=$ac_cv_prog_DLLWRAP
13607 if test -n "$DLLWRAP"; then
13608 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13609 echo "${ECHO_T}$DLLWRAP" >&6
13610 else
13611 echo "$as_me:$LINENO: result: no" >&5
13612 echo "${ECHO_T}no" >&6
13616 if test -z "$ac_cv_prog_DLLWRAP"; then
13617 ac_ct_DLLWRAP=$DLLWRAP
13618 # Extract the first word of "dllwrap", so it can be a program name with args.
13619 set dummy dllwrap; ac_word=$2
13620 echo "$as_me:$LINENO: checking for $ac_word" >&5
13621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13622 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625 if test -n "$ac_ct_DLLWRAP"; then
13626 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13639 done
13640 done
13642 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13645 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13646 if test -n "$ac_ct_DLLWRAP"; then
13647 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13648 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13649 else
13650 echo "$as_me:$LINENO: result: no" >&5
13651 echo "${ECHO_T}no" >&6
13654 DLLWRAP=$ac_ct_DLLWRAP
13655 else
13656 DLLWRAP="$ac_cv_prog_DLLWRAP"
13659 if test "$DLLWRAP" = "false"; then
13660 LIBEXT="a"
13661 else
13662 LIBEXT="dll"
13664 IMPLIBEXT="a"
13668 for ac_header in dlfcn.h
13670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13672 echo "$as_me:$LINENO: checking for $ac_header" >&5
13673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679 else
13680 # Is the header compilable?
13681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 #include <$ac_header>
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest.$ac_objext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_header_compiler=yes
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_header_compiler=no
13720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13722 echo "${ECHO_T}$ac_header_compiler" >&6
13724 # Is the header present?
13725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h. */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <$ac_header>
13734 _ACEOF
13735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } >/dev/null; then
13743 if test -s conftest.err; then
13744 ac_cpp_err=$ac_c_preproc_warn_flag
13745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13746 else
13747 ac_cpp_err=
13749 else
13750 ac_cpp_err=yes
13752 if test -z "$ac_cpp_err"; then
13753 ac_header_preproc=yes
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_header_preproc=no
13760 rm -f conftest.err conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13762 echo "${ECHO_T}$ac_header_preproc" >&6
13764 # So? What about this header?
13765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13766 yes:no: )
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13771 ac_header_preproc=yes
13773 no:yes:* )
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13787 cat <<\_ASBOX
13788 ## ------------------------------------ ##
13789 ## Report this to wine-devel@winehq.org ##
13790 ## ------------------------------------ ##
13791 _ASBOX
13793 sed "s/^/$as_me: WARNING: /" >&2
13795 esac
13796 echo "$as_me:$LINENO: checking for $ac_header" >&5
13797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 eval "$as_ac_Header=\$ac_header_preproc"
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13808 cat >>confdefs.h <<_ACEOF
13809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13810 _ACEOF
13812 for ac_func in dlopen
13814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13815 echo "$as_me:$LINENO: checking for $ac_func" >&5
13816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13817 if eval "test \"\${$as_ac_var+set}\" = set"; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820 cat >conftest.$ac_ext <<_ACEOF
13821 /* confdefs.h. */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13828 #define $ac_func innocuous_$ac_func
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char $ac_func (); below.
13832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13833 <limits.h> exists even on freestanding compilers. */
13835 #ifdef __STDC__
13836 # include <limits.h>
13837 #else
13838 # include <assert.h>
13839 #endif
13841 #undef $ac_func
13843 /* Override any gcc2 internal prototype to avoid an error. */
13844 #ifdef __cplusplus
13845 extern "C"
13847 #endif
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13850 char $ac_func ();
13851 /* The GNU C library defines this for functions which it implements
13852 to always fail with ENOSYS. Some functions are actually named
13853 something starting with __ and the normal name is an alias. */
13854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13855 choke me
13856 #else
13857 char (*f) () = $ac_func;
13858 #endif
13859 #ifdef __cplusplus
13861 #endif
13864 main ()
13866 return f != $ac_func;
13868 return 0;
13870 _ACEOF
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 eval "$as_ac_var=yes"
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_var=no"
13899 rm -f conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13907 _ACEOF
13909 else
13910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915 ac_check_lib_save_LIBS=$LIBS
13916 LIBS="-ldl $LIBS"
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13924 /* Override any gcc2 internal prototype to avoid an error. */
13925 #ifdef __cplusplus
13926 extern "C"
13927 #endif
13928 /* We use char because int might match the return type of a gcc2
13929 builtin and then its argument prototype would still apply. */
13930 char dlopen ();
13932 main ()
13934 dlopen ();
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_dl_dlopen=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_cv_lib_dl_dlopen=no
13967 rm -f conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13973 if test $ac_cv_lib_dl_dlopen = yes; then
13975 cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_DLOPEN 1
13977 _ACEOF
13979 DLLIBS="-ldl"
13980 else
13981 LIBEXT="a"
13985 done
13987 else
13988 LIBEXT="a"
13991 done
13994 if test "$LIBEXT" = "so"
13995 then
13996 DLLFLAGS="$DLLFLAGS -fPIC"
13997 DLLEXT=".so"
13998 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13999 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
14000 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 ac_wine_try_cflags_saved=$CFLAGS
14004 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14013 main ()
14017 return 0;
14019 _ACEOF
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_cv_c_dll_gnuelf="yes"
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_cv_c_dll_gnuelf="no"
14048 rm -f conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 CFLAGS=$ac_wine_try_cflags_saved
14052 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14053 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14054 if test "$ac_cv_c_dll_gnuelf" = "yes"
14055 then
14056 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14057 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14058 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14059 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14060 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 ac_wine_try_cflags_saved=$CFLAGS
14064 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14073 main ()
14077 return 0;
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_c_dll_zdefs="yes"
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106 ac_cv_c_dll_zdefs="no"
14108 rm -f conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 CFLAGS=$ac_wine_try_cflags_saved
14112 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14113 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14114 if test "$ac_cv_c_dll_zdefs" = "yes"
14115 then
14116 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14119 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14120 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14121 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124 ac_wine_try_cflags_saved=$CFLAGS
14125 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14134 main ()
14138 return 0;
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>conftest.er1
14144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } &&
14150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest$ac_exeext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_c_dll_init_fini="yes"
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_c_dll_init_fini="no"
14169 rm -f conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 CFLAGS=$ac_wine_try_cflags_saved
14173 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14174 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14175 if test "$ac_cv_c_dll_init_fini" = "yes"
14176 then
14177 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14180 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14181 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14182 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185 echo '{ global: *; };' >conftest.map
14186 ac_wine_try_cflags_saved=$CFLAGS
14187 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h. */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14196 main ()
14200 return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_c_ld_version_scripts="yes"
14225 else
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14229 ac_cv_c_ld_version_scripts="no"
14231 rm -f conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 CFLAGS=$ac_wine_try_cflags_saved
14234 rm -f conftest.map
14236 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14237 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14238 if test "$ac_cv_c_ld_version_scripts" = "yes"
14239 then
14240 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14243 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14244 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14245 if test "${ac_cv_c_export_dynamic+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 ac_wine_try_cflags_saved=$CFLAGS
14249 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14258 main ()
14262 return 0;
14264 _ACEOF
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest$ac_exeext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_c_export_dynamic="yes"
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_cv_c_export_dynamic="no"
14293 rm -f conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14295 CFLAGS=$ac_wine_try_cflags_saved
14297 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14298 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14299 if test "$ac_cv_c_export_dynamic" = "yes"
14300 then
14301 LDEXECFLAGS="-Wl,--export-dynamic"
14305 case $host_cpu in
14306 *i[3456789]86*)
14307 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
14308 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
14309 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312 saved_CFLAGS="$CFLAGS"
14313 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
14314 if test "$cross_compiling" = yes; then
14315 ac_cv_ld_reloc_exec="no"
14316 else
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 #include <unistd.h>
14324 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
14325 _ACEOF
14326 rm -f conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_ld_reloc_exec="yes"
14338 else
14339 echo "$as_me: program exited with status $ac_status" >&5
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ( exit $ac_status )
14344 ac_cv_ld_reloc_exec="no"
14346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14348 CFLAGS="$saved_CFLAGS"
14350 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14351 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14352 if test "$ac_cv_ld_reloc_exec" = "yes"
14353 then
14354 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
14357 esac
14359 else
14360 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14361 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14362 if test "${ac_cv_c_dll_unixware+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 ac_wine_try_cflags_saved=$CFLAGS
14366 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14375 main ()
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_c_dll_unixware="yes"
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_c_dll_unixware="no"
14410 rm -f conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 CFLAGS=$ac_wine_try_cflags_saved
14414 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14415 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14416 if test "$ac_cv_c_dll_unixware" = "yes"
14417 then
14418 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14419 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14421 else
14422 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14423 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14424 if test "${ac_cv_c_dll_macho+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 ac_wine_try_cflags_saved=$CFLAGS
14428 CFLAGS="$CFLAGS -bundle"
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14437 main ()
14441 return 0;
14443 _ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14446 (eval $ac_link) 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } &&
14453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_c_dll_macho="yes"
14466 else
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_cv_c_dll_macho="no"
14472 rm -f conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
14474 CFLAGS=$ac_wine_try_cflags_saved
14476 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14477 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14478 if test "$ac_cv_c_dll_macho" = "yes"
14479 then
14480 LIBEXT="dylib"
14481 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14482 LDSHARED="\$(CC) -dynamiclib"
14483 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14489 CROSSTEST=""
14491 if test "$cross_compiling" = "no"
14492 then
14493 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14495 # Extract the first word of "$ac_prog", so it can be a program name with args.
14496 set dummy $ac_prog; ac_word=$2
14497 echo "$as_me:$LINENO: checking for $ac_word" >&5
14498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14499 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 if test -n "$CROSSCC"; then
14503 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14504 else
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14508 IFS=$as_save_IFS
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512 ac_cv_prog_CROSSCC="$ac_prog"
14513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14514 break 2
14516 done
14517 done
14521 CROSSCC=$ac_cv_prog_CROSSCC
14522 if test -n "$CROSSCC"; then
14523 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14524 echo "${ECHO_T}$CROSSCC" >&6
14525 else
14526 echo "$as_me:$LINENO: result: no" >&5
14527 echo "${ECHO_T}no" >&6
14530 test -n "$CROSSCC" && break
14531 done
14532 test -n "$CROSSCC" || CROSSCC="false"
14534 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14536 # Extract the first word of "$ac_prog", so it can be a program name with args.
14537 set dummy $ac_prog; ac_word=$2
14538 echo "$as_me:$LINENO: checking for $ac_word" >&5
14539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14540 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 if test -n "$DLLTOOL"; then
14544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14545 else
14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14549 IFS=$as_save_IFS
14550 test -z "$as_dir" && as_dir=.
14551 for ac_exec_ext in '' $ac_executable_extensions; do
14552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553 ac_cv_prog_DLLTOOL="$ac_prog"
14554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14555 break 2
14557 done
14558 done
14562 DLLTOOL=$ac_cv_prog_DLLTOOL
14563 if test -n "$DLLTOOL"; then
14564 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14565 echo "${ECHO_T}$DLLTOOL" >&6
14566 else
14567 echo "$as_me:$LINENO: result: no" >&5
14568 echo "${ECHO_T}no" >&6
14571 test -n "$DLLTOOL" && break
14572 done
14573 test -n "$DLLTOOL" || DLLTOOL="false"
14575 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14577 # Extract the first word of "$ac_prog", so it can be a program name with args.
14578 set dummy $ac_prog; ac_word=$2
14579 echo "$as_me:$LINENO: checking for $ac_word" >&5
14580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14581 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 if test -n "$CROSSWINDRES"; then
14585 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14586 else
14587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588 for as_dir in $PATH
14590 IFS=$as_save_IFS
14591 test -z "$as_dir" && as_dir=.
14592 for ac_exec_ext in '' $ac_executable_extensions; do
14593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14594 ac_cv_prog_CROSSWINDRES="$ac_prog"
14595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 break 2
14598 done
14599 done
14603 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14604 if test -n "$CROSSWINDRES"; then
14605 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14606 echo "${ECHO_T}$CROSSWINDRES" >&6
14607 else
14608 echo "$as_me:$LINENO: result: no" >&5
14609 echo "${ECHO_T}no" >&6
14612 test -n "$CROSSWINDRES" && break
14613 done
14614 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14616 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14619 esac
14621 if test "$LIBEXT" = "a"; then
14622 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14623 It is currently not possible to build Wine without shared library
14624 (.so) support to allow transparent switch between .so and .dll files.
14625 If you are using Linux, you will need a newer binutils.
14626 " >&5
14627 echo "$as_me: error: could not find a way to build shared libraries.
14628 It is currently not possible to build Wine without shared library
14629 (.so) support to allow transparent switch between .so and .dll files.
14630 If you are using Linux, you will need a newer binutils.
14631 " >&2;}
14632 { (exit 1); exit 1; }; }
14635 case $build_os in
14636 cygwin*|mingw32*)
14637 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14639 darwin*|macosx*)
14640 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14643 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14645 esac
14647 case $host_os in
14648 mingw32*)
14649 CRTLIBS="-lmsvcrt"
14651 esac
14653 case $host_os in
14654 linux*)
14655 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14657 MAIN_BINARY="wine-glibc"
14661 WINE_BINARIES="wine-kthread"
14663 MAIN_BINARY="wine-kthread"
14666 esac
14669 if test "$LIBEXT" = "so"
14670 then
14671 # Extract the first word of "ldd", so it can be a program name with args.
14672 set dummy ldd; ac_word=$2
14673 echo "$as_me:$LINENO: checking for $ac_word" >&5
14674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14675 if test "${ac_cv_path_LDD+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 case $LDD in
14679 [\\/]* | ?:[\\/]*)
14680 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 as_dummy="/sbin:/usr/sbin:$PATH"
14685 for as_dir in $as_dummy
14687 IFS=$as_save_IFS
14688 test -z "$as_dir" && as_dir=.
14689 for ac_exec_ext in '' $ac_executable_extensions; do
14690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14691 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 break 2
14695 done
14696 done
14698 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14700 esac
14702 LDD=$ac_cv_path_LDD
14704 if test -n "$LDD"; then
14705 echo "$as_me:$LINENO: result: $LDD" >&5
14706 echo "${ECHO_T}$LDD" >&6
14707 else
14708 echo "$as_me:$LINENO: result: no" >&5
14709 echo "${ECHO_T}no" >&6
14713 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14714 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14715 if test "${ac_cv_lib_soname_X11+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 ac_get_soname_save_LIBS=$LIBS
14719 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 /* Override any gcc2 internal prototype to avoid an error. */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char XCreateWindow ();
14735 main ()
14737 XCreateWindow ();
14739 return 0;
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest$ac_exeext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14764 if test "x$ac_cv_lib_soname_X11" = "x"
14765 then
14766 ac_cv_lib_soname_X11="libX11.so"
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_lib_soname_X11="libX11.so"
14774 rm -f conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776 LIBS=$ac_get_soname_save_LIBS
14778 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14779 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14780 if test "x$ac_cv_lib_soname_X11" != xNONE
14781 then
14782 cat >>confdefs.h <<_ACEOF
14783 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14784 _ACEOF
14787 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14788 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14789 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792 ac_get_soname_save_LIBS=$LIBS
14793 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14801 /* Override any gcc2 internal prototype to avoid an error. */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 /* We use char because int might match the return type of a gcc2
14806 builtin and then its argument prototype would still apply. */
14807 char XextCreateExtension ();
14809 main ()
14811 XextCreateExtension ();
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818 (eval $ac_link) 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest$ac_exeext'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14838 if test "x$ac_cv_lib_soname_Xext" = "x"
14839 then
14840 ac_cv_lib_soname_Xext="libXext.so"
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_soname_Xext="libXext.so"
14848 rm -f conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_get_soname_save_LIBS
14852 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14853 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14854 if test "x$ac_cv_lib_soname_Xext" != xNONE
14855 then
14856 cat >>confdefs.h <<_ACEOF
14857 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14858 _ACEOF
14861 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14862 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14863 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866 ac_get_soname_save_LIBS=$LIBS
14867 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14875 /* Override any gcc2 internal prototype to avoid an error. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 /* We use char because int might match the return type of a gcc2
14880 builtin and then its argument prototype would still apply. */
14881 char XOpenDevice ();
14883 main ()
14885 XOpenDevice ();
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14912 if test "x$ac_cv_lib_soname_Xi" = "x"
14913 then
14914 ac_cv_lib_soname_Xi="libXi.so"
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_cv_lib_soname_Xi="libXi.so"
14922 rm -f conftest.err conftest.$ac_objext \
14923 conftest$ac_exeext conftest.$ac_ext
14924 LIBS=$ac_get_soname_save_LIBS
14926 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14927 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14928 if test "x$ac_cv_lib_soname_Xi" != xNONE
14929 then
14930 cat >>confdefs.h <<_ACEOF
14931 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14932 _ACEOF
14935 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14936 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14937 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940 ac_get_soname_save_LIBS=$LIBS
14941 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any gcc2 internal prototype to avoid an error. */
14950 #ifdef __cplusplus
14951 extern "C"
14952 #endif
14953 /* We use char because int might match the return type of a gcc2
14954 builtin and then its argument prototype would still apply. */
14955 char XRenderQueryExtension ();
14957 main ()
14959 XRenderQueryExtension ();
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14986 if test "x$ac_cv_lib_soname_Xrender" = "x"
14987 then
14988 ac_cv_lib_soname_Xrender="libXrender.so"
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_lib_soname_Xrender="libXrender.so"
14996 rm -f conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_get_soname_save_LIBS
15000 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15001 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15002 if test "x$ac_cv_lib_soname_Xrender" != xNONE
15003 then
15004 cat >>confdefs.h <<_ACEOF
15005 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15006 _ACEOF
15009 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15010 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15011 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014 ac_get_soname_save_LIBS=$LIBS
15015 LIBS="-lfreetype $X_LIBS $LIBS"
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 /* Override any gcc2 internal prototype to avoid an error. */
15024 #ifdef __cplusplus
15025 extern "C"
15026 #endif
15027 /* We use char because int might match the return type of a gcc2
15028 builtin and then its argument prototype would still apply. */
15029 char FT_Init_FreeType ();
15031 main ()
15033 FT_Init_FreeType ();
15035 return 0;
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
15060 if test "x$ac_cv_lib_soname_freetype" = "x"
15061 then
15062 ac_cv_lib_soname_freetype="libfreetype.so"
15064 else
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_lib_soname_freetype="libfreetype.so"
15070 rm -f conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LIBS=$ac_get_soname_save_LIBS
15074 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15075 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15076 if test "x$ac_cv_lib_soname_freetype" != xNONE
15077 then
15078 cat >>confdefs.h <<_ACEOF
15079 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15080 _ACEOF
15083 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15084 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15085 if test "${ac_cv_lib_soname_GL+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088 ac_get_soname_save_LIBS=$LIBS
15089 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any gcc2 internal prototype to avoid an error. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 /* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15103 char glXQueryExtension ();
15105 main ()
15107 glXQueryExtension ();
15109 return 0;
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest$ac_exeext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
15134 if test "x$ac_cv_lib_soname_GL" = "x"
15135 then
15136 ac_cv_lib_soname_GL="libGL.so"
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_lib_soname_GL="libGL.so"
15144 rm -f conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15146 LIBS=$ac_get_soname_save_LIBS
15148 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15149 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15150 if test "x$ac_cv_lib_soname_GL" != xNONE
15151 then
15152 cat >>confdefs.h <<_ACEOF
15153 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15154 _ACEOF
15157 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15158 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15159 if test "${ac_cv_lib_soname_cups+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162 ac_get_soname_save_LIBS=$LIBS
15163 LIBS="-lcups $LIBS"
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15171 /* Override any gcc2 internal prototype to avoid an error. */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177 char cupsGetDefault ();
15179 main ()
15181 cupsGetDefault ();
15183 return 0;
15185 _ACEOF
15186 rm -f conftest.$ac_objext conftest$ac_exeext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15188 (eval $ac_link) 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; } &&
15201 { ac_try='test -s conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
15208 if test "x$ac_cv_lib_soname_cups" = "x"
15209 then
15210 ac_cv_lib_soname_cups="libcups.so"
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_cv_lib_soname_cups="libcups.so"
15218 rm -f conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15220 LIBS=$ac_get_soname_save_LIBS
15222 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15223 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15224 if test "x$ac_cv_lib_soname_cups" != xNONE
15225 then
15226 cat >>confdefs.h <<_ACEOF
15227 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15228 _ACEOF
15231 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15232 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15233 if test "${ac_cv_lib_soname_jack+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236 ac_get_soname_save_LIBS=$LIBS
15237 LIBS="-ljack $LIBS"
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any gcc2 internal prototype to avoid an error. */
15246 #ifdef __cplusplus
15247 extern "C"
15248 #endif
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char jack_client_new ();
15253 main ()
15255 jack_client_new ();
15257 return 0;
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
15282 if test "x$ac_cv_lib_soname_jack" = "x"
15283 then
15284 ac_cv_lib_soname_jack="libjack.so"
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_cv_lib_soname_jack="libjack.so"
15292 rm -f conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
15294 LIBS=$ac_get_soname_save_LIBS
15296 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15297 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15298 if test "x$ac_cv_lib_soname_jack" != xNONE
15299 then
15300 cat >>confdefs.h <<_ACEOF
15301 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15302 _ACEOF
15305 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15306 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15307 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 ac_get_soname_save_LIBS=$LIBS
15311 LIBS="-lfontconfig $LIBS"
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15319 /* Override any gcc2 internal prototype to avoid an error. */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15325 char FcInit ();
15327 main ()
15329 FcInit ();
15331 return 0;
15333 _ACEOF
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15336 (eval $ac_link) 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest$ac_exeext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
15356 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15357 then
15358 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15366 rm -f conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_get_soname_save_LIBS
15370 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15371 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15372 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15373 then
15374 cat >>confdefs.h <<_ACEOF
15375 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15376 _ACEOF
15379 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15380 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15381 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384 ac_get_soname_save_LIBS=$LIBS
15385 LIBS="-lssl $LIBS"
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any gcc2 internal prototype to avoid an error. */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399 char SSL_library_init ();
15401 main ()
15403 SSL_library_init ();
15405 return 0;
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest$ac_exeext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
15430 if test "x$ac_cv_lib_soname_ssl" = "x"
15431 then
15432 ac_cv_lib_soname_ssl="libssl.so"
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_lib_soname_ssl="libssl.so"
15440 rm -f conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_get_soname_save_LIBS
15444 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15445 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15446 if test "x$ac_cv_lib_soname_ssl" != xNONE
15447 then
15448 cat >>confdefs.h <<_ACEOF
15449 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15450 _ACEOF
15453 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15454 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15455 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 ac_get_soname_save_LIBS=$LIBS
15459 LIBS="-lcrypto $LIBS"
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15467 /* Override any gcc2 internal prototype to avoid an error. */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15473 char BIO_new_socket ();
15475 main ()
15477 BIO_new_socket ();
15479 return 0;
15481 _ACEOF
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; } &&
15497 { ac_try='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15504 if test "x$ac_cv_lib_soname_crypto" = "x"
15505 then
15506 ac_cv_lib_soname_crypto="libcrypto.so"
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_cv_lib_soname_crypto="libcrypto.so"
15514 rm -f conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_get_soname_save_LIBS
15518 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15519 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15520 if test "x$ac_cv_lib_soname_crypto" != xNONE
15521 then
15522 cat >>confdefs.h <<_ACEOF
15523 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15524 _ACEOF
15527 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15528 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15529 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 ac_get_soname_save_LIBS=$LIBS
15533 LIBS="-lncurses $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any gcc2 internal prototype to avoid an error. */
15542 #ifdef __cplusplus
15543 extern "C"
15544 #endif
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char waddch ();
15549 main ()
15551 waddch ();
15553 return 0;
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest$ac_exeext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15578 if test "x$ac_cv_lib_soname_ncurses" = "x"
15579 then
15580 ac_cv_lib_soname_ncurses="libncurses.so"
15582 else
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_cv_lib_soname_ncurses="libncurses.so"
15588 rm -f conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
15590 LIBS=$ac_get_soname_save_LIBS
15592 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15593 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15594 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15595 then
15596 cat >>confdefs.h <<_ACEOF
15597 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15598 _ACEOF
15601 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15602 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15603 if test "${ac_cv_lib_soname_curses+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 ac_get_soname_save_LIBS=$LIBS
15607 LIBS="-lcurses $LIBS"
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h. */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15615 /* Override any gcc2 internal prototype to avoid an error. */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char waddch ();
15623 main ()
15625 waddch ();
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15652 if test "x$ac_cv_lib_soname_curses" = "x"
15653 then
15654 ac_cv_lib_soname_curses="libcurses.so"
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_cv_lib_soname_curses="libcurses.so"
15662 rm -f conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_get_soname_save_LIBS
15666 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15667 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15668 if test "x$ac_cv_lib_soname_curses" != xNONE
15669 then
15670 cat >>confdefs.h <<_ACEOF
15671 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15672 _ACEOF
15678 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15679 # for constant arguments. Useless!
15680 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15681 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15682 if test "${ac_cv_working_alloca_h+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 #include <alloca.h>
15693 main ()
15695 char *p = (char *) alloca (2 * sizeof (int));
15697 return 0;
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_working_alloca_h=yes
15722 else
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_cv_working_alloca_h=no
15728 rm -f conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15731 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15732 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15733 if test $ac_cv_working_alloca_h = yes; then
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_ALLOCA_H 1
15737 _ACEOF
15741 echo "$as_me:$LINENO: checking for alloca" >&5
15742 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15743 if test "${ac_cv_func_alloca_works+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 #ifdef __GNUC__
15753 # define alloca __builtin_alloca
15754 #else
15755 # ifdef _MSC_VER
15756 # include <malloc.h>
15757 # define alloca _alloca
15758 # else
15759 # if HAVE_ALLOCA_H
15760 # include <alloca.h>
15761 # else
15762 # ifdef _AIX
15763 #pragma alloca
15764 # else
15765 # ifndef alloca /* predefined by HP cc +Olibcalls */
15766 char *alloca ();
15767 # endif
15768 # endif
15769 # endif
15770 # endif
15771 #endif
15774 main ()
15776 char *p = (char *) alloca (1);
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783 (eval $ac_link) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_func_alloca_works=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_func_alloca_works=no
15809 rm -f conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15813 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15815 if test $ac_cv_func_alloca_works = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_ALLOCA 1
15819 _ACEOF
15821 else
15822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15823 # that cause trouble. Some versions do not even contain alloca or
15824 # contain a buggy version. If you still want to use their alloca,
15825 # use ar to extract alloca.o from them instead of compiling alloca.c.
15827 ALLOCA=alloca.$ac_objext
15829 cat >>confdefs.h <<\_ACEOF
15830 #define C_ALLOCA 1
15831 _ACEOF
15834 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15835 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15836 if test "${ac_cv_os_cray+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #if defined(CRAY) && ! defined(CRAY2)
15846 webecray
15847 #else
15848 wenotbecray
15849 #endif
15851 _ACEOF
15852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15853 $EGREP "webecray" >/dev/null 2>&1; then
15854 ac_cv_os_cray=yes
15855 else
15856 ac_cv_os_cray=no
15858 rm -f conftest*
15861 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15862 echo "${ECHO_T}$ac_cv_os_cray" >&6
15863 if test $ac_cv_os_cray = yes; then
15864 for ac_func in _getb67 GETB67 getb67; do
15865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15866 echo "$as_me:$LINENO: checking for $ac_func" >&5
15867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15868 if eval "test \"\${$as_ac_var+set}\" = set"; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15879 #define $ac_func innocuous_$ac_func
15881 /* System header to define __stub macros and hopefully few prototypes,
15882 which can conflict with char $ac_func (); below.
15883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15884 <limits.h> exists even on freestanding compilers. */
15886 #ifdef __STDC__
15887 # include <limits.h>
15888 #else
15889 # include <assert.h>
15890 #endif
15892 #undef $ac_func
15894 /* Override any gcc2 internal prototype to avoid an error. */
15895 #ifdef __cplusplus
15896 extern "C"
15898 #endif
15899 /* We use char because int might match the return type of a gcc2
15900 builtin and then its argument prototype would still apply. */
15901 char $ac_func ();
15902 /* The GNU C library defines this for functions which it implements
15903 to always fail with ENOSYS. Some functions are actually named
15904 something starting with __ and the normal name is an alias. */
15905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15906 choke me
15907 #else
15908 char (*f) () = $ac_func;
15909 #endif
15910 #ifdef __cplusplus
15912 #endif
15915 main ()
15917 return f != $ac_func;
15919 return 0;
15921 _ACEOF
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15924 (eval $ac_link) 2>conftest.er1
15925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest$ac_exeext'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 eval "$as_ac_var=yes"
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 eval "$as_ac_var=no"
15950 rm -f conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext conftest.$ac_ext
15953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15955 if test `eval echo '${'$as_ac_var'}'` = yes; then
15957 cat >>confdefs.h <<_ACEOF
15958 #define CRAY_STACKSEG_END $ac_func
15959 _ACEOF
15961 break
15964 done
15967 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15968 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15969 if test "${ac_cv_c_stack_direction+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972 if test "$cross_compiling" = yes; then
15973 ac_cv_c_stack_direction=0
15974 else
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 find_stack_direction ()
15984 static char *addr = 0;
15985 auto char dummy;
15986 if (addr == 0)
15988 addr = &dummy;
15989 return find_stack_direction ();
15991 else
15992 return (&dummy > addr) ? 1 : -1;
15996 main ()
15998 exit (find_stack_direction () < 0);
16000 _ACEOF
16001 rm -f conftest$ac_exeext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003 (eval $ac_link) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16012 ac_cv_c_stack_direction=1
16013 else
16014 echo "$as_me: program exited with status $ac_status" >&5
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ( exit $ac_status )
16019 ac_cv_c_stack_direction=-1
16021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16024 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16025 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16027 cat >>confdefs.h <<_ACEOF
16028 #define STACK_DIRECTION $ac_cv_c_stack_direction
16029 _ACEOF
16087 for ac_func in \
16088 _lwp_create \
16089 _lwp_self \
16090 _pclose \
16091 _popen \
16092 _snprintf \
16093 _spawnvp \
16094 _stricmp \
16095 _strnicmp \
16096 _vsnprintf \
16097 chsize \
16098 clone \
16099 finite \
16100 fpclass \
16101 ftruncate \
16102 ftruncate64 \
16103 getnetbyaddr \
16104 getnetbyname \
16105 getopt_long \
16106 getpagesize \
16107 getprotobyname \
16108 getprotobynumber \
16109 getpwuid \
16110 getservbyport \
16111 gettid \
16112 gettimeofday \
16113 inet_network \
16114 lseek64 \
16115 lstat \
16116 memmove \
16117 mmap \
16118 pclose \
16119 popen \
16120 pread \
16121 pwrite \
16122 readlink \
16123 rfork \
16124 select \
16125 sendmsg \
16126 settimeofday \
16127 sigaltstack \
16128 snprintf \
16129 spawnvp \
16130 statfs \
16131 strcasecmp \
16132 strerror \
16133 strncasecmp \
16134 tcgetattr \
16135 timegm \
16136 usleep \
16137 vfscanf \
16138 vsnprintf \
16139 wait4 \
16140 waitpid \
16143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16144 echo "$as_me:$LINENO: checking for $ac_func" >&5
16145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16146 if eval "test \"\${$as_ac_var+set}\" = set"; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16157 #define $ac_func innocuous_$ac_func
16159 /* System header to define __stub macros and hopefully few prototypes,
16160 which can conflict with char $ac_func (); below.
16161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16162 <limits.h> exists even on freestanding compilers. */
16164 #ifdef __STDC__
16165 # include <limits.h>
16166 #else
16167 # include <assert.h>
16168 #endif
16170 #undef $ac_func
16172 /* Override any gcc2 internal prototype to avoid an error. */
16173 #ifdef __cplusplus
16174 extern "C"
16176 #endif
16177 /* We use char because int might match the return type of a gcc2
16178 builtin and then its argument prototype would still apply. */
16179 char $ac_func ();
16180 /* The GNU C library defines this for functions which it implements
16181 to always fail with ENOSYS. Some functions are actually named
16182 something starting with __ and the normal name is an alias. */
16183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16184 choke me
16185 #else
16186 char (*f) () = $ac_func;
16187 #endif
16188 #ifdef __cplusplus
16190 #endif
16193 main ()
16195 return f != $ac_func;
16197 return 0;
16199 _ACEOF
16200 rm -f conftest.$ac_objext conftest$ac_exeext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest$ac_exeext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 eval "$as_ac_var=yes"
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 eval "$as_ac_var=no"
16228 rm -f conftest.err conftest.$ac_objext \
16229 conftest$ac_exeext conftest.$ac_ext
16231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16233 if test `eval echo '${'$as_ac_var'}'` = yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16236 _ACEOF
16239 done
16326 for ac_header in \
16327 arpa/inet.h \
16328 arpa/nameser.h \
16329 cups/cups.h \
16330 direct.h \
16331 elf.h \
16332 float.h \
16333 fontconfig/fontconfig.h \
16334 getopt.h \
16335 ieeefp.h \
16336 io.h \
16337 jack/jack.h \
16338 libio.h \
16339 libutil.h \
16340 link.h \
16341 linux/cdrom.h \
16342 linux/hdreg.h \
16343 linux/input.h \
16344 linux/ioctl.h \
16345 linux/joystick.h \
16346 linux/major.h \
16347 linux/param.h \
16348 linux/serial.h \
16349 linux/ucdrom.h \
16350 machine/cpu.h \
16351 netdb.h \
16352 netinet/in.h \
16353 netinet/in_systm.h \
16354 netinet/tcp.h \
16355 netinet/tcp_fsm.h \
16356 openssl/ssl.h \
16357 process.h \
16358 pthread.h \
16359 pty.h \
16360 pwd.h \
16361 regex.h \
16362 sched.h \
16363 scsi/sg.h \
16364 scsi/scsi.h \
16365 scsi/scsi_ioctl.h \
16366 socket.h \
16367 stdint.h \
16368 strings.h \
16369 sys/cdio.h \
16370 sys/elf32.h \
16371 sys/errno.h \
16372 sys/exec_elf.h \
16373 sys/file.h \
16374 sys/filio.h \
16375 sys/inttypes.h \
16376 sys/ioctl.h \
16377 sys/ipc.h \
16378 sys/link.h \
16379 sys/lwp.h \
16380 sys/mman.h \
16381 sys/modem.h \
16382 sys/msg.h \
16383 sys/param.h \
16384 sys/poll.h \
16385 sys/ptrace.h \
16386 sys/reg.h \
16387 sys/scsiio.h \
16388 sys/shm.h \
16389 sys/signal.h \
16390 sys/socket.h \
16391 sys/sockio.h \
16392 sys/statfs.h \
16393 sys/strtio.h \
16394 sys/syscall.h \
16395 sys/sysctl.h \
16396 sys/time.h \
16397 sys/times.h \
16398 sys/uio.h \
16399 sys/un.h \
16400 sys/v86.h \
16401 sys/v86intr.h \
16402 sys/vfs.h \
16403 sys/vm86.h \
16404 sys/wait.h \
16405 syscall.h \
16406 termios.h \
16407 unistd.h \
16408 utime.h \
16409 valgrind/memcheck.h
16412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16414 echo "$as_me:$LINENO: checking for $ac_header" >&5
16415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16421 else
16422 # Is the header compilable?
16423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 $ac_includes_default
16432 #include <$ac_header>
16433 _ACEOF
16434 rm -f conftest.$ac_objext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16436 (eval $ac_compile) 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest.$ac_objext'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_header_compiler=yes
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_header_compiler=no
16462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16464 echo "${ECHO_T}$ac_header_compiler" >&6
16466 # Is the header present?
16467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 #include <$ac_header>
16476 _ACEOF
16477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } >/dev/null; then
16485 if test -s conftest.err; then
16486 ac_cpp_err=$ac_c_preproc_warn_flag
16487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16488 else
16489 ac_cpp_err=
16491 else
16492 ac_cpp_err=yes
16494 if test -z "$ac_cpp_err"; then
16495 ac_header_preproc=yes
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 ac_header_preproc=no
16502 rm -f conftest.err conftest.$ac_ext
16503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16504 echo "${ECHO_T}$ac_header_preproc" >&6
16506 # So? What about this header?
16507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16508 yes:no: )
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16513 ac_header_preproc=yes
16515 no:yes:* )
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16529 cat <<\_ASBOX
16530 ## ------------------------------------ ##
16531 ## Report this to wine-devel@winehq.org ##
16532 ## ------------------------------------ ##
16533 _ASBOX
16535 sed "s/^/$as_me: WARNING: /" >&2
16537 esac
16538 echo "$as_me:$LINENO: checking for $ac_header" >&5
16539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543 eval "$as_ac_Header=\$ac_header_preproc"
16545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16550 cat >>confdefs.h <<_ACEOF
16551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16552 _ACEOF
16556 done
16558 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16559 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16560 if test "${ac_cv_header_stat_broken+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <sys/types.h>
16570 #include <sys/stat.h>
16572 #if defined(S_ISBLK) && defined(S_IFDIR)
16573 # if S_ISBLK (S_IFDIR)
16574 You lose.
16575 # endif
16576 #endif
16578 #if defined(S_ISBLK) && defined(S_IFCHR)
16579 # if S_ISBLK (S_IFCHR)
16580 You lose.
16581 # endif
16582 #endif
16584 #if defined(S_ISLNK) && defined(S_IFREG)
16585 # if S_ISLNK (S_IFREG)
16586 You lose.
16587 # endif
16588 #endif
16590 #if defined(S_ISSOCK) && defined(S_IFREG)
16591 # if S_ISSOCK (S_IFREG)
16592 You lose.
16593 # endif
16594 #endif
16596 _ACEOF
16597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16598 $EGREP "You lose" >/dev/null 2>&1; then
16599 ac_cv_header_stat_broken=yes
16600 else
16601 ac_cv_header_stat_broken=no
16603 rm -f conftest*
16606 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16607 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16608 if test $ac_cv_header_stat_broken = yes; then
16610 cat >>confdefs.h <<\_ACEOF
16611 #define STAT_MACROS_BROKEN 1
16612 _ACEOF
16620 for ac_header in sys/mount.h sys/user.h
16622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16623 echo "$as_me:$LINENO: checking for $ac_header" >&5
16624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 #include <sys/types.h>
16635 #if HAVE_SYS_PARAM_H
16636 # include <sys/param.h>
16637 #endif
16639 #include <$ac_header>
16640 _ACEOF
16641 rm -f conftest.$ac_objext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16643 (eval $ac_compile) 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 eval "$as_ac_Header=yes"
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 eval "$as_ac_Header=no"
16669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16674 cat >>confdefs.h <<_ACEOF
16675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16676 _ACEOF
16680 done
16688 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16691 echo "$as_me:$LINENO: checking for $ac_header" >&5
16692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 #include <sys/types.h>
16703 #if HAVE_SYS_SOCKET_H
16704 # include <sys/socket.h>
16705 #endif
16707 #include <$ac_header>
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest.$ac_objext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 eval "$as_ac_Header=yes"
16731 else
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 eval "$as_ac_Header=no"
16737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16744 _ACEOF
16748 done
16752 for ac_header in resolv.h
16754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755 echo "$as_me:$LINENO: checking for $ac_header" >&5
16756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 #include <sys/types.h>
16767 #if HAVE_SYS_SOCKET_H
16768 # include <sys/socket.h>
16769 #endif
16770 #if HAVE_NETINET_IN_H
16771 # include <netinet/in.h>
16772 #endif
16773 #if HAVE_ARPA_NAMESER_H
16774 # include <arpa/nameser.h>
16775 #endif
16777 #include <$ac_header>
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 eval "$as_ac_Header=yes"
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 eval "$as_ac_Header=no"
16807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16812 cat >>confdefs.h <<_ACEOF
16813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16814 _ACEOF
16818 done
16822 for ac_header in netinet/ip.h
16824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16825 echo "$as_me:$LINENO: checking for $ac_header" >&5
16826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <sys/types.h>
16837 #if HAVE_SYS_SOCKET_H
16838 # include <sys/socket.h>
16839 #endif
16840 #if HAVE_NETINET_IN_SYSTM_H
16841 # include <netinet/in_systm.h>
16842 #endif
16844 #include <$ac_header>
16845 _ACEOF
16846 rm -f conftest.$ac_objext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 eval "$as_ac_Header=yes"
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 eval "$as_ac_Header=no"
16874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16881 _ACEOF
16885 done
16889 for ac_header in ucontext.h
16891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16892 echo "$as_me:$LINENO: checking for $ac_header" >&5
16893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <signal.h>
16905 #include <$ac_header>
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909 (eval $ac_compile) 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest.$ac_objext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 eval "$as_ac_Header=yes"
16929 else
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 eval "$as_ac_Header=no"
16935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16942 _ACEOF
16946 done
16950 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16951 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16952 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 #include <sys/types.h>
16962 #ifdef HAVE_SYS_SOCKET_H
16963 # include <sys/socket.h>
16964 #endif
16965 #include <netipx/ipx.h>
16967 main ()
16969 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16971 return 0;
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976 (eval $ac_compile) 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest.$ac_objext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_cv_c_ipx_gnu="yes"
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_c_ipx_gnu="no"
17002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17006 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17007 if test "$ac_cv_c_ipx_gnu" = "yes"
17008 then
17010 cat >>confdefs.h <<\_ACEOF
17011 #define HAVE_IPX_GNU 1
17012 _ACEOF
17016 if test "$ac_cv_c_ipx_gnu" = "no"
17017 then
17018 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17019 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17020 if test "${ac_cv_c_ipx_linux+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 #include <sys/types.h>
17030 #ifdef HAVE_SYS_SOCKET_H
17031 # include <sys/socket.h>
17032 #endif
17033 #include <asm/types.h>
17034 #include <linux/ipx.h>
17036 main ()
17038 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17040 return 0;
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045 (eval $ac_compile) 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
17052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest.$ac_objext'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_cv_c_ipx_linux="yes"
17065 else
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 ac_cv_c_ipx_linux="no"
17071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17074 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17075 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17076 if test "$ac_cv_c_ipx_linux" = "yes"
17077 then
17079 cat >>confdefs.h <<\_ACEOF
17080 #define HAVE_IPX_LINUX 1
17081 _ACEOF
17087 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17089 if test "${ac_cv_c_const+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092 cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h. */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17100 main ()
17102 /* FIXME: Include the comments suggested by Paul. */
17103 #ifndef __cplusplus
17104 /* Ultrix mips cc rejects this. */
17105 typedef int charset[2];
17106 const charset x;
17107 /* SunOS 4.1.1 cc rejects this. */
17108 char const *const *ccp;
17109 char **p;
17110 /* NEC SVR4.0.2 mips cc rejects this. */
17111 struct point {int x, y;};
17112 static struct point const zero = {0,0};
17113 /* AIX XL C 1.02.0.0 rejects this.
17114 It does not let you subtract one const X* pointer from another in
17115 an arm of an if-expression whose if-part is not a constant
17116 expression */
17117 const char *g = "string";
17118 ccp = &g + (g ? g-g : 0);
17119 /* HPUX 7.0 cc rejects these. */
17120 ++ccp;
17121 p = (char**) ccp;
17122 ccp = (char const *const *) p;
17123 { /* SCO 3.2v4 cc rejects this. */
17124 char *t;
17125 char const *s = 0 ? (char *) 0 : (char const *) 0;
17127 *t++ = 0;
17129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17130 int x[] = {25, 17};
17131 const int *foo = &x[0];
17132 ++foo;
17134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17135 typedef const int *iptr;
17136 iptr p = 0;
17137 ++p;
17139 { /* AIX XL C 1.02.0.0 rejects this saying
17140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17141 struct s { int j; const int *ap[3]; };
17142 struct s *b; b->j = 5;
17144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17145 const int foo = 10;
17147 #endif
17150 return 0;
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155 (eval $ac_compile) 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest.$ac_objext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_cv_c_const=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_cv_c_const=no
17181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17183 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17184 echo "${ECHO_T}$ac_cv_c_const" >&6
17185 if test $ac_cv_c_const = no; then
17187 cat >>confdefs.h <<\_ACEOF
17188 #define const
17189 _ACEOF
17193 echo "$as_me:$LINENO: checking for inline" >&5
17194 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17195 if test "${ac_cv_c_inline+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198 ac_cv_c_inline=no
17199 for ac_kw in inline __inline__ __inline; do
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 #ifndef __cplusplus
17207 typedef int foo_t;
17208 static $ac_kw foo_t static_foo () {return 0; }
17209 $ac_kw foo_t foo () {return 0; }
17210 #endif
17212 _ACEOF
17213 rm -f conftest.$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_c_inline=$ac_kw; break
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17241 done
17244 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17245 echo "${ECHO_T}$ac_cv_c_inline" >&6
17248 case $ac_cv_c_inline in
17249 inline | yes) ;;
17251 case $ac_cv_c_inline in
17252 no) ac_val=;;
17253 *) ac_val=$ac_cv_c_inline;;
17254 esac
17255 cat >>confdefs.h <<_ACEOF
17256 #ifndef __cplusplus
17257 #define inline $ac_val
17258 #endif
17259 _ACEOF
17261 esac
17263 echo "$as_me:$LINENO: checking for mode_t" >&5
17264 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17265 if test "${ac_cv_type_mode_t+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 $ac_includes_default
17276 main ()
17278 if ((mode_t *) 0)
17279 return 0;
17280 if (sizeof (mode_t))
17281 return 0;
17283 return 0;
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17288 (eval $ac_compile) 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest.$ac_objext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_type_mode_t=yes
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ac_cv_type_mode_t=no
17314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17316 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17317 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17318 if test $ac_cv_type_mode_t = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321 #define HAVE_MODE_T 1
17322 _ACEOF
17326 echo "$as_me:$LINENO: checking for off_t" >&5
17327 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17328 if test "${ac_cv_type_off_t+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331 cat >conftest.$ac_ext <<_ACEOF
17332 /* confdefs.h. */
17333 _ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17337 $ac_includes_default
17339 main ()
17341 if ((off_t *) 0)
17342 return 0;
17343 if (sizeof (off_t))
17344 return 0;
17346 return 0;
17348 _ACEOF
17349 rm -f conftest.$ac_objext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17351 (eval $ac_compile) 2>conftest.er1
17352 ac_status=$?
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_type_off_t=yes
17371 else
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ac_cv_type_off_t=no
17377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17379 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17380 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17381 if test $ac_cv_type_off_t = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384 #define HAVE_OFF_T 1
17385 _ACEOF
17389 echo "$as_me:$LINENO: checking for pid_t" >&5
17390 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17391 if test "${ac_cv_type_pid_t+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394 cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h. */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 $ac_includes_default
17402 main ()
17404 if ((pid_t *) 0)
17405 return 0;
17406 if (sizeof (pid_t))
17407 return 0;
17409 return 0;
17411 _ACEOF
17412 rm -f conftest.$ac_objext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17414 (eval $ac_compile) 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest.$ac_objext'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_cv_type_pid_t=yes
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_cv_type_pid_t=no
17440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17442 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17443 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17444 if test $ac_cv_type_pid_t = yes; then
17446 cat >>confdefs.h <<_ACEOF
17447 #define HAVE_PID_T 1
17448 _ACEOF
17452 echo "$as_me:$LINENO: checking for size_t" >&5
17453 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17454 if test "${ac_cv_type_size_t+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17465 main ()
17467 if ((size_t *) 0)
17468 return 0;
17469 if (sizeof (size_t))
17470 return 0;
17472 return 0;
17474 _ACEOF
17475 rm -f conftest.$ac_objext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17477 (eval $ac_compile) 2>conftest.er1
17478 ac_status=$?
17479 grep -v '^ *+' conftest.er1 >conftest.err
17480 rm -f conftest.er1
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try='test -s conftest.$ac_objext'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 ac_cv_type_size_t=yes
17497 else
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17501 ac_cv_type_size_t=no
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17505 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17506 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17507 if test $ac_cv_type_size_t = yes; then
17509 cat >>confdefs.h <<_ACEOF
17510 #define HAVE_SIZE_T 1
17511 _ACEOF
17515 echo "$as_me:$LINENO: checking for ssize_t" >&5
17516 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17517 if test "${ac_cv_type_ssize_t+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 else
17520 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h. */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17526 $ac_includes_default
17528 main ()
17530 if ((ssize_t *) 0)
17531 return 0;
17532 if (sizeof (ssize_t))
17533 return 0;
17535 return 0;
17537 _ACEOF
17538 rm -f conftest.$ac_objext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest.$ac_objext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_type_ssize_t=yes
17560 else
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ac_cv_type_ssize_t=no
17566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17568 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17569 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17570 if test $ac_cv_type_ssize_t = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_SSIZE_T 1
17574 _ACEOF
17578 echo "$as_me:$LINENO: checking for long long" >&5
17579 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17580 if test "${ac_cv_type_long_long+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 $ac_includes_default
17591 main ()
17593 if ((long long *) 0)
17594 return 0;
17595 if (sizeof (long long))
17596 return 0;
17598 return 0;
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603 (eval $ac_compile) 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_type_long_long=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_cv_type_long_long=no
17629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17631 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17632 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17633 if test $ac_cv_type_long_long = yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define HAVE_LONG_LONG 1
17637 _ACEOF
17643 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17644 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17645 if test "${wine_cv_linux_input_h+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648 cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h. */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17655 #include <linux/input.h>
17658 main ()
17661 int foo = EVIOCGBIT(EV_ABS,42);
17662 int bar = BTN_PINKIE;
17663 int fortytwo = 42;
17666 return 0;
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17671 (eval $ac_compile) 2>conftest.er1
17672 ac_status=$?
17673 grep -v '^ *+' conftest.er1 >conftest.err
17674 rm -f conftest.er1
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 wine_cv_linux_input_h=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 wine_cv_linux_input_h=no
17697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17701 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17702 if test "$wine_cv_linux_input_h" = "yes"
17703 then
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_CORRECT_LINUXINPUT_H 1
17707 _ACEOF
17712 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17713 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17714 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17724 #include <netdb.h>
17727 main ()
17730 char *name=NULL;
17731 struct hostent he;
17732 struct hostent *result;
17733 char *buf=NULL;
17734 int bufsize=0;
17735 int res,errnr;
17736 char *addr=NULL;
17737 int addrlen=0;
17738 int addrtype=0;
17739 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17740 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17743 return 0;
17745 _ACEOF
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest$ac_exeext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 wine_cv_linux_gethostbyname_r_6=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 wine_cv_linux_gethostbyname_r_6=no
17775 rm -f conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17779 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17780 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17781 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17782 then
17784 cat >>confdefs.h <<\_ACEOF
17785 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17786 _ACEOF
17790 if test "$ac_cv_header_linux_joystick_h" = "yes"
17791 then
17792 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17793 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17794 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h. */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17804 #include <sys/ioctl.h>
17805 #include <linux/joystick.h>
17807 struct js_event blub;
17808 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17809 #error "no 2.2 header"
17810 #endif
17813 main ()
17815 /*empty*/
17817 return 0;
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 wine_cv_linux_joystick_22_api=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 wine_cv_linux_joystick_22_api=no
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17851 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17852 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17853 if test "$wine_cv_linux_joystick_22_api" = "yes"
17854 then
17856 cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_LINUX_22_JOYSTICK_API 1
17858 _ACEOF
17864 if test "$ac_cv_header_sys_vfs_h" = "yes"
17865 then
17866 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17867 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17868 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871 cat >conftest.$ac_ext <<_ACEOF
17872 /* confdefs.h. */
17873 _ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17878 #include <sys/types.h>
17879 #ifdef HAVE_SYS_PARAM_H
17880 # include <sys/param.h>
17881 #endif
17882 #include <sys/vfs.h>
17885 main ()
17888 struct statfs stfs;
17890 memset(&stfs,0,sizeof(stfs));
17893 return 0;
17895 _ACEOF
17896 rm -f conftest.$ac_objext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 wine_cv_sys_vfs_has_statfs=yes
17918 else
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 wine_cv_sys_vfs_has_statfs=no
17925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17928 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17929 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17930 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17931 then
17933 cat >>confdefs.h <<\_ACEOF
17934 #define STATFS_DEFINED_BY_SYS_VFS 1
17935 _ACEOF
17940 if test "$ac_cv_header_sys_statfs_h" = "yes"
17941 then
17942 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17943 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17944 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h. */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 #include <sys/types.h>
17955 #ifdef HAVE_SYS_PARAM_H
17956 # include <sys/param.h>
17957 #endif
17958 #include <sys/statfs.h>
17961 main ()
17964 struct statfs stfs;
17967 return 0;
17969 _ACEOF
17970 rm -f conftest.$ac_objext
17971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17972 (eval $ac_compile) 2>conftest.er1
17973 ac_status=$?
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -f conftest.er1
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 wine_cv_sys_statfs_has_statfs=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 wine_cv_sys_statfs_has_statfs=no
17999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18002 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18003 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18004 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18005 then
18007 cat >>confdefs.h <<\_ACEOF
18008 #define STATFS_DEFINED_BY_SYS_STATFS 1
18009 _ACEOF
18014 if test "$ac_cv_header_sys_mount_h" = "yes"
18015 then
18016 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18017 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18018 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021 cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h. */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18028 #include <sys/types.h>
18029 #ifdef HAVE_SYS_PARAM_H
18030 # include <sys/param.h>
18031 #endif
18032 #include <sys/mount.h>
18035 main ()
18038 struct statfs stfs;
18041 return 0;
18043 _ACEOF
18044 rm -f conftest.$ac_objext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18046 (eval $ac_compile) 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest.$ac_objext'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 wine_cv_sys_mount_has_statfs=yes
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 wine_cv_sys_mount_has_statfs=no
18073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18076 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18077 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18078 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18079 then
18081 cat >>confdefs.h <<\_ACEOF
18082 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18083 _ACEOF
18089 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18090 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18091 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 #include <sys/types.h>
18101 #ifdef HAVE_SYS_PARAM_H
18102 # include <sys/param.h>
18103 #endif
18104 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18105 # include <sys/mount.h>
18106 #else
18107 # ifdef STATFS_DEFINED_BY_SYS_VFS
18108 # include <sys/vfs.h>
18109 # else
18110 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18111 # include <sys/statfs.h>
18112 # endif
18113 # endif
18114 #endif
18117 main ()
18119 static struct statfs ac_aggr;
18120 if (ac_aggr.f_bfree)
18121 return 0;
18123 return 0;
18125 _ACEOF
18126 rm -f conftest.$ac_objext
18127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18128 (eval $ac_compile) 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest.$ac_objext'
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 ac_cv_member_struct_statfs_f_bfree=yes
18148 else
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 cat >conftest.$ac_ext <<_ACEOF
18153 /* confdefs.h. */
18154 _ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 #include <sys/types.h>
18159 #ifdef HAVE_SYS_PARAM_H
18160 # include <sys/param.h>
18161 #endif
18162 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18163 # include <sys/mount.h>
18164 #else
18165 # ifdef STATFS_DEFINED_BY_SYS_VFS
18166 # include <sys/vfs.h>
18167 # else
18168 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18169 # include <sys/statfs.h>
18170 # endif
18171 # endif
18172 #endif
18175 main ()
18177 static struct statfs ac_aggr;
18178 if (sizeof ac_aggr.f_bfree)
18179 return 0;
18181 return 0;
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186 (eval $ac_compile) 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_member_struct_statfs_f_bfree=yes
18206 else
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 ac_cv_member_struct_statfs_f_bfree=no
18212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18216 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18217 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18218 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_STRUCT_STATFS_F_BFREE 1
18222 _ACEOF
18226 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18227 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18228 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h. */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18237 #include <sys/types.h>
18238 #ifdef HAVE_SYS_PARAM_H
18239 # include <sys/param.h>
18240 #endif
18241 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18242 # include <sys/mount.h>
18243 #else
18244 # ifdef STATFS_DEFINED_BY_SYS_VFS
18245 # include <sys/vfs.h>
18246 # else
18247 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18248 # include <sys/statfs.h>
18249 # endif
18250 # endif
18251 #endif
18254 main ()
18256 static struct statfs ac_aggr;
18257 if (ac_aggr.f_bavail)
18258 return 0;
18260 return 0;
18262 _ACEOF
18263 rm -f conftest.$ac_objext
18264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18265 (eval $ac_compile) 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_member_struct_statfs_f_bavail=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h. */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 #include <sys/types.h>
18296 #ifdef HAVE_SYS_PARAM_H
18297 # include <sys/param.h>
18298 #endif
18299 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18300 # include <sys/mount.h>
18301 #else
18302 # ifdef STATFS_DEFINED_BY_SYS_VFS
18303 # include <sys/vfs.h>
18304 # else
18305 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18306 # include <sys/statfs.h>
18307 # endif
18308 # endif
18309 #endif
18312 main ()
18314 static struct statfs ac_aggr;
18315 if (sizeof ac_aggr.f_bavail)
18316 return 0;
18318 return 0;
18320 _ACEOF
18321 rm -f conftest.$ac_objext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } &&
18336 { ac_try='test -s conftest.$ac_objext'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_member_struct_statfs_f_bavail=yes
18343 else
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_cv_member_struct_statfs_f_bavail=no
18349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18353 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18354 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18355 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18359 _ACEOF
18365 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18366 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18367 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h. */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 #include <sys/types.h>
18377 #ifdef HAVE_SYS_SOCKET_H
18378 # include <sys/socket.h>
18379 #endif
18380 #ifdef HAVE_SYS_UN_H
18381 # include <sys/un.h>
18382 #endif
18385 main ()
18387 static struct msghdr ac_aggr;
18388 if (ac_aggr.msg_accrights)
18389 return 0;
18391 return 0;
18393 _ACEOF
18394 rm -f conftest.$ac_objext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest.$ac_objext'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 ac_cv_member_struct_msghdr_msg_accrights=yes
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 #include <sys/types.h>
18427 #ifdef HAVE_SYS_SOCKET_H
18428 # include <sys/socket.h>
18429 #endif
18430 #ifdef HAVE_SYS_UN_H
18431 # include <sys/un.h>
18432 #endif
18435 main ()
18437 static struct msghdr ac_aggr;
18438 if (sizeof ac_aggr.msg_accrights)
18439 return 0;
18441 return 0;
18443 _ACEOF
18444 rm -f conftest.$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446 (eval $ac_compile) 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 ac_cv_member_struct_msghdr_msg_accrights=yes
18466 else
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 ac_cv_member_struct_msghdr_msg_accrights=no
18472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18477 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18478 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18480 cat >>confdefs.h <<_ACEOF
18481 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18482 _ACEOF
18486 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18487 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18488 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491 cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 #include <sys/types.h>
18498 #ifdef HAVE_SYS_SOCKET_H
18499 # include <sys/socket.h>
18500 #endif
18501 #ifdef HAVE_SYS_UN_H
18502 # include <sys/un.h>
18503 #endif
18506 main ()
18508 static struct sockaddr ac_aggr;
18509 if (ac_aggr.sa_len)
18510 return 0;
18512 return 0;
18514 _ACEOF
18515 rm -f conftest.$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_member_struct_sockaddr_sa_len=yes
18537 else
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h. */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 #include <sys/types.h>
18548 #ifdef HAVE_SYS_SOCKET_H
18549 # include <sys/socket.h>
18550 #endif
18551 #ifdef HAVE_SYS_UN_H
18552 # include <sys/un.h>
18553 #endif
18556 main ()
18558 static struct sockaddr ac_aggr;
18559 if (sizeof ac_aggr.sa_len)
18560 return 0;
18562 return 0;
18564 _ACEOF
18565 rm -f conftest.$ac_objext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18567 (eval $ac_compile) 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest.$ac_objext'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 ac_cv_member_struct_sockaddr_sa_len=yes
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 ac_cv_member_struct_sockaddr_sa_len=no
18593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18598 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18599 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18603 _ACEOF
18607 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18608 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18609 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 else
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h. */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #include <sys/types.h>
18619 #ifdef HAVE_SYS_SOCKET_H
18620 # include <sys/socket.h>
18621 #endif
18622 #ifdef HAVE_SYS_UN_H
18623 # include <sys/un.h>
18624 #endif
18627 main ()
18629 static struct sockaddr_un ac_aggr;
18630 if (ac_aggr.sun_len)
18631 return 0;
18633 return 0;
18635 _ACEOF
18636 rm -f conftest.$ac_objext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18638 (eval $ac_compile) 2>conftest.er1
18639 ac_status=$?
18640 grep -v '^ *+' conftest.er1 >conftest.err
18641 rm -f conftest.er1
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
18645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest.$ac_objext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 ac_cv_member_struct_sockaddr_un_sun_len=yes
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 #include <sys/types.h>
18669 #ifdef HAVE_SYS_SOCKET_H
18670 # include <sys/socket.h>
18671 #endif
18672 #ifdef HAVE_SYS_UN_H
18673 # include <sys/un.h>
18674 #endif
18677 main ()
18679 static struct sockaddr_un ac_aggr;
18680 if (sizeof ac_aggr.sun_len)
18681 return 0;
18683 return 0;
18685 _ACEOF
18686 rm -f conftest.$ac_objext
18687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18688 (eval $ac_compile) 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
18695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest.$ac_objext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_member_struct_sockaddr_un_sun_len=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_member_struct_sockaddr_un_sun_len=no
18714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18718 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18719 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18720 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18722 cat >>confdefs.h <<_ACEOF
18723 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18724 _ACEOF
18730 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18731 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18732 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 #include <signal.h>
18744 main ()
18746 static siginfo_t ac_aggr;
18747 if (ac_aggr.si_fd)
18748 return 0;
18750 return 0;
18752 _ACEOF
18753 rm -f conftest.$ac_objext
18754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18755 (eval $ac_compile) 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
18762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest.$ac_objext'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 ac_cv_member_siginfo_t_si_fd=yes
18775 else
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h. */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #include <signal.h>
18788 main ()
18790 static siginfo_t ac_aggr;
18791 if (sizeof ac_aggr.si_fd)
18792 return 0;
18794 return 0;
18796 _ACEOF
18797 rm -f conftest.$ac_objext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18799 (eval $ac_compile) 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_cv_member_siginfo_t_si_fd=yes
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_cv_member_siginfo_t_si_fd=no
18825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18830 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18831 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18833 cat >>confdefs.h <<_ACEOF
18834 #define HAVE_SIGINFO_T_SI_FD 1
18835 _ACEOF
18841 echo "$as_me:$LINENO: checking for struct option.name" >&5
18842 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18843 if test "${ac_cv_member_struct_option_name+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h. */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 #ifdef HAVE_GETOPT_H
18853 #include <getopt.h>
18854 #endif
18857 main ()
18859 static struct option ac_aggr;
18860 if (ac_aggr.name)
18861 return 0;
18863 return 0;
18865 _ACEOF
18866 rm -f conftest.$ac_objext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18868 (eval $ac_compile) 2>conftest.er1
18869 ac_status=$?
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
18875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest.$ac_objext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_member_struct_option_name=yes
18888 else
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 #ifdef HAVE_GETOPT_H
18899 #include <getopt.h>
18900 #endif
18903 main ()
18905 static struct option ac_aggr;
18906 if (sizeof ac_aggr.name)
18907 return 0;
18909 return 0;
18911 _ACEOF
18912 rm -f conftest.$ac_objext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18914 (eval $ac_compile) 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18924 ac_status=$?
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest.$ac_objext'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_cv_member_struct_option_name=yes
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_cv_member_struct_option_name=no
18940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18944 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18945 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18946 if test $ac_cv_member_struct_option_name = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define HAVE_STRUCT_OPTION_NAME 1
18950 _ACEOF
18956 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18957 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18958 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 $ac_includes_default
18969 main ()
18971 static struct stat ac_aggr;
18972 if (ac_aggr.st_blocks)
18973 return 0;
18975 return 0;
18977 _ACEOF
18978 rm -f conftest.$ac_objext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980 (eval $ac_compile) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try='test -s conftest.$ac_objext'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_cv_member_struct_stat_st_blocks=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 $ac_includes_default
19012 main ()
19014 static struct stat ac_aggr;
19015 if (sizeof ac_aggr.st_blocks)
19016 return 0;
19018 return 0;
19020 _ACEOF
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023 (eval $ac_compile) 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_member_struct_stat_st_blocks=yes
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_member_struct_stat_st_blocks=no
19049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19054 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19055 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19059 _ACEOF
19066 case $host_cpu in
19067 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19068 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19069 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h. */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 #ifndef __i386__
19080 #endif
19081 _ACEOF
19082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19083 $EGREP "yes" >/dev/null 2>&1; then
19084 ac_cv_cpp_def___i386__=yes
19085 else
19086 ac_cv_cpp_def___i386__=no
19088 rm -f conftest*
19091 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19092 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19093 if test $ac_cv_cpp_def___i386__ = yes; then
19094 CFLAGS="$CFLAGS -D__i386__"
19095 LINTFLAGS="$LINTFLAGS -D__i386__"
19098 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19099 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19100 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h. */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #ifndef __ALPHA__
19111 #endif
19112 _ACEOF
19113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19114 $EGREP "yes" >/dev/null 2>&1; then
19115 ac_cv_cpp_def___ALPHA__=yes
19116 else
19117 ac_cv_cpp_def___ALPHA__=no
19119 rm -f conftest*
19122 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19123 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19124 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19125 CFLAGS="$CFLAGS -D__ALPHA__"
19126 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19129 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19130 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19131 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 #ifndef __sparc__
19142 #endif
19143 _ACEOF
19144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19145 $EGREP "yes" >/dev/null 2>&1; then
19146 ac_cv_cpp_def___sparc__=yes
19147 else
19148 ac_cv_cpp_def___sparc__=no
19150 rm -f conftest*
19153 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19154 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19155 if test $ac_cv_cpp_def___sparc__ = yes; then
19156 CFLAGS="$CFLAGS -D__sparc__"
19157 LINTFLAGS="$LINTFLAGS -D__sparc__"
19160 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19161 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19162 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165 cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h. */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #ifndef __powerpc__
19173 #endif
19174 _ACEOF
19175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19176 $EGREP "yes" >/dev/null 2>&1; then
19177 ac_cv_cpp_def___powerpc__=yes
19178 else
19179 ac_cv_cpp_def___powerpc__=no
19181 rm -f conftest*
19184 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19185 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19186 if test $ac_cv_cpp_def___powerpc__ = yes; then
19187 CFLAGS="$CFLAGS -D__powerpc__"
19188 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19191 esac
19193 case $host_vendor in
19194 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19195 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19196 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 #ifndef __sun__
19207 #endif
19208 _ACEOF
19209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19210 $EGREP "yes" >/dev/null 2>&1; then
19211 ac_cv_cpp_def___sun__=yes
19212 else
19213 ac_cv_cpp_def___sun__=no
19215 rm -f conftest*
19218 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19219 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19220 if test $ac_cv_cpp_def___sun__ = yes; then
19221 CFLAGS="$CFLAGS -D__sun__"
19222 LINTFLAGS="$LINTFLAGS -D__sun__"
19225 esac
19231 ac_config_commands="$ac_config_commands controls"
19233 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19235 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19237 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19239 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19241 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19243 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19245 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19247 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19249 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19251 ac_config_commands="$ac_config_commands dlls/user/dde"
19253 ac_config_commands="$ac_config_commands dlls/user/resources"
19255 ac_config_commands="$ac_config_commands dlls/wineps/data"
19257 ac_config_commands="$ac_config_commands files"
19259 ac_config_commands="$ac_config_commands include/wine"
19261 ac_config_commands="$ac_config_commands misc"
19263 ac_config_commands="$ac_config_commands objects"
19265 ac_config_commands="$ac_config_commands programs/regedit/tests"
19267 ac_config_commands="$ac_config_commands windows"
19270 MAKE_RULES=Make.rules
19273 MAKE_DLL_RULES=dlls/Makedll.rules
19276 MAKE_TEST_RULES=dlls/Maketest.rules
19279 MAKE_LIB_RULES=libs/Makelib.rules
19282 MAKE_PROG_RULES=programs/Makeprog.rules
19285 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/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/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"
19288 cat >confcache <<\_ACEOF
19289 # This file is a shell script that caches the results of configure
19290 # tests run on this system so they can be shared between configure
19291 # scripts and configure runs, see configure's option --config-cache.
19292 # It is not useful on other systems. If it contains results you don't
19293 # want to keep, you may remove or edit it.
19295 # config.status only pays attention to the cache file if you give it
19296 # the --recheck option to rerun configure.
19298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19300 # following values.
19302 _ACEOF
19304 # The following way of writing the cache mishandles newlines in values,
19305 # but we know of no workaround that is simple, portable, and efficient.
19306 # So, don't put newlines in cache variables' values.
19307 # Ultrix sh set writes to stderr and can't be redirected directly,
19308 # and sets the high bit in the cache file unless we assign to the vars.
19310 (set) 2>&1 |
19311 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19312 *ac_space=\ *)
19313 # `set' does not quote correctly, so add quotes (double-quote
19314 # substitution turns \\\\ into \\, and sed turns \\ into \).
19315 sed -n \
19316 "s/'/'\\\\''/g;
19317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19320 # `set' quotes correctly as required by POSIX, so do not add quotes.
19321 sed -n \
19322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19324 esac;
19326 sed '
19327 t clear
19328 : clear
19329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19330 t end
19331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19332 : end' >>confcache
19333 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19334 if test -w $cache_file; then
19335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19336 cat confcache >$cache_file
19337 else
19338 echo "not updating unwritable cache $cache_file"
19341 rm -f confcache
19343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19344 # Let make expand exec_prefix.
19345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19349 # trailing colons and then remove the whole line if VPATH becomes empty
19350 # (actually we leave an empty line to preserve line numbers).
19351 if test "x$srcdir" = x.; then
19352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19353 s/:*\$(srcdir):*/:/;
19354 s/:*\${srcdir}:*/:/;
19355 s/:*@srcdir@:*/:/;
19356 s/^\([^=]*=[ ]*\):*/\1/;
19357 s/:*$//;
19358 s/^[^=]*=[ ]*$//;
19362 DEFS=-DHAVE_CONFIG_H
19364 ac_libobjs=
19365 ac_ltlibobjs=
19366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19367 # 1. Remove the extension, and $U if already installed.
19368 ac_i=`echo "$ac_i" |
19369 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19370 # 2. Add them.
19371 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19372 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19373 done
19374 LIBOBJS=$ac_libobjs
19376 LTLIBOBJS=$ac_ltlibobjs
19380 : ${CONFIG_STATUS=./config.status}
19381 ac_clean_files_save=$ac_clean_files
19382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19383 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19384 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19385 cat >$CONFIG_STATUS <<_ACEOF
19386 #! $SHELL
19387 # Generated by $as_me.
19388 # Run this file to recreate the current configuration.
19389 # Compiler output produced by configure, useful for debugging
19390 # configure, is in config.log if it exists.
19392 debug=false
19393 ac_cs_recheck=false
19394 ac_cs_silent=false
19395 SHELL=\${CONFIG_SHELL-$SHELL}
19396 _ACEOF
19398 cat >>$CONFIG_STATUS <<\_ACEOF
19399 ## --------------------- ##
19400 ## M4sh Initialization. ##
19401 ## --------------------- ##
19403 # Be Bourne compatible
19404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19405 emulate sh
19406 NULLCMD=:
19407 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19408 # is contrary to our usage. Disable this feature.
19409 alias -g '${1+"$@"}'='"$@"'
19410 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19411 set -o posix
19413 DUALCASE=1; export DUALCASE # for MKS sh
19415 # Support unset when possible.
19416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19417 as_unset=unset
19418 else
19419 as_unset=false
19423 # Work around bugs in pre-3.0 UWIN ksh.
19424 $as_unset ENV MAIL MAILPATH
19425 PS1='$ '
19426 PS2='> '
19427 PS4='+ '
19429 # NLS nuisances.
19430 for as_var in \
19431 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19432 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19433 LC_TELEPHONE LC_TIME
19435 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19436 eval $as_var=C; export $as_var
19437 else
19438 $as_unset $as_var
19440 done
19442 # Required to use basename.
19443 if expr a : '\(a\)' >/dev/null 2>&1; then
19444 as_expr=expr
19445 else
19446 as_expr=false
19449 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19450 as_basename=basename
19451 else
19452 as_basename=false
19456 # Name of the executable.
19457 as_me=`$as_basename "$0" ||
19458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19459 X"$0" : 'X\(//\)$' \| \
19460 X"$0" : 'X\(/\)$' \| \
19461 . : '\(.\)' 2>/dev/null ||
19462 echo X/"$0" |
19463 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19464 /^X\/\(\/\/\)$/{ s//\1/; q; }
19465 /^X\/\(\/\).*/{ s//\1/; q; }
19466 s/.*/./; q'`
19469 # PATH needs CR, and LINENO needs CR and PATH.
19470 # Avoid depending upon Character Ranges.
19471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19474 as_cr_digits='0123456789'
19475 as_cr_alnum=$as_cr_Letters$as_cr_digits
19477 # The user is always right.
19478 if test "${PATH_SEPARATOR+set}" != set; then
19479 echo "#! /bin/sh" >conf$$.sh
19480 echo "exit 0" >>conf$$.sh
19481 chmod +x conf$$.sh
19482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19483 PATH_SEPARATOR=';'
19484 else
19485 PATH_SEPARATOR=:
19487 rm -f conf$$.sh
19491 as_lineno_1=$LINENO
19492 as_lineno_2=$LINENO
19493 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19494 test "x$as_lineno_1" != "x$as_lineno_2" &&
19495 test "x$as_lineno_3" = "x$as_lineno_2" || {
19496 # Find who we are. Look in the path if we contain no path at all
19497 # relative or not.
19498 case $0 in
19499 *[\\/]* ) as_myself=$0 ;;
19500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501 for as_dir in $PATH
19503 IFS=$as_save_IFS
19504 test -z "$as_dir" && as_dir=.
19505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19506 done
19509 esac
19510 # We did not find ourselves, most probably we were run as `sh COMMAND'
19511 # in which case we are not to be found in the path.
19512 if test "x$as_myself" = x; then
19513 as_myself=$0
19515 if test ! -f "$as_myself"; then
19516 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19517 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19518 { (exit 1); exit 1; }; }
19520 case $CONFIG_SHELL in
19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19525 IFS=$as_save_IFS
19526 test -z "$as_dir" && as_dir=.
19527 for as_base in sh bash ksh sh5; do
19528 case $as_dir in
19530 if ("$as_dir/$as_base" -c '
19531 as_lineno_1=$LINENO
19532 as_lineno_2=$LINENO
19533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19534 test "x$as_lineno_1" != "x$as_lineno_2" &&
19535 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19536 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19537 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19538 CONFIG_SHELL=$as_dir/$as_base
19539 export CONFIG_SHELL
19540 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19541 fi;;
19542 esac
19543 done
19544 done
19546 esac
19548 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19549 # uniformly replaced by the line number. The first 'sed' inserts a
19550 # line-number line before each line; the second 'sed' does the real
19551 # work. The second script uses 'N' to pair each line-number line
19552 # with the numbered line, and appends trailing '-' during
19553 # substitution so that $LINENO is not a special case at line end.
19554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19555 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19556 sed '=' <$as_myself |
19557 sed '
19559 s,$,-,
19560 : loop
19561 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19562 t loop
19563 s,-$,,
19564 s,^['$as_cr_digits']*\n,,
19565 ' >$as_me.lineno &&
19566 chmod +x $as_me.lineno ||
19567 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19568 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19569 { (exit 1); exit 1; }; }
19571 # Don't try to exec as it changes $[0], causing all sort of problems
19572 # (the dirname of $[0] is not the place where we might find the
19573 # original and so on. Autoconf is especially sensible to this).
19574 . ./$as_me.lineno
19575 # Exit status is that of the last command.
19576 exit
19580 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19581 *c*,-n*) ECHO_N= ECHO_C='
19582 ' ECHO_T=' ' ;;
19583 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19584 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19585 esac
19587 if expr a : '\(a\)' >/dev/null 2>&1; then
19588 as_expr=expr
19589 else
19590 as_expr=false
19593 rm -f conf$$ conf$$.exe conf$$.file
19594 echo >conf$$.file
19595 if ln -s conf$$.file conf$$ 2>/dev/null; then
19596 # We could just check for DJGPP; but this test a) works b) is more generic
19597 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19598 if test -f conf$$.exe; then
19599 # Don't use ln at all; we don't have any links
19600 as_ln_s='cp -p'
19601 else
19602 as_ln_s='ln -s'
19604 elif ln conf$$.file conf$$ 2>/dev/null; then
19605 as_ln_s=ln
19606 else
19607 as_ln_s='cp -p'
19609 rm -f conf$$ conf$$.exe conf$$.file
19611 if mkdir -p . 2>/dev/null; then
19612 as_mkdir_p=:
19613 else
19614 test -d ./-p && rmdir ./-p
19615 as_mkdir_p=false
19618 as_executable_p="test -f"
19620 # Sed expression to map a string onto a valid CPP name.
19621 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19623 # Sed expression to map a string onto a valid variable name.
19624 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19627 # IFS
19628 # We need space, tab and new line, in precisely that order.
19629 as_nl='
19631 IFS=" $as_nl"
19633 # CDPATH.
19634 $as_unset CDPATH
19636 exec 6>&1
19638 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19639 # report actual input values of CONFIG_FILES etc. instead of their
19640 # values after options handling. Logging --version etc. is OK.
19641 exec 5>>config.log
19643 echo
19644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19645 ## Running $as_me. ##
19646 _ASBOX
19647 } >&5
19648 cat >&5 <<_CSEOF
19650 This file was extended by Wine $as_me 20040213, which was
19651 generated by GNU Autoconf 2.59. Invocation command line was
19653 CONFIG_FILES = $CONFIG_FILES
19654 CONFIG_HEADERS = $CONFIG_HEADERS
19655 CONFIG_LINKS = $CONFIG_LINKS
19656 CONFIG_COMMANDS = $CONFIG_COMMANDS
19657 $ $0 $@
19659 _CSEOF
19660 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19661 echo >&5
19662 _ACEOF
19664 # Files that config.status was made for.
19665 if test -n "$ac_config_files"; then
19666 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19669 if test -n "$ac_config_headers"; then
19670 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19673 if test -n "$ac_config_links"; then
19674 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19677 if test -n "$ac_config_commands"; then
19678 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19681 cat >>$CONFIG_STATUS <<\_ACEOF
19683 ac_cs_usage="\
19684 \`$as_me' instantiates files from templates according to the
19685 current configuration.
19687 Usage: $0 [OPTIONS] [FILE]...
19689 -h, --help print this help, then exit
19690 -V, --version print version number, then exit
19691 -q, --quiet do not print progress messages
19692 -d, --debug don't remove temporary files
19693 --recheck update $as_me by reconfiguring in the same conditions
19694 --file=FILE[:TEMPLATE]
19695 instantiate the configuration file FILE
19696 --header=FILE[:TEMPLATE]
19697 instantiate the configuration header FILE
19699 Configuration files:
19700 $config_files
19702 Configuration headers:
19703 $config_headers
19705 Configuration commands:
19706 $config_commands
19708 Report bugs to <bug-autoconf@gnu.org>."
19709 _ACEOF
19711 cat >>$CONFIG_STATUS <<_ACEOF
19712 ac_cs_version="\\
19713 Wine config.status 20040213
19714 configured by $0, generated by GNU Autoconf 2.59,
19715 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19717 Copyright (C) 2003 Free Software Foundation, Inc.
19718 This config.status script is free software; the Free Software Foundation
19719 gives unlimited permission to copy, distribute and modify it."
19720 srcdir=$srcdir
19721 INSTALL="$INSTALL"
19722 _ACEOF
19724 cat >>$CONFIG_STATUS <<\_ACEOF
19725 # If no file are specified by the user, then we need to provide default
19726 # value. By we need to know if files were specified by the user.
19727 ac_need_defaults=:
19728 while test $# != 0
19730 case $1 in
19731 --*=*)
19732 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19733 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19734 ac_shift=:
19737 ac_option=$1
19738 ac_optarg=$2
19739 ac_shift=shift
19741 *) # This is not an option, so the user has probably given explicit
19742 # arguments.
19743 ac_option=$1
19744 ac_need_defaults=false;;
19745 esac
19747 case $ac_option in
19748 # Handling of the options.
19749 _ACEOF
19750 cat >>$CONFIG_STATUS <<\_ACEOF
19751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19752 ac_cs_recheck=: ;;
19753 --version | --vers* | -V )
19754 echo "$ac_cs_version"; exit 0 ;;
19755 --he | --h)
19756 # Conflict between --help and --header
19757 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19758 Try \`$0 --help' for more information." >&5
19759 echo "$as_me: error: ambiguous option: $1
19760 Try \`$0 --help' for more information." >&2;}
19761 { (exit 1); exit 1; }; };;
19762 --help | --hel | -h )
19763 echo "$ac_cs_usage"; exit 0 ;;
19764 --debug | --d* | -d )
19765 debug=: ;;
19766 --file | --fil | --fi | --f )
19767 $ac_shift
19768 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19769 ac_need_defaults=false;;
19770 --header | --heade | --head | --hea )
19771 $ac_shift
19772 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19773 ac_need_defaults=false;;
19774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19776 ac_cs_silent=: ;;
19778 # This is an error.
19779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19780 Try \`$0 --help' for more information." >&5
19781 echo "$as_me: error: unrecognized option: $1
19782 Try \`$0 --help' for more information." >&2;}
19783 { (exit 1); exit 1; }; } ;;
19785 *) ac_config_targets="$ac_config_targets $1" ;;
19787 esac
19788 shift
19789 done
19791 ac_configure_extra_args=
19793 if $ac_cs_silent; then
19794 exec 6>/dev/null
19795 ac_configure_extra_args="$ac_configure_extra_args --silent"
19798 _ACEOF
19799 cat >>$CONFIG_STATUS <<_ACEOF
19800 if \$ac_cs_recheck; then
19801 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19802 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19805 _ACEOF
19811 cat >>$CONFIG_STATUS <<\_ACEOF
19812 for ac_config_target in $ac_config_targets
19814 case "$ac_config_target" in
19815 # Handling of arguments.
19816 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19817 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19818 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19819 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19820 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19821 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19822 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19823 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19824 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19825 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19826 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19827 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19828 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19829 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19830 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19831 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19832 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19833 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19834 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19835 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19836 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19837 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19838 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19839 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19840 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19841 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19842 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19843 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19844 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19845 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19846 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19847 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19848 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19849 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19850 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19851 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19852 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19853 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19854 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19855 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19856 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19857 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19858 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19859 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19860 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19861 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
19862 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
19863 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19864 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19865 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19866 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19867 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19868 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19869 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
19870 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19871 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19872 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19873 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19874 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19875 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19876 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19877 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19878 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
19879 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
19880 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19881 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19882 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19883 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19884 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19885 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19886 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19887 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19888 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19889 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19890 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19891 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19892 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
19893 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19894 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19895 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19896 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19897 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19898 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
19899 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19900 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19901 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19902 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19903 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19904 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19905 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19906 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19907 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19908 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19909 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19910 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19911 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19912 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19913 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19914 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19915 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19916 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19917 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19918 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19919 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19920 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19921 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19922 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19923 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
19924 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
19925 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19926 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19927 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19928 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19929 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19930 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19931 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19932 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19933 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19934 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19935 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19936 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19937 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19938 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19939 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19940 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19941 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19942 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19943 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19944 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
19945 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19946 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
19947 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19948 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
19949 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
19950 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
19951 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
19952 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
19953 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19954 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19955 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19956 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19957 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19958 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19959 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19960 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19961 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19962 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19963 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19964 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19965 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19966 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19967 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19968 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19969 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19970 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19971 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19972 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19973 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19974 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19975 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19976 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19977 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19978 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19979 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19980 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19981 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19982 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19983 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19984 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19985 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19986 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19987 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19988 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19989 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19990 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19991 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19992 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19993 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19994 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19995 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19996 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19997 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19998 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19999 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20000 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20001 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20002 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20003 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20004 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20005 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20006 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20007 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20008 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20009 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20010 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20011 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20012 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20013 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20014 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20015 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20016 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20017 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20018 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20019 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20020 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20021 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20022 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20023 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20024 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20025 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20026 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20027 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20028 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20029 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20030 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20031 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20032 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
20033 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20034 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20035 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20036 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20037 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20038 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20039 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20040 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20041 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20042 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20043 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20044 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20045 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
20046 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20047 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20048 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20049 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20050 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20051 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20052 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20053 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20054 { (exit 1); exit 1; }; };;
20055 esac
20056 done
20058 # If the user did not use the arguments to specify the items to instantiate,
20059 # then the envvar interface is used. Set only those that are not.
20060 # We use the long form for the default assignment because of an extremely
20061 # bizarre bug on SunOS 4.1.3.
20062 if $ac_need_defaults; then
20063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20068 # Have a temporary directory for convenience. Make it in the build tree
20069 # simply because there is no reason to put it here, and in addition,
20070 # creating and moving files from /tmp can sometimes cause problems.
20071 # Create a temporary directory, and hook for its removal unless debugging.
20072 $debug ||
20074 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20075 trap '{ (exit 1); exit 1; }' 1 2 13 15
20078 # Create a (secure) tmp directory for tmp files.
20081 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20082 test -n "$tmp" && test -d "$tmp"
20083 } ||
20085 tmp=./confstat$$-$RANDOM
20086 (umask 077 && mkdir $tmp)
20087 } ||
20089 echo "$me: cannot create a temporary directory in ." >&2
20090 { (exit 1); exit 1; }
20093 _ACEOF
20095 cat >>$CONFIG_STATUS <<_ACEOF
20098 # CONFIG_FILES section.
20101 # No need to generate the scripts if there are no CONFIG_FILES.
20102 # This happens for instance when ./config.status config.h
20103 if test -n "\$CONFIG_FILES"; then
20104 # Protect against being on the right side of a sed subst in config.status.
20105 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20106 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20107 s,@SHELL@,$SHELL,;t t
20108 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20109 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20110 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20111 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20112 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20113 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20114 s,@exec_prefix@,$exec_prefix,;t t
20115 s,@prefix@,$prefix,;t t
20116 s,@program_transform_name@,$program_transform_name,;t t
20117 s,@bindir@,$bindir,;t t
20118 s,@sbindir@,$sbindir,;t t
20119 s,@libexecdir@,$libexecdir,;t t
20120 s,@datadir@,$datadir,;t t
20121 s,@sysconfdir@,$sysconfdir,;t t
20122 s,@sharedstatedir@,$sharedstatedir,;t t
20123 s,@localstatedir@,$localstatedir,;t t
20124 s,@libdir@,$libdir,;t t
20125 s,@includedir@,$includedir,;t t
20126 s,@oldincludedir@,$oldincludedir,;t t
20127 s,@infodir@,$infodir,;t t
20128 s,@mandir@,$mandir,;t t
20129 s,@build_alias@,$build_alias,;t t
20130 s,@host_alias@,$host_alias,;t t
20131 s,@target_alias@,$target_alias,;t t
20132 s,@DEFS@,$DEFS,;t t
20133 s,@ECHO_C@,$ECHO_C,;t t
20134 s,@ECHO_N@,$ECHO_N,;t t
20135 s,@ECHO_T@,$ECHO_T,;t t
20136 s,@LIBS@,$LIBS,;t t
20137 s,@WIN16_FILES@,$WIN16_FILES,;t t
20138 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20139 s,@build@,$build,;t t
20140 s,@build_cpu@,$build_cpu,;t t
20141 s,@build_vendor@,$build_vendor,;t t
20142 s,@build_os@,$build_os,;t t
20143 s,@host@,$host,;t t
20144 s,@host_cpu@,$host_cpu,;t t
20145 s,@host_vendor@,$host_vendor,;t t
20146 s,@host_os@,$host_os,;t t
20147 s,@SET_MAKE@,$SET_MAKE,;t t
20148 s,@CC@,$CC,;t t
20149 s,@CFLAGS@,$CFLAGS,;t t
20150 s,@LDFLAGS@,$LDFLAGS,;t t
20151 s,@CPPFLAGS@,$CPPFLAGS,;t t
20152 s,@ac_ct_CC@,$ac_ct_CC,;t t
20153 s,@EXEEXT@,$EXEEXT,;t t
20154 s,@OBJEXT@,$OBJEXT,;t t
20155 s,@CXX@,$CXX,;t t
20156 s,@CXXFLAGS@,$CXXFLAGS,;t t
20157 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20158 s,@CPPBIN@,$CPPBIN,;t t
20159 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20160 s,@TOOLSDIR@,$TOOLSDIR,;t t
20161 s,@CPP@,$CPP,;t t
20162 s,@X_CFLAGS@,$X_CFLAGS,;t t
20163 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20164 s,@X_LIBS@,$X_LIBS,;t t
20165 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20166 s,@YACC@,$YACC,;t t
20167 s,@LEX@,$LEX,;t t
20168 s,@LEXLIB@,$LEXLIB,;t t
20169 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20170 s,@XYACC@,$XYACC,;t t
20171 s,@XLEX@,$XLEX,;t t
20172 s,@AS@,$AS,;t t
20173 s,@ac_ct_AS@,$ac_ct_AS,;t t
20174 s,@LD@,$LD,;t t
20175 s,@ac_ct_LD@,$ac_ct_LD,;t t
20176 s,@AR@,$AR,;t t
20177 s,@ac_ct_AR@,$ac_ct_AR,;t t
20178 s,@RANLIB@,$RANLIB,;t t
20179 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20180 s,@STRIP@,$STRIP,;t t
20181 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20182 s,@WINDRES@,$WINDRES,;t t
20183 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20184 s,@LN_S@,$LN_S,;t t
20185 s,@LN@,$LN,;t t
20186 s,@LDCONFIG@,$LDCONFIG,;t t
20187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20190 s,@LINT@,$LINT,;t t
20191 s,@LINTFLAGS@,$LINTFLAGS,;t t
20192 s,@DB2HTML@,$DB2HTML,;t t
20193 s,@DB2PDF@,$DB2PDF,;t t
20194 s,@DB2PS@,$DB2PS,;t t
20195 s,@DB2TXT@,$DB2TXT,;t t
20196 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20197 s,@JPEGLIB@,$JPEGLIB,;t t
20198 s,@EGREP@,$EGREP,;t t
20199 s,@GIFLIB@,$GIFLIB,;t t
20200 s,@XLIB@,$XLIB,;t t
20201 s,@XFILES@,$XFILES,;t t
20202 s,@OPENGLFILES@,$OPENGLFILES,;t t
20203 s,@GLU32FILES@,$GLU32FILES,;t t
20204 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20205 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20206 s,@GLUT32FILES@,$GLUT32FILES,;t t
20207 s,@NASLIBS@,$NASLIBS,;t t
20208 s,@CURSESLIBS@,$CURSESLIBS,;t t
20209 s,@sane_devel@,$sane_devel,;t t
20210 s,@SANELIBS@,$SANELIBS,;t t
20211 s,@SANEINCL@,$SANEINCL,;t t
20212 s,@ICULIBS@,$ICULIBS,;t t
20213 s,@ft_devel@,$ft_devel,;t t
20214 s,@ft_devel2@,$ft_devel2,;t t
20215 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20216 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20217 s,@ARTSLIBS@,$ARTSLIBS,;t t
20218 s,@ARTSINCL@,$ARTSINCL,;t t
20219 s,@ALSALIBS@,$ALSALIBS,;t t
20220 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20221 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20222 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20223 s,@DLLEXT@,$DLLEXT,;t t
20224 s,@DLLFLAGS@,$DLLFLAGS,;t t
20225 s,@DLLIBS@,$DLLIBS,;t t
20226 s,@LDSHARED@,$LDSHARED,;t t
20227 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20228 s,@LIBEXT@,$LIBEXT,;t t
20229 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20230 s,@DLLTOOL@,$DLLTOOL,;t t
20231 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20232 s,@DLLWRAP@,$DLLWRAP,;t t
20233 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20234 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20235 s,@CROSSTEST@,$CROSSTEST,;t t
20236 s,@CROSSCC@,$CROSSCC,;t t
20237 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20238 s,@LDPATH@,$LDPATH,;t t
20239 s,@CRTLIBS@,$CRTLIBS,;t t
20240 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20241 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20242 s,@LDD@,$LDD,;t t
20243 s,@ALLOCA@,$ALLOCA,;t t
20244 s,@LIBOBJS@,$LIBOBJS,;t t
20245 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20246 /@MAKE_RULES@/r $MAKE_RULES
20247 s,@MAKE_RULES@,,;t t
20248 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20249 s,@MAKE_DLL_RULES@,,;t t
20250 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20251 s,@MAKE_TEST_RULES@,,;t t
20252 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20253 s,@MAKE_LIB_RULES@,,;t t
20254 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20255 s,@MAKE_PROG_RULES@,,;t t
20256 CEOF
20258 _ACEOF
20260 cat >>$CONFIG_STATUS <<\_ACEOF
20261 # Split the substitutions into bite-sized pieces for seds with
20262 # small command number limits, like on Digital OSF/1 and HP-UX.
20263 ac_max_sed_lines=48
20264 ac_sed_frag=1 # Number of current file.
20265 ac_beg=1 # First line for current file.
20266 ac_end=$ac_max_sed_lines # Line after last line for current file.
20267 ac_more_lines=:
20268 ac_sed_cmds=
20269 while $ac_more_lines; do
20270 if test $ac_beg -gt 1; then
20271 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20272 else
20273 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20275 if test ! -s $tmp/subs.frag; then
20276 ac_more_lines=false
20277 else
20278 # The purpose of the label and of the branching condition is to
20279 # speed up the sed processing (if there are no `@' at all, there
20280 # is no need to browse any of the substitutions).
20281 # These are the two extra sed commands mentioned above.
20282 (echo ':t
20283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20284 if test -z "$ac_sed_cmds"; then
20285 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20286 else
20287 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20289 ac_sed_frag=`expr $ac_sed_frag + 1`
20290 ac_beg=$ac_end
20291 ac_end=`expr $ac_end + $ac_max_sed_lines`
20293 done
20294 if test -z "$ac_sed_cmds"; then
20295 ac_sed_cmds=cat
20297 fi # test -n "$CONFIG_FILES"
20299 _ACEOF
20300 cat >>$CONFIG_STATUS <<\_ACEOF
20301 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20302 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20303 case $ac_file in
20304 - | *:- | *:-:* ) # input from stdin
20305 cat >$tmp/stdin
20306 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20308 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20310 * ) ac_file_in=$ac_file.in ;;
20311 esac
20313 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20316 X"$ac_file" : 'X\(//\)[^/]' \| \
20317 X"$ac_file" : 'X\(//\)$' \| \
20318 X"$ac_file" : 'X\(/\)' \| \
20319 . : '\(.\)' 2>/dev/null ||
20320 echo X"$ac_file" |
20321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20323 /^X\(\/\/\)$/{ s//\1/; q; }
20324 /^X\(\/\).*/{ s//\1/; q; }
20325 s/.*/./; q'`
20326 { if $as_mkdir_p; then
20327 mkdir -p "$ac_dir"
20328 else
20329 as_dir="$ac_dir"
20330 as_dirs=
20331 while test ! -d "$as_dir"; do
20332 as_dirs="$as_dir $as_dirs"
20333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20335 X"$as_dir" : 'X\(//\)[^/]' \| \
20336 X"$as_dir" : 'X\(//\)$' \| \
20337 X"$as_dir" : 'X\(/\)' \| \
20338 . : '\(.\)' 2>/dev/null ||
20339 echo X"$as_dir" |
20340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20342 /^X\(\/\/\)$/{ s//\1/; q; }
20343 /^X\(\/\).*/{ s//\1/; q; }
20344 s/.*/./; q'`
20345 done
20346 test ! -n "$as_dirs" || mkdir $as_dirs
20347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20349 { (exit 1); exit 1; }; }; }
20351 ac_builddir=.
20353 if test "$ac_dir" != .; then
20354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20355 # A "../" for each directory in $ac_dir_suffix.
20356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20357 else
20358 ac_dir_suffix= ac_top_builddir=
20361 case $srcdir in
20362 .) # No --srcdir option. We are building in place.
20363 ac_srcdir=.
20364 if test -z "$ac_top_builddir"; then
20365 ac_top_srcdir=.
20366 else
20367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20368 fi ;;
20369 [\\/]* | ?:[\\/]* ) # Absolute path.
20370 ac_srcdir=$srcdir$ac_dir_suffix;
20371 ac_top_srcdir=$srcdir ;;
20372 *) # Relative path.
20373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20375 esac
20377 # Do not use `cd foo && pwd` to compute absolute paths, because
20378 # the directories may not exist.
20379 case `pwd` in
20380 .) ac_abs_builddir="$ac_dir";;
20382 case "$ac_dir" in
20383 .) ac_abs_builddir=`pwd`;;
20384 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20385 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20386 esac;;
20387 esac
20388 case $ac_abs_builddir in
20389 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20391 case ${ac_top_builddir}. in
20392 .) ac_abs_top_builddir=$ac_abs_builddir;;
20393 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20394 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20395 esac;;
20396 esac
20397 case $ac_abs_builddir in
20398 .) ac_abs_srcdir=$ac_srcdir;;
20400 case $ac_srcdir in
20401 .) ac_abs_srcdir=$ac_abs_builddir;;
20402 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20403 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20404 esac;;
20405 esac
20406 case $ac_abs_builddir in
20407 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20409 case $ac_top_srcdir in
20410 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20411 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20412 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20413 esac;;
20414 esac
20417 case $INSTALL in
20418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20419 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20420 esac
20422 # Let's still pretend it is `configure' which instantiates (i.e., don't
20423 # use $as_me), people would be surprised to read:
20424 # /* config.h. Generated by config.status. */
20425 if test x"$ac_file" = x-; then
20426 configure_input=
20427 else
20428 configure_input="$ac_file. "
20430 configure_input=$configure_input"Generated from `echo $ac_file_in |
20431 sed 's,.*/,,'` by configure."
20433 # First look for the input files in the build tree, otherwise in the
20434 # src tree.
20435 ac_file_inputs=`IFS=:
20436 for f in $ac_file_in; do
20437 case $f in
20438 -) echo $tmp/stdin ;;
20439 [\\/$]*)
20440 # Absolute (can't be DOS-style, as IFS=:)
20441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20442 echo "$as_me: error: cannot find input file: $f" >&2;}
20443 { (exit 1); exit 1; }; }
20444 echo "$f";;
20445 *) # Relative
20446 if test -f "$f"; then
20447 # Build tree
20448 echo "$f"
20449 elif test -f "$srcdir/$f"; then
20450 # Source tree
20451 echo "$srcdir/$f"
20452 else
20453 # /dev/null tree
20454 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20455 echo "$as_me: error: cannot find input file: $f" >&2;}
20456 { (exit 1); exit 1; }; }
20457 fi;;
20458 esac
20459 done` || { (exit 1); exit 1; }
20461 if test x"$ac_file" != x-; then
20462 { echo "$as_me:$LINENO: creating $ac_file" >&5
20463 echo "$as_me: creating $ac_file" >&6;}
20464 rm -f "$ac_file"
20466 _ACEOF
20467 cat >>$CONFIG_STATUS <<_ACEOF
20468 sed "$ac_vpsub
20469 $extrasub
20470 _ACEOF
20471 cat >>$CONFIG_STATUS <<\_ACEOF
20473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20474 s,@configure_input@,$configure_input,;t t
20475 s,@srcdir@,$ac_srcdir,;t t
20476 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20477 s,@top_srcdir@,$ac_top_srcdir,;t t
20478 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20479 s,@builddir@,$ac_builddir,;t t
20480 s,@abs_builddir@,$ac_abs_builddir,;t t
20481 s,@top_builddir@,$ac_top_builddir,;t t
20482 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20483 s,@INSTALL@,$ac_INSTALL,;t t
20484 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20485 rm -f $tmp/stdin
20486 if test x"$ac_file" != x-; then
20487 mv $tmp/out $ac_file
20488 else
20489 cat $tmp/out
20490 rm -f $tmp/out
20493 done
20494 _ACEOF
20495 cat >>$CONFIG_STATUS <<\_ACEOF
20498 # CONFIG_HEADER section.
20501 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20502 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20504 # ac_d sets the value in "#define NAME VALUE" lines.
20505 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20506 ac_dB='[ ].*$,\1#\2'
20507 ac_dC=' '
20508 ac_dD=',;t'
20509 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20510 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20511 ac_uB='$,\1#\2define\3'
20512 ac_uC=' '
20513 ac_uD=',;t'
20515 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20517 case $ac_file in
20518 - | *:- | *:-:* ) # input from stdin
20519 cat >$tmp/stdin
20520 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20522 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20524 * ) ac_file_in=$ac_file.in ;;
20525 esac
20527 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20528 echo "$as_me: creating $ac_file" >&6;}
20530 # First look for the input files in the build tree, otherwise in the
20531 # src tree.
20532 ac_file_inputs=`IFS=:
20533 for f in $ac_file_in; do
20534 case $f in
20535 -) echo $tmp/stdin ;;
20536 [\\/$]*)
20537 # Absolute (can't be DOS-style, as IFS=:)
20538 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20539 echo "$as_me: error: cannot find input file: $f" >&2;}
20540 { (exit 1); exit 1; }; }
20541 # Do quote $f, to prevent DOS paths from being IFS'd.
20542 echo "$f";;
20543 *) # Relative
20544 if test -f "$f"; then
20545 # Build tree
20546 echo "$f"
20547 elif test -f "$srcdir/$f"; then
20548 # Source tree
20549 echo "$srcdir/$f"
20550 else
20551 # /dev/null tree
20552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20553 echo "$as_me: error: cannot find input file: $f" >&2;}
20554 { (exit 1); exit 1; }; }
20555 fi;;
20556 esac
20557 done` || { (exit 1); exit 1; }
20558 # Remove the trailing spaces.
20559 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20561 _ACEOF
20563 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20564 # `conftest.undefs', that substitutes the proper values into
20565 # config.h.in to produce config.h. The first handles `#define'
20566 # templates, and the second `#undef' templates.
20567 # And first: Protect against being on the right side of a sed subst in
20568 # config.status. Protect against being in an unquoted here document
20569 # in config.status.
20570 rm -f conftest.defines conftest.undefs
20571 # Using a here document instead of a string reduces the quoting nightmare.
20572 # Putting comments in sed scripts is not portable.
20574 # `end' is used to avoid that the second main sed command (meant for
20575 # 0-ary CPP macros) applies to n-ary macro definitions.
20576 # See the Autoconf documentation for `clear'.
20577 cat >confdef2sed.sed <<\_ACEOF
20578 s/[\\&,]/\\&/g
20579 s,[\\$`],\\&,g
20580 t clear
20581 : clear
20582 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20583 t end
20584 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20585 : end
20586 _ACEOF
20587 # If some macros were called several times there might be several times
20588 # the same #defines, which is useless. Nevertheless, we may not want to
20589 # sort them, since we want the *last* AC-DEFINE to be honored.
20590 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20591 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20592 rm -f confdef2sed.sed
20594 # This sed command replaces #undef with comments. This is necessary, for
20595 # example, in the case of _POSIX_SOURCE, which is predefined and required
20596 # on some systems where configure will not decide to define it.
20597 cat >>conftest.undefs <<\_ACEOF
20598 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20599 _ACEOF
20601 # Break up conftest.defines because some shells have a limit on the size
20602 # of here documents, and old seds have small limits too (100 cmds).
20603 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20604 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20605 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20606 echo ' :' >>$CONFIG_STATUS
20607 rm -f conftest.tail
20608 while grep . conftest.defines >/dev/null
20610 # Write a limited-size here document to $tmp/defines.sed.
20611 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20612 # Speed up: don't consider the non `#define' lines.
20613 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20614 # Work around the forget-to-reset-the-flag bug.
20615 echo 't clr' >>$CONFIG_STATUS
20616 echo ': clr' >>$CONFIG_STATUS
20617 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20618 echo 'CEOF
20619 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20620 rm -f $tmp/in
20621 mv $tmp/out $tmp/in
20622 ' >>$CONFIG_STATUS
20623 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20624 rm -f conftest.defines
20625 mv conftest.tail conftest.defines
20626 done
20627 rm -f conftest.defines
20628 echo ' fi # grep' >>$CONFIG_STATUS
20629 echo >>$CONFIG_STATUS
20631 # Break up conftest.undefs because some shells have a limit on the size
20632 # of here documents, and old seds have small limits too (100 cmds).
20633 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20634 rm -f conftest.tail
20635 while grep . conftest.undefs >/dev/null
20637 # Write a limited-size here document to $tmp/undefs.sed.
20638 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20639 # Speed up: don't consider the non `#undef'
20640 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20641 # Work around the forget-to-reset-the-flag bug.
20642 echo 't clr' >>$CONFIG_STATUS
20643 echo ': clr' >>$CONFIG_STATUS
20644 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20645 echo 'CEOF
20646 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20647 rm -f $tmp/in
20648 mv $tmp/out $tmp/in
20649 ' >>$CONFIG_STATUS
20650 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20651 rm -f conftest.undefs
20652 mv conftest.tail conftest.undefs
20653 done
20654 rm -f conftest.undefs
20656 cat >>$CONFIG_STATUS <<\_ACEOF
20657 # Let's still pretend it is `configure' which instantiates (i.e., don't
20658 # use $as_me), people would be surprised to read:
20659 # /* config.h. Generated by config.status. */
20660 if test x"$ac_file" = x-; then
20661 echo "/* Generated by configure. */" >$tmp/config.h
20662 else
20663 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20665 cat $tmp/in >>$tmp/config.h
20666 rm -f $tmp/in
20667 if test x"$ac_file" != x-; then
20668 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20669 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20670 echo "$as_me: $ac_file is unchanged" >&6;}
20671 else
20672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20674 X"$ac_file" : 'X\(//\)[^/]' \| \
20675 X"$ac_file" : 'X\(//\)$' \| \
20676 X"$ac_file" : 'X\(/\)' \| \
20677 . : '\(.\)' 2>/dev/null ||
20678 echo X"$ac_file" |
20679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20681 /^X\(\/\/\)$/{ s//\1/; q; }
20682 /^X\(\/\).*/{ s//\1/; q; }
20683 s/.*/./; q'`
20684 { if $as_mkdir_p; then
20685 mkdir -p "$ac_dir"
20686 else
20687 as_dir="$ac_dir"
20688 as_dirs=
20689 while test ! -d "$as_dir"; do
20690 as_dirs="$as_dir $as_dirs"
20691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20693 X"$as_dir" : 'X\(//\)[^/]' \| \
20694 X"$as_dir" : 'X\(//\)$' \| \
20695 X"$as_dir" : 'X\(/\)' \| \
20696 . : '\(.\)' 2>/dev/null ||
20697 echo X"$as_dir" |
20698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20700 /^X\(\/\/\)$/{ s//\1/; q; }
20701 /^X\(\/\).*/{ s//\1/; q; }
20702 s/.*/./; q'`
20703 done
20704 test ! -n "$as_dirs" || mkdir $as_dirs
20705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20707 { (exit 1); exit 1; }; }; }
20709 rm -f $ac_file
20710 mv $tmp/config.h $ac_file
20712 else
20713 cat $tmp/config.h
20714 rm -f $tmp/config.h
20716 done
20717 _ACEOF
20718 cat >>$CONFIG_STATUS <<\_ACEOF
20721 # CONFIG_COMMANDS section.
20723 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20724 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20725 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20726 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20727 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20728 X"$ac_dest" : 'X\(//\)[^/]' \| \
20729 X"$ac_dest" : 'X\(//\)$' \| \
20730 X"$ac_dest" : 'X\(/\)' \| \
20731 . : '\(.\)' 2>/dev/null ||
20732 echo X"$ac_dest" |
20733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20735 /^X\(\/\/\)$/{ s//\1/; q; }
20736 /^X\(\/\).*/{ s//\1/; q; }
20737 s/.*/./; q'`
20738 { if $as_mkdir_p; then
20739 mkdir -p "$ac_dir"
20740 else
20741 as_dir="$ac_dir"
20742 as_dirs=
20743 while test ! -d "$as_dir"; do
20744 as_dirs="$as_dir $as_dirs"
20745 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20747 X"$as_dir" : 'X\(//\)[^/]' \| \
20748 X"$as_dir" : 'X\(//\)$' \| \
20749 X"$as_dir" : 'X\(/\)' \| \
20750 . : '\(.\)' 2>/dev/null ||
20751 echo X"$as_dir" |
20752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20754 /^X\(\/\/\)$/{ s//\1/; q; }
20755 /^X\(\/\).*/{ s//\1/; q; }
20756 s/.*/./; q'`
20757 done
20758 test ! -n "$as_dirs" || mkdir $as_dirs
20759 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20760 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20761 { (exit 1); exit 1; }; }; }
20763 ac_builddir=.
20765 if test "$ac_dir" != .; then
20766 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20767 # A "../" for each directory in $ac_dir_suffix.
20768 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20769 else
20770 ac_dir_suffix= ac_top_builddir=
20773 case $srcdir in
20774 .) # No --srcdir option. We are building in place.
20775 ac_srcdir=.
20776 if test -z "$ac_top_builddir"; then
20777 ac_top_srcdir=.
20778 else
20779 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20780 fi ;;
20781 [\\/]* | ?:[\\/]* ) # Absolute path.
20782 ac_srcdir=$srcdir$ac_dir_suffix;
20783 ac_top_srcdir=$srcdir ;;
20784 *) # Relative path.
20785 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20786 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20787 esac
20789 # Do not use `cd foo && pwd` to compute absolute paths, because
20790 # the directories may not exist.
20791 case `pwd` in
20792 .) ac_abs_builddir="$ac_dir";;
20794 case "$ac_dir" in
20795 .) ac_abs_builddir=`pwd`;;
20796 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20797 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20798 esac;;
20799 esac
20800 case $ac_abs_builddir in
20801 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20803 case ${ac_top_builddir}. in
20804 .) ac_abs_top_builddir=$ac_abs_builddir;;
20805 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20806 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20807 esac;;
20808 esac
20809 case $ac_abs_builddir in
20810 .) ac_abs_srcdir=$ac_srcdir;;
20812 case $ac_srcdir in
20813 .) ac_abs_srcdir=$ac_abs_builddir;;
20814 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20815 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20816 esac;;
20817 esac
20818 case $ac_abs_builddir in
20819 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20821 case $ac_top_srcdir in
20822 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20823 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20824 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20825 esac;;
20826 esac
20829 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20830 echo "$as_me: executing $ac_dest commands" >&6;}
20831 case $ac_dest in
20832 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20833 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20834 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20835 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20836 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20837 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20838 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20839 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20840 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20841 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20842 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20843 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20844 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20845 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20846 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20847 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20848 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20849 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20850 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20851 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20852 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20853 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20854 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20855 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20856 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20857 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20858 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20859 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20860 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20861 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20862 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20863 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20864 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20865 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20866 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20867 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20868 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20869 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20870 esac
20871 done
20872 _ACEOF
20874 cat >>$CONFIG_STATUS <<\_ACEOF
20876 { (exit 0); exit 0; }
20877 _ACEOF
20878 chmod +x $CONFIG_STATUS
20879 ac_clean_files=$ac_clean_files_save
20882 # configure is writing to config.log, and then calls config.status.
20883 # config.status does its own redirection, appending to config.log.
20884 # Unfortunately, on DOS this fails, as config.log is still kept open
20885 # by configure, so config.status won't be able to write to it; its
20886 # output is simply discarded. So we exec the FD to /dev/null,
20887 # effectively closing config.log, so it can be properly (re)opened and
20888 # appended to by config.status. When coming back to configure, we
20889 # need to make the FD available again.
20890 if test "$no_create" != yes; then
20891 ac_cs_success=:
20892 ac_config_status_args=
20893 test "$silent" = yes &&
20894 ac_config_status_args="$ac_config_status_args --quiet"
20895 exec 5>/dev/null
20896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20897 exec 5>>config.log
20898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20899 # would make configure fail if this is the last instruction.
20900 $ac_cs_success || { (exit 1); exit 1; }
20904 if test "$have_x" = "no"
20905 then
20906 echo
20907 echo "*** Warning: X development files not found. Wine will be built without"
20908 echo "*** X support, which currently does not work, and would probably not be"
20909 echo "*** what you want anyway. You will need to install devel packages of"
20910 echo "*** Xlib/Xfree86 at the very least."
20913 if test "$wine_cv_opengl_version_OK" = "no"
20914 then
20915 echo
20916 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20917 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20920 if test "$wine_cv_msg_freetype" = "yes"
20921 then
20922 echo
20923 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20924 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20925 echo "*** freetype-devel package (or its equivalent on your distribution) to"
20926 echo "*** enable Wine to use TrueType fonts."
20929 echo
20930 echo "Configure finished. Do 'make depend && make' to compile Wine."
20931 echo