Fix a TRACE.
[wine/multimedia.git] / configure
blobc8dd0d15a65a00e2847dc4923be46bf571a6846c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040121.
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='20040121'
273 PACKAGE_STRING='Wine 20040121'
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 CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL 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_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures Wine 20040121 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 X features:
837 --x-includes=DIR X include files are in DIR
838 --x-libraries=DIR X library files are in DIR
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of Wine 20040121:";;
849 esac
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --disable-win16 do not include Win16 support
856 --disable-debug compile out all debugging messages
857 --disable-trace compile out TRACE messages
859 Optional Packages:
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --without-opengl do not use OpenGL
863 --without-curses do not use curses
864 --with-wine-tools=<dir> use Wine tools from directory <dir>
865 --with-x use the X Window System
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 Report bugs to <wine-devel@winehq.org>.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd "$ac_popdir"
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 Wine configure 20040121
976 generated by GNU Autoconf 2.59
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by Wine $as_me 20040121, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
992 $ $0 $@
994 _ACEOF
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 _ASUNAME
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1028 } >&5
1030 cat >&5 <<_ACEOF
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1037 _ACEOF
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1052 for ac_arg
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1099 echo
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 esac;
1122 echo
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1223 done
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 ac_config_headers="$ac_config_headers include/config.h"
1328 ac_aux_dir=
1329 for ac_dir in tools $srcdir/tools; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355 # Check whether --enable-win16 or --disable-win16 was given.
1356 if test "${enable_win16+set}" = set; then
1357 enableval="$enable_win16"
1360 # Check whether --enable-debug or --disable-debug was given.
1361 if test "${enable_debug+set}" = set; then
1362 enableval="$enable_debug"
1365 # Check whether --enable-trace or --disable-trace was given.
1366 if test "${enable_trace+set}" = set; then
1367 enableval="$enable_trace"
1372 # Check whether --with-opengl or --without-opengl was given.
1373 if test "${with_opengl+set}" = set; then
1374 withval="$with_opengl"
1378 # Check whether --with-curses or --without-curses was given.
1379 if test "${with_curses+set}" = set; then
1380 withval="$with_curses"
1384 # Check whether --with-wine-tools or --without-wine-tools was given.
1385 if test "${with_wine_tools+set}" = set; then
1386 withval="$with_wine_tools"
1390 WIN16_FILES="\$(WIN16_FILES)"
1392 WIN16_INSTALL="\$(WIN16_INSTALL)"
1394 if test "x$enable_win16" = "xno"
1395 then
1396 WIN16_FILES=""
1397 WIN16_INSTALL=""
1399 if test "x$enable_debug" = "xno"
1400 then
1402 cat >>confdefs.h <<\_ACEOF
1403 #define NO_DEBUG_MSGS 1
1404 _ACEOF
1407 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1408 then
1410 cat >>confdefs.h <<\_ACEOF
1411 #define NO_TRACE_MSGS 1
1412 _ACEOF
1417 # Make sure we can run config.sub.
1418 $ac_config_sub sun4 >/dev/null 2>&1 ||
1419 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1420 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1421 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: checking build system type" >&5
1424 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1425 if test "${ac_cv_build+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428 ac_cv_build_alias=$build_alias
1429 test -z "$ac_cv_build_alias" &&
1430 ac_cv_build_alias=`$ac_config_guess`
1431 test -z "$ac_cv_build_alias" &&
1432 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1434 { (exit 1); exit 1; }; }
1435 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1441 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1442 echo "${ECHO_T}$ac_cv_build" >&6
1443 build=$ac_cv_build
1444 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449 echo "$as_me:$LINENO: checking host system type" >&5
1450 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1451 if test "${ac_cv_host+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 ac_cv_host_alias=$host_alias
1455 test -z "$ac_cv_host_alias" &&
1456 ac_cv_host_alias=$ac_cv_build_alias
1457 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1458 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1459 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1460 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1464 echo "${ECHO_T}$ac_cv_host" >&6
1465 host=$ac_cv_host
1466 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1471 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1472 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1473 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1474 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 cat >conftest.make <<\_ACEOF
1478 all:
1479 @echo 'ac_maketemp="$(MAKE)"'
1480 _ACEOF
1481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1482 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1483 if test -n "$ac_maketemp"; then
1484 eval ac_cv_prog_make_${ac_make}_set=yes
1485 else
1486 eval ac_cv_prog_make_${ac_make}_set=no
1488 rm -f conftest.make
1490 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1491 echo "$as_me:$LINENO: result: yes" >&5
1492 echo "${ECHO_T}yes" >&6
1493 SET_MAKE=
1494 else
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 SET_MAKE="MAKE=${MAKE-make}"
1500 ac_ext=c
1501 ac_cpp='$CPP $CPPFLAGS'
1502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513 if test -n "$CC"; then
1514 ac_cv_prog_CC="$CC" # Let the user override the test.
1515 else
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 break 2
1527 done
1528 done
1532 CC=$ac_cv_prog_CC
1533 if test -n "$CC"; then
1534 echo "$as_me:$LINENO: result: $CC" >&5
1535 echo "${ECHO_T}$CC" >&6
1536 else
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1542 if test -z "$ac_cv_prog_CC"; then
1543 ac_ct_CC=$CC
1544 # Extract the first word of "gcc", so it can be a program name with args.
1545 set dummy gcc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$ac_ct_CC"; then
1552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_ac_ct_CC="gcc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1565 done
1566 done
1570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571 if test -n "$ac_ct_CC"; then
1572 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1573 echo "${ECHO_T}$ac_ct_CC" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1579 CC=$ac_ct_CC
1580 else
1581 CC="$ac_cv_prog_CC"
1584 if test -z "$CC"; then
1585 if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1587 set dummy ${ac_tool_prefix}cc; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 else
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_CC="${ac_tool_prefix}cc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1607 done
1608 done
1612 CC=$ac_cv_prog_CC
1613 if test -n "$CC"; then
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615 echo "${ECHO_T}$CC" >&6
1616 else
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1622 if test -z "$ac_cv_prog_CC"; then
1623 ac_ct_CC=$CC
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633 else
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_ac_ct_CC="cc"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1645 done
1646 done
1650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651 if test -n "$ac_ct_CC"; then
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653 echo "${ECHO_T}$ac_ct_CC" >&6
1654 else
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1659 CC=$ac_ct_CC
1660 else
1661 CC="$ac_cv_prog_CC"
1665 if test -z "$CC"; then
1666 # Extract the first word of "cc", so it can be a program name with args.
1667 set dummy cc; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1675 else
1676 ac_prog_rejected=no
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1685 ac_prog_rejected=yes
1686 continue
1688 ac_cv_prog_CC="cc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1692 done
1693 done
1695 if test $ac_prog_rejected = yes; then
1696 # We found a bogon in the path, so make sure we never use it.
1697 set dummy $ac_cv_prog_CC
1698 shift
1699 if test $# != 0; then
1700 # We chose a different compiler from the bogus one.
1701 # However, it has the same basename, so the bogon will be chosen
1702 # first if we set CC to just the basename; use the full file name.
1703 shift
1704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1709 CC=$ac_cv_prog_CC
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$CC"; then
1720 if test -n "$ac_tool_prefix"; then
1721 for ac_prog in cl
1723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$CC"; then
1731 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1744 done
1745 done
1749 CC=$ac_cv_prog_CC
1750 if test -n "$CC"; then
1751 echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$CC" && break
1759 done
1761 if test -z "$CC"; then
1762 ac_ct_CC=$CC
1763 for ac_prog in cl
1765 # Extract the first word of "$ac_prog", so it can be a program name with args.
1766 set dummy $ac_prog; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$ac_ct_CC"; then
1773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_ac_ct_CC="$ac_prog"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1786 done
1787 done
1791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1792 if test -n "$ac_ct_CC"; then
1793 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1794 echo "${ECHO_T}$ac_ct_CC" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1800 test -n "$ac_ct_CC" && break
1801 done
1803 CC=$ac_ct_CC
1809 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1810 See \`config.log' for more details." >&5
1811 echo "$as_me: error: no acceptable C compiler found in \$PATH
1812 See \`config.log' for more details." >&2;}
1813 { (exit 1); exit 1; }; }
1815 # Provide some information about the compiler.
1816 echo "$as_me:$LINENO:" \
1817 "checking for C compiler version" >&5
1818 ac_compiler=`set X $ac_compile; echo $2`
1819 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1820 (eval $ac_compiler --version </dev/null >&5) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1825 (eval $ac_compiler -v </dev/null >&5) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1830 (eval $ac_compiler -V </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1835 cat >conftest.$ac_ext <<_ACEOF
1836 /* confdefs.h. */
1837 _ACEOF
1838 cat confdefs.h >>conftest.$ac_ext
1839 cat >>conftest.$ac_ext <<_ACEOF
1840 /* end confdefs.h. */
1843 main ()
1847 return 0;
1849 _ACEOF
1850 ac_clean_files_save=$ac_clean_files
1851 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1852 # Try to create an executable without -o first, disregard a.out.
1853 # It will help us diagnose broken compilers, and finding out an intuition
1854 # of exeext.
1855 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1856 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1857 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1858 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1859 (eval $ac_link_default) 2>&5
1860 ac_status=$?
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 # Find the output, starting from the most likely. This scheme is
1864 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1865 # resort.
1867 # Be careful to initialize this variable, since it used to be cached.
1868 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1869 ac_cv_exeext=
1870 # b.out is created by i960 compilers.
1871 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1873 test -f "$ac_file" || continue
1874 case $ac_file in
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1877 conftest.$ac_ext )
1878 # This is the source file.
1880 [ab].out )
1881 # We found the default executable, but exeext='' is most
1882 # certainly right.
1883 break;;
1884 *.* )
1885 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886 # FIXME: I believe we export ac_cv_exeext for Libtool,
1887 # but it would be cool to find out if it's true. Does anybody
1888 # maintain Libtool? --akim.
1889 export ac_cv_exeext
1890 break;;
1892 break;;
1893 esac
1894 done
1895 else
1896 echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: C compiler cannot create executables
1902 See \`config.log' for more details." >&2;}
1903 { (exit 77); exit 77; }; }
1906 ac_exeext=$ac_cv_exeext
1907 echo "$as_me:$LINENO: result: $ac_file" >&5
1908 echo "${ECHO_T}$ac_file" >&6
1910 # Check the compiler produces executables we can run. If not, either
1911 # the compiler is broken, or we cross compile.
1912 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1913 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1914 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1915 # If not cross compiling, check that we can run a simple program.
1916 if test "$cross_compiling" != yes; then
1917 if { ac_try='./$ac_file'
1918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919 (eval $ac_try) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1923 cross_compiling=no
1924 else
1925 if test "$cross_compiling" = maybe; then
1926 cross_compiling=yes
1927 else
1928 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1929 If you meant to cross compile, use \`--host'.
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: cannot run C compiled programs.
1932 If you meant to cross compile, use \`--host'.
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1938 echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1941 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1942 ac_clean_files=$ac_clean_files_save
1943 # Check the compiler produces executables we can run. If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1947 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1948 echo "${ECHO_T}$cross_compiling" >&6
1950 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1953 (eval $ac_link) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; then
1957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1959 # work properly (i.e., refer to `conftest.exe'), while it won't with
1960 # `rm'.
1961 for ac_file in conftest.exe conftest conftest.*; do
1962 test -f "$ac_file" || continue
1963 case $ac_file in
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966 export ac_cv_exeext
1967 break;;
1968 * ) break;;
1969 esac
1970 done
1971 else
1972 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1979 rm -f conftest$ac_cv_exeext
1980 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1981 echo "${ECHO_T}$ac_cv_exeext" >&6
1983 rm -f conftest.$ac_ext
1984 EXEEXT=$ac_cv_exeext
1985 ac_exeext=$EXEEXT
1986 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1987 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1988 if test "${ac_cv_objext+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1999 main ()
2003 return 0;
2005 _ACEOF
2006 rm -f conftest.o conftest.obj
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2013 case $ac_file in
2014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2016 break;;
2017 esac
2018 done
2019 else
2020 echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2032 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2033 echo "${ECHO_T}$ac_cv_objext" >&6
2034 OBJEXT=$ac_cv_objext
2035 ac_objext=$OBJEXT
2036 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2037 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2038 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 cat >conftest.$ac_ext <<_ACEOF
2042 /* confdefs.h. */
2043 _ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2049 main ()
2051 #ifndef __GNUC__
2052 choke me
2053 #endif
2056 return 0;
2058 _ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>conftest.er1
2062 ac_status=$?
2063 grep -v '^ *+' conftest.er1 >conftest.err
2064 rm -f conftest.er1
2065 cat conftest.err >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; } &&
2074 { ac_try='test -s conftest.$ac_objext'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 (eval $ac_try) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; }; then
2080 ac_compiler_gnu=yes
2081 else
2082 echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2085 ac_compiler_gnu=no
2087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2091 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2092 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2093 GCC=`test $ac_compiler_gnu = yes && echo yes`
2094 ac_test_CFLAGS=${CFLAGS+set}
2095 ac_save_CFLAGS=$CFLAGS
2096 CFLAGS="-g"
2097 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_g+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 main ()
2114 return 0;
2116 _ACEOF
2117 rm -f conftest.$ac_objext
2118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>conftest.er1
2120 ac_status=$?
2121 grep -v '^ *+' conftest.er1 >conftest.err
2122 rm -f conftest.er1
2123 cat conftest.err >&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); } &&
2126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 (eval $ac_try) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2138 ac_cv_prog_cc_g=yes
2139 else
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_cv_prog_cc_g=no
2145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2148 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2149 if test "$ac_test_CFLAGS" = set; then
2150 CFLAGS=$ac_save_CFLAGS
2151 elif test $ac_cv_prog_cc_g = yes; then
2152 if test "$GCC" = yes; then
2153 CFLAGS="-g -O2"
2154 else
2155 CFLAGS="-g"
2157 else
2158 if test "$GCC" = yes; then
2159 CFLAGS="-O2"
2160 else
2161 CFLAGS=
2164 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2165 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2166 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 ac_cv_prog_cc_stdc=no
2170 ac_save_CC=$CC
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2177 #include <stdarg.h>
2178 #include <stdio.h>
2179 #include <sys/types.h>
2180 #include <sys/stat.h>
2181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2182 struct buf { int x; };
2183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2184 static char *e (p, i)
2185 char **p;
2186 int i;
2188 return p[i];
2190 static char *f (char * (*g) (char **, int), char **p, ...)
2192 char *s;
2193 va_list v;
2194 va_start (v,p);
2195 s = g (p, va_arg (v,int));
2196 va_end (v);
2197 return s;
2200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2201 function prototypes and stuff, but not '\xHH' hex character constants.
2202 These don't provoke an error unfortunately, instead are silently treated
2203 as 'x'. The following induces an error, until -std1 is added to get
2204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2205 array size at least. It's necessary to write '\x00'==0 to get something
2206 that's true only with -std1. */
2207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2209 int test (int i, double x);
2210 struct s1 {int (*f) (int a);};
2211 struct s2 {int (*f) (double a);};
2212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2213 int argc;
2214 char **argv;
2216 main ()
2218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2220 return 0;
2222 _ACEOF
2223 # Don't try gcc -ansi; that turns off useful extensions and
2224 # breaks some systems' header files.
2225 # AIX -qlanglvl=ansi
2226 # Ultrix and OSF/1 -std1
2227 # HP-UX 10.20 and later -Ae
2228 # HP-UX older versions -Aa -D_HPUX_SOURCE
2229 # SVR4 -Xc -D__EXTENSIONS__
2230 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2232 CC="$ac_save_CC $ac_arg"
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>conftest.er1
2236 ac_status=$?
2237 grep -v '^ *+' conftest.er1 >conftest.err
2238 rm -f conftest.er1
2239 cat conftest.err >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 ac_cv_prog_cc_stdc=$ac_arg
2255 break
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2261 rm -f conftest.err conftest.$ac_objext
2262 done
2263 rm -f conftest.$ac_ext conftest.$ac_objext
2264 CC=$ac_save_CC
2268 case "x$ac_cv_prog_cc_stdc" in
2269 x|xno)
2270 echo "$as_me:$LINENO: result: none needed" >&5
2271 echo "${ECHO_T}none needed" >&6 ;;
2273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2274 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2275 CC="$CC $ac_cv_prog_cc_stdc" ;;
2276 esac
2278 # Some people use a C++ compiler to compile C. Since we use `exit',
2279 # in C++ we need to declare it. In case someone uses the same compiler
2280 # for both compiling C and C++ we need to have the C++ compiler decide
2281 # the declaration of exit, since it's the most demanding environment.
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #ifndef __cplusplus
2284 choke me
2285 #endif
2286 _ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2290 ac_status=$?
2291 grep -v '^ *+' conftest.er1 >conftest.err
2292 rm -f conftest.er1
2293 cat conftest.err >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 for ac_declaration in \
2309 '' \
2310 'extern "C" void std::exit (int) throw (); using std::exit;' \
2311 'extern "C" void std::exit (int); using std::exit;' \
2312 'extern "C" void exit (int) throw ();' \
2313 'extern "C" void exit (int);' \
2314 'void exit (int);'
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2322 $ac_declaration
2323 #include <stdlib.h>
2325 main ()
2327 exit (42);
2329 return 0;
2331 _ACEOF
2332 rm -f conftest.$ac_objext
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>conftest.er1
2335 ac_status=$?
2336 grep -v '^ *+' conftest.er1 >conftest.err
2337 rm -f conftest.er1
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 continue
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2367 $ac_declaration
2369 main ()
2371 exit (42);
2373 return 0;
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 break
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2404 done
2405 rm -f conftest*
2406 if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2431 # On Suns, sometimes $CPP names a directory.
2432 if test -n "$CPP" && test -d "$CPP"; then
2433 CPP=
2435 if test -z "$CPP"; then
2436 if test "${ac_cv_prog_CPP+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 # Double quotes because CPP needs to be expanded
2440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2442 ac_preproc_ok=false
2443 for ac_c_preproc_warn_flag in '' yes
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2448 # <limits.h> exists even on freestanding compilers.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #ifdef __STDC__
2458 # include <limits.h>
2459 #else
2460 # include <assert.h>
2461 #endif
2462 Syntax error
2463 _ACEOF
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2478 else
2479 ac_cpp_err=yes
2481 if test -z "$ac_cpp_err"; then
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 # Broken: fails on valid input.
2488 continue
2490 rm -f conftest.err conftest.$ac_ext
2492 # OK, works on sane cases. Now check whether non-existent headers
2493 # can be detected and how.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #include <ac_nonexistent.h>
2501 _ACEOF
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 else
2514 ac_cpp_err=
2516 else
2517 ac_cpp_err=yes
2519 if test -z "$ac_cpp_err"; then
2520 # Broken: success on invalid input.
2521 continue
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 # Passes both tests.
2527 ac_preproc_ok=:
2528 break
2530 rm -f conftest.err conftest.$ac_ext
2532 done
2533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2534 rm -f conftest.err conftest.$ac_ext
2535 if $ac_preproc_ok; then
2536 break
2539 done
2540 ac_cv_prog_CPP=$CPP
2543 CPP=$ac_cv_prog_CPP
2544 else
2545 ac_cv_prog_CPP=$CPP
2547 echo "$as_me:$LINENO: result: $CPP" >&5
2548 echo "${ECHO_T}$CPP" >&6
2549 ac_preproc_ok=false
2550 for ac_c_preproc_warn_flag in '' yes
2552 # Use a header file that comes with gcc, so configuring glibc
2553 # with a fresh cross-compiler works.
2554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2555 # <limits.h> exists even on freestanding compilers.
2556 # On the NeXT, cc -E runs the code through the compiler's parser,
2557 # not just through cpp. "Syntax error" is here to catch this case.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569 Syntax error
2570 _ACEOF
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2579 if test -s conftest.err; then
2580 ac_cpp_err=$ac_c_preproc_warn_flag
2581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582 else
2583 ac_cpp_err=
2585 else
2586 ac_cpp_err=yes
2588 if test -z "$ac_cpp_err"; then
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 # Broken: fails on valid input.
2595 continue
2597 rm -f conftest.err conftest.$ac_ext
2599 # OK, works on sane cases. Now check whether non-existent headers
2600 # can be detected and how.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607 #include <ac_nonexistent.h>
2608 _ACEOF
2609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev/null; then
2617 if test -s conftest.err; then
2618 ac_cpp_err=$ac_c_preproc_warn_flag
2619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2620 else
2621 ac_cpp_err=
2623 else
2624 ac_cpp_err=yes
2626 if test -z "$ac_cpp_err"; then
2627 # Broken: success on invalid input.
2628 continue
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2633 # Passes both tests.
2634 ac_preproc_ok=:
2635 break
2637 rm -f conftest.err conftest.$ac_ext
2639 done
2640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2641 rm -f conftest.err conftest.$ac_ext
2642 if $ac_preproc_ok; then
2644 else
2645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2660 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2661 if test "${wine_cv_toolsdir+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -z "$with_wine_tools"; then
2665 if test "$cross_compiling" = "yes"; then
2666 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2667 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2668 { (exit 1); exit 1; }; }
2669 else
2670 wine_cv_toolsdir="\$(TOPOBJDIR)"
2672 elif test -d "$with_wine_tools/tools/winebuild"; then
2673 case $with_wine_tools in
2674 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2675 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2676 esac
2677 else
2678 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2679 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2680 { (exit 1); exit 1; }; }
2683 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2684 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2685 TOOLSDIR=$wine_cv_toolsdir
2690 echo "$as_me:$LINENO: checking for X" >&5
2691 echo $ECHO_N "checking for X... $ECHO_C" >&6
2694 # Check whether --with-x or --without-x was given.
2695 if test "${with_x+set}" = set; then
2696 withval="$with_x"
2699 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2700 if test "x$with_x" = xno; then
2701 # The user explicitly disabled X.
2702 have_x=disabled
2703 else
2704 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2705 # Both variables are already set.
2706 have_x=yes
2707 else
2708 if test "${ac_cv_have_x+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 # One or both of the vars are not set, and there is no cached value.
2712 ac_x_includes=no ac_x_libraries=no
2713 rm -fr conftest.dir
2714 if mkdir conftest.dir; then
2715 cd conftest.dir
2716 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2717 cat >Imakefile <<'_ACEOF'
2718 acfindx:
2719 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2720 _ACEOF
2721 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2725 for ac_extension in a so sl; do
2726 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2727 test -f $ac_im_libdir/libX11.$ac_extension; then
2728 ac_im_usrlibdir=$ac_im_libdir; break
2730 done
2731 # Screen out bogus values from the imake configuration. They are
2732 # bogus both because they are the default anyway, and because
2733 # using them would break gcc on systems where it needs fixed includes.
2734 case $ac_im_incroot in
2735 /usr/include) ;;
2736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2737 esac
2738 case $ac_im_usrlibdir in
2739 /usr/lib | /lib) ;;
2740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2741 esac
2743 cd ..
2744 rm -fr conftest.dir
2747 # Standard set of common directories for X headers.
2748 # Check X11 before X11Rn because it is often a symlink to the current release.
2749 ac_x_header_dirs='
2750 /usr/X11/include
2751 /usr/X11R6/include
2752 /usr/X11R5/include
2753 /usr/X11R4/include
2755 /usr/include/X11
2756 /usr/include/X11R6
2757 /usr/include/X11R5
2758 /usr/include/X11R4
2760 /usr/local/X11/include
2761 /usr/local/X11R6/include
2762 /usr/local/X11R5/include
2763 /usr/local/X11R4/include
2765 /usr/local/include/X11
2766 /usr/local/include/X11R6
2767 /usr/local/include/X11R5
2768 /usr/local/include/X11R4
2770 /usr/X386/include
2771 /usr/x386/include
2772 /usr/XFree86/include/X11
2774 /usr/include
2775 /usr/local/include
2776 /usr/unsupported/include
2777 /usr/athena/include
2778 /usr/local/x11r5/include
2779 /usr/lpp/Xamples/include
2781 /usr/openwin/include
2782 /usr/openwin/share/include'
2784 if test "$ac_x_includes" = no; then
2785 # Guess where to find include files, by looking for Intrinsic.h.
2786 # First, try using that file with no special directory specified.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 #include <X11/Intrinsic.h>
2794 _ACEOF
2795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2797 ac_status=$?
2798 grep -v '^ *+' conftest.er1 >conftest.err
2799 rm -f conftest.er1
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } >/dev/null; then
2803 if test -s conftest.err; then
2804 ac_cpp_err=$ac_c_preproc_warn_flag
2805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2806 else
2807 ac_cpp_err=
2809 else
2810 ac_cpp_err=yes
2812 if test -z "$ac_cpp_err"; then
2813 # We can compile using X headers with no special include directory.
2814 ac_x_includes=
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 for ac_dir in $ac_x_header_dirs; do
2820 if test -r "$ac_dir/X11/Intrinsic.h"; then
2821 ac_x_includes=$ac_dir
2822 break
2824 done
2826 rm -f conftest.err conftest.$ac_ext
2827 fi # $ac_x_includes = no
2829 if test "$ac_x_libraries" = no; then
2830 # Check for the libraries.
2831 # See if we find them without any special options.
2832 # Don't add to $LIBS permanently.
2833 ac_save_LIBS=$LIBS
2834 LIBS="-lXt $LIBS"
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #include <X11/Intrinsic.h>
2843 main ()
2845 XtMalloc (0)
2847 return 0;
2849 _ACEOF
2850 rm -f conftest.$ac_objext conftest$ac_exeext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852 (eval $ac_link) 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; } &&
2865 { ac_try='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 LIBS=$ac_save_LIBS
2872 # We can link X programs with no special library path.
2873 ac_x_libraries=
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 LIBS=$ac_save_LIBS
2879 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2881 # Don't even attempt the hair of trying to link an X program!
2882 for ac_extension in a so sl; do
2883 if test -r $ac_dir/libXt.$ac_extension; then
2884 ac_x_libraries=$ac_dir
2885 break 2
2887 done
2888 done
2890 rm -f conftest.err conftest.$ac_objext \
2891 conftest$ac_exeext conftest.$ac_ext
2892 fi # $ac_x_libraries = no
2894 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2895 # Didn't find X anywhere. Cache the known absence of X.
2896 ac_cv_have_x="have_x=no"
2897 else
2898 # Record where we found X for the cache.
2899 ac_cv_have_x="have_x=yes \
2900 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2905 eval "$ac_cv_have_x"
2906 fi # $with_x != no
2908 if test "$have_x" != yes; then
2909 echo "$as_me:$LINENO: result: $have_x" >&5
2910 echo "${ECHO_T}$have_x" >&6
2911 no_x=yes
2912 else
2913 # If each of the values was on the command line, it overrides each guess.
2914 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2915 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2916 # Update the cache value to reflect the command line values.
2917 ac_cv_have_x="have_x=yes \
2918 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2919 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2920 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2923 if test "$no_x" = yes; then
2924 # Not all programs may use this symbol, but it does not hurt to define it.
2926 cat >>confdefs.h <<\_ACEOF
2927 #define X_DISPLAY_MISSING 1
2928 _ACEOF
2930 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2931 else
2932 if test -n "$x_includes"; then
2933 X_CFLAGS="$X_CFLAGS -I$x_includes"
2936 # It would also be nice to do this for all -L options, not just this one.
2937 if test -n "$x_libraries"; then
2938 X_LIBS="$X_LIBS -L$x_libraries"
2939 # For Solaris; some versions of Sun CC require a space after -R and
2940 # others require no space. Words are not sufficient . . . .
2941 case `(uname -sr) 2>/dev/null` in
2942 "SunOS 5"*)
2943 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2944 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2945 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2954 main ()
2958 return 0;
2960 _ACEOF
2961 rm -f conftest.$ac_objext conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963 (eval $ac_link) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 (eval $ac_try) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest$ac_exeext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_R_nospace=yes
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 ac_R_nospace=no
2989 rm -f conftest.err conftest.$ac_objext \
2990 conftest$ac_exeext conftest.$ac_ext
2991 if test $ac_R_nospace = yes; then
2992 echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994 X_LIBS="$X_LIBS -R$x_libraries"
2995 else
2996 LIBS="$ac_xsave_LIBS -R $x_libraries"
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3005 main ()
3009 return 0;
3011 _ACEOF
3012 rm -f conftest.$ac_objext conftest$ac_exeext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3014 (eval $ac_link) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_R_space=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_R_space=no
3040 rm -f conftest.err conftest.$ac_objext \
3041 conftest$ac_exeext conftest.$ac_ext
3042 if test $ac_R_space = yes; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3045 X_LIBS="$X_LIBS -R $x_libraries"
3046 else
3047 echo "$as_me:$LINENO: result: neither works" >&5
3048 echo "${ECHO_T}neither works" >&6
3051 LIBS=$ac_xsave_LIBS
3052 esac
3055 # Check for system-dependent libraries X programs must link with.
3056 # Do this before checking for the system-independent R6 libraries
3057 # (-lICE), since we may need -lsocket or whatever for X linking.
3059 if test "$ISC" = yes; then
3060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3061 else
3062 # Martyn Johnson says this is needed for Ultrix, if the X
3063 # libraries were built with DECnet support. And Karl Berry says
3064 # the Alpha needs dnet_stub (dnet does not exist).
3065 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3073 /* Override any gcc2 internal prototype to avoid an error. */
3074 #ifdef __cplusplus
3075 extern "C"
3076 #endif
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3079 char XOpenDisplay ();
3081 main ()
3083 XOpenDisplay ();
3085 return 0;
3087 _ACEOF
3088 rm -f conftest.$ac_objext conftest$ac_exeext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3090 (eval $ac_link) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest$ac_exeext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3115 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3116 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_check_lib_save_LIBS=$LIBS
3120 LIBS="-ldnet $LIBS"
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3128 /* Override any gcc2 internal prototype to avoid an error. */
3129 #ifdef __cplusplus
3130 extern "C"
3131 #endif
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3134 char dnet_ntoa ();
3136 main ()
3138 dnet_ntoa ();
3140 return 0;
3142 _ACEOF
3143 rm -f conftest.$ac_objext conftest$ac_exeext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest$ac_exeext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 ac_cv_lib_dnet_dnet_ntoa=yes
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cv_lib_dnet_dnet_ntoa=no
3171 rm -f conftest.err conftest.$ac_objext \
3172 conftest$ac_exeext conftest.$ac_ext
3173 LIBS=$ac_check_lib_save_LIBS
3175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3176 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3177 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3181 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3182 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3183 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3184 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 ac_check_lib_save_LIBS=$LIBS
3188 LIBS="-ldnet_stub $LIBS"
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 #ifdef __cplusplus
3198 extern "C"
3199 #endif
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3202 char dnet_ntoa ();
3204 main ()
3206 dnet_ntoa ();
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.$ac_objext conftest$ac_exeext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; } &&
3226 { ac_try='test -s conftest$ac_exeext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_cv_lib_dnet_stub_dnet_ntoa=no
3239 rm -f conftest.err conftest.$ac_objext \
3240 conftest$ac_exeext conftest.$ac_ext
3241 LIBS=$ac_check_lib_save_LIBS
3243 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3244 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3245 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3251 rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
3253 LIBS="$ac_xsave_LIBS"
3255 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3256 # to get the SysV transport functions.
3257 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3258 # needs -lnsl.
3259 # The nsl library prevents programs from opening the X display
3260 # on Irix 5.2, according to T.E. Dickey.
3261 # The functions gethostbyname, getservbyname, and inet_addr are
3262 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3263 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3264 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3265 if test "${ac_cv_func_gethostbyname+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3276 #define gethostbyname innocuous_gethostbyname
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char gethostbyname (); below.
3280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 <limits.h> exists even on freestanding compilers. */
3283 #ifdef __STDC__
3284 # include <limits.h>
3285 #else
3286 # include <assert.h>
3287 #endif
3289 #undef gethostbyname
3291 /* Override any gcc2 internal prototype to avoid an error. */
3292 #ifdef __cplusplus
3293 extern "C"
3295 #endif
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char gethostbyname ();
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3303 choke me
3304 #else
3305 char (*f) () = gethostbyname;
3306 #endif
3307 #ifdef __cplusplus
3309 #endif
3312 main ()
3314 return f != gethostbyname;
3316 return 0;
3318 _ACEOF
3319 rm -f conftest.$ac_objext conftest$ac_exeext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3321 (eval $ac_link) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest$ac_exeext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_cv_func_gethostbyname=yes
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 ac_cv_func_gethostbyname=no
3347 rm -f conftest.err conftest.$ac_objext \
3348 conftest$ac_exeext conftest.$ac_ext
3350 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3351 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3353 if test $ac_cv_func_gethostbyname = no; then
3354 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3355 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3356 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 ac_check_lib_save_LIBS=$LIBS
3360 LIBS="-lnsl $LIBS"
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 #ifdef __cplusplus
3370 extern "C"
3371 #endif
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3374 char gethostbyname ();
3376 main ()
3378 gethostbyname ();
3380 return 0;
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest$ac_exeext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_cv_lib_nsl_gethostbyname=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 ac_cv_lib_nsl_gethostbyname=no
3411 rm -f conftest.err conftest.$ac_objext \
3412 conftest$ac_exeext conftest.$ac_ext
3413 LIBS=$ac_check_lib_save_LIBS
3415 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3416 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3417 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3421 if test $ac_cv_lib_nsl_gethostbyname = no; then
3422 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3423 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3424 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 ac_check_lib_save_LIBS=$LIBS
3428 LIBS="-lbsd $LIBS"
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 #ifdef __cplusplus
3438 extern "C"
3439 #endif
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442 char gethostbyname ();
3444 main ()
3446 gethostbyname ();
3448 return 0;
3450 _ACEOF
3451 rm -f conftest.$ac_objext conftest$ac_exeext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest$ac_exeext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_lib_bsd_gethostbyname=yes
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 ac_cv_lib_bsd_gethostbyname=no
3479 rm -f conftest.err conftest.$ac_objext \
3480 conftest$ac_exeext conftest.$ac_ext
3481 LIBS=$ac_check_lib_save_LIBS
3483 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3484 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3485 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3492 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3493 # socket/setsockopt and other routines are undefined under SCO ODT
3494 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3495 # on later versions), says Simon Leinen: it contains gethostby*
3496 # variants that don't use the name server (or something). -lsocket
3497 # must be given before -lnsl if both are needed. We assume that
3498 # if connect needs -lnsl, so does gethostbyname.
3499 echo "$as_me:$LINENO: checking for connect" >&5
3500 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3501 if test "${ac_cv_func_connect+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3512 #define connect innocuous_connect
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char connect (); below.
3516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3517 <limits.h> exists even on freestanding compilers. */
3519 #ifdef __STDC__
3520 # include <limits.h>
3521 #else
3522 # include <assert.h>
3523 #endif
3525 #undef connect
3527 /* Override any gcc2 internal prototype to avoid an error. */
3528 #ifdef __cplusplus
3529 extern "C"
3531 #endif
3532 /* We use char because int might match the return type of a gcc2
3533 builtin and then its argument prototype would still apply. */
3534 char connect ();
3535 /* The GNU C library defines this for functions which it implements
3536 to always fail with ENOSYS. Some functions are actually named
3537 something starting with __ and the normal name is an alias. */
3538 #if defined (__stub_connect) || defined (__stub___connect)
3539 choke me
3540 #else
3541 char (*f) () = connect;
3542 #endif
3543 #ifdef __cplusplus
3545 #endif
3548 main ()
3550 return f != connect;
3552 return 0;
3554 _ACEOF
3555 rm -f conftest.$ac_objext conftest$ac_exeext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3557 (eval $ac_link) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest$ac_exeext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_cv_func_connect=yes
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_cv_func_connect=no
3583 rm -f conftest.err conftest.$ac_objext \
3584 conftest$ac_exeext conftest.$ac_ext
3586 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3587 echo "${ECHO_T}$ac_cv_func_connect" >&6
3589 if test $ac_cv_func_connect = no; then
3590 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3591 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3592 if test "${ac_cv_lib_socket_connect+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 ac_check_lib_save_LIBS=$LIBS
3596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 #ifdef __cplusplus
3606 extern "C"
3607 #endif
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3610 char connect ();
3612 main ()
3614 connect ();
3616 return 0;
3618 _ACEOF
3619 rm -f conftest.$ac_objext conftest$ac_exeext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621 (eval $ac_link) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest$ac_exeext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 ac_cv_lib_socket_connect=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ac_cv_lib_socket_connect=no
3647 rm -f conftest.err conftest.$ac_objext \
3648 conftest$ac_exeext conftest.$ac_ext
3649 LIBS=$ac_check_lib_save_LIBS
3651 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3652 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3653 if test $ac_cv_lib_socket_connect = yes; then
3654 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3659 # Guillermo Gomez says -lposix is necessary on A/UX.
3660 echo "$as_me:$LINENO: checking for remove" >&5
3661 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3662 if test "${ac_cv_func_remove+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3673 #define remove innocuous_remove
3675 /* System header to define __stub macros and hopefully few prototypes,
3676 which can conflict with char remove (); below.
3677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3678 <limits.h> exists even on freestanding compilers. */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3686 #undef remove
3688 /* Override any gcc2 internal prototype to avoid an error. */
3689 #ifdef __cplusplus
3690 extern "C"
3692 #endif
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char remove ();
3696 /* The GNU C library defines this for functions which it implements
3697 to always fail with ENOSYS. Some functions are actually named
3698 something starting with __ and the normal name is an alias. */
3699 #if defined (__stub_remove) || defined (__stub___remove)
3700 choke me
3701 #else
3702 char (*f) () = remove;
3703 #endif
3704 #ifdef __cplusplus
3706 #endif
3709 main ()
3711 return f != remove;
3713 return 0;
3715 _ACEOF
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718 (eval $ac_link) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest$ac_exeext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_func_remove=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_func_remove=no
3744 rm -f conftest.err conftest.$ac_objext \
3745 conftest$ac_exeext conftest.$ac_ext
3747 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3748 echo "${ECHO_T}$ac_cv_func_remove" >&6
3750 if test $ac_cv_func_remove = no; then
3751 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3752 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3753 if test "${ac_cv_lib_posix_remove+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 ac_check_lib_save_LIBS=$LIBS
3757 LIBS="-lposix $LIBS"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 #ifdef __cplusplus
3767 extern "C"
3768 #endif
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char remove ();
3773 main ()
3775 remove ();
3777 return 0;
3779 _ACEOF
3780 rm -f conftest.$ac_objext conftest$ac_exeext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3782 (eval $ac_link) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 (eval $ac_try) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_cv_lib_posix_remove=yes
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 ac_cv_lib_posix_remove=no
3808 rm -f conftest.err conftest.$ac_objext \
3809 conftest$ac_exeext conftest.$ac_ext
3810 LIBS=$ac_check_lib_save_LIBS
3812 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3813 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3814 if test $ac_cv_lib_posix_remove = yes; then
3815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3820 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3821 echo "$as_me:$LINENO: checking for shmat" >&5
3822 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3823 if test "${ac_cv_func_shmat+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3834 #define shmat innocuous_shmat
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char shmat (); below.
3838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 <limits.h> exists even on freestanding compilers. */
3841 #ifdef __STDC__
3842 # include <limits.h>
3843 #else
3844 # include <assert.h>
3845 #endif
3847 #undef shmat
3849 /* Override any gcc2 internal prototype to avoid an error. */
3850 #ifdef __cplusplus
3851 extern "C"
3853 #endif
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856 char shmat ();
3857 /* The GNU C library defines this for functions which it implements
3858 to always fail with ENOSYS. Some functions are actually named
3859 something starting with __ and the normal name is an alias. */
3860 #if defined (__stub_shmat) || defined (__stub___shmat)
3861 choke me
3862 #else
3863 char (*f) () = shmat;
3864 #endif
3865 #ifdef __cplusplus
3867 #endif
3870 main ()
3872 return f != shmat;
3874 return 0;
3876 _ACEOF
3877 rm -f conftest.$ac_objext conftest$ac_exeext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879 (eval $ac_link) 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_func_shmat=yes
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 ac_cv_func_shmat=no
3905 rm -f conftest.err conftest.$ac_objext \
3906 conftest$ac_exeext conftest.$ac_ext
3908 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3909 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3911 if test $ac_cv_func_shmat = no; then
3912 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3913 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3914 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 ac_check_lib_save_LIBS=$LIBS
3918 LIBS="-lipc $LIBS"
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 #ifdef __cplusplus
3928 extern "C"
3929 #endif
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3932 char shmat ();
3934 main ()
3936 shmat ();
3938 return 0;
3940 _ACEOF
3941 rm -f conftest.$ac_objext conftest$ac_exeext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943 (eval $ac_link) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_lib_ipc_shmat=yes
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_cv_lib_ipc_shmat=no
3969 rm -f conftest.err conftest.$ac_objext \
3970 conftest$ac_exeext conftest.$ac_ext
3971 LIBS=$ac_check_lib_save_LIBS
3973 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3974 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3975 if test $ac_cv_lib_ipc_shmat = yes; then
3976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3982 # Check for libraries that X11R6 Xt/Xaw programs need.
3983 ac_save_LDFLAGS=$LDFLAGS
3984 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3985 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3986 # check for ICE first), but we must link in the order -lSM -lICE or
3987 # we get undefined symbols. So assume we have SM if we have ICE.
3988 # These have to be linked with before -lX11, unlike the other
3989 # libraries we check for below, so use a different variable.
3990 # John Interrante, Karl Berry
3991 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3992 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3993 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 ac_check_lib_save_LIBS=$LIBS
3997 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 #ifdef __cplusplus
4007 extern "C"
4008 #endif
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011 char IceConnectionNumber ();
4013 main ()
4015 IceConnectionNumber ();
4017 return 0;
4019 _ACEOF
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_lib_ICE_IceConnectionNumber=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cv_lib_ICE_IceConnectionNumber=no
4048 rm -f conftest.err conftest.$ac_objext \
4049 conftest$ac_exeext conftest.$ac_ext
4050 LIBS=$ac_check_lib_save_LIBS
4052 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4053 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4054 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4055 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4058 LDFLAGS=$ac_save_LDFLAGS
4062 for ac_prog in 'bison -y' byacc
4064 # Extract the first word of "$ac_prog", so it can be a program name with args.
4065 set dummy $ac_prog; ac_word=$2
4066 echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_YACC+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 if test -n "$YACC"; then
4072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_prog_YACC="$ac_prog"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 break 2
4085 done
4086 done
4090 YACC=$ac_cv_prog_YACC
4091 if test -n "$YACC"; then
4092 echo "$as_me:$LINENO: result: $YACC" >&5
4093 echo "${ECHO_T}$YACC" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4099 test -n "$YACC" && break
4100 done
4101 test -n "$YACC" || YACC="yacc"
4103 for ac_prog in flex lex
4105 # Extract the first word of "$ac_prog", so it can be a program name with args.
4106 set dummy $ac_prog; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_prog_LEX+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$LEX"; then
4113 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_LEX="$ac_prog"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4131 LEX=$ac_cv_prog_LEX
4132 if test -n "$LEX"; then
4133 echo "$as_me:$LINENO: result: $LEX" >&5
4134 echo "${ECHO_T}$LEX" >&6
4135 else
4136 echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4140 test -n "$LEX" && break
4141 done
4142 test -n "$LEX" || LEX=":"
4144 if test -z "$LEXLIB"
4145 then
4146 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4147 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4148 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 ac_check_lib_save_LIBS=$LIBS
4152 LIBS="-lfl $LIBS"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 #ifdef __cplusplus
4162 extern "C"
4163 #endif
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4166 char yywrap ();
4168 main ()
4170 yywrap ();
4172 return 0;
4174 _ACEOF
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_lib_fl_yywrap=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_lib_fl_yywrap=no
4203 rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205 LIBS=$ac_check_lib_save_LIBS
4207 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4208 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4209 if test $ac_cv_lib_fl_yywrap = yes; then
4210 LEXLIB="-lfl"
4211 else
4212 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4213 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4214 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 ac_check_lib_save_LIBS=$LIBS
4218 LIBS="-ll $LIBS"
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 #ifdef __cplusplus
4228 extern "C"
4229 #endif
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4232 char yywrap ();
4234 main ()
4236 yywrap ();
4238 return 0;
4240 _ACEOF
4241 rm -f conftest.$ac_objext conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_lib_l_yywrap=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 ac_cv_lib_l_yywrap=no
4269 rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271 LIBS=$ac_check_lib_save_LIBS
4273 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4274 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4275 if test $ac_cv_lib_l_yywrap = yes; then
4276 LEXLIB="-ll"
4283 if test "x$LEX" != "x:"; then
4284 echo "$as_me:$LINENO: checking lex output file root" >&5
4285 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4286 if test "${ac_cv_prog_lex_root+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 # The minimal lex program is just a single line: %%. But some broken lexes
4290 # (Solaris, I think it was) want two %% lines, so accommodate them.
4291 cat >conftest.l <<_ACEOF
4294 _ACEOF
4295 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4296 (eval $LEX conftest.l) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }
4300 if test -f lex.yy.c; then
4301 ac_cv_prog_lex_root=lex.yy
4302 elif test -f lexyy.c; then
4303 ac_cv_prog_lex_root=lexyy
4304 else
4305 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4306 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4307 { (exit 1); exit 1; }; }
4310 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4311 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4312 rm -f conftest.l
4313 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4315 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4316 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4317 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 # POSIX says lex can declare yytext either as a pointer or an array; the
4321 # default is implementation-dependent. Figure out which it is, since
4322 # not all implementations provide the %pointer and %array declarations.
4323 ac_cv_prog_lex_yytext_pointer=no
4324 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4325 ac_save_LIBS=$LIBS
4326 LIBS="$LIBS $LEXLIB"
4327 cat >conftest.$ac_ext <<_ACEOF
4328 `cat $LEX_OUTPUT_ROOT.c`
4329 _ACEOF
4330 rm -f conftest.$ac_objext conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_cv_prog_lex_yytext_pointer=yes
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4357 rm -f conftest.err conftest.$ac_objext \
4358 conftest$ac_exeext conftest.$ac_ext
4359 LIBS=$ac_save_LIBS
4360 rm -f "${LEX_OUTPUT_ROOT}.c"
4363 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4364 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4365 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4367 cat >>confdefs.h <<\_ACEOF
4368 #define YYTEXT_POINTER 1
4369 _ACEOF
4375 for ac_prog in $YACC bison yacc
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4381 if test "${ac_cv_prog_XYACC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test -n "$XYACC"; then
4385 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_XYACC="$ac_prog"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4403 XYACC=$ac_cv_prog_XYACC
4404 if test -n "$XYACC"; then
4405 echo "$as_me:$LINENO: result: $XYACC" >&5
4406 echo "${ECHO_T}$XYACC" >&6
4407 else
4408 echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6
4412 test -n "$XYACC" && break
4413 done
4414 test -n "$XYACC" || XYACC="none"
4416 if test "$XYACC" = "none"
4417 then
4418 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4419 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4420 { (exit 1); exit 1; }; }
4422 for ac_prog in $LEX flex lex
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428 if test "${ac_cv_prog_XLEX+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 if test -n "$XLEX"; then
4432 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_XLEX="$ac_prog"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4445 done
4446 done
4450 XLEX=$ac_cv_prog_XLEX
4451 if test -n "$XLEX"; then
4452 echo "$as_me:$LINENO: result: $XLEX" >&5
4453 echo "${ECHO_T}$XLEX" >&6
4454 else
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 test -n "$XLEX" && break
4460 done
4461 test -n "$XLEX" || XLEX="none"
4463 if test "$XLEX" = "none"
4464 then
4465 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4466 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4467 { (exit 1); exit 1; }; }
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in gas as
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477 if test "${ac_cv_prog_AS+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 if test -n "$AS"; then
4481 ac_cv_prog_AS="$AS" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4494 done
4495 done
4499 AS=$ac_cv_prog_AS
4500 if test -n "$AS"; then
4501 echo "$as_me:$LINENO: result: $AS" >&5
4502 echo "${ECHO_T}$AS" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4508 test -n "$AS" && break
4509 done
4511 if test -z "$AS"; then
4512 ac_ct_AS=$AS
4513 for ac_prog in gas as
4515 # Extract the first word of "$ac_prog", so it can be a program name with args.
4516 set dummy $ac_prog; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 if test -n "$ac_ct_AS"; then
4523 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_ac_ct_AS="$ac_prog"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4541 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4542 if test -n "$ac_ct_AS"; then
4543 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4544 echo "${ECHO_T}$ac_ct_AS" >&6
4545 else
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4550 test -n "$ac_ct_AS" && break
4551 done
4552 test -n "$ac_ct_AS" || ac_ct_AS="as"
4554 AS=$ac_ct_AS
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4559 set dummy ${ac_tool_prefix}ld; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_LD+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$LD"; then
4566 ac_cv_prog_LD="$LD" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_LD="${ac_tool_prefix}ld"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4584 LD=$ac_cv_prog_LD
4585 if test -n "$LD"; then
4586 echo "$as_me:$LINENO: result: $LD" >&5
4587 echo "${ECHO_T}$LD" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4594 if test -z "$ac_cv_prog_LD"; then
4595 ac_ct_LD=$LD
4596 # Extract the first word of "ld", so it can be a program name with args.
4597 set dummy ld; ac_word=$2
4598 echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 if test -n "$ac_ct_LD"; then
4604 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_LD="ld"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4620 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4623 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4624 if test -n "$ac_ct_LD"; then
4625 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4626 echo "${ECHO_T}$ac_ct_LD" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 LD=$ac_ct_LD
4633 else
4634 LD="$ac_cv_prog_LD"
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}ar; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_AR+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 if test -n "$AR"; then
4646 ac_cv_prog_AR="$AR" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_AR="${ac_tool_prefix}ar"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4664 AR=$ac_cv_prog_AR
4665 if test -n "$AR"; then
4666 echo "$as_me:$LINENO: result: $AR" >&5
4667 echo "${ECHO_T}$AR" >&6
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4674 if test -z "$ac_cv_prog_AR"; then
4675 ac_ct_AR=$AR
4676 # Extract the first word of "ar", so it can be a program name with args.
4677 set dummy ar; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 if test -n "$ac_ct_AR"; then
4684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_AR="ar"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4700 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4704 if test -n "$ac_ct_AR"; then
4705 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4706 echo "${ECHO_T}$ac_ct_AR" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4712 AR=$ac_ct_AR
4713 else
4714 AR="$ac_cv_prog_AR"
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4720 echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4722 if test "${ac_cv_prog_RANLIB+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 if test -n "$RANLIB"; then
4726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4744 RANLIB=$ac_cv_prog_RANLIB
4745 if test -n "$RANLIB"; then
4746 echo "$as_me:$LINENO: result: $RANLIB" >&5
4747 echo "${ECHO_T}$RANLIB" >&6
4748 else
4749 echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6
4754 if test -z "$ac_cv_prog_RANLIB"; then
4755 ac_ct_RANLIB=$RANLIB
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib; ac_word=$2
4758 echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4760 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 if test -n "$ac_ct_RANLIB"; then
4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4780 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4784 if test -n "$ac_ct_RANLIB"; then
4785 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4786 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4787 else
4788 echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4792 RANLIB=$ac_ct_RANLIB
4793 else
4794 RANLIB="$ac_cv_prog_RANLIB"
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}strip; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_STRIP+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$STRIP"; then
4806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4824 STRIP=$ac_cv_prog_STRIP
4825 if test -n "$STRIP"; then
4826 echo "$as_me:$LINENO: result: $STRIP" >&5
4827 echo "${ECHO_T}$STRIP" >&6
4828 else
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4834 if test -z "$ac_cv_prog_STRIP"; then
4835 ac_ct_STRIP=$STRIP
4836 # Extract the first word of "strip", so it can be a program name with args.
4837 set dummy strip; ac_word=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 if test -n "$ac_ct_STRIP"; then
4844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_STRIP="strip"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4860 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4864 if test -n "$ac_ct_STRIP"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4866 echo "${ECHO_T}$ac_ct_STRIP" >&6
4867 else
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 STRIP=$ac_ct_STRIP
4873 else
4874 STRIP="$ac_cv_prog_STRIP"
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}windres; ac_word=$2
4880 echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_WINDRES+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 if test -n "$WINDRES"; then
4886 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4904 WINDRES=$ac_cv_prog_WINDRES
4905 if test -n "$WINDRES"; then
4906 echo "$as_me:$LINENO: result: $WINDRES" >&5
4907 echo "${ECHO_T}$WINDRES" >&6
4908 else
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4914 if test -z "$ac_cv_prog_WINDRES"; then
4915 ac_ct_WINDRES=$WINDRES
4916 # Extract the first word of "windres", so it can be a program name with args.
4917 set dummy windres; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$ac_ct_WINDRES"; then
4924 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_ac_ct_WINDRES="windres"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4940 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4943 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4944 if test -n "$ac_ct_WINDRES"; then
4945 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4946 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4952 WINDRES=$ac_ct_WINDRES
4953 else
4954 WINDRES="$ac_cv_prog_WINDRES"
4957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4959 LN_S=$as_ln_s
4960 if test "$LN_S" = "ln -s"; then
4961 echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6
4963 else
4964 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4965 echo "${ECHO_T}no, using $LN_S" >&6
4968 echo "$as_me:$LINENO: checking whether ln works" >&5
4969 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4970 rm -f conf$$ conf$$.file
4971 echo >conf$$.file
4972 if ln conf$$.file conf$$ 2>/dev/null; then
4973 LN=ln
4975 echo "$as_me:$LINENO: result: yes" >&5
4976 echo "${ECHO_T}yes" >&6
4977 else
4978 LN="cp -p"
4980 echo "$as_me:$LINENO: result: no, using $LN" >&5
4981 echo "${ECHO_T}no, using $LN" >&6
4983 rm -f conf$$ conf$$.file
4984 # Extract the first word of "ldconfig", so it can be a program name with args.
4985 set dummy ldconfig; ac_word=$2
4986 echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 case $LDCONFIG in
4992 [\\/]* | ?:[\\/]*)
4993 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in /sbin /usr/sbin $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5010 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5012 esac
5014 LDCONFIG=$ac_cv_path_LDCONFIG
5016 if test -n "$LDCONFIG"; then
5017 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5018 echo "${ECHO_T}$LDCONFIG" >&6
5019 else
5020 echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5024 # Find a good install program. We prefer a C program (faster),
5025 # so one script is as good as another. But avoid the broken or
5026 # incompatible versions:
5027 # SysV /etc/install, /usr/sbin/install
5028 # SunOS /usr/etc/install
5029 # IRIX /sbin/install
5030 # AIX /bin/install
5031 # AmigaOS /C/install, which installs bootblocks on floppy discs
5032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5035 # OS/2's system install, which has a completely different semantic
5036 # ./install, which can be erroneously created by make from ./install.sh.
5037 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5038 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5039 if test -z "$INSTALL"; then
5040 if test "${ac_cv_path_install+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 # Account for people who put trailing slashes in PATH elements.
5049 case $as_dir/ in
5050 ./ | .// | /cC/* | \
5051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5053 /usr/ucb/* ) ;;
5055 # OSF1 and SCO ODT 3.0 have their own names for install.
5056 # Don't use installbsd from OSF since it installs stuff as root
5057 # by default.
5058 for ac_prog in ginstall scoinst install; do
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5061 if test $ac_prog = install &&
5062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5063 # AIX install. It has an incompatible calling convention.
5065 elif test $ac_prog = install &&
5066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5067 # program-specific install script used by HP pwplus--don't use.
5069 else
5070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5071 break 3
5074 done
5075 done
5077 esac
5078 done
5082 if test "${ac_cv_path_install+set}" = set; then
5083 INSTALL=$ac_cv_path_install
5084 else
5085 # As a last resort, use the slow shell script. We don't cache a
5086 # path for INSTALL within a source directory, because that will
5087 # break other packages using the cache if that directory is
5088 # removed, or if the path is relative.
5089 INSTALL=$ac_install_sh
5092 echo "$as_me:$LINENO: result: $INSTALL" >&5
5093 echo "${ECHO_T}$INSTALL" >&6
5095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5096 # It thinks the first close brace ends the variable substitution.
5097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5103 case "$INSTALL" in
5104 [\\/$]* | ?:[\\/]* ) ;;
5105 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5106 esac
5108 for ac_prog in lclint lint
5110 # Extract the first word of "$ac_prog", so it can be a program name with args.
5111 set dummy $ac_prog; ac_word=$2
5112 echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114 if test "${ac_cv_prog_LINT+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117 if test -n "$LINT"; then
5118 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_LINT="$ac_prog"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5136 LINT=$ac_cv_prog_LINT
5137 if test -n "$LINT"; then
5138 echo "$as_me:$LINENO: result: $LINT" >&5
5139 echo "${ECHO_T}$LINT" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6
5145 test -n "$LINT" && break
5146 done
5148 if test "$LINT" = "lint"
5149 then
5150 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5155 for ac_prog in docbook2html db2html
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$DB2HTML"; then
5165 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_DB2HTML="$ac_prog"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5183 DB2HTML=$ac_cv_prog_DB2HTML
5184 if test -n "$DB2HTML"; then
5185 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5186 echo "${ECHO_T}$DB2HTML" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5192 test -n "$DB2HTML" && break
5193 done
5194 test -n "$DB2HTML" || DB2HTML="false"
5198 for ac_prog in docbook2pdf db2pdf
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 if test -n "$DB2PDF"; then
5208 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_DB2PDF="$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5226 DB2PDF=$ac_cv_prog_DB2PDF
5227 if test -n "$DB2PDF"; then
5228 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5229 echo "${ECHO_T}$DB2PDF" >&6
5230 else
5231 echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5235 test -n "$DB2PDF" && break
5236 done
5237 test -n "$DB2PDF" || DB2PDF="false"
5241 for ac_prog in docbook2ps db2ps
5243 # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247 if test "${ac_cv_prog_DB2PS+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 if test -n "$DB2PS"; then
5251 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_DB2PS="$ac_prog"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5269 DB2PS=$ac_cv_prog_DB2PS
5270 if test -n "$DB2PS"; then
5271 echo "$as_me:$LINENO: result: $DB2PS" >&5
5272 echo "${ECHO_T}$DB2PS" >&6
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5278 test -n "$DB2PS" && break
5279 done
5280 test -n "$DB2PS" || DB2PS="false"
5284 for ac_prog in docbook2txt db2txt
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test -n "$DB2TXT"; then
5294 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_DB2TXT="$ac_prog"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5312 DB2TXT=$ac_cv_prog_DB2TXT
5313 if test -n "$DB2TXT"; then
5314 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5315 echo "${ECHO_T}$DB2TXT" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5321 test -n "$DB2TXT" && break
5322 done
5323 test -n "$DB2TXT" || DB2TXT="false"
5329 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5330 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5331 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 ac_check_lib_save_LIBS=$LIBS
5335 LIBS="-lm $LIBS"
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 #ifdef __cplusplus
5345 extern "C"
5346 #endif
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char sqrt ();
5351 main ()
5353 sqrt ();
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_lib_m_sqrt=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_cv_lib_m_sqrt=no
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5391 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5392 if test $ac_cv_lib_m_sqrt = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBM 1
5395 _ACEOF
5397 LIBS="-lm $LIBS"
5402 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5403 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5404 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-li386 $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 #ifdef __cplusplus
5418 extern "C"
5419 #endif
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5422 char i386_set_ldt ();
5424 main ()
5426 i386_set_ldt ();
5428 return 0;
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest$ac_exeext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_cv_lib_i386_i386_set_ldt=yes
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_cv_lib_i386_i386_set_ldt=no
5459 rm -f conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5461 LIBS=$ac_check_lib_save_LIBS
5463 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5464 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5465 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5466 cat >>confdefs.h <<_ACEOF
5467 #define HAVE_LIBI386 1
5468 _ACEOF
5470 LIBS="-li386 $LIBS"
5475 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5476 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5477 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 ac_check_lib_save_LIBS=$LIBS
5481 LIBS="-lossaudio $LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495 char _oss_ioctl ();
5497 main ()
5499 _oss_ioctl ();
5501 return 0;
5503 _ACEOF
5504 rm -f conftest.$ac_objext conftest$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_lib_ossaudio__oss_ioctl=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_cv_lib_ossaudio__oss_ioctl=no
5532 rm -f conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5536 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5537 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5538 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5539 cat >>confdefs.h <<_ACEOF
5540 #define HAVE_LIBOSSAUDIO 1
5541 _ACEOF
5543 LIBS="-lossaudio $LIBS"
5548 for ac_func in iswalnum
5550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5551 echo "$as_me:$LINENO: checking for $ac_func" >&5
5552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_var+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5564 #define $ac_func innocuous_$ac_func
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func (); below.
5568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 <limits.h> exists even on freestanding compilers. */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5577 #undef $ac_func
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 #ifdef __cplusplus
5581 extern "C"
5583 #endif
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5586 char $ac_func ();
5587 /* The GNU C library defines this for functions which it implements
5588 to always fail with ENOSYS. Some functions are actually named
5589 something starting with __ and the normal name is an alias. */
5590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5591 choke me
5592 #else
5593 char (*f) () = $ac_func;
5594 #endif
5595 #ifdef __cplusplus
5597 #endif
5600 main ()
5602 return f != $ac_func;
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609 (eval $ac_link) 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest$ac_exeext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 eval "$as_ac_var=yes"
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 eval "$as_ac_var=no"
5635 rm -f conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5640 if test `eval echo '${'$as_ac_var'}'` = yes; then
5641 cat >>confdefs.h <<_ACEOF
5642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5643 _ACEOF
5645 else
5647 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5648 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5649 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 ac_check_lib_save_LIBS=$LIBS
5653 LIBS="-lw $LIBS"
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char iswalnum ();
5669 main ()
5671 iswalnum ();
5673 return 0;
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_lib_w_iswalnum=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 ac_cv_lib_w_iswalnum=no
5704 rm -f conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 LIBS=$ac_check_lib_save_LIBS
5708 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5709 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5710 if test $ac_cv_lib_w_iswalnum = yes; then
5711 cat >>confdefs.h <<_ACEOF
5712 #define HAVE_LIBW 1
5713 _ACEOF
5715 LIBS="-lw $LIBS"
5720 done
5723 for ac_func in gethostbyname
5725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5726 echo "$as_me:$LINENO: checking for $ac_func" >&5
5727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5728 if eval "test \"\${$as_ac_var+set}\" = set"; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5739 #define $ac_func innocuous_$ac_func
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func (); below.
5743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 <limits.h> exists even on freestanding compilers. */
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5752 #undef $ac_func
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5758 #endif
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5761 char $ac_func ();
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5766 choke me
5767 #else
5768 char (*f) () = $ac_func;
5769 #endif
5770 #ifdef __cplusplus
5772 #endif
5775 main ()
5777 return f != $ac_func;
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 eval "$as_ac_var=yes"
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 eval "$as_ac_var=no"
5810 rm -f conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5815 if test `eval echo '${'$as_ac_var'}'` = yes; then
5816 cat >>confdefs.h <<_ACEOF
5817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5818 _ACEOF
5820 else
5822 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5823 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5824 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 ac_check_lib_save_LIBS=$LIBS
5828 LIBS="-lnsl $LIBS"
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5836 /* Override any gcc2 internal prototype to avoid an error. */
5837 #ifdef __cplusplus
5838 extern "C"
5839 #endif
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842 char gethostbyname ();
5844 main ()
5846 gethostbyname ();
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_lib_nsl_gethostbyname=yes
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5877 ac_cv_lib_nsl_gethostbyname=no
5879 rm -f conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_check_lib_save_LIBS
5883 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5884 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5885 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5886 cat >>confdefs.h <<_ACEOF
5887 #define HAVE_LIBNSL 1
5888 _ACEOF
5890 LIBS="-lnsl $LIBS"
5895 done
5898 for ac_func in connect
5900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5901 echo "$as_me:$LINENO: checking for $ac_func" >&5
5902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5903 if eval "test \"\${$as_ac_var+set}\" = set"; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5914 #define $ac_func innocuous_$ac_func
5916 /* System header to define __stub macros and hopefully few prototypes,
5917 which can conflict with char $ac_func (); below.
5918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919 <limits.h> exists even on freestanding compilers. */
5921 #ifdef __STDC__
5922 # include <limits.h>
5923 #else
5924 # include <assert.h>
5925 #endif
5927 #undef $ac_func
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 #ifdef __cplusplus
5931 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 $ac_func ();
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5941 choke me
5942 #else
5943 char (*f) () = $ac_func;
5944 #endif
5945 #ifdef __cplusplus
5947 #endif
5950 main ()
5952 return f != $ac_func;
5954 return 0;
5956 _ACEOF
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 eval "$as_ac_var=yes"
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 eval "$as_ac_var=no"
5985 rm -f conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5990 if test `eval echo '${'$as_ac_var'}'` = yes; then
5991 cat >>confdefs.h <<_ACEOF
5992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5993 _ACEOF
5995 else
5997 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5998 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5999 if test "${ac_cv_lib_socket_connect+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 ac_check_lib_save_LIBS=$LIBS
6003 LIBS="-lsocket $LIBS"
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6011 /* Override any gcc2 internal prototype to avoid an error. */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6017 char connect ();
6019 main ()
6021 connect ();
6023 return 0;
6025 _ACEOF
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028 (eval $ac_link) 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest$ac_exeext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_cv_lib_socket_connect=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_cv_lib_socket_connect=no
6054 rm -f conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6059 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6060 if test $ac_cv_lib_socket_connect = yes; then
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_LIBSOCKET 1
6063 _ACEOF
6065 LIBS="-lsocket $LIBS"
6070 done
6073 for ac_func in inet_aton
6075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6076 echo "$as_me:$LINENO: checking for $ac_func" >&5
6077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_var+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6089 #define $ac_func innocuous_$ac_func
6091 /* System header to define __stub macros and hopefully few prototypes,
6092 which can conflict with char $ac_func (); below.
6093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094 <limits.h> exists even on freestanding compilers. */
6096 #ifdef __STDC__
6097 # include <limits.h>
6098 #else
6099 # include <assert.h>
6100 #endif
6102 #undef $ac_func
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 #ifdef __cplusplus
6106 extern "C"
6108 #endif
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6111 char $ac_func ();
6112 /* The GNU C library defines this for functions which it implements
6113 to always fail with ENOSYS. Some functions are actually named
6114 something starting with __ and the normal name is an alias. */
6115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6116 choke me
6117 #else
6118 char (*f) () = $ac_func;
6119 #endif
6120 #ifdef __cplusplus
6122 #endif
6125 main ()
6127 return f != $ac_func;
6129 return 0;
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest$ac_exeext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 eval "$as_ac_var=yes"
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 eval "$as_ac_var=no"
6160 rm -f conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6165 if test `eval echo '${'$as_ac_var'}'` = yes; then
6166 cat >>confdefs.h <<_ACEOF
6167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6168 _ACEOF
6170 else
6172 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6173 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6174 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 ac_check_lib_save_LIBS=$LIBS
6178 LIBS="-lresolv $LIBS"
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 /* Override any gcc2 internal prototype to avoid an error. */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6192 char inet_aton ();
6194 main ()
6196 inet_aton ();
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203 (eval $ac_link) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest$ac_exeext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_lib_resolv_inet_aton=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_lib_resolv_inet_aton=no
6229 rm -f conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6233 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6234 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6235 if test $ac_cv_lib_resolv_inet_aton = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_LIBRESOLV 1
6238 _ACEOF
6240 LIBS="-lresolv $LIBS"
6245 done
6248 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6249 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6250 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lxpg4 $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 #ifdef __cplusplus
6264 extern "C"
6265 #endif
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6268 char _xpg4_setrunelocale ();
6270 main ()
6272 _xpg4_setrunelocale ();
6274 return 0;
6276 _ACEOF
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6305 rm -f conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6309 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6310 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6311 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_LIBXPG4 1
6314 _ACEOF
6316 LIBS="-lxpg4 $LIBS"
6321 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6322 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6323 if test "${ac_cv_lib_poll_poll+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lpoll $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6335 /* Override any gcc2 internal prototype to avoid an error. */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char poll ();
6343 main ()
6345 poll ();
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352 (eval $ac_link) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_lib_poll_poll=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_lib_poll_poll=no
6378 rm -f conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6382 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6383 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6384 if test $ac_cv_lib_poll_poll = yes; then
6385 cat >>confdefs.h <<_ACEOF
6386 #define HAVE_LIBPOLL 1
6387 _ACEOF
6389 LIBS="-lpoll $LIBS"
6393 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6394 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6395 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 ac_check_lib_save_LIBS=$LIBS
6399 LIBS="-lpthread $LIBS"
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char pthread_create ();
6415 main ()
6417 pthread_create ();
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_lib_pthread_pthread_create=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_cv_lib_pthread_pthread_create=no
6450 rm -f conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6452 LIBS=$ac_check_lib_save_LIBS
6454 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6455 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6456 if test $ac_cv_lib_pthread_pthread_create = yes; then
6457 LIBPTHREAD="-lpthread"
6462 JPEGLIB=""
6464 echo "$as_me:$LINENO: checking for egrep" >&5
6465 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6466 if test "${ac_cv_prog_egrep+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6470 then ac_cv_prog_egrep='grep -E'
6471 else ac_cv_prog_egrep='egrep'
6474 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6475 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6476 EGREP=$ac_cv_prog_egrep
6479 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6480 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6481 if test "${ac_cv_header_stdc+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <stdlib.h>
6491 #include <stdarg.h>
6492 #include <string.h>
6493 #include <float.h>
6496 main ()
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_header_stdc=yes
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_cv_header_stdc=no
6531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 if test $ac_cv_header_stdc = yes; then
6534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 #include <string.h>
6543 _ACEOF
6544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6545 $EGREP "memchr" >/dev/null 2>&1; then
6547 else
6548 ac_cv_header_stdc=no
6550 rm -f conftest*
6554 if test $ac_cv_header_stdc = yes; then
6555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #include <stdlib.h>
6564 _ACEOF
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "free" >/dev/null 2>&1; then
6568 else
6569 ac_cv_header_stdc=no
6571 rm -f conftest*
6575 if test $ac_cv_header_stdc = yes; then
6576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6577 if test "$cross_compiling" = yes; then
6579 else
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <ctype.h>
6587 #if ((' ' & 0x0FF) == 0x020)
6588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6590 #else
6591 # define ISLOWER(c) \
6592 (('a' <= (c) && (c) <= 'i') \
6593 || ('j' <= (c) && (c) <= 'r') \
6594 || ('s' <= (c) && (c) <= 'z'))
6595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6596 #endif
6598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6600 main ()
6602 int i;
6603 for (i = 0; i < 256; i++)
6604 if (XOR (islower (i), ISLOWER (i))
6605 || toupper (i) != TOUPPER (i))
6606 exit(2);
6607 exit (0);
6609 _ACEOF
6610 rm -f conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6622 else
6623 echo "$as_me: program exited with status $ac_status" >&5
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ( exit $ac_status )
6628 ac_cv_header_stdc=no
6630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6636 if test $ac_cv_header_stdc = yes; then
6638 cat >>confdefs.h <<\_ACEOF
6639 #define STDC_HEADERS 1
6640 _ACEOF
6644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6655 inttypes.h stdint.h unistd.h
6657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6658 echo "$as_me:$LINENO: checking for $ac_header" >&5
6659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 $ac_includes_default
6671 #include <$ac_header>
6672 _ACEOF
6673 rm -f conftest.$ac_objext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675 (eval $ac_compile) 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 eval "$as_ac_Header=yes"
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 eval "$as_ac_Header=no"
6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6706 cat >>confdefs.h <<_ACEOF
6707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6708 _ACEOF
6712 done
6716 for ac_header in jpeglib.h
6718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720 echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6727 else
6728 # Is the header compilable?
6729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6738 #include <$ac_header>
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest.$ac_objext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 ac_header_compiler=yes
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_header_compiler=no
6768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6770 echo "${ECHO_T}$ac_header_compiler" >&6
6772 # Is the header present?
6773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <$ac_header>
6782 _ACEOF
6783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } >/dev/null; then
6791 if test -s conftest.err; then
6792 ac_cpp_err=$ac_c_preproc_warn_flag
6793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6794 else
6795 ac_cpp_err=
6797 else
6798 ac_cpp_err=yes
6800 if test -z "$ac_cpp_err"; then
6801 ac_header_preproc=yes
6802 else
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_header_preproc=no
6808 rm -f conftest.err conftest.$ac_ext
6809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6810 echo "${ECHO_T}$ac_header_preproc" >&6
6812 # So? What about this header?
6813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6814 yes:no: )
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6819 ac_header_preproc=yes
6821 no:yes:* )
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6835 cat <<\_ASBOX
6836 ## ------------------------------------ ##
6837 ## Report this to wine-devel@winehq.org ##
6838 ## ------------------------------------ ##
6839 _ASBOX
6841 sed "s/^/$as_me: WARNING: /" >&2
6843 esac
6844 echo "$as_me:$LINENO: checking for $ac_header" >&5
6845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 eval "$as_ac_Header=\$ac_header_preproc"
6851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858 _ACEOF
6859 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6860 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6861 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 ac_check_lib_save_LIBS=$LIBS
6865 LIBS="-ljpeg $LIBS"
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char jpeg_start_decompress ();
6881 main ()
6883 jpeg_start_decompress ();
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_cv_lib_jpeg_jpeg_start_decompress=no
6916 rm -f conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 LIBS=$ac_check_lib_save_LIBS
6920 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6921 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6922 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_LIBJPEG 1
6926 _ACEOF
6928 JPEGLIB="-ljpeg"
6935 done
6938 GIFLIB=""
6941 for ac_header in gif_lib.h
6943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6945 echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6952 else
6953 # Is the header compilable?
6954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 #include <$ac_header>
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_header_compiler=yes
6987 else
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_header_compiler=no
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6995 echo "${ECHO_T}$ac_header_compiler" >&6
6997 # Is the header present?
6998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <$ac_header>
7007 _ACEOF
7008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } >/dev/null; then
7016 if test -s conftest.err; then
7017 ac_cpp_err=$ac_c_preproc_warn_flag
7018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7019 else
7020 ac_cpp_err=
7022 else
7023 ac_cpp_err=yes
7025 if test -z "$ac_cpp_err"; then
7026 ac_header_preproc=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_header_preproc=no
7033 rm -f conftest.err conftest.$ac_ext
7034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7035 echo "${ECHO_T}$ac_header_preproc" >&6
7037 # So? What about this header?
7038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7039 yes:no: )
7040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7044 ac_header_preproc=yes
7046 no:yes:* )
7047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7060 cat <<\_ASBOX
7061 ## ------------------------------------ ##
7062 ## Report this to wine-devel@winehq.org ##
7063 ## ------------------------------------ ##
7064 _ASBOX
7066 sed "s/^/$as_me: WARNING: /" >&2
7068 esac
7069 echo "$as_me:$LINENO: checking for $ac_header" >&5
7070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 eval "$as_ac_Header=\$ac_header_preproc"
7076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7081 cat >>confdefs.h <<_ACEOF
7082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7083 _ACEOF
7084 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7085 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7086 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 ac_check_lib_save_LIBS=$LIBS
7090 LIBS="-lungif $LIBS"
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 /* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7104 char DGifOpen ();
7106 main ()
7108 DGifOpen ();
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try='test -s conftest$ac_exeext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_lib_ungif_DGifOpen=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_cv_lib_ungif_DGifOpen=no
7141 rm -f conftest.err conftest.$ac_objext \
7142 conftest$ac_exeext conftest.$ac_ext
7143 LIBS=$ac_check_lib_save_LIBS
7145 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7146 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7147 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7149 cat >>confdefs.h <<\_ACEOF
7150 #define HAVE_LIBGIF 1
7151 _ACEOF
7153 GIFLIB="-lungif"
7154 else
7155 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7156 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7157 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lgif $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7175 char DGifOpen ();
7177 main ()
7179 DGifOpen ();
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_lib_gif_DGifOpen=yes
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_lib_gif_DGifOpen=no
7212 rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7214 LIBS=$ac_check_lib_save_LIBS
7216 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7217 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7218 if test $ac_cv_lib_gif_DGifOpen = yes; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_LIBGIF 1
7221 _ACEOF
7223 GIFLIB="-lgif"
7230 done
7235 XFILES=""
7237 OPENGLFILES=""
7239 GLU32FILES=""
7241 OPENGL_LIBS=""
7242 if test "$have_x" = "yes"
7243 then
7244 XLIB="-lXext -lX11"
7245 ac_save_CPPFLAGS="$CPPFLAGS"
7246 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7249 for ac_header in X11/Xlib.h
7251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260 else
7261 # Is the header compilable?
7262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7271 #include <$ac_header>
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_header_compiler=yes
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_header_compiler=no
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7303 echo "${ECHO_T}$ac_header_compiler" >&6
7305 # Is the header present?
7306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <$ac_header>
7315 _ACEOF
7316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } >/dev/null; then
7324 if test -s conftest.err; then
7325 ac_cpp_err=$ac_c_preproc_warn_flag
7326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7327 else
7328 ac_cpp_err=
7330 else
7331 ac_cpp_err=yes
7333 if test -z "$ac_cpp_err"; then
7334 ac_header_preproc=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 ac_header_preproc=no
7341 rm -f conftest.err conftest.$ac_ext
7342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7343 echo "${ECHO_T}$ac_header_preproc" >&6
7345 # So? What about this header?
7346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7347 yes:no: )
7348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7352 ac_header_preproc=yes
7354 no:yes:* )
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368 cat <<\_ASBOX
7369 ## ------------------------------------ ##
7370 ## Report this to wine-devel@winehq.org ##
7371 ## ------------------------------------ ##
7372 _ASBOX
7374 sed "s/^/$as_me: WARNING: /" >&2
7376 esac
7377 echo "$as_me:$LINENO: checking for $ac_header" >&5
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 eval "$as_ac_Header=\$ac_header_preproc"
7384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7389 cat >>confdefs.h <<_ACEOF
7390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7403 for ac_header in X11/XKBlib.h \
7404 X11/Xutil.h \
7405 X11/extensions/shape.h \
7406 X11/extensions/XInput.h \
7407 X11/extensions/XShm.h \
7408 X11/extensions/Xrandr.h \
7409 X11/extensions/Xrender.h \
7410 X11/extensions/Xvlib.h \
7411 X11/extensions/xf86dga.h \
7412 X11/extensions/xf86vmode.h
7414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7415 echo "$as_me:$LINENO: checking for $ac_header" >&5
7416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 #include <X11/Xlib.h>
7427 #ifdef HAVE_X11_XUTIL_H
7428 # include <X11/Xutil.h>
7429 #endif
7431 #include <$ac_header>
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 eval "$as_ac_Header=yes"
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 eval "$as_ac_Header=no"
7461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7472 done
7475 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7476 then
7477 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7478 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7479 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 ac_check_lib_save_LIBS=$LIBS
7483 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497 char XkbQueryExtension ();
7499 main ()
7501 XkbQueryExtension ();
7503 return 0;
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_cv_lib_X11_XkbQueryExtension=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_cv_lib_X11_XkbQueryExtension=no
7534 rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 LIBS=$ac_check_lib_save_LIBS
7538 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7539 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7540 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7542 cat >>confdefs.h <<\_ACEOF
7543 #define HAVE_XKB 1
7544 _ACEOF
7550 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7551 then
7552 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7553 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7554 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 ac_check_lib_save_LIBS=$LIBS
7558 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7566 /* Override any gcc2 internal prototype to avoid an error. */
7567 #ifdef __cplusplus
7568 extern "C"
7569 #endif
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7572 char XShmQueryExtension ();
7574 main ()
7576 XShmQueryExtension ();
7578 return 0;
7580 _ACEOF
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_lib_Xext_XShmQueryExtension=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 ac_cv_lib_Xext_XShmQueryExtension=no
7609 rm -f conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7614 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7615 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_LIBXXSHM 1
7619 _ACEOF
7625 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7626 then
7627 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7628 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7629 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7647 char XShapeQueryExtension ();
7649 main ()
7651 XShapeQueryExtension ();
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_lib_Xext_XShapeQueryExtension=yes
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_lib_Xext_XShapeQueryExtension=no
7684 rm -f conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7688 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7689 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7690 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7692 cat >>confdefs.h <<\_ACEOF
7693 #define HAVE_LIBXSHAPE 1
7694 _ACEOF
7700 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7701 then
7702 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7703 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7704 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char XDGAQueryExtension ();
7724 main ()
7726 XDGAQueryExtension ();
7728 return 0;
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7759 rm -f conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7764 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7765 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_LIBXXF86DGA2 1
7769 _ACEOF
7771 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7773 else
7774 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7775 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7776 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7781 $LIBS"
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 /* We use char because int might match the return type of a gcc2
7794 builtin and then its argument prototype would still apply. */
7795 char XF86DGAQueryExtension ();
7797 main ()
7799 XF86DGAQueryExtension ();
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7826 else
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7832 rm -f conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7837 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7838 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_LIBXXF86DGA 1
7842 _ACEOF
7844 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7853 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7854 then
7855 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7856 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7857 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 ac_check_lib_save_LIBS=$LIBS
7861 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7875 char XF86VidModeQueryExtension ();
7877 main ()
7879 XF86VidModeQueryExtension ();
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7912 rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7916 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7917 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7918 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LIBXXF86VM 1
7922 _ACEOF
7924 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7930 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7931 then
7932 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7933 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7934 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 ac_check_lib_save_LIBS=$LIBS
7938 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 #ifdef __cplusplus
7948 extern "C"
7949 #endif
7950 /* We use char because int might match the return type of a gcc2
7951 builtin and then its argument prototype would still apply. */
7952 char XRRSetScreenConfigAndRate ();
7954 main ()
7956 XRRSetScreenConfigAndRate ();
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7989 rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_check_lib_save_LIBS
7993 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7994 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7995 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_LIBXRANDR 1
7999 _ACEOF
8001 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8007 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8008 then
8009 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8010 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8011 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 /* Override any gcc2 internal prototype to avoid an error. */
8024 #ifdef __cplusplus
8025 extern "C"
8026 #endif
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8029 char XvShmCreateImage ();
8031 main ()
8033 XvShmCreateImage ();
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 ac_cv_lib_Xv_XvShmCreateImage=yes
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_lib_Xv_XvShmCreateImage=no
8066 rm -f conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LIBS=$ac_check_lib_save_LIBS
8070 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8071 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8072 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8074 cat >>confdefs.h <<\_ACEOF
8075 #define HAVE_XVIDEO 1
8076 _ACEOF
8078 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8087 done
8089 if test "x$with_opengl" != "xno"
8090 then
8091 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8092 then
8093 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8094 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8095 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8096 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8097 { (exit 1); exit 1; }; }
8102 for ac_header in GL/gl.h GL/glx.h
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8113 else
8114 # Is the header compilable?
8115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 #include <$ac_header>
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_header_compiler=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_header_compiler=no
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 #include <$ac_header>
8168 _ACEOF
8169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } >/dev/null; then
8177 if test -s conftest.err; then
8178 ac_cpp_err=$ac_c_preproc_warn_flag
8179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8180 else
8181 ac_cpp_err=
8183 else
8184 ac_cpp_err=yes
8186 if test -z "$ac_cpp_err"; then
8187 ac_header_preproc=yes
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_header_preproc=no
8194 rm -f conftest.err conftest.$ac_ext
8195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196 echo "${ECHO_T}$ac_header_preproc" >&6
8198 # So? What about this header?
8199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 yes:no: )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8205 ac_header_preproc=yes
8207 no:yes:* )
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221 cat <<\_ASBOX
8222 ## ------------------------------------ ##
8223 ## Report this to wine-devel@winehq.org ##
8224 ## ------------------------------------ ##
8225 _ASBOX
8227 sed "s/^/$as_me: WARNING: /" >&2
8229 esac
8230 echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 eval "$as_ac_Header=\$ac_header_preproc"
8237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8242 cat >>confdefs.h <<_ACEOF
8243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244 _ACEOF
8248 done
8250 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8251 then
8253 for ac_header in GL/glext.h
8255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8256 echo "$as_me:$LINENO: checking for $ac_header" >&5
8257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 #include <GL/glx.h>
8269 #include <$ac_header>
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 eval "$as_ac_Header=yes"
8293 else
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 eval "$as_ac_Header=no"
8299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8304 cat >>confdefs.h <<_ACEOF
8305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 _ACEOF
8310 done
8312 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8313 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8314 if test "${wine_cv_opengl_version_OK+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <GL/gl.h>
8325 main ()
8327 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8329 return 0;
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest.$ac_objext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 wine_cv_opengl_version_OK="yes"
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 wine_cv_opengl_version_OK="no"
8361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8364 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8365 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8367 if test "$wine_cv_opengl_version_OK" = "yes"
8368 then
8369 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8370 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8371 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389 char glXCreateContext ();
8391 main ()
8393 glXCreateContext ();
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_lib_GL_glXCreateContext=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_lib_GL_glXCreateContext=no
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 LIBS=$ac_check_lib_save_LIBS
8430 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8431 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8432 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8433 OPENGL_LIBS="-lGL"
8438 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8439 then
8440 OPENGLFILES='$(OPENGLFILES)'
8442 cat >>confdefs.h <<\_ACEOF
8443 #define HAVE_OPENGL 1
8444 _ACEOF
8447 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8448 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8449 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452 ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 /* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8467 char glXGetProcAddressARB ();
8469 main ()
8471 glXGetProcAddressARB ();
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_lib_GL_glXGetProcAddressARB=yes
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_cv_lib_GL_glXGetProcAddressARB=no
8504 rm -f conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 LIBS=$ac_check_lib_save_LIBS
8508 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8509 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8510 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_GLX_GETPROCADDRESS 1
8514 _ACEOF
8519 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8520 then
8521 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8522 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8523 if test "${wine_cv_extension_prototypes+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <GL/gl.h>
8533 #ifdef HAVE_GL_GLEXT_H
8534 # include <GL/glext.h>
8535 #endif
8538 main ()
8540 PFNGLCOLORTABLEEXTPROC test_proc;
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 wine_cv_extension_prototypes="yes"
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 wine_cv_extension_prototypes="no"
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8578 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8579 if test "$wine_cv_extension_prototypes" = "yes"
8580 then
8582 cat >>confdefs.h <<\_ACEOF
8583 #define HAVE_GLEXT_PROTOTYPES 1
8584 _ACEOF
8590 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8591 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8592 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8597 $LIBS"
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8605 /* Override any gcc2 internal prototype to avoid an error. */
8606 #ifdef __cplusplus
8607 extern "C"
8608 #endif
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611 char gluLookAt ();
8613 main ()
8615 gluLookAt ();
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext conftest$ac_exeext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622 (eval $ac_link) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_lib_GLU_gluLookAt=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_GLU_gluLookAt=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8653 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8654 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8655 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8656 GLU32FILES='$(GLU32FILES)'
8662 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8663 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8664 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667 ac_check_lib_save_LIBS=$LIBS
8668 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8676 /* Override any gcc2 internal prototype to avoid an error. */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8682 char glutMainLoop ();
8684 main ()
8686 glutMainLoop ();
8688 return 0;
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693 (eval $ac_link) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_lib_glut_glutMainLoop=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_lib_glut_glutMainLoop=no
8719 rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8723 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8724 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8725 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8726 GLUT_LIBS="-lglut -lXmu -lXi"
8728 GLUT32FILES='$(GLUT32FILES)'
8735 NASLIBS=""
8738 for ac_header in audio/audiolib.h
8740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749 else
8750 # Is the header compilable?
8751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #include <$ac_header>
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_header_compiler=yes
8784 else
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_header_compiler=no
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792 echo "${ECHO_T}$ac_header_compiler" >&6
8794 # Is the header present?
8795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 #include <$ac_header>
8804 _ACEOF
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev/null; then
8813 if test -s conftest.err; then
8814 ac_cpp_err=$ac_c_preproc_warn_flag
8815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816 else
8817 ac_cpp_err=
8819 else
8820 ac_cpp_err=yes
8822 if test -z "$ac_cpp_err"; then
8823 ac_header_preproc=yes
8824 else
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8828 ac_header_preproc=no
8830 rm -f conftest.err conftest.$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832 echo "${ECHO_T}$ac_header_preproc" >&6
8834 # So? What about this header?
8835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8836 yes:no: )
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841 ac_header_preproc=yes
8843 no:yes:* )
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857 cat <<\_ASBOX
8858 ## ------------------------------------ ##
8859 ## Report this to wine-devel@winehq.org ##
8860 ## ------------------------------------ ##
8861 _ASBOX
8863 sed "s/^/$as_me: WARNING: /" >&2
8865 esac
8866 echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871 eval "$as_ac_Header=\$ac_header_preproc"
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878 cat >>confdefs.h <<_ACEOF
8879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8880 _ACEOF
8882 for ac_header in audio/soundlib.h
8884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8885 echo "$as_me:$LINENO: checking for $ac_header" >&5
8886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 #include <audio/audiolib.h>
8898 #include <$ac_header>
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest.$ac_objext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 eval "$as_ac_Header=yes"
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 eval "$as_ac_Header=no"
8928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8933 cat >>confdefs.h <<_ACEOF
8934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935 _ACEOF
8939 done
8941 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8942 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8943 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 ac_check_lib_save_LIBS=$LIBS
8947 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 /* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8961 char AuCreateFlow ();
8963 main ()
8965 AuCreateFlow ();
8967 return 0;
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972 (eval $ac_link) 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_cv_lib_audio_AuCreateFlow=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_cv_lib_audio_AuCreateFlow=no
8998 rm -f conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 LIBS=$ac_check_lib_save_LIBS
9002 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9003 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9004 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_NAS 1
9008 _ACEOF
9010 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9015 done
9018 CPPFLAGS="$ac_save_CPPFLAGS"
9019 XFILES='$(XFILES)'
9020 else
9021 XLIB=""
9022 X_CFLAGS=""
9023 X_LIBS=""
9026 CURSESLIBS=""
9027 if test "x$with_curses" != "xno"
9028 then
9030 for ac_header in ncurses.h
9032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9034 echo "$as_me:$LINENO: checking for $ac_header" >&5
9035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9041 else
9042 # Is the header compilable?
9043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9052 #include <$ac_header>
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_header_compiler=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_header_compiler=no
9082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9084 echo "${ECHO_T}$ac_header_compiler" >&6
9086 # Is the header present?
9087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 #include <$ac_header>
9096 _ACEOF
9097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } >/dev/null; then
9105 if test -s conftest.err; then
9106 ac_cpp_err=$ac_c_preproc_warn_flag
9107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9108 else
9109 ac_cpp_err=
9111 else
9112 ac_cpp_err=yes
9114 if test -z "$ac_cpp_err"; then
9115 ac_header_preproc=yes
9116 else
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_header_preproc=no
9122 rm -f conftest.err conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9124 echo "${ECHO_T}$ac_header_preproc" >&6
9126 # So? What about this header?
9127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9128 yes:no: )
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9133 ac_header_preproc=yes
9135 no:yes:* )
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9149 cat <<\_ASBOX
9150 ## ------------------------------------ ##
9151 ## Report this to wine-devel@winehq.org ##
9152 ## ------------------------------------ ##
9153 _ASBOX
9155 sed "s/^/$as_me: WARNING: /" >&2
9157 esac
9158 echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 eval "$as_ac_Header=\$ac_header_preproc"
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 _ACEOF
9173 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9174 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9175 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lncurses $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9187 /* Override any gcc2 internal prototype to avoid an error. */
9188 #ifdef __cplusplus
9189 extern "C"
9190 #endif
9191 /* We use char because int might match the return type of a gcc2
9192 builtin and then its argument prototype would still apply. */
9193 char waddch ();
9195 main ()
9197 waddch ();
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest$ac_exeext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_cv_lib_ncurses_waddch=yes
9224 else
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_cv_lib_ncurses_waddch=no
9230 rm -f conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9234 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9235 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9236 if test $ac_cv_lib_ncurses_waddch = yes; then
9238 cat >>confdefs.h <<\_ACEOF
9239 #define HAVE_LIBNCURSES 1
9240 _ACEOF
9242 CURSESLIBS="-lncurses"
9243 else
9245 for ac_header in curses.h
9247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9249 echo "$as_me:$LINENO: checking for $ac_header" >&5
9250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 else
9257 # Is the header compilable?
9258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9267 #include <$ac_header>
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9271 (eval $ac_compile) 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_header_compiler=yes
9291 else
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <$ac_header>
9311 _ACEOF
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev/null; then
9320 if test -s conftest.err; then
9321 ac_cpp_err=$ac_c_preproc_warn_flag
9322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323 else
9324 ac_cpp_err=
9326 else
9327 ac_cpp_err=yes
9329 if test -z "$ac_cpp_err"; then
9330 ac_header_preproc=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9341 # So? What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9343 yes:no: )
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348 ac_header_preproc=yes
9350 no:yes:* )
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9364 cat <<\_ASBOX
9365 ## ------------------------------------ ##
9366 ## Report this to wine-devel@winehq.org ##
9367 ## ------------------------------------ ##
9368 _ASBOX
9370 sed "s/^/$as_me: WARNING: /" >&2
9372 esac
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 eval "$as_ac_Header=\$ac_header_preproc"
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9389 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9390 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lcurses $LIBS"
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9408 char waddch ();
9410 main ()
9412 waddch ();
9414 return 0;
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>conftest.er1
9420 ac_status=$?
9421 grep -v '^ *+' conftest.er1 >conftest.err
9422 rm -f conftest.er1
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } &&
9426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_lib_curses_waddch=yes
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_lib_curses_waddch=no
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9450 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9451 if test $ac_cv_lib_curses_waddch = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_LIBCURSES 1
9455 _ACEOF
9457 CURSESLIBS="-lcurses"
9462 done
9468 done
9470 saved_libs="$LIBS"
9471 LIBS="$CURSESLIBS $LIBS"
9474 for ac_func in getbkgd resizeterm
9476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9477 echo "$as_me:$LINENO: checking for $ac_func" >&5
9478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_var+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490 #define $ac_func innocuous_$ac_func
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char $ac_func (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9497 #ifdef __STDC__
9498 # include <limits.h>
9499 #else
9500 # include <assert.h>
9501 #endif
9503 #undef $ac_func
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char $ac_func ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9517 choke me
9518 #else
9519 char (*f) () = $ac_func;
9520 #endif
9521 #ifdef __cplusplus
9523 #endif
9526 main ()
9528 return f != $ac_func;
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 eval "$as_ac_var=yes"
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 eval "$as_ac_var=no"
9561 rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9566 if test `eval echo '${'$as_ac_var'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569 _ACEOF
9572 done
9574 LIBS="$saved_libs"
9578 # Extract the first word of "sane-config", so it can be a program name with args.
9579 set dummy sane-config; ac_word=$2
9580 echo "$as_me:$LINENO: checking for $ac_word" >&5
9581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9582 if test "${ac_cv_prog_sane_devel+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 if test -n "$sane_devel"; then
9586 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_sane_devel="sane-config"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9599 done
9600 done
9602 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9605 sane_devel=$ac_cv_prog_sane_devel
9606 if test -n "$sane_devel"; then
9607 echo "$as_me:$LINENO: result: $sane_devel" >&5
9608 echo "${ECHO_T}$sane_devel" >&6
9609 else
9610 echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6
9614 if test "$sane_devel" = "no"
9615 then
9616 SANELIBS=""
9617 SANEINCL=""
9618 else
9619 SANELIBS="`$sane_devel --libs`"
9620 SANEINCL="`$sane_devel --cflags`"
9621 ac_save_CPPFLAGS="$CPPFLAGS"
9622 ac_save_LIBS="$LIBS"
9623 CPPFLAGS="$CPPFLAGS $SANEINCL"
9624 LIBS="$LIBS $SANELIBS"
9625 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9626 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9627 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9628 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9632 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9633 else
9634 # Is the header compilable?
9635 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9636 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9644 #include <sane/sane.h>
9645 _ACEOF
9646 rm -f conftest.$ac_objext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9648 (eval $ac_compile) 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_header_compiler=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_header_compiler=no
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9676 echo "${ECHO_T}$ac_header_compiler" >&6
9678 # Is the header present?
9679 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9680 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <sane/sane.h>
9688 _ACEOF
9689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } >/dev/null; then
9697 if test -s conftest.err; then
9698 ac_cpp_err=$ac_c_preproc_warn_flag
9699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9700 else
9701 ac_cpp_err=
9703 else
9704 ac_cpp_err=yes
9706 if test -z "$ac_cpp_err"; then
9707 ac_header_preproc=yes
9708 else
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 ac_header_preproc=no
9714 rm -f conftest.err conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9716 echo "${ECHO_T}$ac_header_preproc" >&6
9718 # So? What about this header?
9719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9720 yes:no: )
9721 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9722 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9724 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9725 ac_header_preproc=yes
9727 no:yes:* )
9728 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9729 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9731 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9733 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9735 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9737 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9739 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9741 cat <<\_ASBOX
9742 ## ------------------------------------ ##
9743 ## Report this to wine-devel@winehq.org ##
9744 ## ------------------------------------ ##
9745 _ASBOX
9747 sed "s/^/$as_me: WARNING: /" >&2
9749 esac
9750 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9751 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9752 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 ac_cv_header_sane_sane_h=$ac_header_preproc
9757 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9758 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9761 if test $ac_cv_header_sane_sane_h = yes; then
9762 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9763 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9764 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-lsane $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9776 /* Override any gcc2 internal prototype to avoid an error. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 /* We use char because int might match the return type of a gcc2
9781 builtin and then its argument prototype would still apply. */
9782 char sane_open ();
9784 main ()
9786 sane_open ();
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793 (eval $ac_link) 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_lib_sane_sane_open=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_sane_sane_open=no
9819 rm -f conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9824 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9825 if test $ac_cv_lib_sane_sane_open = yes; then
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_SANE 1
9829 _ACEOF
9831 else
9832 SANELIBS=""
9833 SANEINCL=""
9836 else
9837 SANELIBS=""
9838 SANEINCL=""
9842 LIBS="$ac_save_LIBS"
9843 CPPFLAGS="$ac_save_CPPFLAGS"
9849 for ac_header in unicode/ubidi.h
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853 echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 else
9861 # Is the header compilable?
9862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 #include <$ac_header>
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_header_compiler=yes
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_header_compiler=no
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9903 echo "${ECHO_T}$ac_header_compiler" >&6
9905 # Is the header present?
9906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 #include <$ac_header>
9915 _ACEOF
9916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } >/dev/null; then
9924 if test -s conftest.err; then
9925 ac_cpp_err=$ac_c_preproc_warn_flag
9926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9927 else
9928 ac_cpp_err=
9930 else
9931 ac_cpp_err=yes
9933 if test -z "$ac_cpp_err"; then
9934 ac_header_preproc=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_header_preproc=no
9941 rm -f conftest.err conftest.$ac_ext
9942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9943 echo "${ECHO_T}$ac_header_preproc" >&6
9945 # So? What about this header?
9946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9947 yes:no: )
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9952 ac_header_preproc=yes
9954 no:yes:* )
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9968 cat <<\_ASBOX
9969 ## ------------------------------------ ##
9970 ## Report this to wine-devel@winehq.org ##
9971 ## ------------------------------------ ##
9972 _ASBOX
9974 sed "s/^/$as_me: WARNING: /" >&2
9976 esac
9977 echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 eval "$as_ac_Header=\$ac_header_preproc"
9984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9991 _ACEOF
9995 done
9997 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9998 then
9999 saved_libs="$LIBS"
10000 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10001 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10002 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10003 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <unicode/ubidi.h>
10012 main ()
10014 ubidi_open()
10016 return 0;
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_ICU 1
10043 _ACEOF
10045 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS="$saved_libs"
10057 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10058 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10059 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-lfreetype $X_LIBS $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 /* Override any gcc2 internal prototype to avoid an error. */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077 char FT_Init_FreeType ();
10079 main ()
10081 FT_Init_FreeType ();
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 ac_cv_lib_freetype_FT_Init_FreeType=yes
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 ac_cv_lib_freetype_FT_Init_FreeType=no
10114 rm -f conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_lib_save_LIBS
10118 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10119 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10120 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10121 ft_lib=yes
10122 else
10123 ft_lib=no
10126 if test "$ft_lib" = "no"
10127 then
10128 FREETYPEINCL=""
10129 wine_cv_msg_freetype=no
10130 else
10131 # Extract the first word of "freetype-config", so it can be a program name with args.
10132 set dummy freetype-config; ac_word=$2
10133 echo "$as_me:$LINENO: checking for $ac_word" >&5
10134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135 if test "${ac_cv_prog_ft_devel+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 if test -n "$ft_devel"; then
10139 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_ft_devel="freetype-config"
10149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10155 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10158 ft_devel=$ac_cv_prog_ft_devel
10159 if test -n "$ft_devel"; then
10160 echo "$as_me:$LINENO: result: $ft_devel" >&5
10161 echo "${ECHO_T}$ft_devel" >&6
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10167 if test "$ft_devel" = "no"
10168 then
10169 # Extract the first word of "freetype2-config", so it can be a program name with args.
10170 set dummy freetype2-config; ac_word=$2
10171 echo "$as_me:$LINENO: checking for $ac_word" >&5
10172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10173 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 if test -n "$ft_devel2"; then
10177 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10178 else
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10186 ac_cv_prog_ft_devel2="freetype2-config"
10187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10190 done
10191 done
10193 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10196 ft_devel2=$ac_cv_prog_ft_devel2
10197 if test -n "$ft_devel2"; then
10198 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10199 echo "${ECHO_T}$ft_devel2" >&6
10200 else
10201 echo "$as_me:$LINENO: result: no" >&5
10202 echo "${ECHO_T}no" >&6
10205 if test "$ft_devel2" = "freetype2-config"
10206 then
10207 ft_devel=$ft_devel2
10210 if test "$ft_devel" = "no"
10211 then
10212 FREETYPEINCL=""
10213 wine_cv_msg_freetype=yes
10214 else
10215 FREETYPEINCL=`$ft_devel --cflags`
10216 ac_save_CPPFLAGS="$CPPFLAGS"
10217 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10227 for ac_header in ft2build.h \
10228 freetype/freetype.h \
10229 freetype/ftglyph.h \
10230 freetype/tttables.h \
10231 freetype/ftnames.h \
10232 freetype/ftsnames.h \
10233 freetype/ttnameid.h \
10234 freetype/ftoutln.h \
10235 freetype/internal/sfnt.h
10237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10238 echo "$as_me:$LINENO: checking for $ac_header" >&5
10239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 #if HAVE_FT2BUILD_H
10250 #include <ft2build.h>
10251 #endif
10253 #include <$ac_header>
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; } &&
10270 { ac_try='test -s conftest.$ac_objext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 eval "$as_ac_Header=yes"
10277 else
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 eval "$as_ac_Header=no"
10283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290 _ACEOF
10294 done
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <ft2build.h>
10303 #include <freetype/fttrigon.h>
10304 _ACEOF
10305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } >/dev/null; then
10313 if test -s conftest.err; then
10314 ac_cpp_err=$ac_c_preproc_warn_flag
10315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10316 else
10317 ac_cpp_err=
10319 else
10320 ac_cpp_err=yes
10322 if test -z "$ac_cpp_err"; then
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_FREETYPE_FTTRIGON_H 1
10326 _ACEOF
10328 wine_cv_fttrigon=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 wine_cv_fttrigon=no
10335 rm -f conftest.err conftest.$ac_ext
10336 CPPFLAGS="$ac_save_CPPFLAGS"
10337 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10338 then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_FREETYPE 1
10342 _ACEOF
10344 wine_cv_msg_freetype=no
10345 else
10346 FREETYPEINCL=""
10347 wine_cv_msg_freetype=yes
10353 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10354 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10355 if test "${ac_cv_c_ppdev+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 #include <linux/ppdev.h>
10366 main ()
10368 ioctl (1,PPCLAIM,0)
10370 return 0;
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375 (eval $ac_compile) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_c_ppdev="yes"
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_cv_c_ppdev="no"
10401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10404 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10405 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10406 if test "$ac_cv_c_ppdev" = "yes"
10407 then
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_PPDEV 1
10411 _ACEOF
10415 echo "$as_me:$LINENO: checking for va_copy" >&5
10416 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10417 if test "${ac_cv_c_va_copy+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 #include <stdarg.h>
10428 main ()
10430 va_list ap1, ap2;
10431 va_copy(ap1,ap2);
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_c_va_copy="yes"
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_cv_c_va_copy="no"
10465 rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10469 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10470 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10471 if test "$ac_cv_c_va_copy" = "yes"
10472 then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_VA_COPY 1
10476 _ACEOF
10479 echo "$as_me:$LINENO: checking for __va_copy" >&5
10480 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10481 if test "${ac_cv_c___va_copy+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484 cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h. */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <stdarg.h>
10492 main ()
10494 va_list ap1, ap2;
10495 __va_copy(ap1,ap2);
10498 return 0;
10500 _ACEOF
10501 rm -f conftest.$ac_objext conftest$ac_exeext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503 (eval $ac_link) 2>conftest.er1
10504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_c___va_copy="yes"
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_c___va_copy="no"
10529 rm -f conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10534 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10535 if test "$ac_cv_c___va_copy" = "yes"
10536 then
10538 cat >>confdefs.h <<\_ACEOF
10539 #define HAVE___VA_COPY 1
10540 _ACEOF
10544 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10545 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10546 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 #include <setjmp.h>
10557 main ()
10559 sigjmp_buf buf;
10560 sigsetjmp( buf, 1 );
10561 siglongjmp( buf, 1 );
10563 return 0;
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_c_sigsetjmp="yes"
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_c_sigsetjmp="no"
10594 rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10598 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10599 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10600 if test "$ac_cv_c_sigsetjmp" = "yes"
10601 then
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_SIGSETJMP 1
10605 _ACEOF
10609 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10610 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10611 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #define _GNU_SOURCE
10621 #include <pthread.h>
10624 main ()
10626 if ((pthread_rwlock_t *) 0)
10627 return 0;
10628 if (sizeof (pthread_rwlock_t))
10629 return 0;
10631 return 0;
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_type_pthread_rwlock_t=yes
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_type_pthread_rwlock_t=no
10662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10665 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10666 if test $ac_cv_type_pthread_rwlock_t = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669 #define HAVE_PTHREAD_RWLOCK_T 1
10670 _ACEOF
10674 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10675 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10676 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #define _GNU_SOURCE
10686 #include <pthread.h>
10689 main ()
10691 if ((pthread_rwlockattr_t *) 0)
10692 return 0;
10693 if (sizeof (pthread_rwlockattr_t))
10694 return 0;
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_type_pthread_rwlockattr_t=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_type_pthread_rwlockattr_t=no
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10730 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10731 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10735 _ACEOF
10741 ac_save_LIBS="$LIBS"
10742 LIBS="$LIBS $LIBPTHREAD"
10744 for ac_func in pthread_getattr_np
10746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10747 echo "$as_me:$LINENO: checking for $ac_func" >&5
10748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10749 if eval "test \"\${$as_ac_var+set}\" = set"; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760 #define $ac_func innocuous_$ac_func
10762 /* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char $ac_func (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
10767 #ifdef __STDC__
10768 # include <limits.h>
10769 #else
10770 # include <assert.h>
10771 #endif
10773 #undef $ac_func
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 #ifdef __cplusplus
10777 extern "C"
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char $ac_func ();
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787 choke me
10788 #else
10789 char (*f) () = $ac_func;
10790 #endif
10791 #ifdef __cplusplus
10793 #endif
10796 main ()
10798 return f != $ac_func;
10800 return 0;
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 eval "$as_ac_var=yes"
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10831 rm -f conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10836 if test `eval echo '${'$as_ac_var'}'` = yes; then
10837 cat >>confdefs.h <<_ACEOF
10838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10839 _ACEOF
10842 done
10844 LIBS="$ac_save_LIBS"
10849 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10853 echo "$as_me:$LINENO: checking for $ac_header" >&5
10854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10860 else
10861 # Is the header compilable?
10862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 #include <$ac_header>
10872 _ACEOF
10873 rm -f conftest.$ac_objext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_header_compiler=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_header_compiler=no
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10903 echo "${ECHO_T}$ac_header_compiler" >&6
10905 # Is the header present?
10906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <$ac_header>
10915 _ACEOF
10916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } >/dev/null; then
10924 if test -s conftest.err; then
10925 ac_cpp_err=$ac_c_preproc_warn_flag
10926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10927 else
10928 ac_cpp_err=
10930 else
10931 ac_cpp_err=yes
10933 if test -z "$ac_cpp_err"; then
10934 ac_header_preproc=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_header_preproc=no
10941 rm -f conftest.err conftest.$ac_ext
10942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10943 echo "${ECHO_T}$ac_header_preproc" >&6
10945 # So? What about this header?
10946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10947 yes:no: )
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10952 ac_header_preproc=yes
10954 no:yes:* )
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10968 cat <<\_ASBOX
10969 ## ------------------------------------ ##
10970 ## Report this to wine-devel@winehq.org ##
10971 ## ------------------------------------ ##
10972 _ASBOX
10974 sed "s/^/$as_me: WARNING: /" >&2
10976 esac
10977 echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982 eval "$as_ac_Header=\$ac_header_preproc"
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10991 _ACEOF
10992 break
10995 done
10998 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10999 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11000 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11010 #if defined(HAVE_SYS_SOUNDCARD_H)
11011 #include <sys/soundcard.h>
11012 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11013 #include <machine/soundcard.h>
11014 #elif defined(HAVE_SOUNDCARD_H)
11015 #include <soundcard.h>
11016 #endif
11019 main ()
11023 /* check for one of the Open Sound System specific SNDCTL_ defines */
11024 #if !defined(SNDCTL_DSP_STEREO)
11025 #error No open sound system
11026 #endif
11029 return 0;
11031 _ACEOF
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_c_opensoundsystem="yes"
11054 else
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_c_opensoundsystem="no"
11060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11063 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11065 if test "$ac_cv_c_opensoundsystem" = "yes"
11066 then
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_OSS 1
11070 _ACEOF
11074 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11075 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11076 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 #if defined(HAVE_SYS_SOUNDCARD_H)
11087 #include <sys/soundcard.h>
11088 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11089 #include <machine/soundcard.h>
11090 #elif defined(HAVE_SOUNDCARD_H)
11091 #include <soundcard.h>
11092 #endif
11095 main ()
11099 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11100 #if !defined(SNDCTL_SEQ_SYNC)
11101 #error No open sound system MIDI interface
11102 #endif
11105 return 0;
11107 _ACEOF
11108 rm -f conftest.$ac_objext
11109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11110 (eval $ac_compile) 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_c_opensoundsystem_midi="yes"
11130 else
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_cv_c_opensoundsystem_midi="no"
11136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11139 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11141 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11142 then
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_OSS_MIDI 1
11146 _ACEOF
11150 # Extract the first word of "artsc-config", so it can be a program name with args.
11151 set dummy artsc-config; ac_word=$2
11152 echo "$as_me:$LINENO: checking for $ac_word" >&5
11153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11154 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157 case $ARTSCCONFIG in
11158 [\\/]* | ?:[\\/]*)
11159 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11173 done
11174 done
11177 esac
11179 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11181 if test -n "$ARTSCCONFIG"; then
11182 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11183 echo "${ECHO_T}$ARTSCCONFIG" >&6
11184 else
11185 echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6
11189 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11190 then
11191 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags | sed 's/\-pthread//'`
11192 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11193 save_CFLAGS="$CFLAGS"
11194 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <artsc.h>
11203 main ()
11205 arts_stream_t stream;
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ARTSLIBS=$ARTSC_LIBS
11233 ARTSINCL=$ARTSC_CFLAGS
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_ARTS 1
11238 _ACEOF
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11246 CFLAGS="$save_CFLAGS"
11249 ALSALIBS=""
11253 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257 echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11264 else
11265 # Is the header compilable?
11266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 #include <$ac_header>
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_header_compiler=yes
11299 else
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_header_compiler=no
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11307 echo "${ECHO_T}$ac_header_compiler" >&6
11309 # Is the header present?
11310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <$ac_header>
11319 _ACEOF
11320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 else
11332 ac_cpp_err=
11334 else
11335 ac_cpp_err=yes
11337 if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_preproc=no
11345 rm -f conftest.err conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347 echo "${ECHO_T}$ac_header_preproc" >&6
11349 # So? What about this header?
11350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 yes:no: )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11358 no:yes:* )
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372 cat <<\_ASBOX
11373 ## ------------------------------------ ##
11374 ## Report this to wine-devel@winehq.org ##
11375 ## ------------------------------------ ##
11376 _ASBOX
11378 sed "s/^/$as_me: WARNING: /" >&2
11380 esac
11381 echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 _ACEOF
11396 break
11399 done
11401 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11402 then
11403 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11404 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11405 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-lasound $LIBS"
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423 char snd_pcm_open ();
11425 main ()
11427 snd_pcm_open ();
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_cv_lib_asound_snd_pcm_open=yes
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_cv_lib_asound_snd_pcm_open=no
11460 rm -f conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11465 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11466 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define HAVE_ALSA 1
11470 _ACEOF
11472 ALSALIBS="-lasound"
11478 AUDIOIOLIBS=""
11481 for ac_header in libaudioio.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11485 echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11492 else
11493 # Is the header compilable?
11494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 (eval $ac_compile) 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_header_compiler=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_compiler=no
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6
11537 # Is the header present?
11538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11547 _ACEOF
11548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } >/dev/null; then
11556 if test -s conftest.err; then
11557 ac_cpp_err=$ac_c_preproc_warn_flag
11558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11559 else
11560 ac_cpp_err=
11562 else
11563 ac_cpp_err=yes
11565 if test -z "$ac_cpp_err"; then
11566 ac_header_preproc=yes
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_header_preproc=no
11573 rm -f conftest.err conftest.$ac_ext
11574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11575 echo "${ECHO_T}$ac_header_preproc" >&6
11577 # So? What about this header?
11578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 yes:no: )
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11584 ac_header_preproc=yes
11586 no:yes:* )
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11600 cat <<\_ASBOX
11601 ## ------------------------------------ ##
11602 ## Report this to wine-devel@winehq.org ##
11603 ## ------------------------------------ ##
11604 _ASBOX
11606 sed "s/^/$as_me: WARNING: /" >&2
11608 esac
11609 echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614 eval "$as_ac_Header=\$ac_header_preproc"
11616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11623 _ACEOF
11624 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11625 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11626 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-laudioio $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11638 /* Override any gcc2 internal prototype to avoid an error. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 /* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11644 char AudioIOGetVersion ();
11646 main ()
11648 AudioIOGetVersion ();
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 ac_cv_lib_audioio_AudioIOGetVersion=yes
11675 else
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_cv_lib_audioio_AudioIOGetVersion=no
11681 rm -f conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11685 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11686 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11687 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11688 AUDIOIOLIBS="-laudioio"
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_LIBAUDIOIO 1
11692 _ACEOF
11698 done
11703 for ac_header in capi20.h
11705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo "$as_me:$LINENO: checking for $ac_header" >&5
11708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11714 else
11715 # Is the header compilable?
11716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 #include <$ac_header>
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_header_compiler=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_header_compiler=no
11755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11757 echo "${ECHO_T}$ac_header_compiler" >&6
11759 # Is the header present?
11760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <$ac_header>
11769 _ACEOF
11770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } >/dev/null; then
11778 if test -s conftest.err; then
11779 ac_cpp_err=$ac_c_preproc_warn_flag
11780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11781 else
11782 ac_cpp_err=
11784 else
11785 ac_cpp_err=yes
11787 if test -z "$ac_cpp_err"; then
11788 ac_header_preproc=yes
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 ac_header_preproc=no
11795 rm -f conftest.err conftest.$ac_ext
11796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11797 echo "${ECHO_T}$ac_header_preproc" >&6
11799 # So? What about this header?
11800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11801 yes:no: )
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11806 ac_header_preproc=yes
11808 no:yes:* )
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11822 cat <<\_ASBOX
11823 ## ------------------------------------ ##
11824 ## Report this to wine-devel@winehq.org ##
11825 ## ------------------------------------ ##
11826 _ASBOX
11828 sed "s/^/$as_me: WARNING: /" >&2
11830 esac
11831 echo "$as_me:$LINENO: checking for $ac_header" >&5
11832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 eval "$as_ac_Header=\$ac_header_preproc"
11838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11845 _ACEOF
11848 for ac_header in linux/capi.h
11850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11852 echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11859 else
11860 # Is the header compilable?
11861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11870 #include <$ac_header>
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 ac_header_compiler=yes
11894 else
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 ac_header_compiler=no
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11902 echo "${ECHO_T}$ac_header_compiler" >&6
11904 # Is the header present?
11905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <$ac_header>
11914 _ACEOF
11915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } >/dev/null; then
11923 if test -s conftest.err; then
11924 ac_cpp_err=$ac_c_preproc_warn_flag
11925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11926 else
11927 ac_cpp_err=
11929 else
11930 ac_cpp_err=yes
11932 if test -z "$ac_cpp_err"; then
11933 ac_header_preproc=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_preproc=no
11940 rm -f conftest.err conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11942 echo "${ECHO_T}$ac_header_preproc" >&6
11944 # So? What about this header?
11945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11946 yes:no: )
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11951 ac_header_preproc=yes
11953 no:yes:* )
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11967 cat <<\_ASBOX
11968 ## ------------------------------------ ##
11969 ## Report this to wine-devel@winehq.org ##
11970 ## ------------------------------------ ##
11971 _ASBOX
11973 sed "s/^/$as_me: WARNING: /" >&2
11975 esac
11976 echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981 eval "$as_ac_Header=\$ac_header_preproc"
11983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11990 _ACEOF
11992 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11993 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11994 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lcapi20 $LIBS"
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char capi20_register ();
12014 main ()
12016 capi20_register ();
12018 return 0;
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_lib_capi20_capi20_register=yes
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_lib_capi20_capi20_register=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_lib_save_LIBS
12053 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12054 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12055 if test $ac_cv_lib_capi20_capi20_register = yes; then
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_CAPI4LINUX 1
12060 _ACEOF
12062 CAPI4LINUXLIBS="-lcapi20"
12070 done
12075 done
12079 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12080 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12081 if test "${ac_cv_mmap64_works+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 if test "$cross_compiling" = yes; then
12085 ac_cv_mmap64_works="no"
12086 else
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 #define _FILE_OFFSET_BITS 64
12095 #include <stdio.h>
12096 #include <unistd.h>
12097 #include <fcntl.h>
12098 #include <sys/mman.h>
12099 #include <errno.h>
12101 int main(int argc,char **argv) {
12102 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12103 if (fd == -1) exit(1);
12105 unlink("conftest.map");
12107 write(fd,"test",4);
12109 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12110 (errno == EINVAL)
12112 exit(1);
12114 close(fd);
12115 fprintf(stderr,"success!\n");
12116 exit(0);
12120 _ACEOF
12121 rm -f conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_mmap64_works="yes"
12133 else
12134 echo "$as_me: program exited with status $ac_status" >&5
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ( exit $ac_status )
12139 ac_cv_mmap64_works="no"
12141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12145 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12147 if test "$ac_cv_mmap64_works" = "yes"
12148 then
12150 cat >>confdefs.h <<\_ACEOF
12151 #define _FILE_OFFSET_BITS 64
12152 _ACEOF
12157 EXTRACFLAGS=""
12159 if test "x${GCC}" = "xyes"
12160 then
12161 EXTRACFLAGS="-Wall -pipe"
12163 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12164 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12165 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 if test "$cross_compiling" = yes; then
12169 ac_cv_c_gcc_strength_bug="yes"
12170 else
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 int L[4] = {0,1,2,3};
12179 int main(void) {
12180 static int Array[3];
12181 unsigned int B = 3;
12182 int i;
12183 for(i=0; i<B; i++) Array[i] = i - 3;
12184 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12185 L[i] = 4;
12187 exit( Array[1] != -2 || L[2] != 3);
12189 _ACEOF
12190 rm -f conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_c_gcc_strength_bug="no"
12202 else
12203 echo "$as_me: program exited with status $ac_status" >&5
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ( exit $ac_status )
12208 ac_cv_c_gcc_strength_bug="yes"
12210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12213 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12214 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12215 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12216 then
12217 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12220 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12221 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12222 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 ac_wine_try_cflags_saved=$CFLAGS
12226 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12235 main ()
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_c_gcc_stack_boundary="yes"
12264 else
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_cv_c_gcc_stack_boundary="no"
12270 rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 CFLAGS=$ac_wine_try_cflags_saved
12274 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12275 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12276 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12277 then
12278 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12281 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12282 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12283 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286 ac_wine_try_cflags_saved=$CFLAGS
12287 CFLAGS="$CFLAGS -fno-strict-aliasing"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12296 main ()
12300 return 0;
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_cv_c_gcc_no_strict_aliasing="yes"
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 ac_cv_c_gcc_no_strict_aliasing="no"
12331 rm -f conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 CFLAGS=$ac_wine_try_cflags_saved
12335 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12336 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12337 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12338 then
12339 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12342 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12343 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12344 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347 ac_wine_try_cflags_saved=$CFLAGS
12348 CFLAGS="$CFLAGS -gstabs+"
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12357 main ()
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_c_gcc_gstabs="yes"
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_cv_c_gcc_gstabs="no"
12392 rm -f conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 CFLAGS=$ac_wine_try_cflags_saved
12396 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12397 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12398 if test "$ac_cv_c_gcc_gstabs" = "yes"
12399 then
12400 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12403 saved_CFLAGS="$CFLAGS"
12404 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12405 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12406 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12407 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h. */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 #include <string.h>
12418 main ()
12422 return 0;
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_c_string_h_warnings=no
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_c_string_h_warnings=yes
12453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12456 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12457 CFLAGS="$saved_CFLAGS"
12458 if test "$ac_cv_c_string_h_warnings" = "no"
12459 then
12460 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12465 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12466 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12467 if test "${ac_cv_asm_func_def+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 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"); }
12479 main ()
12483 return 0;
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>conftest.er1
12489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_asm_func_def=".def"
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12521 main ()
12525 return 0;
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_asm_func_def=".type @function"
12550 else
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12563 main ()
12567 return 0;
12569 _ACEOF
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12572 (eval $ac_link) 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_asm_func_def=".type 2"
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ac_cv_asm_func_def="unknown"
12598 rm -f conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12601 rm -f conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12604 rm -f conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12607 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12608 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12612 case "$ac_cv_asm_func_def" in
12613 ".def")
12614 cat >>confdefs.h <<\_ACEOF
12615 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12616 _ACEOF
12618 ".type @function")
12619 cat >>confdefs.h <<\_ACEOF
12620 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12621 _ACEOF
12623 ".type 2")
12624 cat >>confdefs.h <<\_ACEOF
12625 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12626 _ACEOF
12629 cat >>confdefs.h <<\_ACEOF
12630 #define __ASM_FUNC(name) ""
12631 _ACEOF
12633 esac
12636 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12637 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12638 if test "${ac_cv_c_extern_prefix+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12648 extern int ac_test;
12650 main ()
12652 if (ac_test) return 1
12654 return 0;
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_c_extern_prefix="yes"
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_c_extern_prefix="no"
12685 rm -f conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12688 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12689 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12693 if test "$ac_cv_c_extern_prefix" = "yes"
12694 then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define __ASM_NAME(name) "_" name
12697 _ACEOF
12699 else
12700 cat >>confdefs.h <<\_ACEOF
12701 #define __ASM_NAME(name) name
12702 _ACEOF
12707 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12708 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12709 if test "${ac_cv_c_asm_string+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12721 main ()
12725 return 0;
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730 (eval $ac_link) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_c_asm_string=".string"
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12763 main ()
12767 return 0;
12769 _ACEOF
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_c_asm_string=".asciz"
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h. */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12805 main ()
12809 return 0;
12811 _ACEOF
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814 (eval $ac_link) 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_cv_c_asm_string=".ascii"
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12839 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12840 { (exit 1); exit 1; }; }
12842 rm -f conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12845 rm -f conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12848 rm -f conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12852 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12855 cat >>confdefs.h <<_ACEOF
12856 #define __ASM_STRING "$ac_cv_c_asm_string"
12857 _ACEOF
12861 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12862 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12863 if test "${ac_cv_c_asm_short+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h. */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12875 main ()
12879 return 0;
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_cv_c_asm_short=".short"
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12917 main ()
12921 return 0;
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_c_asm_short=".half"
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12951 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12952 { (exit 1); exit 1; }; }
12954 rm -f conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12960 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12961 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12964 cat >>confdefs.h <<_ACEOF
12965 #define __ASM_SHORT "$ac_cv_c_asm_short"
12966 _ACEOF
12970 DLLEXT=""
12972 DLLFLAGS="-D_REENTRANT"
12974 DLLIBS=""
12976 LDSHARED=""
12978 LDDLL=""
12980 LIBEXT="so"
12982 IMPLIBEXT="def"
12985 case $host_os in
12986 cygwin*|mingw32*)
12987 if test -n "$ac_tool_prefix"; then
12988 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12989 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12990 echo "$as_me:$LINENO: checking for $ac_word" >&5
12991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12992 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995 if test -n "$DLLTOOL"; then
12996 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12997 else
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13014 DLLTOOL=$ac_cv_prog_DLLTOOL
13015 if test -n "$DLLTOOL"; then
13016 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13017 echo "${ECHO_T}$DLLTOOL" >&6
13018 else
13019 echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6
13024 if test -z "$ac_cv_prog_DLLTOOL"; then
13025 ac_ct_DLLTOOL=$DLLTOOL
13026 # Extract the first word of "dlltool", so it can be a program name with args.
13027 set dummy dlltool; ac_word=$2
13028 echo "$as_me:$LINENO: checking for $ac_word" >&5
13029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13030 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 if test -n "$ac_ct_DLLTOOL"; then
13034 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13047 done
13048 done
13050 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13053 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13054 if test -n "$ac_ct_DLLTOOL"; then
13055 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13056 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13057 else
13058 echo "$as_me:$LINENO: result: no" >&5
13059 echo "${ECHO_T}no" >&6
13062 DLLTOOL=$ac_ct_DLLTOOL
13063 else
13064 DLLTOOL="$ac_cv_prog_DLLTOOL"
13067 if test -n "$ac_tool_prefix"; then
13068 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13069 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13070 echo "$as_me:$LINENO: checking for $ac_word" >&5
13071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13072 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 if test -n "$DLLWRAP"; then
13076 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13089 done
13090 done
13094 DLLWRAP=$ac_cv_prog_DLLWRAP
13095 if test -n "$DLLWRAP"; then
13096 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13097 echo "${ECHO_T}$DLLWRAP" >&6
13098 else
13099 echo "$as_me:$LINENO: result: no" >&5
13100 echo "${ECHO_T}no" >&6
13104 if test -z "$ac_cv_prog_DLLWRAP"; then
13105 ac_ct_DLLWRAP=$DLLWRAP
13106 # Extract the first word of "dllwrap", so it can be a program name with args.
13107 set dummy dllwrap; ac_word=$2
13108 echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13110 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 if test -n "$ac_ct_DLLWRAP"; then
13114 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13115 else
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13127 done
13128 done
13130 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13133 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13134 if test -n "$ac_ct_DLLWRAP"; then
13135 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13136 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13137 else
13138 echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6
13142 DLLWRAP=$ac_ct_DLLWRAP
13143 else
13144 DLLWRAP="$ac_cv_prog_DLLWRAP"
13147 if test "$DLLWRAP" = "false"; then
13148 LIBEXT="a"
13149 else
13150 LIBEXT="dll"
13152 IMPLIBEXT="a"
13156 for ac_header in dlfcn.h
13158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13160 echo "$as_me:$LINENO: checking for $ac_header" >&5
13161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13167 else
13168 # Is the header compilable?
13169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 $ac_includes_default
13178 #include <$ac_header>
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_header_compiler=yes
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_header_compiler=no
13208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13210 echo "${ECHO_T}$ac_header_compiler" >&6
13212 # Is the header present?
13213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 #include <$ac_header>
13222 _ACEOF
13223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } >/dev/null; then
13231 if test -s conftest.err; then
13232 ac_cpp_err=$ac_c_preproc_warn_flag
13233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13234 else
13235 ac_cpp_err=
13237 else
13238 ac_cpp_err=yes
13240 if test -z "$ac_cpp_err"; then
13241 ac_header_preproc=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_header_preproc=no
13248 rm -f conftest.err conftest.$ac_ext
13249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13250 echo "${ECHO_T}$ac_header_preproc" >&6
13252 # So? What about this header?
13253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13254 yes:no: )
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13259 ac_header_preproc=yes
13261 no:yes:* )
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13275 cat <<\_ASBOX
13276 ## ------------------------------------ ##
13277 ## Report this to wine-devel@winehq.org ##
13278 ## ------------------------------------ ##
13279 _ASBOX
13281 sed "s/^/$as_me: WARNING: /" >&2
13283 esac
13284 echo "$as_me:$LINENO: checking for $ac_header" >&5
13285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 eval "$as_ac_Header=\$ac_header_preproc"
13291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13298 _ACEOF
13300 for ac_func in dlopen
13302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13303 echo "$as_me:$LINENO: checking for $ac_func" >&5
13304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13305 if eval "test \"\${$as_ac_var+set}\" = set"; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13316 #define $ac_func innocuous_$ac_func
13318 /* System header to define __stub macros and hopefully few prototypes,
13319 which can conflict with char $ac_func (); below.
13320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13321 <limits.h> exists even on freestanding compilers. */
13323 #ifdef __STDC__
13324 # include <limits.h>
13325 #else
13326 # include <assert.h>
13327 #endif
13329 #undef $ac_func
13331 /* Override any gcc2 internal prototype to avoid an error. */
13332 #ifdef __cplusplus
13333 extern "C"
13335 #endif
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char $ac_func ();
13339 /* The GNU C library defines this for functions which it implements
13340 to always fail with ENOSYS. Some functions are actually named
13341 something starting with __ and the normal name is an alias. */
13342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13343 choke me
13344 #else
13345 char (*f) () = $ac_func;
13346 #endif
13347 #ifdef __cplusplus
13349 #endif
13352 main ()
13354 return f != $ac_func;
13356 return 0;
13358 _ACEOF
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; } &&
13374 { ac_try='test -s conftest$ac_exeext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 eval "$as_ac_var=yes"
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 eval "$as_ac_var=no"
13387 rm -f conftest.err conftest.$ac_objext \
13388 conftest$ac_exeext conftest.$ac_ext
13390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13392 if test `eval echo '${'$as_ac_var'}'` = yes; then
13393 cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13395 _ACEOF
13397 else
13398 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13399 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13400 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 ac_check_lib_save_LIBS=$LIBS
13404 LIBS="-ldl $LIBS"
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h. */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13412 /* Override any gcc2 internal prototype to avoid an error. */
13413 #ifdef __cplusplus
13414 extern "C"
13415 #endif
13416 /* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13418 char dlopen ();
13420 main ()
13422 dlopen ();
13424 return 0;
13426 _ACEOF
13427 rm -f conftest.$ac_objext conftest$ac_exeext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13429 (eval $ac_link) 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_lib_dl_dlopen=yes
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_lib_dl_dlopen=no
13455 rm -f conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13461 if test $ac_cv_lib_dl_dlopen = yes; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define HAVE_DLOPEN 1
13465 _ACEOF
13467 DLLIBS="-ldl"
13468 else
13469 LIBEXT="a"
13473 done
13475 else
13476 LIBEXT="a"
13479 done
13482 if test "$LIBEXT" = "so"
13483 then
13484 DLLFLAGS="$DLLFLAGS -fPIC"
13485 DLLEXT=".so"
13486 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13487 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13488 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 ac_wine_try_cflags_saved=$CFLAGS
13492 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13501 main ()
13505 return 0;
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_cv_c_dll_gnuelf="yes"
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 ac_cv_c_dll_gnuelf="no"
13536 rm -f conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 CFLAGS=$ac_wine_try_cflags_saved
13540 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13541 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13542 if test "$ac_cv_c_dll_gnuelf" = "yes"
13543 then
13544 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13545 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
13546 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13547 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13548 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 ac_wine_try_cflags_saved=$CFLAGS
13552 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13561 main ()
13565 return 0;
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570 (eval $ac_link) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_c_dll_zdefs="yes"
13590 else
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_c_dll_zdefs="no"
13596 rm -f conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 CFLAGS=$ac_wine_try_cflags_saved
13600 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13601 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13602 if test "$ac_cv_c_dll_zdefs" = "yes"
13603 then
13604 LDDLL="$LDDLL,-z,defs"
13607 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13608 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13609 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 ac_wine_try_cflags_saved=$CFLAGS
13613 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13622 main ()
13626 return 0;
13628 _ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_c_dll_init_fini="yes"
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13655 ac_cv_c_dll_init_fini="no"
13657 rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 CFLAGS=$ac_wine_try_cflags_saved
13661 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13662 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13663 if test "$ac_cv_c_dll_init_fini" = "yes"
13664 then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_LINKER_INIT_FINI 1
13668 _ACEOF
13670 LDDLL="$LDDLL,-init,__wine_spec_init,-fini,__wine_spec_fini"
13673 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13674 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13675 if test "${ac_cv_c_export_dynamic+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 ac_wine_try_cflags_saved=$CFLAGS
13679 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13688 main ()
13692 return 0;
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } &&
13710 { ac_try='test -s conftest$ac_exeext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_cv_c_export_dynamic="yes"
13717 else
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13721 ac_cv_c_export_dynamic="no"
13723 rm -f conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 CFLAGS=$ac_wine_try_cflags_saved
13727 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13728 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13729 if test "$ac_cv_c_export_dynamic" = "yes"
13730 then
13731 LDEXECFLAGS="-Wl,--export-dynamic"
13735 case $host_cpu in
13736 *i[3456789]86*)
13737 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
13738 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
13739 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 else
13742 saved_CFLAGS="$CFLAGS"
13743 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
13744 if test "$cross_compiling" = yes; then
13745 ac_cv_ld_reloc_exec="no"
13746 else
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <unistd.h>
13754 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
13755 _ACEOF
13756 rm -f conftest$ac_exeext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13758 (eval $ac_link) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_ld_reloc_exec="yes"
13768 else
13769 echo "$as_me: program exited with status $ac_status" >&5
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13773 ( exit $ac_status )
13774 ac_cv_ld_reloc_exec="no"
13776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13778 CFLAGS="$saved_CFLAGS"
13780 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13781 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13782 if test "$ac_cv_ld_reloc_exec" = "yes"
13783 then
13784 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
13787 esac
13789 else
13790 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13791 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13792 if test "${ac_cv_c_dll_unixware+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 ac_wine_try_cflags_saved=$CFLAGS
13796 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13805 main ()
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814 (eval $ac_link) 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest$ac_exeext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_c_dll_unixware="yes"
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_cv_c_dll_unixware="no"
13840 rm -f conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13842 CFLAGS=$ac_wine_try_cflags_saved
13844 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13845 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13846 if test "$ac_cv_c_dll_unixware" = "yes"
13847 then
13848 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13849 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
13851 else
13852 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13853 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13854 if test "${ac_cv_c_dll_macho+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 ac_wine_try_cflags_saved=$CFLAGS
13858 CFLAGS="$CFLAGS -bundle"
13859 cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h. */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13867 main ()
13871 return 0;
13873 _ACEOF
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13876 (eval $ac_link) 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; } &&
13889 { ac_try='test -s conftest$ac_exeext'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_c_dll_macho="yes"
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_cv_c_dll_macho="no"
13902 rm -f conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 CFLAGS=$ac_wine_try_cflags_saved
13906 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13907 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13908 if test "$ac_cv_c_dll_macho" = "yes"
13909 then
13910 LIBEXT="dylib"
13911 LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
13912 LDSHARED="\$(CC) -dynamiclib"
13913 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
13919 CROSSTEST=""
13921 if test "$cross_compiling" = "no"
13922 then
13923 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13925 # Extract the first word of "$ac_prog", so it can be a program name with args.
13926 set dummy $ac_prog; ac_word=$2
13927 echo "$as_me:$LINENO: checking for $ac_word" >&5
13928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13929 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932 if test -n "$CROSSCC"; then
13933 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_CROSSCC="$ac_prog"
13943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13946 done
13947 done
13951 CROSSCC=$ac_cv_prog_CROSSCC
13952 if test -n "$CROSSCC"; then
13953 echo "$as_me:$LINENO: result: $CROSSCC" >&5
13954 echo "${ECHO_T}$CROSSCC" >&6
13955 else
13956 echo "$as_me:$LINENO: result: no" >&5
13957 echo "${ECHO_T}no" >&6
13960 test -n "$CROSSCC" && break
13961 done
13962 test -n "$CROSSCC" || CROSSCC="false"
13964 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
13966 # Extract the first word of "$ac_prog", so it can be a program name with args.
13967 set dummy $ac_prog; ac_word=$2
13968 echo "$as_me:$LINENO: checking for $ac_word" >&5
13969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13970 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973 if test -n "$DLLTOOL"; then
13974 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13975 else
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13983 ac_cv_prog_DLLTOOL="$ac_prog"
13984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13987 done
13988 done
13992 DLLTOOL=$ac_cv_prog_DLLTOOL
13993 if test -n "$DLLTOOL"; then
13994 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13995 echo "${ECHO_T}$DLLTOOL" >&6
13996 else
13997 echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6
14001 test -n "$DLLTOOL" && break
14002 done
14003 test -n "$DLLTOOL" || DLLTOOL="false"
14005 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14007 # Extract the first word of "$ac_prog", so it can be a program name with args.
14008 set dummy $ac_prog; ac_word=$2
14009 echo "$as_me:$LINENO: checking for $ac_word" >&5
14010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14011 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014 if test -n "$CROSSWINDRES"; then
14015 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14016 else
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 for as_dir in $PATH
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14024 ac_cv_prog_CROSSWINDRES="$ac_prog"
14025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 break 2
14028 done
14029 done
14033 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14034 if test -n "$CROSSWINDRES"; then
14035 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14036 echo "${ECHO_T}$CROSSWINDRES" >&6
14037 else
14038 echo "$as_me:$LINENO: result: no" >&5
14039 echo "${ECHO_T}no" >&6
14042 test -n "$CROSSWINDRES" && break
14043 done
14044 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14046 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14049 esac
14051 if test "$LIBEXT" = "a"; then
14052 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14053 It is currently not possible to build Wine without shared library
14054 (.so) support to allow transparent switch between .so and .dll files.
14055 If you are using Linux, you will need a newer binutils.
14056 " >&5
14057 echo "$as_me: error: could not find a way to build shared libraries.
14058 It is currently not possible to build Wine without shared library
14059 (.so) support to allow transparent switch between .so and .dll files.
14060 If you are using Linux, you will need a newer binutils.
14061 " >&2;}
14062 { (exit 1); exit 1; }; }
14065 case $build_os in
14066 cygwin*|mingw32*)
14067 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14069 darwin*|macosx*)
14070 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14073 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14075 esac
14077 case $host_os in
14078 mingw32*)
14079 CRTLIBS="-lmsvcrt"
14081 esac
14083 case $host_os in
14084 linux*)
14085 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14087 MAIN_BINARY="wine-glibc"
14091 WINE_BINARIES="wine-kthread"
14093 MAIN_BINARY="wine-kthread"
14096 esac
14099 if test "$LIBEXT" = "so"
14100 then
14101 # Extract the first word of "ldd", so it can be a program name with args.
14102 set dummy ldd; ac_word=$2
14103 echo "$as_me:$LINENO: checking for $ac_word" >&5
14104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14105 if test "${ac_cv_path_LDD+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108 case $LDD in
14109 [\\/]* | ?:[\\/]*)
14110 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14114 as_dummy="/sbin:/usr/sbin:$PATH"
14115 for as_dir in $as_dummy
14117 IFS=$as_save_IFS
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14121 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 break 2
14125 done
14126 done
14128 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14130 esac
14132 LDD=$ac_cv_path_LDD
14134 if test -n "$LDD"; then
14135 echo "$as_me:$LINENO: result: $LDD" >&5
14136 echo "${ECHO_T}$LDD" >&6
14137 else
14138 echo "$as_me:$LINENO: result: no" >&5
14139 echo "${ECHO_T}no" >&6
14143 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14144 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14145 if test "${ac_cv_lib_soname_X11+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148 ac_get_soname_save_LIBS=$LIBS
14149 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14150 cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h. */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14157 /* Override any gcc2 internal prototype to avoid an error. */
14158 #ifdef __cplusplus
14159 extern "C"
14160 #endif
14161 /* We use char because int might match the return type of a gcc2
14162 builtin and then its argument prototype would still apply. */
14163 char XCreateWindow ();
14165 main ()
14167 XCreateWindow ();
14169 return 0;
14171 _ACEOF
14172 rm -f conftest.$ac_objext conftest$ac_exeext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14174 (eval $ac_link) 2>conftest.er1
14175 ac_status=$?
14176 grep -v '^ *+' conftest.er1 >conftest.err
14177 rm -f conftest.er1
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14194 if test "x$ac_cv_lib_soname_X11" = "x"
14195 then
14196 ac_cv_lib_soname_X11="libX11.so"
14198 else
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 ac_cv_lib_soname_X11="libX11.so"
14204 rm -f conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14206 LIBS=$ac_get_soname_save_LIBS
14208 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14209 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14210 if test "x$ac_cv_lib_soname_X11" != xNONE
14211 then
14212 cat >>confdefs.h <<_ACEOF
14213 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14214 _ACEOF
14217 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14218 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14219 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 ac_get_soname_save_LIBS=$LIBS
14223 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h. */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14231 /* Override any gcc2 internal prototype to avoid an error. */
14232 #ifdef __cplusplus
14233 extern "C"
14234 #endif
14235 /* We use char because int might match the return type of a gcc2
14236 builtin and then its argument prototype would still apply. */
14237 char XextCreateExtension ();
14239 main ()
14241 XextCreateExtension ();
14243 return 0;
14245 _ACEOF
14246 rm -f conftest.$ac_objext conftest$ac_exeext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14248 (eval $ac_link) 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest$ac_exeext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14268 if test "x$ac_cv_lib_soname_Xext" = "x"
14269 then
14270 ac_cv_lib_soname_Xext="libXext.so"
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_soname_Xext="libXext.so"
14278 rm -f conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_get_soname_save_LIBS
14282 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14283 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14284 if test "x$ac_cv_lib_soname_Xext" != xNONE
14285 then
14286 cat >>confdefs.h <<_ACEOF
14287 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14288 _ACEOF
14291 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14292 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14293 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296 ac_get_soname_save_LIBS=$LIBS
14297 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14298 cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h. */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14305 /* Override any gcc2 internal prototype to avoid an error. */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 /* We use char because int might match the return type of a gcc2
14310 builtin and then its argument prototype would still apply. */
14311 char XOpenDevice ();
14313 main ()
14315 XOpenDevice ();
14317 return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext conftest$ac_exeext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14322 (eval $ac_link) 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest$ac_exeext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14342 if test "x$ac_cv_lib_soname_Xi" = "x"
14343 then
14344 ac_cv_lib_soname_Xi="libXi.so"
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_lib_soname_Xi="libXi.so"
14352 rm -f conftest.err conftest.$ac_objext \
14353 conftest$ac_exeext conftest.$ac_ext
14354 LIBS=$ac_get_soname_save_LIBS
14356 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14357 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14358 if test "x$ac_cv_lib_soname_Xi" != xNONE
14359 then
14360 cat >>confdefs.h <<_ACEOF
14361 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14362 _ACEOF
14365 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14366 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14367 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370 ac_get_soname_save_LIBS=$LIBS
14371 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14379 /* Override any gcc2 internal prototype to avoid an error. */
14380 #ifdef __cplusplus
14381 extern "C"
14382 #endif
14383 /* We use char because int might match the return type of a gcc2
14384 builtin and then its argument prototype would still apply. */
14385 char XRenderQueryExtension ();
14387 main ()
14389 XRenderQueryExtension ();
14391 return 0;
14393 _ACEOF
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14396 (eval $ac_link) 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest$ac_exeext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14416 if test "x$ac_cv_lib_soname_Xrender" = "x"
14417 then
14418 ac_cv_lib_soname_Xrender="libXrender.so"
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_lib_soname_Xrender="libXrender.so"
14426 rm -f conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_get_soname_save_LIBS
14430 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14431 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14432 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14433 then
14434 cat >>confdefs.h <<_ACEOF
14435 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14436 _ACEOF
14439 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14440 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14441 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444 ac_get_soname_save_LIBS=$LIBS
14445 LIBS="-lfreetype $X_LIBS $LIBS"
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h. */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14453 /* Override any gcc2 internal prototype to avoid an error. */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 /* We use char because int might match the return type of a gcc2
14458 builtin and then its argument prototype would still apply. */
14459 char FT_Init_FreeType ();
14461 main ()
14463 FT_Init_FreeType ();
14465 return 0;
14467 _ACEOF
14468 rm -f conftest.$ac_objext conftest$ac_exeext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14470 (eval $ac_link) 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest$ac_exeext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
14490 if test "x$ac_cv_lib_soname_freetype" = "x"
14491 then
14492 ac_cv_lib_soname_freetype="libfreetype.so"
14494 else
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 ac_cv_lib_soname_freetype="libfreetype.so"
14500 rm -f conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_get_soname_save_LIBS
14504 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14505 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14506 if test "x$ac_cv_lib_soname_freetype" != xNONE
14507 then
14508 cat >>confdefs.h <<_ACEOF
14509 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14510 _ACEOF
14513 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14514 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14515 if test "${ac_cv_lib_soname_GL+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 ac_get_soname_save_LIBS=$LIBS
14519 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14527 /* Override any gcc2 internal prototype to avoid an error. */
14528 #ifdef __cplusplus
14529 extern "C"
14530 #endif
14531 /* We use char because int might match the return type of a gcc2
14532 builtin and then its argument prototype would still apply. */
14533 char glXQueryExtension ();
14535 main ()
14537 glXQueryExtension ();
14539 return 0;
14541 _ACEOF
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14544 (eval $ac_link) 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
14564 if test "x$ac_cv_lib_soname_GL" = "x"
14565 then
14566 ac_cv_lib_soname_GL="libGL.so"
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_cv_lib_soname_GL="libGL.so"
14574 rm -f conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_get_soname_save_LIBS
14578 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14579 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14580 if test "x$ac_cv_lib_soname_GL" != xNONE
14581 then
14582 cat >>confdefs.h <<_ACEOF
14583 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14584 _ACEOF
14587 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14588 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14589 if test "${ac_cv_lib_soname_cups+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 ac_get_soname_save_LIBS=$LIBS
14593 LIBS="-lcups $LIBS"
14594 cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h. */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14601 /* Override any gcc2 internal prototype to avoid an error. */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 /* We use char because int might match the return type of a gcc2
14606 builtin and then its argument prototype would still apply. */
14607 char cupsGetDefault ();
14609 main ()
14611 cupsGetDefault ();
14613 return 0;
14615 _ACEOF
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14618 (eval $ac_link) 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest$ac_exeext'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
14638 if test "x$ac_cv_lib_soname_cups" = "x"
14639 then
14640 ac_cv_lib_soname_cups="libcups.so"
14642 else
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_cv_lib_soname_cups="libcups.so"
14648 rm -f conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14650 LIBS=$ac_get_soname_save_LIBS
14652 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14653 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14654 if test "x$ac_cv_lib_soname_cups" != xNONE
14655 then
14656 cat >>confdefs.h <<_ACEOF
14657 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14658 _ACEOF
14661 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14662 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14663 if test "${ac_cv_lib_soname_jack+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 ac_get_soname_save_LIBS=$LIBS
14667 LIBS="-ljack $LIBS"
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 /* Override any gcc2 internal prototype to avoid an error. */
14676 #ifdef __cplusplus
14677 extern "C"
14678 #endif
14679 /* We use char because int might match the return type of a gcc2
14680 builtin and then its argument prototype would still apply. */
14681 char jack_client_new ();
14683 main ()
14685 jack_client_new ();
14687 return 0;
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14692 (eval $ac_link) 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
14712 if test "x$ac_cv_lib_soname_jack" = "x"
14713 then
14714 ac_cv_lib_soname_jack="libjack.so"
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_lib_soname_jack="libjack.so"
14722 rm -f conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14724 LIBS=$ac_get_soname_save_LIBS
14726 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14727 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14728 if test "x$ac_cv_lib_soname_jack" != xNONE
14729 then
14730 cat >>confdefs.h <<_ACEOF
14731 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14732 _ACEOF
14735 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14736 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14737 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 ac_get_soname_save_LIBS=$LIBS
14741 LIBS="-lfontconfig $LIBS"
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14749 /* Override any gcc2 internal prototype to avoid an error. */
14750 #ifdef __cplusplus
14751 extern "C"
14752 #endif
14753 /* We use char because int might match the return type of a gcc2
14754 builtin and then its argument prototype would still apply. */
14755 char FcInit ();
14757 main ()
14759 FcInit ();
14761 return 0;
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766 (eval $ac_link) 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; } &&
14779 { ac_try='test -s conftest$ac_exeext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
14786 if test "x$ac_cv_lib_soname_fontconfig" = "x"
14787 then
14788 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14796 rm -f conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_get_soname_save_LIBS
14800 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14801 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14802 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
14803 then
14804 cat >>confdefs.h <<_ACEOF
14805 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14806 _ACEOF
14809 echo "$as_me:$LINENO: checking for -lssl soname" >&5
14810 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14811 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814 ac_get_soname_save_LIBS=$LIBS
14815 LIBS="-lssl $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14823 /* Override any gcc2 internal prototype to avoid an error. */
14824 #ifdef __cplusplus
14825 extern "C"
14826 #endif
14827 /* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14829 char SSL_library_init ();
14831 main ()
14833 SSL_library_init ();
14835 return 0;
14837 _ACEOF
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840 (eval $ac_link) 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest$ac_exeext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
14860 if test "x$ac_cv_lib_soname_ssl" = "x"
14861 then
14862 ac_cv_lib_soname_ssl="libssl.so"
14864 else
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_cv_lib_soname_ssl="libssl.so"
14870 rm -f conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872 LIBS=$ac_get_soname_save_LIBS
14874 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14875 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14876 if test "x$ac_cv_lib_soname_ssl" != xNONE
14877 then
14878 cat >>confdefs.h <<_ACEOF
14879 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14880 _ACEOF
14883 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14884 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14885 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 ac_get_soname_save_LIBS=$LIBS
14889 LIBS="-lcrypto $LIBS"
14890 cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h. */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14897 /* Override any gcc2 internal prototype to avoid an error. */
14898 #ifdef __cplusplus
14899 extern "C"
14900 #endif
14901 /* We use char because int might match the return type of a gcc2
14902 builtin and then its argument prototype would still apply. */
14903 char BIO_new_socket ();
14905 main ()
14907 BIO_new_socket ();
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14914 (eval $ac_link) 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest$ac_exeext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
14934 if test "x$ac_cv_lib_soname_crypto" = "x"
14935 then
14936 ac_cv_lib_soname_crypto="libcrypto.so"
14938 else
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_lib_soname_crypto="libcrypto.so"
14944 rm -f conftest.err conftest.$ac_objext \
14945 conftest$ac_exeext conftest.$ac_ext
14946 LIBS=$ac_get_soname_save_LIBS
14948 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14949 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
14950 if test "x$ac_cv_lib_soname_crypto" != xNONE
14951 then
14952 cat >>confdefs.h <<_ACEOF
14953 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14954 _ACEOF
14957 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
14958 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
14959 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 ac_get_soname_save_LIBS=$LIBS
14963 LIBS="-lncurses $LIBS"
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14971 /* Override any gcc2 internal prototype to avoid an error. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 /* We use char because int might match the return type of a gcc2
14976 builtin and then its argument prototype would still apply. */
14977 char waddch ();
14979 main ()
14981 waddch ();
14983 return 0;
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest$ac_exeext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15008 if test "x$ac_cv_lib_soname_ncurses" = "x"
15009 then
15010 ac_cv_lib_soname_ncurses="libncurses.so"
15012 else
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 ac_cv_lib_soname_ncurses="libncurses.so"
15018 rm -f conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 LIBS=$ac_get_soname_save_LIBS
15022 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15023 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15024 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15025 then
15026 cat >>confdefs.h <<_ACEOF
15027 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15028 _ACEOF
15031 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15032 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15033 if test "${ac_cv_lib_soname_curses+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036 ac_get_soname_save_LIBS=$LIBS
15037 LIBS="-lcurses $LIBS"
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15045 /* Override any gcc2 internal prototype to avoid an error. */
15046 #ifdef __cplusplus
15047 extern "C"
15048 #endif
15049 /* We use char because int might match the return type of a gcc2
15050 builtin and then its argument prototype would still apply. */
15051 char waddch ();
15053 main ()
15055 waddch ();
15057 return 0;
15059 _ACEOF
15060 rm -f conftest.$ac_objext conftest$ac_exeext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15062 (eval $ac_link) 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest$ac_exeext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15082 if test "x$ac_cv_lib_soname_curses" = "x"
15083 then
15084 ac_cv_lib_soname_curses="libcurses.so"
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_cv_lib_soname_curses="libcurses.so"
15092 rm -f conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15094 LIBS=$ac_get_soname_save_LIBS
15096 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15097 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15098 if test "x$ac_cv_lib_soname_curses" != xNONE
15099 then
15100 cat >>confdefs.h <<_ACEOF
15101 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15102 _ACEOF
15108 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15109 # for constant arguments. Useless!
15110 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15111 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15112 if test "${ac_cv_working_alloca_h+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <alloca.h>
15123 main ()
15125 char *p = (char *) alloca (2 * sizeof (int));
15127 return 0;
15129 _ACEOF
15130 rm -f conftest.$ac_objext conftest$ac_exeext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15132 (eval $ac_link) 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } &&
15139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest$ac_exeext'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 ac_cv_working_alloca_h=yes
15152 else
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ac_cv_working_alloca_h=no
15158 rm -f conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
15161 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15162 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15163 if test $ac_cv_working_alloca_h = yes; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define HAVE_ALLOCA_H 1
15167 _ACEOF
15171 echo "$as_me:$LINENO: checking for alloca" >&5
15172 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15173 if test "${ac_cv_func_alloca_works+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 #ifdef __GNUC__
15183 # define alloca __builtin_alloca
15184 #else
15185 # ifdef _MSC_VER
15186 # include <malloc.h>
15187 # define alloca _alloca
15188 # else
15189 # if HAVE_ALLOCA_H
15190 # include <alloca.h>
15191 # else
15192 # ifdef _AIX
15193 #pragma alloca
15194 # else
15195 # ifndef alloca /* predefined by HP cc +Olibcalls */
15196 char *alloca ();
15197 # endif
15198 # endif
15199 # endif
15200 # endif
15201 #endif
15204 main ()
15206 char *p = (char *) alloca (1);
15208 return 0;
15210 _ACEOF
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15213 (eval $ac_link) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest$ac_exeext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_func_alloca_works=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_cv_func_alloca_works=no
15239 rm -f conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15242 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15243 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15245 if test $ac_cv_func_alloca_works = yes; then
15247 cat >>confdefs.h <<\_ACEOF
15248 #define HAVE_ALLOCA 1
15249 _ACEOF
15251 else
15252 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15253 # that cause trouble. Some versions do not even contain alloca or
15254 # contain a buggy version. If you still want to use their alloca,
15255 # use ar to extract alloca.o from them instead of compiling alloca.c.
15257 ALLOCA=alloca.$ac_objext
15259 cat >>confdefs.h <<\_ACEOF
15260 #define C_ALLOCA 1
15261 _ACEOF
15264 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15265 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15266 if test "${ac_cv_os_cray+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h. */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 #if defined(CRAY) && ! defined(CRAY2)
15276 webecray
15277 #else
15278 wenotbecray
15279 #endif
15281 _ACEOF
15282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15283 $EGREP "webecray" >/dev/null 2>&1; then
15284 ac_cv_os_cray=yes
15285 else
15286 ac_cv_os_cray=no
15288 rm -f conftest*
15291 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15292 echo "${ECHO_T}$ac_cv_os_cray" >&6
15293 if test $ac_cv_os_cray = yes; then
15294 for ac_func in _getb67 GETB67 getb67; do
15295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15296 echo "$as_me:$LINENO: checking for $ac_func" >&5
15297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15298 if eval "test \"\${$as_ac_var+set}\" = set"; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15309 #define $ac_func innocuous_$ac_func
15311 /* System header to define __stub macros and hopefully few prototypes,
15312 which can conflict with char $ac_func (); below.
15313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15314 <limits.h> exists even on freestanding compilers. */
15316 #ifdef __STDC__
15317 # include <limits.h>
15318 #else
15319 # include <assert.h>
15320 #endif
15322 #undef $ac_func
15324 /* Override any gcc2 internal prototype to avoid an error. */
15325 #ifdef __cplusplus
15326 extern "C"
15328 #endif
15329 /* We use char because int might match the return type of a gcc2
15330 builtin and then its argument prototype would still apply. */
15331 char $ac_func ();
15332 /* The GNU C library defines this for functions which it implements
15333 to always fail with ENOSYS. Some functions are actually named
15334 something starting with __ and the normal name is an alias. */
15335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15336 choke me
15337 #else
15338 char (*f) () = $ac_func;
15339 #endif
15340 #ifdef __cplusplus
15342 #endif
15345 main ()
15347 return f != $ac_func;
15349 return 0;
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15354 (eval $ac_link) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest$ac_exeext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 eval "$as_ac_var=yes"
15374 else
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 eval "$as_ac_var=no"
15380 rm -f conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15385 if test `eval echo '${'$as_ac_var'}'` = yes; then
15387 cat >>confdefs.h <<_ACEOF
15388 #define CRAY_STACKSEG_END $ac_func
15389 _ACEOF
15391 break
15394 done
15397 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15398 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15399 if test "${ac_cv_c_stack_direction+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402 if test "$cross_compiling" = yes; then
15403 ac_cv_c_stack_direction=0
15404 else
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15412 find_stack_direction ()
15414 static char *addr = 0;
15415 auto char dummy;
15416 if (addr == 0)
15418 addr = &dummy;
15419 return find_stack_direction ();
15421 else
15422 return (&dummy > addr) ? 1 : -1;
15426 main ()
15428 exit (find_stack_direction () < 0);
15430 _ACEOF
15431 rm -f conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 ac_cv_c_stack_direction=1
15443 else
15444 echo "$as_me: program exited with status $ac_status" >&5
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ( exit $ac_status )
15449 ac_cv_c_stack_direction=-1
15451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15454 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15455 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15457 cat >>confdefs.h <<_ACEOF
15458 #define STACK_DIRECTION $ac_cv_c_stack_direction
15459 _ACEOF
15517 for ac_func in \
15518 _lwp_create \
15519 _lwp_self \
15520 _pclose \
15521 _popen \
15522 _snprintf \
15523 _spawnvp \
15524 _stricmp \
15525 _strnicmp \
15526 _vsnprintf \
15527 chsize \
15528 clone \
15529 finite \
15530 fpclass \
15531 ftruncate \
15532 ftruncate64 \
15533 getnetbyaddr \
15534 getnetbyname \
15535 getopt_long \
15536 getpagesize \
15537 getprotobyname \
15538 getprotobynumber \
15539 getpwuid \
15540 getservbyport \
15541 gettid \
15542 gettimeofday \
15543 inet_network \
15544 lseek64 \
15545 lstat \
15546 memmove \
15547 mmap \
15548 pclose \
15549 popen \
15550 pread \
15551 pwrite \
15552 readlink \
15553 rfork \
15554 select \
15555 sendmsg \
15556 settimeofday \
15557 sigaltstack \
15558 snprintf \
15559 spawnvp \
15560 statfs \
15561 strcasecmp \
15562 strerror \
15563 strncasecmp \
15564 tcgetattr \
15565 timegm \
15566 usleep \
15567 vfscanf \
15568 vsnprintf \
15569 wait4 \
15570 waitpid \
15573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 echo "$as_me:$LINENO: checking for $ac_func" >&5
15575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15576 if eval "test \"\${$as_ac_var+set}\" = set"; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15587 #define $ac_func innocuous_$ac_func
15589 /* System header to define __stub macros and hopefully few prototypes,
15590 which can conflict with char $ac_func (); below.
15591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15592 <limits.h> exists even on freestanding compilers. */
15594 #ifdef __STDC__
15595 # include <limits.h>
15596 #else
15597 # include <assert.h>
15598 #endif
15600 #undef $ac_func
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 #ifdef __cplusplus
15604 extern "C"
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609 char $ac_func ();
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614 choke me
15615 #else
15616 char (*f) () = $ac_func;
15617 #endif
15618 #ifdef __cplusplus
15620 #endif
15623 main ()
15625 return f != $ac_func;
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 eval "$as_ac_var=yes"
15652 else
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 eval "$as_ac_var=no"
15658 rm -f conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15663 if test `eval echo '${'$as_ac_var'}'` = yes; then
15664 cat >>confdefs.h <<_ACEOF
15665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15666 _ACEOF
15669 done
15755 for ac_header in \
15756 arpa/inet.h \
15757 arpa/nameser.h \
15758 cups/cups.h \
15759 direct.h \
15760 elf.h \
15761 float.h \
15762 fontconfig/fontconfig.h \
15763 getopt.h \
15764 ieeefp.h \
15765 io.h \
15766 jack/jack.h \
15767 libio.h \
15768 libutil.h \
15769 link.h \
15770 linux/cdrom.h \
15771 linux/hdreg.h \
15772 linux/input.h \
15773 linux/joystick.h \
15774 linux/major.h \
15775 linux/param.h \
15776 linux/serial.h \
15777 linux/ucdrom.h \
15778 machine/cpu.h \
15779 netdb.h \
15780 netinet/in.h \
15781 netinet/in_systm.h \
15782 netinet/tcp.h \
15783 netinet/tcp_fsm.h \
15784 openssl/ssl.h \
15785 process.h \
15786 pthread.h \
15787 pty.h \
15788 pwd.h \
15789 regex.h \
15790 sched.h \
15791 scsi/sg.h \
15792 scsi/scsi.h \
15793 scsi/scsi_ioctl.h \
15794 socket.h \
15795 stdint.h \
15796 strings.h \
15797 sys/cdio.h \
15798 sys/elf32.h \
15799 sys/errno.h \
15800 sys/exec_elf.h \
15801 sys/file.h \
15802 sys/filio.h \
15803 sys/inttypes.h \
15804 sys/ioctl.h \
15805 sys/ipc.h \
15806 sys/link.h \
15807 sys/lwp.h \
15808 sys/mman.h \
15809 sys/modem.h \
15810 sys/msg.h \
15811 sys/param.h \
15812 sys/poll.h \
15813 sys/ptrace.h \
15814 sys/reg.h \
15815 sys/scsiio.h \
15816 sys/shm.h \
15817 sys/signal.h \
15818 sys/socket.h \
15819 sys/sockio.h \
15820 sys/statfs.h \
15821 sys/strtio.h \
15822 sys/syscall.h \
15823 sys/sysctl.h \
15824 sys/time.h \
15825 sys/times.h \
15826 sys/uio.h \
15827 sys/un.h \
15828 sys/v86.h \
15829 sys/v86intr.h \
15830 sys/vfs.h \
15831 sys/vm86.h \
15832 sys/wait.h \
15833 syscall.h \
15834 termios.h \
15835 unistd.h \
15836 utime.h \
15837 valgrind/memcheck.h
15840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15842 echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15849 else
15850 # Is the header compilable?
15851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h. */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 $ac_includes_default
15860 #include <$ac_header>
15861 _ACEOF
15862 rm -f conftest.$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 ac_header_compiler=yes
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_header_compiler=no
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15892 echo "${ECHO_T}$ac_header_compiler" >&6
15894 # Is the header present?
15895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 #include <$ac_header>
15904 _ACEOF
15905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } >/dev/null; then
15913 if test -s conftest.err; then
15914 ac_cpp_err=$ac_c_preproc_warn_flag
15915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15916 else
15917 ac_cpp_err=
15919 else
15920 ac_cpp_err=yes
15922 if test -z "$ac_cpp_err"; then
15923 ac_header_preproc=yes
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 ac_header_preproc=no
15930 rm -f conftest.err conftest.$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15932 echo "${ECHO_T}$ac_header_preproc" >&6
15934 # So? What about this header?
15935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15936 yes:no: )
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15941 ac_header_preproc=yes
15943 no:yes:* )
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15957 cat <<\_ASBOX
15958 ## ------------------------------------ ##
15959 ## Report this to wine-devel@winehq.org ##
15960 ## ------------------------------------ ##
15961 _ASBOX
15963 sed "s/^/$as_me: WARNING: /" >&2
15965 esac
15966 echo "$as_me:$LINENO: checking for $ac_header" >&5
15967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971 eval "$as_ac_Header=\$ac_header_preproc"
15973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15978 cat >>confdefs.h <<_ACEOF
15979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15980 _ACEOF
15984 done
15986 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15987 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
15988 if test "${ac_cv_header_stat_broken+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h. */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 #include <sys/types.h>
15998 #include <sys/stat.h>
16000 #if defined(S_ISBLK) && defined(S_IFDIR)
16001 # if S_ISBLK (S_IFDIR)
16002 You lose.
16003 # endif
16004 #endif
16006 #if defined(S_ISBLK) && defined(S_IFCHR)
16007 # if S_ISBLK (S_IFCHR)
16008 You lose.
16009 # endif
16010 #endif
16012 #if defined(S_ISLNK) && defined(S_IFREG)
16013 # if S_ISLNK (S_IFREG)
16014 You lose.
16015 # endif
16016 #endif
16018 #if defined(S_ISSOCK) && defined(S_IFREG)
16019 # if S_ISSOCK (S_IFREG)
16020 You lose.
16021 # endif
16022 #endif
16024 _ACEOF
16025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16026 $EGREP "You lose" >/dev/null 2>&1; then
16027 ac_cv_header_stat_broken=yes
16028 else
16029 ac_cv_header_stat_broken=no
16031 rm -f conftest*
16034 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16035 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16036 if test $ac_cv_header_stat_broken = yes; then
16038 cat >>confdefs.h <<\_ACEOF
16039 #define STAT_MACROS_BROKEN 1
16040 _ACEOF
16048 for ac_header in sys/mount.h sys/user.h
16050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16051 echo "$as_me:$LINENO: checking for $ac_header" >&5
16052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 else
16056 cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h. */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062 #include <sys/types.h>
16063 #if HAVE_SYS_PARAM_H
16064 # include <sys/param.h>
16065 #endif
16067 #include <$ac_header>
16068 _ACEOF
16069 rm -f conftest.$ac_objext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest.$ac_objext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 eval "$as_ac_Header=yes"
16091 else
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 eval "$as_ac_Header=no"
16097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16102 cat >>confdefs.h <<_ACEOF
16103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16104 _ACEOF
16108 done
16116 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16119 echo "$as_me:$LINENO: checking for $ac_header" >&5
16120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h. */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 #include <sys/types.h>
16131 #if HAVE_SYS_SOCKET_H
16132 # include <sys/socket.h>
16133 #endif
16135 #include <$ac_header>
16136 _ACEOF
16137 rm -f conftest.$ac_objext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16139 (eval $ac_compile) 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 eval "$as_ac_Header=yes"
16159 else
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 eval "$as_ac_Header=no"
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16170 cat >>confdefs.h <<_ACEOF
16171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16172 _ACEOF
16176 done
16180 for ac_header in resolv.h
16182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16183 echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 #include <sys/types.h>
16195 #if HAVE_SYS_SOCKET_H
16196 # include <sys/socket.h>
16197 #endif
16198 #if HAVE_NETINET_IN_H
16199 # include <netinet/in.h>
16200 #endif
16201 #if HAVE_ARPA_NAMESER_H
16202 # include <arpa/nameser.h>
16203 #endif
16205 #include <$ac_header>
16206 _ACEOF
16207 rm -f conftest.$ac_objext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>conftest.er1
16210 ac_status=$?
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 eval "$as_ac_Header=yes"
16229 else
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 eval "$as_ac_Header=no"
16235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16240 cat >>confdefs.h <<_ACEOF
16241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16242 _ACEOF
16246 done
16250 for ac_header in netinet/ip.h
16252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16253 echo "$as_me:$LINENO: checking for $ac_header" >&5
16254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h. */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 #include <sys/types.h>
16265 #if HAVE_SYS_SOCKET_H
16266 # include <sys/socket.h>
16267 #endif
16268 #if HAVE_NETINET_IN_SYSTM_H
16269 # include <netinet/in_systm.h>
16270 #endif
16272 #include <$ac_header>
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16276 (eval $ac_compile) 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
16283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest.$ac_objext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 eval "$as_ac_Header=yes"
16296 else
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 eval "$as_ac_Header=no"
16302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16309 _ACEOF
16313 done
16317 for ac_header in ucontext.h
16319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320 echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 #include <signal.h>
16333 #include <$ac_header>
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 eval "$as_ac_Header=yes"
16357 else
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 eval "$as_ac_Header=no"
16363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370 _ACEOF
16374 done
16378 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16379 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16380 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <sys/types.h>
16390 #ifdef HAVE_SYS_SOCKET_H
16391 # include <sys/socket.h>
16392 #endif
16393 #include <netipx/ipx.h>
16395 main ()
16397 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16399 return 0;
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest.$ac_objext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_c_ipx_gnu="yes"
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_cv_c_ipx_gnu="no"
16430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16433 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16434 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16435 if test "$ac_cv_c_ipx_gnu" = "yes"
16436 then
16438 cat >>confdefs.h <<\_ACEOF
16439 #define HAVE_IPX_GNU 1
16440 _ACEOF
16444 if test "$ac_cv_c_ipx_gnu" = "no"
16445 then
16446 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16447 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16448 if test "${ac_cv_c_ipx_linux+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h. */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 #include <sys/types.h>
16458 #ifdef HAVE_SYS_SOCKET_H
16459 # include <sys/socket.h>
16460 #endif
16461 #include <asm/types.h>
16462 #include <linux/ipx.h>
16464 main ()
16466 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16468 return 0;
16470 _ACEOF
16471 rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_c_ipx_linux="yes"
16493 else
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 ac_cv_c_ipx_linux="no"
16499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16502 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16503 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16504 if test "$ac_cv_c_ipx_linux" = "yes"
16505 then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_IPX_LINUX 1
16509 _ACEOF
16515 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16516 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16517 if test "${ac_cv_c_const+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16528 main ()
16530 /* FIXME: Include the comments suggested by Paul. */
16531 #ifndef __cplusplus
16532 /* Ultrix mips cc rejects this. */
16533 typedef int charset[2];
16534 const charset x;
16535 /* SunOS 4.1.1 cc rejects this. */
16536 char const *const *ccp;
16537 char **p;
16538 /* NEC SVR4.0.2 mips cc rejects this. */
16539 struct point {int x, y;};
16540 static struct point const zero = {0,0};
16541 /* AIX XL C 1.02.0.0 rejects this.
16542 It does not let you subtract one const X* pointer from another in
16543 an arm of an if-expression whose if-part is not a constant
16544 expression */
16545 const char *g = "string";
16546 ccp = &g + (g ? g-g : 0);
16547 /* HPUX 7.0 cc rejects these. */
16548 ++ccp;
16549 p = (char**) ccp;
16550 ccp = (char const *const *) p;
16551 { /* SCO 3.2v4 cc rejects this. */
16552 char *t;
16553 char const *s = 0 ? (char *) 0 : (char const *) 0;
16555 *t++ = 0;
16557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16558 int x[] = {25, 17};
16559 const int *foo = &x[0];
16560 ++foo;
16562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16563 typedef const int *iptr;
16564 iptr p = 0;
16565 ++p;
16567 { /* AIX XL C 1.02.0.0 rejects this saying
16568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16569 struct s { int j; const int *ap[3]; };
16570 struct s *b; b->j = 5;
16572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16573 const int foo = 10;
16575 #endif
16578 return 0;
16580 _ACEOF
16581 rm -f conftest.$ac_objext
16582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16583 (eval $ac_compile) 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; } &&
16596 { ac_try='test -s conftest.$ac_objext'
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16602 ac_cv_c_const=yes
16603 else
16604 echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16607 ac_cv_c_const=no
16609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16611 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16612 echo "${ECHO_T}$ac_cv_c_const" >&6
16613 if test $ac_cv_c_const = no; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define const
16617 _ACEOF
16621 echo "$as_me:$LINENO: checking for inline" >&5
16622 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16623 if test "${ac_cv_c_inline+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 ac_cv_c_inline=no
16627 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
16635 typedef int foo_t;
16636 static $ac_kw foo_t static_foo () {return 0; }
16637 $ac_kw foo_t foo () {return 0; }
16638 #endif
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 ac_cv_c_inline=$ac_kw; break
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16669 done
16672 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16673 echo "${ECHO_T}$ac_cv_c_inline" >&6
16676 case $ac_cv_c_inline in
16677 inline | yes) ;;
16679 case $ac_cv_c_inline in
16680 no) ac_val=;;
16681 *) ac_val=$ac_cv_c_inline;;
16682 esac
16683 cat >>confdefs.h <<_ACEOF
16684 #ifndef __cplusplus
16685 #define inline $ac_val
16686 #endif
16687 _ACEOF
16689 esac
16691 echo "$as_me:$LINENO: checking for mode_t" >&5
16692 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16693 if test "${ac_cv_type_mode_t+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 $ac_includes_default
16704 main ()
16706 if ((mode_t *) 0)
16707 return 0;
16708 if (sizeof (mode_t))
16709 return 0;
16711 return 0;
16713 _ACEOF
16714 rm -f conftest.$ac_objext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716 (eval $ac_compile) 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_type_mode_t=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_type_mode_t=no
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16744 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16745 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16746 if test $ac_cv_type_mode_t = yes; then
16748 cat >>confdefs.h <<_ACEOF
16749 #define HAVE_MODE_T 1
16750 _ACEOF
16754 echo "$as_me:$LINENO: checking for off_t" >&5
16755 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16756 if test "${ac_cv_type_off_t+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16767 main ()
16769 if ((off_t *) 0)
16770 return 0;
16771 if (sizeof (off_t))
16772 return 0;
16774 return 0;
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779 (eval $ac_compile) 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_type_off_t=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_type_off_t=no
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16807 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16808 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16809 if test $ac_cv_type_off_t = yes; then
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_OFF_T 1
16813 _ACEOF
16817 echo "$as_me:$LINENO: checking for pid_t" >&5
16818 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16819 if test "${ac_cv_type_pid_t+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822 cat >conftest.$ac_ext <<_ACEOF
16823 /* confdefs.h. */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h. */
16828 $ac_includes_default
16830 main ()
16832 if ((pid_t *) 0)
16833 return 0;
16834 if (sizeof (pid_t))
16835 return 0;
16837 return 0;
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16842 (eval $ac_compile) 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16861 ac_cv_type_pid_t=yes
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_type_pid_t=no
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16871 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16872 if test $ac_cv_type_pid_t = yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_PID_T 1
16876 _ACEOF
16880 echo "$as_me:$LINENO: checking for size_t" >&5
16881 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16882 if test "${ac_cv_type_size_t+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885 cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h. */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 $ac_includes_default
16893 main ()
16895 if ((size_t *) 0)
16896 return 0;
16897 if (sizeof (size_t))
16898 return 0;
16900 return 0;
16902 _ACEOF
16903 rm -f conftest.$ac_objext
16904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16905 (eval $ac_compile) 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_type_size_t=yes
16925 else
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_cv_type_size_t=no
16931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16933 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16934 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16935 if test $ac_cv_type_size_t = yes; then
16937 cat >>confdefs.h <<_ACEOF
16938 #define HAVE_SIZE_T 1
16939 _ACEOF
16943 echo "$as_me:$LINENO: checking for ssize_t" >&5
16944 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16945 if test "${ac_cv_type_ssize_t+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 $ac_includes_default
16956 main ()
16958 if ((ssize_t *) 0)
16959 return 0;
16960 if (sizeof (ssize_t))
16961 return 0;
16963 return 0;
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_type_ssize_t=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_cv_type_ssize_t=no
16994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16996 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16997 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16998 if test $ac_cv_type_ssize_t = yes; then
17000 cat >>confdefs.h <<_ACEOF
17001 #define HAVE_SSIZE_T 1
17002 _ACEOF
17007 echo "$as_me:$LINENO: checking for long long" >&5
17008 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17009 if test "${ac_cv_type_long_long+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012 cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h. */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 $ac_includes_default
17020 main ()
17022 if ((long long *) 0)
17023 return 0;
17024 if (sizeof (long long))
17025 return 0;
17027 return 0;
17029 _ACEOF
17030 rm -f conftest.$ac_objext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17032 (eval $ac_compile) 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest.$ac_objext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_cv_type_long_long=yes
17052 else
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 ac_cv_type_long_long=no
17058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17060 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17061 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17063 echo "$as_me:$LINENO: checking size of long long" >&5
17064 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17065 if test "${ac_cv_sizeof_long_long+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 if test "$ac_cv_type_long_long" = yes; then
17069 # The cast to unsigned long works around a bug in the HP C Compiler
17070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17072 # This bug is HP SR number 8606223364.
17073 if test "$cross_compiling" = yes; then
17074 # Depending upon the size, compute the lo and hi bounds.
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 $ac_includes_default
17083 main ()
17085 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17086 test_array [0] = 0
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17094 (eval $ac_compile) 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest.$ac_objext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_lo=0 ac_mid=0
17114 while :; do
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 $ac_includes_default
17123 main ()
17125 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17126 test_array [0] = 0
17129 return 0;
17131 _ACEOF
17132 rm -f conftest.$ac_objext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134 (eval $ac_compile) 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_hi=$ac_mid; break
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_lo=`expr $ac_mid + 1`
17159 if test $ac_lo -le $ac_mid; then
17160 ac_lo= ac_hi=
17161 break
17163 ac_mid=`expr 2 '*' $ac_mid + 1`
17165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17166 done
17167 else
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17179 main ()
17181 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17182 test_array [0] = 0
17185 return 0;
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest.$ac_objext'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_hi=-1 ac_mid=-1
17210 while :; do
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $ac_includes_default
17219 main ()
17221 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17222 test_array [0] = 0
17225 return 0;
17227 _ACEOF
17228 rm -f conftest.$ac_objext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17230 (eval $ac_compile) 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_lo=$ac_mid; break
17250 else
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 ac_hi=`expr '(' $ac_mid ')' - 1`
17255 if test $ac_mid -le $ac_hi; then
17256 ac_lo= ac_hi=
17257 break
17259 ac_mid=`expr 2 '*' $ac_mid`
17261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17262 done
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_lo= ac_hi=
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 # Binary search between lo and hi bounds.
17273 while test "x$ac_lo" != "x$ac_hi"; do
17274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17283 main ()
17285 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17286 test_array [0] = 0
17289 return 0;
17291 _ACEOF
17292 rm -f conftest.$ac_objext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17294 (eval $ac_compile) 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17307 { ac_try='test -s conftest.$ac_objext'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 ac_hi=$ac_mid
17314 else
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 ac_lo=`expr '(' $ac_mid ')' + 1`
17320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17321 done
17322 case $ac_lo in
17323 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17325 See \`config.log' for more details." >&5
17326 echo "$as_me: error: cannot compute sizeof (long long), 77
17327 See \`config.log' for more details." >&2;}
17328 { (exit 1); exit 1; }; } ;;
17329 esac
17330 else
17331 if test "$cross_compiling" = yes; then
17332 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17333 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17334 { (exit 1); exit 1; }; }
17335 else
17336 cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h. */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 $ac_includes_default
17343 long longval () { return (long) (sizeof (long long)); }
17344 unsigned long ulongval () { return (long) (sizeof (long long)); }
17345 #include <stdio.h>
17346 #include <stdlib.h>
17348 main ()
17351 FILE *f = fopen ("conftest.val", "w");
17352 if (! f)
17353 exit (1);
17354 if (((long) (sizeof (long long))) < 0)
17356 long i = longval ();
17357 if (i != ((long) (sizeof (long long))))
17358 exit (1);
17359 fprintf (f, "%ld\n", i);
17361 else
17363 unsigned long i = ulongval ();
17364 if (i != ((long) (sizeof (long long))))
17365 exit (1);
17366 fprintf (f, "%lu\n", i);
17368 exit (ferror (f) || fclose (f) != 0);
17371 return 0;
17373 _ACEOF
17374 rm -f conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376 (eval $ac_link) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_sizeof_long_long=`cat conftest.val`
17386 else
17387 echo "$as_me: program exited with status $ac_status" >&5
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ( exit $ac_status )
17392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17393 See \`config.log' for more details." >&5
17394 echo "$as_me: error: cannot compute sizeof (long long), 77
17395 See \`config.log' for more details." >&2;}
17396 { (exit 1); exit 1; }; }
17398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17401 rm -f conftest.val
17402 else
17403 ac_cv_sizeof_long_long=0
17406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17407 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17408 cat >>confdefs.h <<_ACEOF
17409 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17410 _ACEOF
17414 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17415 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17416 if test "${wine_cv_linux_input_h+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h. */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17426 #include <linux/input.h>
17429 main ()
17432 int foo = EVIOCGBIT(EV_ABS,42);
17433 int bar = BTN_PINKIE;
17434 int fortytwo = 42;
17437 return 0;
17439 _ACEOF
17440 rm -f conftest.$ac_objext
17441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17442 (eval $ac_compile) 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 wine_cv_linux_input_h=yes
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 wine_cv_linux_input_h=no
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17472 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17473 if test "$wine_cv_linux_input_h" = "yes"
17474 then
17476 cat >>confdefs.h <<\_ACEOF
17477 #define HAVE_CORRECT_LINUXINPUT_H 1
17478 _ACEOF
17483 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17484 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17485 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17495 #include <netdb.h>
17498 main ()
17501 char *name=NULL;
17502 struct hostent he;
17503 struct hostent *result;
17504 char *buf=NULL;
17505 int bufsize=0;
17506 int res,errnr;
17507 char *addr=NULL;
17508 int addrlen=0;
17509 int addrtype=0;
17510 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17511 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17514 return 0;
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17520 ac_status=$?
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 wine_cv_linux_gethostbyname_r_6=yes
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 wine_cv_linux_gethostbyname_r_6=no
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17551 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17552 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17553 then
17555 cat >>confdefs.h <<\_ACEOF
17556 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17557 _ACEOF
17561 if test "$ac_cv_header_linux_joystick_h" = "yes"
17562 then
17563 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17564 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17565 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17575 #include <sys/ioctl.h>
17576 #include <linux/joystick.h>
17578 struct js_event blub;
17579 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17580 #error "no 2.2 header"
17581 #endif
17584 main ()
17586 /*empty*/
17588 return 0;
17590 _ACEOF
17591 rm -f conftest.$ac_objext
17592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593 (eval $ac_compile) 2>conftest.er1
17594 ac_status=$?
17595 grep -v '^ *+' conftest.er1 >conftest.err
17596 rm -f conftest.er1
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest.$ac_objext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 wine_cv_linux_joystick_22_api=yes
17613 else
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 wine_cv_linux_joystick_22_api=no
17619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17622 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17623 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17624 if test "$wine_cv_linux_joystick_22_api" = "yes"
17625 then
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_LINUX_22_JOYSTICK_API 1
17629 _ACEOF
17635 if test "$ac_cv_header_sys_vfs_h" = "yes"
17636 then
17637 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17638 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17639 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17649 #include <sys/types.h>
17650 #ifdef HAVE_SYS_PARAM_H
17651 # include <sys/param.h>
17652 #endif
17653 #include <sys/vfs.h>
17656 main ()
17659 struct statfs stfs;
17661 memset(&stfs,0,sizeof(stfs));
17664 return 0;
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669 (eval $ac_compile) 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 wine_cv_sys_vfs_has_statfs=yes
17689 else
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 wine_cv_sys_vfs_has_statfs=no
17696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17699 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17700 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17701 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17702 then
17704 cat >>confdefs.h <<\_ACEOF
17705 #define STATFS_DEFINED_BY_SYS_VFS 1
17706 _ACEOF
17711 if test "$ac_cv_header_sys_statfs_h" = "yes"
17712 then
17713 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17714 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17715 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718 cat >conftest.$ac_ext <<_ACEOF
17719 /* confdefs.h. */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17725 #include <sys/types.h>
17726 #ifdef HAVE_SYS_PARAM_H
17727 # include <sys/param.h>
17728 #endif
17729 #include <sys/statfs.h>
17732 main ()
17735 struct statfs stfs;
17738 return 0;
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17743 (eval $ac_compile) 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 wine_cv_sys_statfs_has_statfs=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 wine_cv_sys_statfs_has_statfs=no
17770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17773 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
17774 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
17775 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17776 then
17778 cat >>confdefs.h <<\_ACEOF
17779 #define STATFS_DEFINED_BY_SYS_STATFS 1
17780 _ACEOF
17785 if test "$ac_cv_header_sys_mount_h" = "yes"
17786 then
17787 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
17788 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17789 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17799 #include <sys/types.h>
17800 #ifdef HAVE_SYS_PARAM_H
17801 # include <sys/param.h>
17802 #endif
17803 #include <sys/mount.h>
17806 main ()
17809 struct statfs stfs;
17812 return 0;
17814 _ACEOF
17815 rm -f conftest.$ac_objext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17817 (eval $ac_compile) 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 wine_cv_sys_mount_has_statfs=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 wine_cv_sys_mount_has_statfs=no
17844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17847 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
17848 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
17849 if test "$wine_cv_sys_mount_has_statfs" = "yes"
17850 then
17852 cat >>confdefs.h <<\_ACEOF
17853 #define STATFS_DEFINED_BY_SYS_MOUNT 1
17854 _ACEOF
17860 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17861 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17862 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865 cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h. */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 #include <sys/types.h>
17872 #ifdef HAVE_SYS_PARAM_H
17873 # include <sys/param.h>
17874 #endif
17875 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17876 # include <sys/mount.h>
17877 #else
17878 # ifdef STATFS_DEFINED_BY_SYS_VFS
17879 # include <sys/vfs.h>
17880 # else
17881 # ifdef STATFS_DEFINED_BY_SYS_STATFS
17882 # include <sys/statfs.h>
17883 # endif
17884 # endif
17885 #endif
17888 main ()
17890 static struct statfs ac_aggr;
17891 if (ac_aggr.f_bfree)
17892 return 0;
17894 return 0;
17896 _ACEOF
17897 rm -f conftest.$ac_objext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17899 (eval $ac_compile) 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_member_struct_statfs_f_bfree=yes
17919 else
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h. */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 #include <sys/types.h>
17930 #ifdef HAVE_SYS_PARAM_H
17931 # include <sys/param.h>
17932 #endif
17933 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17934 # include <sys/mount.h>
17935 #else
17936 # ifdef STATFS_DEFINED_BY_SYS_VFS
17937 # include <sys/vfs.h>
17938 # else
17939 # ifdef STATFS_DEFINED_BY_SYS_STATFS
17940 # include <sys/statfs.h>
17941 # endif
17942 # endif
17943 #endif
17946 main ()
17948 static struct statfs ac_aggr;
17949 if (sizeof ac_aggr.f_bfree)
17950 return 0;
17952 return 0;
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957 (eval $ac_compile) 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest.$ac_objext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_member_struct_statfs_f_bfree=yes
17977 else
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17981 ac_cv_member_struct_statfs_f_bfree=no
17983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17987 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17988 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
17989 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17991 cat >>confdefs.h <<_ACEOF
17992 #define HAVE_STRUCT_STATFS_F_BFREE 1
17993 _ACEOF
17997 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17998 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
17999 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 #include <sys/types.h>
18009 #ifdef HAVE_SYS_PARAM_H
18010 # include <sys/param.h>
18011 #endif
18012 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18013 # include <sys/mount.h>
18014 #else
18015 # ifdef STATFS_DEFINED_BY_SYS_VFS
18016 # include <sys/vfs.h>
18017 # else
18018 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18019 # include <sys/statfs.h>
18020 # endif
18021 # endif
18022 #endif
18025 main ()
18027 static struct statfs ac_aggr;
18028 if (ac_aggr.f_bavail)
18029 return 0;
18031 return 0;
18033 _ACEOF
18034 rm -f conftest.$ac_objext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18036 (eval $ac_compile) 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_member_struct_statfs_f_bavail=yes
18056 else
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h. */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 #include <sys/types.h>
18067 #ifdef HAVE_SYS_PARAM_H
18068 # include <sys/param.h>
18069 #endif
18070 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18071 # include <sys/mount.h>
18072 #else
18073 # ifdef STATFS_DEFINED_BY_SYS_VFS
18074 # include <sys/vfs.h>
18075 # else
18076 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18077 # include <sys/statfs.h>
18078 # endif
18079 # endif
18080 #endif
18083 main ()
18085 static struct statfs ac_aggr;
18086 if (sizeof ac_aggr.f_bavail)
18087 return 0;
18089 return 0;
18091 _ACEOF
18092 rm -f conftest.$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest.$ac_objext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_member_struct_statfs_f_bavail=yes
18114 else
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_member_struct_statfs_f_bavail=no
18120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18124 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18125 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18126 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18128 cat >>confdefs.h <<_ACEOF
18129 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18130 _ACEOF
18136 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18137 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18138 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h. */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147 #include <sys/types.h>
18148 #ifdef HAVE_SYS_SOCKET_H
18149 # include <sys/socket.h>
18150 #endif
18151 #ifdef HAVE_SYS_UN_H
18152 # include <sys/un.h>
18153 #endif
18156 main ()
18158 static struct msghdr ac_aggr;
18159 if (ac_aggr.msg_accrights)
18160 return 0;
18162 return 0;
18164 _ACEOF
18165 rm -f conftest.$ac_objext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18167 (eval $ac_compile) 2>conftest.er1
18168 ac_status=$?
18169 grep -v '^ *+' conftest.er1 >conftest.err
18170 rm -f conftest.er1
18171 cat conftest.err >&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } &&
18174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; } &&
18180 { ac_try='test -s conftest.$ac_objext'
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
18186 ac_cv_member_struct_msghdr_msg_accrights=yes
18187 else
18188 echo "$as_me: failed program was:" >&5
18189 sed 's/^/| /' conftest.$ac_ext >&5
18191 cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h. */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 #include <sys/types.h>
18198 #ifdef HAVE_SYS_SOCKET_H
18199 # include <sys/socket.h>
18200 #endif
18201 #ifdef HAVE_SYS_UN_H
18202 # include <sys/un.h>
18203 #endif
18206 main ()
18208 static struct msghdr ac_aggr;
18209 if (sizeof ac_aggr.msg_accrights)
18210 return 0;
18212 return 0;
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest.$ac_objext'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_member_struct_msghdr_msg_accrights=yes
18237 else
18238 echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18241 ac_cv_member_struct_msghdr_msg_accrights=no
18243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18248 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18249 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18251 cat >>confdefs.h <<_ACEOF
18252 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18253 _ACEOF
18257 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18258 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18259 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262 cat >conftest.$ac_ext <<_ACEOF
18263 /* confdefs.h. */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18268 #include <sys/types.h>
18269 #ifdef HAVE_SYS_SOCKET_H
18270 # include <sys/socket.h>
18271 #endif
18272 #ifdef HAVE_SYS_UN_H
18273 # include <sys/un.h>
18274 #endif
18277 main ()
18279 static struct sockaddr ac_aggr;
18280 if (ac_aggr.sa_len)
18281 return 0;
18283 return 0;
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_member_struct_sockaddr_sa_len=yes
18308 else
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <sys/types.h>
18319 #ifdef HAVE_SYS_SOCKET_H
18320 # include <sys/socket.h>
18321 #endif
18322 #ifdef HAVE_SYS_UN_H
18323 # include <sys/un.h>
18324 #endif
18327 main ()
18329 static struct sockaddr ac_aggr;
18330 if (sizeof ac_aggr.sa_len)
18331 return 0;
18333 return 0;
18335 _ACEOF
18336 rm -f conftest.$ac_objext
18337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18338 (eval $ac_compile) 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } &&
18345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_member_struct_sockaddr_sa_len=yes
18358 else
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_cv_member_struct_sockaddr_sa_len=no
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18369 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18370 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18374 _ACEOF
18378 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18379 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18380 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 #include <sys/types.h>
18390 #ifdef HAVE_SYS_SOCKET_H
18391 # include <sys/socket.h>
18392 #endif
18393 #ifdef HAVE_SYS_UN_H
18394 # include <sys/un.h>
18395 #endif
18398 main ()
18400 static struct sockaddr_un ac_aggr;
18401 if (ac_aggr.sun_len)
18402 return 0;
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18409 (eval $ac_compile) 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest.$ac_objext'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428 ac_cv_member_struct_sockaddr_un_sun_len=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #include <sys/types.h>
18440 #ifdef HAVE_SYS_SOCKET_H
18441 # include <sys/socket.h>
18442 #endif
18443 #ifdef HAVE_SYS_UN_H
18444 # include <sys/un.h>
18445 #endif
18448 main ()
18450 static struct sockaddr_un ac_aggr;
18451 if (sizeof ac_aggr.sun_len)
18452 return 0;
18454 return 0;
18456 _ACEOF
18457 rm -f conftest.$ac_objext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18459 (eval $ac_compile) 2>conftest.er1
18460 ac_status=$?
18461 grep -v '^ *+' conftest.er1 >conftest.err
18462 rm -f conftest.er1
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_member_struct_sockaddr_un_sun_len=yes
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_member_struct_sockaddr_un_sun_len=no
18485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18489 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18490 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18491 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18493 cat >>confdefs.h <<_ACEOF
18494 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18495 _ACEOF
18501 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18502 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18503 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <signal.h>
18515 main ()
18517 static siginfo_t ac_aggr;
18518 if (ac_aggr.si_fd)
18519 return 0;
18521 return 0;
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18526 (eval $ac_compile) 2>conftest.er1
18527 ac_status=$?
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
18533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest.$ac_objext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_member_siginfo_t_si_fd=yes
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h. */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <signal.h>
18559 main ()
18561 static siginfo_t ac_aggr;
18562 if (sizeof ac_aggr.si_fd)
18563 return 0;
18565 return 0;
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570 (eval $ac_compile) 2>conftest.er1
18571 ac_status=$?
18572 grep -v '^ *+' conftest.er1 >conftest.err
18573 rm -f conftest.er1
18574 cat conftest.err >&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_member_siginfo_t_si_fd=yes
18590 else
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_cv_member_siginfo_t_si_fd=no
18596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18600 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18601 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18602 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18604 cat >>confdefs.h <<_ACEOF
18605 #define HAVE_SIGINFO_T_SI_FD 1
18606 _ACEOF
18612 echo "$as_me:$LINENO: checking for struct option.name" >&5
18613 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18614 if test "${ac_cv_member_struct_option_name+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 #ifdef HAVE_GETOPT_H
18624 #include <getopt.h>
18625 #endif
18628 main ()
18630 static struct option ac_aggr;
18631 if (ac_aggr.name)
18632 return 0;
18634 return 0;
18636 _ACEOF
18637 rm -f conftest.$ac_objext
18638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18639 (eval $ac_compile) 2>conftest.er1
18640 ac_status=$?
18641 grep -v '^ *+' conftest.er1 >conftest.err
18642 rm -f conftest.er1
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } &&
18646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } &&
18652 { ac_try='test -s conftest.$ac_objext'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 ac_cv_member_struct_option_name=yes
18659 else
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h. */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 #ifdef HAVE_GETOPT_H
18670 #include <getopt.h>
18671 #endif
18674 main ()
18676 static struct option ac_aggr;
18677 if (sizeof ac_aggr.name)
18678 return 0;
18680 return 0;
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685 (eval $ac_compile) 2>conftest.er1
18686 ac_status=$?
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_member_struct_option_name=yes
18705 else
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_member_struct_option_name=no
18711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18716 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18717 if test $ac_cv_member_struct_option_name = yes; then
18719 cat >>confdefs.h <<_ACEOF
18720 #define HAVE_STRUCT_OPTION_NAME 1
18721 _ACEOF
18727 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18728 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18729 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h. */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 $ac_includes_default
18740 main ()
18742 static struct stat ac_aggr;
18743 if (ac_aggr.st_blocks)
18744 return 0;
18746 return 0;
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18751 (eval $ac_compile) 2>conftest.er1
18752 ac_status=$?
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_cv_member_struct_stat_st_blocks=yes
18771 else
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 $ac_includes_default
18783 main ()
18785 static struct stat ac_aggr;
18786 if (sizeof ac_aggr.st_blocks)
18787 return 0;
18789 return 0;
18791 _ACEOF
18792 rm -f conftest.$ac_objext
18793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18794 (eval $ac_compile) 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_member_struct_stat_st_blocks=yes
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_cv_member_struct_stat_st_blocks=no
18820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18824 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18825 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18826 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18830 _ACEOF
18837 case $host_cpu in
18838 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
18839 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
18840 if test "${ac_cv_cpp_def___i386__+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h. */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 #ifndef __i386__
18851 #endif
18852 _ACEOF
18853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18854 $EGREP "yes" >/dev/null 2>&1; then
18855 ac_cv_cpp_def___i386__=yes
18856 else
18857 ac_cv_cpp_def___i386__=no
18859 rm -f conftest*
18862 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
18863 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
18864 if test $ac_cv_cpp_def___i386__ = yes; then
18865 CFLAGS="$CFLAGS -D__i386__"
18866 LINTFLAGS="$LINTFLAGS -D__i386__"
18869 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
18870 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
18871 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #ifndef __ALPHA__
18882 #endif
18883 _ACEOF
18884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18885 $EGREP "yes" >/dev/null 2>&1; then
18886 ac_cv_cpp_def___ALPHA__=yes
18887 else
18888 ac_cv_cpp_def___ALPHA__=no
18890 rm -f conftest*
18893 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
18894 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
18895 if test $ac_cv_cpp_def___ALPHA__ = yes; then
18896 CFLAGS="$CFLAGS -D__ALPHA__"
18897 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
18900 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
18901 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
18902 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905 cat >conftest.$ac_ext <<_ACEOF
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 #ifndef __sparc__
18913 #endif
18914 _ACEOF
18915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18916 $EGREP "yes" >/dev/null 2>&1; then
18917 ac_cv_cpp_def___sparc__=yes
18918 else
18919 ac_cv_cpp_def___sparc__=no
18921 rm -f conftest*
18924 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
18925 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
18926 if test $ac_cv_cpp_def___sparc__ = yes; then
18927 CFLAGS="$CFLAGS -D__sparc__"
18928 LINTFLAGS="$LINTFLAGS -D__sparc__"
18931 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
18932 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
18933 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #ifndef __powerpc__
18944 #endif
18945 _ACEOF
18946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18947 $EGREP "yes" >/dev/null 2>&1; then
18948 ac_cv_cpp_def___powerpc__=yes
18949 else
18950 ac_cv_cpp_def___powerpc__=no
18952 rm -f conftest*
18955 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
18956 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
18957 if test $ac_cv_cpp_def___powerpc__ = yes; then
18958 CFLAGS="$CFLAGS -D__powerpc__"
18959 LINTFLAGS="$LINTFLAGS -D__powerpc__"
18962 esac
18964 case $host_vendor in
18965 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
18966 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
18967 if test "${ac_cv_cpp_def___sun__+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h. */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 #ifndef __sun__
18978 #endif
18979 _ACEOF
18980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18981 $EGREP "yes" >/dev/null 2>&1; then
18982 ac_cv_cpp_def___sun__=yes
18983 else
18984 ac_cv_cpp_def___sun__=no
18986 rm -f conftest*
18989 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
18990 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
18991 if test $ac_cv_cpp_def___sun__ = yes; then
18992 CFLAGS="$CFLAGS -D__sun__"
18993 LINTFLAGS="$LINTFLAGS -D__sun__"
18996 esac
19002 ac_config_commands="$ac_config_commands controls"
19004 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19006 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19008 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19010 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19012 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19014 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19016 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
19018 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
19020 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
19022 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19024 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19026 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19028 ac_config_commands="$ac_config_commands dlls/user/dde"
19030 ac_config_commands="$ac_config_commands dlls/user/resources"
19032 ac_config_commands="$ac_config_commands dlls/wineps/data"
19034 ac_config_commands="$ac_config_commands files"
19036 ac_config_commands="$ac_config_commands graphics"
19038 ac_config_commands="$ac_config_commands include/wine"
19040 ac_config_commands="$ac_config_commands misc"
19042 ac_config_commands="$ac_config_commands objects"
19044 ac_config_commands="$ac_config_commands programs/regedit/tests"
19046 ac_config_commands="$ac_config_commands windows"
19049 MAKE_RULES=Make.rules
19052 MAKE_DLL_RULES=dlls/Makedll.rules
19055 MAKE_TEST_RULES=dlls/Maketest.rules
19058 MAKE_LIB_RULES=libs/Makelib.rules
19061 MAKE_PROG_RULES=programs/Makeprog.rules
19064 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/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/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/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/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/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/version/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"
19067 cat >confcache <<\_ACEOF
19068 # This file is a shell script that caches the results of configure
19069 # tests run on this system so they can be shared between configure
19070 # scripts and configure runs, see configure's option --config-cache.
19071 # It is not useful on other systems. If it contains results you don't
19072 # want to keep, you may remove or edit it.
19074 # config.status only pays attention to the cache file if you give it
19075 # the --recheck option to rerun configure.
19077 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19079 # following values.
19081 _ACEOF
19083 # The following way of writing the cache mishandles newlines in values,
19084 # but we know of no workaround that is simple, portable, and efficient.
19085 # So, don't put newlines in cache variables' values.
19086 # Ultrix sh set writes to stderr and can't be redirected directly,
19087 # and sets the high bit in the cache file unless we assign to the vars.
19089 (set) 2>&1 |
19090 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19091 *ac_space=\ *)
19092 # `set' does not quote correctly, so add quotes (double-quote
19093 # substitution turns \\\\ into \\, and sed turns \\ into \).
19094 sed -n \
19095 "s/'/'\\\\''/g;
19096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19099 # `set' quotes correctly as required by POSIX, so do not add quotes.
19100 sed -n \
19101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19103 esac;
19105 sed '
19106 t clear
19107 : clear
19108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19109 t end
19110 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19111 : end' >>confcache
19112 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19113 if test -w $cache_file; then
19114 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19115 cat confcache >$cache_file
19116 else
19117 echo "not updating unwritable cache $cache_file"
19120 rm -f confcache
19122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19123 # Let make expand exec_prefix.
19124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19128 # trailing colons and then remove the whole line if VPATH becomes empty
19129 # (actually we leave an empty line to preserve line numbers).
19130 if test "x$srcdir" = x.; then
19131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19132 s/:*\$(srcdir):*/:/;
19133 s/:*\${srcdir}:*/:/;
19134 s/:*@srcdir@:*/:/;
19135 s/^\([^=]*=[ ]*\):*/\1/;
19136 s/:*$//;
19137 s/^[^=]*=[ ]*$//;
19141 DEFS=-DHAVE_CONFIG_H
19143 ac_libobjs=
19144 ac_ltlibobjs=
19145 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19146 # 1. Remove the extension, and $U if already installed.
19147 ac_i=`echo "$ac_i" |
19148 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19149 # 2. Add them.
19150 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19151 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19152 done
19153 LIBOBJS=$ac_libobjs
19155 LTLIBOBJS=$ac_ltlibobjs
19159 : ${CONFIG_STATUS=./config.status}
19160 ac_clean_files_save=$ac_clean_files
19161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19164 cat >$CONFIG_STATUS <<_ACEOF
19165 #! $SHELL
19166 # Generated by $as_me.
19167 # Run this file to recreate the current configuration.
19168 # Compiler output produced by configure, useful for debugging
19169 # configure, is in config.log if it exists.
19171 debug=false
19172 ac_cs_recheck=false
19173 ac_cs_silent=false
19174 SHELL=\${CONFIG_SHELL-$SHELL}
19175 _ACEOF
19177 cat >>$CONFIG_STATUS <<\_ACEOF
19178 ## --------------------- ##
19179 ## M4sh Initialization. ##
19180 ## --------------------- ##
19182 # Be Bourne compatible
19183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19184 emulate sh
19185 NULLCMD=:
19186 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19187 # is contrary to our usage. Disable this feature.
19188 alias -g '${1+"$@"}'='"$@"'
19189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19190 set -o posix
19192 DUALCASE=1; export DUALCASE # for MKS sh
19194 # Support unset when possible.
19195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19196 as_unset=unset
19197 else
19198 as_unset=false
19202 # Work around bugs in pre-3.0 UWIN ksh.
19203 $as_unset ENV MAIL MAILPATH
19204 PS1='$ '
19205 PS2='> '
19206 PS4='+ '
19208 # NLS nuisances.
19209 for as_var in \
19210 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19211 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19212 LC_TELEPHONE LC_TIME
19214 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19215 eval $as_var=C; export $as_var
19216 else
19217 $as_unset $as_var
19219 done
19221 # Required to use basename.
19222 if expr a : '\(a\)' >/dev/null 2>&1; then
19223 as_expr=expr
19224 else
19225 as_expr=false
19228 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19229 as_basename=basename
19230 else
19231 as_basename=false
19235 # Name of the executable.
19236 as_me=`$as_basename "$0" ||
19237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19238 X"$0" : 'X\(//\)$' \| \
19239 X"$0" : 'X\(/\)$' \| \
19240 . : '\(.\)' 2>/dev/null ||
19241 echo X/"$0" |
19242 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19243 /^X\/\(\/\/\)$/{ s//\1/; q; }
19244 /^X\/\(\/\).*/{ s//\1/; q; }
19245 s/.*/./; q'`
19248 # PATH needs CR, and LINENO needs CR and PATH.
19249 # Avoid depending upon Character Ranges.
19250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19253 as_cr_digits='0123456789'
19254 as_cr_alnum=$as_cr_Letters$as_cr_digits
19256 # The user is always right.
19257 if test "${PATH_SEPARATOR+set}" != set; then
19258 echo "#! /bin/sh" >conf$$.sh
19259 echo "exit 0" >>conf$$.sh
19260 chmod +x conf$$.sh
19261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19262 PATH_SEPARATOR=';'
19263 else
19264 PATH_SEPARATOR=:
19266 rm -f conf$$.sh
19270 as_lineno_1=$LINENO
19271 as_lineno_2=$LINENO
19272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19273 test "x$as_lineno_1" != "x$as_lineno_2" &&
19274 test "x$as_lineno_3" = "x$as_lineno_2" || {
19275 # Find who we are. Look in the path if we contain no path at all
19276 # relative or not.
19277 case $0 in
19278 *[\\/]* ) as_myself=$0 ;;
19279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19280 for as_dir in $PATH
19282 IFS=$as_save_IFS
19283 test -z "$as_dir" && as_dir=.
19284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19285 done
19288 esac
19289 # We did not find ourselves, most probably we were run as `sh COMMAND'
19290 # in which case we are not to be found in the path.
19291 if test "x$as_myself" = x; then
19292 as_myself=$0
19294 if test ! -f "$as_myself"; then
19295 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19296 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19297 { (exit 1); exit 1; }; }
19299 case $CONFIG_SHELL in
19301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19302 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19304 IFS=$as_save_IFS
19305 test -z "$as_dir" && as_dir=.
19306 for as_base in sh bash ksh sh5; do
19307 case $as_dir in
19309 if ("$as_dir/$as_base" -c '
19310 as_lineno_1=$LINENO
19311 as_lineno_2=$LINENO
19312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19313 test "x$as_lineno_1" != "x$as_lineno_2" &&
19314 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19315 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19316 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19317 CONFIG_SHELL=$as_dir/$as_base
19318 export CONFIG_SHELL
19319 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19320 fi;;
19321 esac
19322 done
19323 done
19325 esac
19327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19328 # uniformly replaced by the line number. The first 'sed' inserts a
19329 # line-number line before each line; the second 'sed' does the real
19330 # work. The second script uses 'N' to pair each line-number line
19331 # with the numbered line, and appends trailing '-' during
19332 # substitution so that $LINENO is not a special case at line end.
19333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19334 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19335 sed '=' <$as_myself |
19336 sed '
19338 s,$,-,
19339 : loop
19340 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19341 t loop
19342 s,-$,,
19343 s,^['$as_cr_digits']*\n,,
19344 ' >$as_me.lineno &&
19345 chmod +x $as_me.lineno ||
19346 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19348 { (exit 1); exit 1; }; }
19350 # Don't try to exec as it changes $[0], causing all sort of problems
19351 # (the dirname of $[0] is not the place where we might find the
19352 # original and so on. Autoconf is especially sensible to this).
19353 . ./$as_me.lineno
19354 # Exit status is that of the last command.
19355 exit
19359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19360 *c*,-n*) ECHO_N= ECHO_C='
19361 ' ECHO_T=' ' ;;
19362 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19363 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19364 esac
19366 if expr a : '\(a\)' >/dev/null 2>&1; then
19367 as_expr=expr
19368 else
19369 as_expr=false
19372 rm -f conf$$ conf$$.exe conf$$.file
19373 echo >conf$$.file
19374 if ln -s conf$$.file conf$$ 2>/dev/null; then
19375 # We could just check for DJGPP; but this test a) works b) is more generic
19376 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19377 if test -f conf$$.exe; then
19378 # Don't use ln at all; we don't have any links
19379 as_ln_s='cp -p'
19380 else
19381 as_ln_s='ln -s'
19383 elif ln conf$$.file conf$$ 2>/dev/null; then
19384 as_ln_s=ln
19385 else
19386 as_ln_s='cp -p'
19388 rm -f conf$$ conf$$.exe conf$$.file
19390 if mkdir -p . 2>/dev/null; then
19391 as_mkdir_p=:
19392 else
19393 test -d ./-p && rmdir ./-p
19394 as_mkdir_p=false
19397 as_executable_p="test -f"
19399 # Sed expression to map a string onto a valid CPP name.
19400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19402 # Sed expression to map a string onto a valid variable name.
19403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19406 # IFS
19407 # We need space, tab and new line, in precisely that order.
19408 as_nl='
19410 IFS=" $as_nl"
19412 # CDPATH.
19413 $as_unset CDPATH
19415 exec 6>&1
19417 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19418 # report actual input values of CONFIG_FILES etc. instead of their
19419 # values after options handling. Logging --version etc. is OK.
19420 exec 5>>config.log
19422 echo
19423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19424 ## Running $as_me. ##
19425 _ASBOX
19426 } >&5
19427 cat >&5 <<_CSEOF
19429 This file was extended by Wine $as_me 20040121, which was
19430 generated by GNU Autoconf 2.59. Invocation command line was
19432 CONFIG_FILES = $CONFIG_FILES
19433 CONFIG_HEADERS = $CONFIG_HEADERS
19434 CONFIG_LINKS = $CONFIG_LINKS
19435 CONFIG_COMMANDS = $CONFIG_COMMANDS
19436 $ $0 $@
19438 _CSEOF
19439 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19440 echo >&5
19441 _ACEOF
19443 # Files that config.status was made for.
19444 if test -n "$ac_config_files"; then
19445 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19448 if test -n "$ac_config_headers"; then
19449 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19452 if test -n "$ac_config_links"; then
19453 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19456 if test -n "$ac_config_commands"; then
19457 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19460 cat >>$CONFIG_STATUS <<\_ACEOF
19462 ac_cs_usage="\
19463 \`$as_me' instantiates files from templates according to the
19464 current configuration.
19466 Usage: $0 [OPTIONS] [FILE]...
19468 -h, --help print this help, then exit
19469 -V, --version print version number, then exit
19470 -q, --quiet do not print progress messages
19471 -d, --debug don't remove temporary files
19472 --recheck update $as_me by reconfiguring in the same conditions
19473 --file=FILE[:TEMPLATE]
19474 instantiate the configuration file FILE
19475 --header=FILE[:TEMPLATE]
19476 instantiate the configuration header FILE
19478 Configuration files:
19479 $config_files
19481 Configuration headers:
19482 $config_headers
19484 Configuration commands:
19485 $config_commands
19487 Report bugs to <bug-autoconf@gnu.org>."
19488 _ACEOF
19490 cat >>$CONFIG_STATUS <<_ACEOF
19491 ac_cs_version="\\
19492 Wine config.status 20040121
19493 configured by $0, generated by GNU Autoconf 2.59,
19494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19496 Copyright (C) 2003 Free Software Foundation, Inc.
19497 This config.status script is free software; the Free Software Foundation
19498 gives unlimited permission to copy, distribute and modify it."
19499 srcdir=$srcdir
19500 INSTALL="$INSTALL"
19501 _ACEOF
19503 cat >>$CONFIG_STATUS <<\_ACEOF
19504 # If no file are specified by the user, then we need to provide default
19505 # value. By we need to know if files were specified by the user.
19506 ac_need_defaults=:
19507 while test $# != 0
19509 case $1 in
19510 --*=*)
19511 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19512 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19513 ac_shift=:
19516 ac_option=$1
19517 ac_optarg=$2
19518 ac_shift=shift
19520 *) # This is not an option, so the user has probably given explicit
19521 # arguments.
19522 ac_option=$1
19523 ac_need_defaults=false;;
19524 esac
19526 case $ac_option in
19527 # Handling of the options.
19528 _ACEOF
19529 cat >>$CONFIG_STATUS <<\_ACEOF
19530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19531 ac_cs_recheck=: ;;
19532 --version | --vers* | -V )
19533 echo "$ac_cs_version"; exit 0 ;;
19534 --he | --h)
19535 # Conflict between --help and --header
19536 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19537 Try \`$0 --help' for more information." >&5
19538 echo "$as_me: error: ambiguous option: $1
19539 Try \`$0 --help' for more information." >&2;}
19540 { (exit 1); exit 1; }; };;
19541 --help | --hel | -h )
19542 echo "$ac_cs_usage"; exit 0 ;;
19543 --debug | --d* | -d )
19544 debug=: ;;
19545 --file | --fil | --fi | --f )
19546 $ac_shift
19547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19548 ac_need_defaults=false;;
19549 --header | --heade | --head | --hea )
19550 $ac_shift
19551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19552 ac_need_defaults=false;;
19553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19555 ac_cs_silent=: ;;
19557 # This is an error.
19558 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19559 Try \`$0 --help' for more information." >&5
19560 echo "$as_me: error: unrecognized option: $1
19561 Try \`$0 --help' for more information." >&2;}
19562 { (exit 1); exit 1; }; } ;;
19564 *) ac_config_targets="$ac_config_targets $1" ;;
19566 esac
19567 shift
19568 done
19570 ac_configure_extra_args=
19572 if $ac_cs_silent; then
19573 exec 6>/dev/null
19574 ac_configure_extra_args="$ac_configure_extra_args --silent"
19577 _ACEOF
19578 cat >>$CONFIG_STATUS <<_ACEOF
19579 if \$ac_cs_recheck; then
19580 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19581 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19584 _ACEOF
19590 cat >>$CONFIG_STATUS <<\_ACEOF
19591 for ac_config_target in $ac_config_targets
19593 case "$ac_config_target" in
19594 # Handling of arguments.
19595 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19596 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19597 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19598 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19599 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19600 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19601 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19602 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19603 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19604 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19605 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19606 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19607 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19608 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19609 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19610 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19611 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19612 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19613 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19614 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19615 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19616 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19617 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19618 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19619 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19620 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19621 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19622 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19623 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19624 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19625 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19626 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19627 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19628 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19629 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19630 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19631 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19632 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19633 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19634 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19635 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19636 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19637 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19638 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19639 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19640 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
19641 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
19642 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19643 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19644 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19645 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19646 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19647 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19648 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19649 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19650 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19651 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19652 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19653 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19654 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19655 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19656 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19657 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19658 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19659 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19660 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19661 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19662 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19663 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19664 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19665 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19666 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19667 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19668 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19669 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19670 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19671 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19672 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19673 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
19674 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19675 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
19676 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19677 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19678 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19679 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19680 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19681 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19682 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19683 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19684 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19685 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19686 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19687 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19688 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19689 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19690 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19691 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19692 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19693 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19694 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19695 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19696 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19697 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19698 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19699 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19700 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19701 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19702 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19703 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19704 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19705 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19706 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19707 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19708 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19709 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19710 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19711 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19712 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19713 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19714 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19715 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19716 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19717 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19718 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
19719 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19720 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19721 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19722 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19723 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19724 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19725 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19726 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19727 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19728 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19729 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19730 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19731 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19732 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19733 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19734 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19735 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19736 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19737 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19738 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19739 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19740 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19741 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19742 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19743 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19744 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19745 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19746 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19747 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19748 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19749 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19750 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19751 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19752 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19753 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19754 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19755 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19756 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19757 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19758 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19759 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19760 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19761 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19762 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19763 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19764 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19765 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19766 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19767 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19768 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19769 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19770 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19771 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19772 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19773 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19774 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19775 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19776 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19777 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19778 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19779 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
19780 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19781 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19782 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19783 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19784 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19785 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19786 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19787 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19788 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19789 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19790 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19791 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19792 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19793 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19794 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19795 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19796 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19797 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19798 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19799 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19800 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
19801 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
19802 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
19803 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
19804 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
19805 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
19806 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
19807 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
19808 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
19809 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
19810 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19811 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19812 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19813 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
19814 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19815 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19816 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
19817 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
19818 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
19819 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
19820 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
19821 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
19822 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
19823 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19824 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19825 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19826 { (exit 1); exit 1; }; };;
19827 esac
19828 done
19830 # If the user did not use the arguments to specify the items to instantiate,
19831 # then the envvar interface is used. Set only those that are not.
19832 # We use the long form for the default assignment because of an extremely
19833 # bizarre bug on SunOS 4.1.3.
19834 if $ac_need_defaults; then
19835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19840 # Have a temporary directory for convenience. Make it in the build tree
19841 # simply because there is no reason to put it here, and in addition,
19842 # creating and moving files from /tmp can sometimes cause problems.
19843 # Create a temporary directory, and hook for its removal unless debugging.
19844 $debug ||
19846 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19847 trap '{ (exit 1); exit 1; }' 1 2 13 15
19850 # Create a (secure) tmp directory for tmp files.
19853 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19854 test -n "$tmp" && test -d "$tmp"
19855 } ||
19857 tmp=./confstat$$-$RANDOM
19858 (umask 077 && mkdir $tmp)
19859 } ||
19861 echo "$me: cannot create a temporary directory in ." >&2
19862 { (exit 1); exit 1; }
19865 _ACEOF
19867 cat >>$CONFIG_STATUS <<_ACEOF
19870 # CONFIG_FILES section.
19873 # No need to generate the scripts if there are no CONFIG_FILES.
19874 # This happens for instance when ./config.status config.h
19875 if test -n "\$CONFIG_FILES"; then
19876 # Protect against being on the right side of a sed subst in config.status.
19877 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19878 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19879 s,@SHELL@,$SHELL,;t t
19880 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19881 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19882 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19883 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19884 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19885 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19886 s,@exec_prefix@,$exec_prefix,;t t
19887 s,@prefix@,$prefix,;t t
19888 s,@program_transform_name@,$program_transform_name,;t t
19889 s,@bindir@,$bindir,;t t
19890 s,@sbindir@,$sbindir,;t t
19891 s,@libexecdir@,$libexecdir,;t t
19892 s,@datadir@,$datadir,;t t
19893 s,@sysconfdir@,$sysconfdir,;t t
19894 s,@sharedstatedir@,$sharedstatedir,;t t
19895 s,@localstatedir@,$localstatedir,;t t
19896 s,@libdir@,$libdir,;t t
19897 s,@includedir@,$includedir,;t t
19898 s,@oldincludedir@,$oldincludedir,;t t
19899 s,@infodir@,$infodir,;t t
19900 s,@mandir@,$mandir,;t t
19901 s,@build_alias@,$build_alias,;t t
19902 s,@host_alias@,$host_alias,;t t
19903 s,@target_alias@,$target_alias,;t t
19904 s,@DEFS@,$DEFS,;t t
19905 s,@ECHO_C@,$ECHO_C,;t t
19906 s,@ECHO_N@,$ECHO_N,;t t
19907 s,@ECHO_T@,$ECHO_T,;t t
19908 s,@LIBS@,$LIBS,;t t
19909 s,@WIN16_FILES@,$WIN16_FILES,;t t
19910 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
19911 s,@build@,$build,;t t
19912 s,@build_cpu@,$build_cpu,;t t
19913 s,@build_vendor@,$build_vendor,;t t
19914 s,@build_os@,$build_os,;t t
19915 s,@host@,$host,;t t
19916 s,@host_cpu@,$host_cpu,;t t
19917 s,@host_vendor@,$host_vendor,;t t
19918 s,@host_os@,$host_os,;t t
19919 s,@SET_MAKE@,$SET_MAKE,;t t
19920 s,@CC@,$CC,;t t
19921 s,@CFLAGS@,$CFLAGS,;t t
19922 s,@LDFLAGS@,$LDFLAGS,;t t
19923 s,@CPPFLAGS@,$CPPFLAGS,;t t
19924 s,@ac_ct_CC@,$ac_ct_CC,;t t
19925 s,@EXEEXT@,$EXEEXT,;t t
19926 s,@OBJEXT@,$OBJEXT,;t t
19927 s,@CPP@,$CPP,;t t
19928 s,@TOOLSDIR@,$TOOLSDIR,;t t
19929 s,@X_CFLAGS@,$X_CFLAGS,;t t
19930 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19931 s,@X_LIBS@,$X_LIBS,;t t
19932 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19933 s,@YACC@,$YACC,;t t
19934 s,@LEX@,$LEX,;t t
19935 s,@LEXLIB@,$LEXLIB,;t t
19936 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19937 s,@XYACC@,$XYACC,;t t
19938 s,@XLEX@,$XLEX,;t t
19939 s,@AS@,$AS,;t t
19940 s,@ac_ct_AS@,$ac_ct_AS,;t t
19941 s,@LD@,$LD,;t t
19942 s,@ac_ct_LD@,$ac_ct_LD,;t t
19943 s,@AR@,$AR,;t t
19944 s,@ac_ct_AR@,$ac_ct_AR,;t t
19945 s,@RANLIB@,$RANLIB,;t t
19946 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19947 s,@STRIP@,$STRIP,;t t
19948 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19949 s,@WINDRES@,$WINDRES,;t t
19950 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
19951 s,@LN_S@,$LN_S,;t t
19952 s,@LN@,$LN,;t t
19953 s,@LDCONFIG@,$LDCONFIG,;t t
19954 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19955 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19956 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19957 s,@LINT@,$LINT,;t t
19958 s,@LINTFLAGS@,$LINTFLAGS,;t t
19959 s,@DB2HTML@,$DB2HTML,;t t
19960 s,@DB2PDF@,$DB2PDF,;t t
19961 s,@DB2PS@,$DB2PS,;t t
19962 s,@DB2TXT@,$DB2TXT,;t t
19963 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
19964 s,@JPEGLIB@,$JPEGLIB,;t t
19965 s,@EGREP@,$EGREP,;t t
19966 s,@GIFLIB@,$GIFLIB,;t t
19967 s,@XLIB@,$XLIB,;t t
19968 s,@XFILES@,$XFILES,;t t
19969 s,@OPENGLFILES@,$OPENGLFILES,;t t
19970 s,@GLU32FILES@,$GLU32FILES,;t t
19971 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
19972 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
19973 s,@GLUT32FILES@,$GLUT32FILES,;t t
19974 s,@NASLIBS@,$NASLIBS,;t t
19975 s,@CURSESLIBS@,$CURSESLIBS,;t t
19976 s,@sane_devel@,$sane_devel,;t t
19977 s,@SANELIBS@,$SANELIBS,;t t
19978 s,@SANEINCL@,$SANEINCL,;t t
19979 s,@ICULIBS@,$ICULIBS,;t t
19980 s,@ft_devel@,$ft_devel,;t t
19981 s,@ft_devel2@,$ft_devel2,;t t
19982 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
19983 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
19984 s,@ARTSLIBS@,$ARTSLIBS,;t t
19985 s,@ARTSINCL@,$ARTSINCL,;t t
19986 s,@ALSALIBS@,$ALSALIBS,;t t
19987 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
19988 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
19989 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
19990 s,@DLLEXT@,$DLLEXT,;t t
19991 s,@DLLFLAGS@,$DLLFLAGS,;t t
19992 s,@DLLIBS@,$DLLIBS,;t t
19993 s,@LDSHARED@,$LDSHARED,;t t
19994 s,@LDDLL@,$LDDLL,;t t
19995 s,@LIBEXT@,$LIBEXT,;t t
19996 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
19997 s,@DLLTOOL@,$DLLTOOL,;t t
19998 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
19999 s,@DLLWRAP@,$DLLWRAP,;t t
20000 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20001 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20002 s,@CROSSTEST@,$CROSSTEST,;t t
20003 s,@CROSSCC@,$CROSSCC,;t t
20004 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20005 s,@LDPATH@,$LDPATH,;t t
20006 s,@CRTLIBS@,$CRTLIBS,;t t
20007 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20008 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20009 s,@LDD@,$LDD,;t t
20010 s,@ALLOCA@,$ALLOCA,;t t
20011 s,@LIBOBJS@,$LIBOBJS,;t t
20012 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20013 /@MAKE_RULES@/r $MAKE_RULES
20014 s,@MAKE_RULES@,,;t t
20015 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20016 s,@MAKE_DLL_RULES@,,;t t
20017 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20018 s,@MAKE_TEST_RULES@,,;t t
20019 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20020 s,@MAKE_LIB_RULES@,,;t t
20021 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20022 s,@MAKE_PROG_RULES@,,;t t
20023 CEOF
20025 _ACEOF
20027 cat >>$CONFIG_STATUS <<\_ACEOF
20028 # Split the substitutions into bite-sized pieces for seds with
20029 # small command number limits, like on Digital OSF/1 and HP-UX.
20030 ac_max_sed_lines=48
20031 ac_sed_frag=1 # Number of current file.
20032 ac_beg=1 # First line for current file.
20033 ac_end=$ac_max_sed_lines # Line after last line for current file.
20034 ac_more_lines=:
20035 ac_sed_cmds=
20036 while $ac_more_lines; do
20037 if test $ac_beg -gt 1; then
20038 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20039 else
20040 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20042 if test ! -s $tmp/subs.frag; then
20043 ac_more_lines=false
20044 else
20045 # The purpose of the label and of the branching condition is to
20046 # speed up the sed processing (if there are no `@' at all, there
20047 # is no need to browse any of the substitutions).
20048 # These are the two extra sed commands mentioned above.
20049 (echo ':t
20050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20051 if test -z "$ac_sed_cmds"; then
20052 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20053 else
20054 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20056 ac_sed_frag=`expr $ac_sed_frag + 1`
20057 ac_beg=$ac_end
20058 ac_end=`expr $ac_end + $ac_max_sed_lines`
20060 done
20061 if test -z "$ac_sed_cmds"; then
20062 ac_sed_cmds=cat
20064 fi # test -n "$CONFIG_FILES"
20066 _ACEOF
20067 cat >>$CONFIG_STATUS <<\_ACEOF
20068 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20070 case $ac_file in
20071 - | *:- | *:-:* ) # input from stdin
20072 cat >$tmp/stdin
20073 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20074 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20075 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20077 * ) ac_file_in=$ac_file.in ;;
20078 esac
20080 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20081 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20083 X"$ac_file" : 'X\(//\)[^/]' \| \
20084 X"$ac_file" : 'X\(//\)$' \| \
20085 X"$ac_file" : 'X\(/\)' \| \
20086 . : '\(.\)' 2>/dev/null ||
20087 echo X"$ac_file" |
20088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20090 /^X\(\/\/\)$/{ s//\1/; q; }
20091 /^X\(\/\).*/{ s//\1/; q; }
20092 s/.*/./; q'`
20093 { if $as_mkdir_p; then
20094 mkdir -p "$ac_dir"
20095 else
20096 as_dir="$ac_dir"
20097 as_dirs=
20098 while test ! -d "$as_dir"; do
20099 as_dirs="$as_dir $as_dirs"
20100 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20102 X"$as_dir" : 'X\(//\)[^/]' \| \
20103 X"$as_dir" : 'X\(//\)$' \| \
20104 X"$as_dir" : 'X\(/\)' \| \
20105 . : '\(.\)' 2>/dev/null ||
20106 echo X"$as_dir" |
20107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20109 /^X\(\/\/\)$/{ s//\1/; q; }
20110 /^X\(\/\).*/{ s//\1/; q; }
20111 s/.*/./; q'`
20112 done
20113 test ! -n "$as_dirs" || mkdir $as_dirs
20114 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20116 { (exit 1); exit 1; }; }; }
20118 ac_builddir=.
20120 if test "$ac_dir" != .; then
20121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20122 # A "../" for each directory in $ac_dir_suffix.
20123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20124 else
20125 ac_dir_suffix= ac_top_builddir=
20128 case $srcdir in
20129 .) # No --srcdir option. We are building in place.
20130 ac_srcdir=.
20131 if test -z "$ac_top_builddir"; then
20132 ac_top_srcdir=.
20133 else
20134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20135 fi ;;
20136 [\\/]* | ?:[\\/]* ) # Absolute path.
20137 ac_srcdir=$srcdir$ac_dir_suffix;
20138 ac_top_srcdir=$srcdir ;;
20139 *) # Relative path.
20140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20142 esac
20144 # Do not use `cd foo && pwd` to compute absolute paths, because
20145 # the directories may not exist.
20146 case `pwd` in
20147 .) ac_abs_builddir="$ac_dir";;
20149 case "$ac_dir" in
20150 .) ac_abs_builddir=`pwd`;;
20151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20153 esac;;
20154 esac
20155 case $ac_abs_builddir in
20156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20158 case ${ac_top_builddir}. in
20159 .) ac_abs_top_builddir=$ac_abs_builddir;;
20160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20162 esac;;
20163 esac
20164 case $ac_abs_builddir in
20165 .) ac_abs_srcdir=$ac_srcdir;;
20167 case $ac_srcdir in
20168 .) ac_abs_srcdir=$ac_abs_builddir;;
20169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20171 esac;;
20172 esac
20173 case $ac_abs_builddir in
20174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20176 case $ac_top_srcdir in
20177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20180 esac;;
20181 esac
20184 case $INSTALL in
20185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20186 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20187 esac
20189 # Let's still pretend it is `configure' which instantiates (i.e., don't
20190 # use $as_me), people would be surprised to read:
20191 # /* config.h. Generated by config.status. */
20192 if test x"$ac_file" = x-; then
20193 configure_input=
20194 else
20195 configure_input="$ac_file. "
20197 configure_input=$configure_input"Generated from `echo $ac_file_in |
20198 sed 's,.*/,,'` by configure."
20200 # First look for the input files in the build tree, otherwise in the
20201 # src tree.
20202 ac_file_inputs=`IFS=:
20203 for f in $ac_file_in; do
20204 case $f in
20205 -) echo $tmp/stdin ;;
20206 [\\/$]*)
20207 # Absolute (can't be DOS-style, as IFS=:)
20208 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20209 echo "$as_me: error: cannot find input file: $f" >&2;}
20210 { (exit 1); exit 1; }; }
20211 echo "$f";;
20212 *) # Relative
20213 if test -f "$f"; then
20214 # Build tree
20215 echo "$f"
20216 elif test -f "$srcdir/$f"; then
20217 # Source tree
20218 echo "$srcdir/$f"
20219 else
20220 # /dev/null tree
20221 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20222 echo "$as_me: error: cannot find input file: $f" >&2;}
20223 { (exit 1); exit 1; }; }
20224 fi;;
20225 esac
20226 done` || { (exit 1); exit 1; }
20228 if test x"$ac_file" != x-; then
20229 { echo "$as_me:$LINENO: creating $ac_file" >&5
20230 echo "$as_me: creating $ac_file" >&6;}
20231 rm -f "$ac_file"
20233 _ACEOF
20234 cat >>$CONFIG_STATUS <<_ACEOF
20235 sed "$ac_vpsub
20236 $extrasub
20237 _ACEOF
20238 cat >>$CONFIG_STATUS <<\_ACEOF
20240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20241 s,@configure_input@,$configure_input,;t t
20242 s,@srcdir@,$ac_srcdir,;t t
20243 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20244 s,@top_srcdir@,$ac_top_srcdir,;t t
20245 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20246 s,@builddir@,$ac_builddir,;t t
20247 s,@abs_builddir@,$ac_abs_builddir,;t t
20248 s,@top_builddir@,$ac_top_builddir,;t t
20249 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20250 s,@INSTALL@,$ac_INSTALL,;t t
20251 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20252 rm -f $tmp/stdin
20253 if test x"$ac_file" != x-; then
20254 mv $tmp/out $ac_file
20255 else
20256 cat $tmp/out
20257 rm -f $tmp/out
20260 done
20261 _ACEOF
20262 cat >>$CONFIG_STATUS <<\_ACEOF
20265 # CONFIG_HEADER section.
20268 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20269 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20271 # ac_d sets the value in "#define NAME VALUE" lines.
20272 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20273 ac_dB='[ ].*$,\1#\2'
20274 ac_dC=' '
20275 ac_dD=',;t'
20276 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20277 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20278 ac_uB='$,\1#\2define\3'
20279 ac_uC=' '
20280 ac_uD=',;t'
20282 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20284 case $ac_file in
20285 - | *:- | *:-:* ) # input from stdin
20286 cat >$tmp/stdin
20287 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20288 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20289 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20291 * ) ac_file_in=$ac_file.in ;;
20292 esac
20294 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20295 echo "$as_me: creating $ac_file" >&6;}
20297 # First look for the input files in the build tree, otherwise in the
20298 # src tree.
20299 ac_file_inputs=`IFS=:
20300 for f in $ac_file_in; do
20301 case $f in
20302 -) echo $tmp/stdin ;;
20303 [\\/$]*)
20304 # Absolute (can't be DOS-style, as IFS=:)
20305 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20306 echo "$as_me: error: cannot find input file: $f" >&2;}
20307 { (exit 1); exit 1; }; }
20308 # Do quote $f, to prevent DOS paths from being IFS'd.
20309 echo "$f";;
20310 *) # Relative
20311 if test -f "$f"; then
20312 # Build tree
20313 echo "$f"
20314 elif test -f "$srcdir/$f"; then
20315 # Source tree
20316 echo "$srcdir/$f"
20317 else
20318 # /dev/null tree
20319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20320 echo "$as_me: error: cannot find input file: $f" >&2;}
20321 { (exit 1); exit 1; }; }
20322 fi;;
20323 esac
20324 done` || { (exit 1); exit 1; }
20325 # Remove the trailing spaces.
20326 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20328 _ACEOF
20330 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20331 # `conftest.undefs', that substitutes the proper values into
20332 # config.h.in to produce config.h. The first handles `#define'
20333 # templates, and the second `#undef' templates.
20334 # And first: Protect against being on the right side of a sed subst in
20335 # config.status. Protect against being in an unquoted here document
20336 # in config.status.
20337 rm -f conftest.defines conftest.undefs
20338 # Using a here document instead of a string reduces the quoting nightmare.
20339 # Putting comments in sed scripts is not portable.
20341 # `end' is used to avoid that the second main sed command (meant for
20342 # 0-ary CPP macros) applies to n-ary macro definitions.
20343 # See the Autoconf documentation for `clear'.
20344 cat >confdef2sed.sed <<\_ACEOF
20345 s/[\\&,]/\\&/g
20346 s,[\\$`],\\&,g
20347 t clear
20348 : clear
20349 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20350 t end
20351 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20352 : end
20353 _ACEOF
20354 # If some macros were called several times there might be several times
20355 # the same #defines, which is useless. Nevertheless, we may not want to
20356 # sort them, since we want the *last* AC-DEFINE to be honored.
20357 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20358 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20359 rm -f confdef2sed.sed
20361 # This sed command replaces #undef with comments. This is necessary, for
20362 # example, in the case of _POSIX_SOURCE, which is predefined and required
20363 # on some systems where configure will not decide to define it.
20364 cat >>conftest.undefs <<\_ACEOF
20365 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20366 _ACEOF
20368 # Break up conftest.defines because some shells have a limit on the size
20369 # of here documents, and old seds have small limits too (100 cmds).
20370 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20371 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20372 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20373 echo ' :' >>$CONFIG_STATUS
20374 rm -f conftest.tail
20375 while grep . conftest.defines >/dev/null
20377 # Write a limited-size here document to $tmp/defines.sed.
20378 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20379 # Speed up: don't consider the non `#define' lines.
20380 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20381 # Work around the forget-to-reset-the-flag bug.
20382 echo 't clr' >>$CONFIG_STATUS
20383 echo ': clr' >>$CONFIG_STATUS
20384 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20385 echo 'CEOF
20386 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20387 rm -f $tmp/in
20388 mv $tmp/out $tmp/in
20389 ' >>$CONFIG_STATUS
20390 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20391 rm -f conftest.defines
20392 mv conftest.tail conftest.defines
20393 done
20394 rm -f conftest.defines
20395 echo ' fi # grep' >>$CONFIG_STATUS
20396 echo >>$CONFIG_STATUS
20398 # Break up conftest.undefs because some shells have a limit on the size
20399 # of here documents, and old seds have small limits too (100 cmds).
20400 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20401 rm -f conftest.tail
20402 while grep . conftest.undefs >/dev/null
20404 # Write a limited-size here document to $tmp/undefs.sed.
20405 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20406 # Speed up: don't consider the non `#undef'
20407 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20408 # Work around the forget-to-reset-the-flag bug.
20409 echo 't clr' >>$CONFIG_STATUS
20410 echo ': clr' >>$CONFIG_STATUS
20411 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20412 echo 'CEOF
20413 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20414 rm -f $tmp/in
20415 mv $tmp/out $tmp/in
20416 ' >>$CONFIG_STATUS
20417 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20418 rm -f conftest.undefs
20419 mv conftest.tail conftest.undefs
20420 done
20421 rm -f conftest.undefs
20423 cat >>$CONFIG_STATUS <<\_ACEOF
20424 # Let's still pretend it is `configure' which instantiates (i.e., don't
20425 # use $as_me), people would be surprised to read:
20426 # /* config.h. Generated by config.status. */
20427 if test x"$ac_file" = x-; then
20428 echo "/* Generated by configure. */" >$tmp/config.h
20429 else
20430 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20432 cat $tmp/in >>$tmp/config.h
20433 rm -f $tmp/in
20434 if test x"$ac_file" != x-; then
20435 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20436 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20437 echo "$as_me: $ac_file is unchanged" >&6;}
20438 else
20439 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20440 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20441 X"$ac_file" : 'X\(//\)[^/]' \| \
20442 X"$ac_file" : 'X\(//\)$' \| \
20443 X"$ac_file" : 'X\(/\)' \| \
20444 . : '\(.\)' 2>/dev/null ||
20445 echo X"$ac_file" |
20446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20448 /^X\(\/\/\)$/{ s//\1/; q; }
20449 /^X\(\/\).*/{ s//\1/; q; }
20450 s/.*/./; q'`
20451 { if $as_mkdir_p; then
20452 mkdir -p "$ac_dir"
20453 else
20454 as_dir="$ac_dir"
20455 as_dirs=
20456 while test ! -d "$as_dir"; do
20457 as_dirs="$as_dir $as_dirs"
20458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20460 X"$as_dir" : 'X\(//\)[^/]' \| \
20461 X"$as_dir" : 'X\(//\)$' \| \
20462 X"$as_dir" : 'X\(/\)' \| \
20463 . : '\(.\)' 2>/dev/null ||
20464 echo X"$as_dir" |
20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20467 /^X\(\/\/\)$/{ s//\1/; q; }
20468 /^X\(\/\).*/{ s//\1/; q; }
20469 s/.*/./; q'`
20470 done
20471 test ! -n "$as_dirs" || mkdir $as_dirs
20472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20473 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20474 { (exit 1); exit 1; }; }; }
20476 rm -f $ac_file
20477 mv $tmp/config.h $ac_file
20479 else
20480 cat $tmp/config.h
20481 rm -f $tmp/config.h
20483 done
20484 _ACEOF
20485 cat >>$CONFIG_STATUS <<\_ACEOF
20488 # CONFIG_COMMANDS section.
20490 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20491 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20492 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20493 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20494 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20495 X"$ac_dest" : 'X\(//\)[^/]' \| \
20496 X"$ac_dest" : 'X\(//\)$' \| \
20497 X"$ac_dest" : 'X\(/\)' \| \
20498 . : '\(.\)' 2>/dev/null ||
20499 echo X"$ac_dest" |
20500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20502 /^X\(\/\/\)$/{ s//\1/; q; }
20503 /^X\(\/\).*/{ s//\1/; q; }
20504 s/.*/./; q'`
20505 { if $as_mkdir_p; then
20506 mkdir -p "$ac_dir"
20507 else
20508 as_dir="$ac_dir"
20509 as_dirs=
20510 while test ! -d "$as_dir"; do
20511 as_dirs="$as_dir $as_dirs"
20512 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20514 X"$as_dir" : 'X\(//\)[^/]' \| \
20515 X"$as_dir" : 'X\(//\)$' \| \
20516 X"$as_dir" : 'X\(/\)' \| \
20517 . : '\(.\)' 2>/dev/null ||
20518 echo X"$as_dir" |
20519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20521 /^X\(\/\/\)$/{ s//\1/; q; }
20522 /^X\(\/\).*/{ s//\1/; q; }
20523 s/.*/./; q'`
20524 done
20525 test ! -n "$as_dirs" || mkdir $as_dirs
20526 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20528 { (exit 1); exit 1; }; }; }
20530 ac_builddir=.
20532 if test "$ac_dir" != .; then
20533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20534 # A "../" for each directory in $ac_dir_suffix.
20535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20536 else
20537 ac_dir_suffix= ac_top_builddir=
20540 case $srcdir in
20541 .) # No --srcdir option. We are building in place.
20542 ac_srcdir=.
20543 if test -z "$ac_top_builddir"; then
20544 ac_top_srcdir=.
20545 else
20546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20547 fi ;;
20548 [\\/]* | ?:[\\/]* ) # Absolute path.
20549 ac_srcdir=$srcdir$ac_dir_suffix;
20550 ac_top_srcdir=$srcdir ;;
20551 *) # Relative path.
20552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20554 esac
20556 # Do not use `cd foo && pwd` to compute absolute paths, because
20557 # the directories may not exist.
20558 case `pwd` in
20559 .) ac_abs_builddir="$ac_dir";;
20561 case "$ac_dir" in
20562 .) ac_abs_builddir=`pwd`;;
20563 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20564 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20565 esac;;
20566 esac
20567 case $ac_abs_builddir in
20568 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20570 case ${ac_top_builddir}. in
20571 .) ac_abs_top_builddir=$ac_abs_builddir;;
20572 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20573 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20574 esac;;
20575 esac
20576 case $ac_abs_builddir in
20577 .) ac_abs_srcdir=$ac_srcdir;;
20579 case $ac_srcdir in
20580 .) ac_abs_srcdir=$ac_abs_builddir;;
20581 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20582 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20583 esac;;
20584 esac
20585 case $ac_abs_builddir in
20586 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20588 case $ac_top_srcdir in
20589 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20590 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20591 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20592 esac;;
20593 esac
20596 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20597 echo "$as_me: executing $ac_dest commands" >&6;}
20598 case $ac_dest in
20599 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20600 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20601 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20602 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20603 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20604 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20605 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20606 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20607 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20608 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20609 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20610 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20611 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20612 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20613 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
20614 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
20615 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
20616 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
20617 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
20618 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
20619 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20620 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20621 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20622 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20623 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20624 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20625 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20626 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20627 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20628 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20629 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20630 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20631 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20632 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20633 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
20634 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
20635 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20636 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20637 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20638 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20639 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20640 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20641 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20642 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20643 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20644 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20645 esac
20646 done
20647 _ACEOF
20649 cat >>$CONFIG_STATUS <<\_ACEOF
20651 { (exit 0); exit 0; }
20652 _ACEOF
20653 chmod +x $CONFIG_STATUS
20654 ac_clean_files=$ac_clean_files_save
20657 # configure is writing to config.log, and then calls config.status.
20658 # config.status does its own redirection, appending to config.log.
20659 # Unfortunately, on DOS this fails, as config.log is still kept open
20660 # by configure, so config.status won't be able to write to it; its
20661 # output is simply discarded. So we exec the FD to /dev/null,
20662 # effectively closing config.log, so it can be properly (re)opened and
20663 # appended to by config.status. When coming back to configure, we
20664 # need to make the FD available again.
20665 if test "$no_create" != yes; then
20666 ac_cs_success=:
20667 ac_config_status_args=
20668 test "$silent" = yes &&
20669 ac_config_status_args="$ac_config_status_args --quiet"
20670 exec 5>/dev/null
20671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20672 exec 5>>config.log
20673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20674 # would make configure fail if this is the last instruction.
20675 $ac_cs_success || { (exit 1); exit 1; }
20679 if test "$have_x" = "no"
20680 then
20681 echo
20682 echo "*** Warning: X development files not found. Wine will be built without"
20683 echo "*** X support, which currently does not work, and would probably not be"
20684 echo "*** what you want anyway. You will need to install devel packages of"
20685 echo "*** Xlib/Xfree86 at the very least."
20688 if test "$wine_cv_opengl_version_OK" = "no"
20689 then
20690 echo
20691 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20692 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20695 if test "$wine_cv_msg_freetype" = "yes"
20696 then
20697 echo
20698 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20699 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20700 echo "*** freetype-devel package (or its equivalent on your distribution) to"
20701 echo "*** enable Wine to use TrueType fonts."
20704 echo
20705 echo "Configure finished. Do 'make depend && make' to compile Wine."
20706 echo