Return the right error code for non-existent VxD modules.
[wine/multimedia.git] / configure
blobeba83657bd41eb8290cc145b116ee7f40f1efbb6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040213.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20040213'
273 PACKAGE_STRING='Wine 20040213'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 20040213 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 20040213:";;
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 20040213
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 20040213, 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=""
11192 for i in `$ARTSCCONFIG --cflags`
11194 case "$i" in
11195 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11196 esac
11197 done
11198 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11199 save_CFLAGS="$CFLAGS"
11200 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <artsc.h>
11209 main ()
11211 arts_stream_t stream;
11213 return 0;
11215 _ACEOF
11216 rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218 (eval $ac_compile) 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ARTSLIBS=$ARTSC_LIBS
11239 ARTSINCL=$ARTSC_CFLAGS
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_ARTS 1
11244 _ACEOF
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252 CFLAGS="$save_CFLAGS"
11255 ALSALIBS=""
11259 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11263 echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11270 else
11271 # Is the header compilable?
11272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11274 cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h. */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 $ac_includes_default
11281 #include <$ac_header>
11282 _ACEOF
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_header_compiler=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_header_compiler=no
11311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11313 echo "${ECHO_T}$ac_header_compiler" >&6
11315 # Is the header present?
11316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #include <$ac_header>
11325 _ACEOF
11326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } >/dev/null; then
11334 if test -s conftest.err; then
11335 ac_cpp_err=$ac_c_preproc_warn_flag
11336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11337 else
11338 ac_cpp_err=
11340 else
11341 ac_cpp_err=yes
11343 if test -z "$ac_cpp_err"; then
11344 ac_header_preproc=yes
11345 else
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_header_preproc=no
11351 rm -f conftest.err conftest.$ac_ext
11352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11353 echo "${ECHO_T}$ac_header_preproc" >&6
11355 # So? What about this header?
11356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 yes:no: )
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11362 ac_header_preproc=yes
11364 no:yes:* )
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11378 cat <<\_ASBOX
11379 ## ------------------------------------ ##
11380 ## Report this to wine-devel@winehq.org ##
11381 ## ------------------------------------ ##
11382 _ASBOX
11384 sed "s/^/$as_me: WARNING: /" >&2
11386 esac
11387 echo "$as_me:$LINENO: checking for $ac_header" >&5
11388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392 eval "$as_ac_Header=\$ac_header_preproc"
11394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11399 cat >>confdefs.h <<_ACEOF
11400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11401 _ACEOF
11402 break
11405 done
11407 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11408 then
11409 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11410 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11411 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414 ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-lasound $LIBS"
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11423 /* Override any gcc2 internal prototype to avoid an error. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 /* We use char because int might match the return type of a gcc2
11428 builtin and then its argument prototype would still apply. */
11429 char snd_pcm_open ();
11431 main ()
11433 snd_pcm_open ();
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11440 (eval $ac_link) 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_lib_asound_snd_pcm_open=yes
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_cv_lib_asound_snd_pcm_open=no
11466 rm -f conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11470 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11471 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11472 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_ALSA 1
11476 _ACEOF
11478 ALSALIBS="-lasound"
11484 AUDIOIOLIBS=""
11487 for ac_header in libaudioio.h
11489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11491 echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11498 else
11499 # Is the header compilable?
11500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11526 { ac_try='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_header_compiler=yes
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_compiler=no
11539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6
11543 # Is the header present?
11544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h. */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <$ac_header>
11553 _ACEOF
11554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } >/dev/null; then
11562 if test -s conftest.err; then
11563 ac_cpp_err=$ac_c_preproc_warn_flag
11564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11565 else
11566 ac_cpp_err=
11568 else
11569 ac_cpp_err=yes
11571 if test -z "$ac_cpp_err"; then
11572 ac_header_preproc=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_header_preproc=no
11579 rm -f conftest.err conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11581 echo "${ECHO_T}$ac_header_preproc" >&6
11583 # So? What about this header?
11584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585 yes:no: )
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11590 ac_header_preproc=yes
11592 no:yes:* )
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606 cat <<\_ASBOX
11607 ## ------------------------------------ ##
11608 ## Report this to wine-devel@winehq.org ##
11609 ## ------------------------------------ ##
11610 _ASBOX
11612 sed "s/^/$as_me: WARNING: /" >&2
11614 esac
11615 echo "$as_me:$LINENO: checking for $ac_header" >&5
11616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620 eval "$as_ac_Header=\$ac_header_preproc"
11622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11627 cat >>confdefs.h <<_ACEOF
11628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11629 _ACEOF
11630 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11631 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11632 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-laudioio $LIBS"
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11644 /* Override any gcc2 internal prototype to avoid an error. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 /* We use char because int might match the return type of a gcc2
11649 builtin and then its argument prototype would still apply. */
11650 char AudioIOGetVersion ();
11652 main ()
11654 AudioIOGetVersion ();
11656 return 0;
11658 _ACEOF
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661 (eval $ac_link) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_audioio_AudioIOGetVersion=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_cv_lib_audioio_AudioIOGetVersion=no
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11692 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11693 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11694 AUDIOIOLIBS="-laudioio"
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_LIBAUDIOIO 1
11698 _ACEOF
11704 done
11709 for ac_header in capi20.h
11711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11713 echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11720 else
11721 # Is the header compilable?
11722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 $ac_includes_default
11731 #include <$ac_header>
11732 _ACEOF
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735 (eval $ac_compile) 2>conftest.er1
11736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11748 { ac_try='test -s conftest.$ac_objext'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_header_compiler=yes
11755 else
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_header_compiler=no
11761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11763 echo "${ECHO_T}$ac_header_compiler" >&6
11765 # Is the header present?
11766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <$ac_header>
11775 _ACEOF
11776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } >/dev/null; then
11784 if test -s conftest.err; then
11785 ac_cpp_err=$ac_c_preproc_warn_flag
11786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11787 else
11788 ac_cpp_err=
11790 else
11791 ac_cpp_err=yes
11793 if test -z "$ac_cpp_err"; then
11794 ac_header_preproc=yes
11795 else
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 ac_header_preproc=no
11801 rm -f conftest.err conftest.$ac_ext
11802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11803 echo "${ECHO_T}$ac_header_preproc" >&6
11805 # So? What about this header?
11806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11807 yes:no: )
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11812 ac_header_preproc=yes
11814 no:yes:* )
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11828 cat <<\_ASBOX
11829 ## ------------------------------------ ##
11830 ## Report this to wine-devel@winehq.org ##
11831 ## ------------------------------------ ##
11832 _ASBOX
11834 sed "s/^/$as_me: WARNING: /" >&2
11836 esac
11837 echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 eval "$as_ac_Header=\$ac_header_preproc"
11844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11851 _ACEOF
11854 for ac_header in linux/capi.h
11856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo "$as_me:$LINENO: checking for $ac_header" >&5
11859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11865 else
11866 # Is the header compilable?
11867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 $ac_includes_default
11876 #include <$ac_header>
11877 _ACEOF
11878 rm -f conftest.$ac_objext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880 (eval $ac_compile) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_header_compiler=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_header_compiler=no
11906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11908 echo "${ECHO_T}$ac_header_compiler" >&6
11910 # Is the header present?
11911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h. */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 #include <$ac_header>
11920 _ACEOF
11921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } >/dev/null; then
11929 if test -s conftest.err; then
11930 ac_cpp_err=$ac_c_preproc_warn_flag
11931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11932 else
11933 ac_cpp_err=
11935 else
11936 ac_cpp_err=yes
11938 if test -z "$ac_cpp_err"; then
11939 ac_header_preproc=yes
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_header_preproc=no
11946 rm -f conftest.err conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11948 echo "${ECHO_T}$ac_header_preproc" >&6
11950 # So? What about this header?
11951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11952 yes:no: )
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11957 ac_header_preproc=yes
11959 no:yes:* )
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11973 cat <<\_ASBOX
11974 ## ------------------------------------ ##
11975 ## Report this to wine-devel@winehq.org ##
11976 ## ------------------------------------ ##
11977 _ASBOX
11979 sed "s/^/$as_me: WARNING: /" >&2
11981 esac
11982 echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 eval "$as_ac_Header=\$ac_header_preproc"
11989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11996 _ACEOF
11998 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11999 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12000 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lcapi20 $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018 char capi20_register ();
12020 main ()
12022 capi20_register ();
12024 return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12042 { ac_try='test -s conftest$ac_exeext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_lib_capi20_capi20_register=yes
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_cv_lib_capi20_capi20_register=no
12055 rm -f conftest.err conftest.$ac_objext \
12056 conftest$ac_exeext conftest.$ac_ext
12057 LIBS=$ac_check_lib_save_LIBS
12059 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12060 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12061 if test $ac_cv_lib_capi20_capi20_register = yes; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_CAPI4LINUX 1
12066 _ACEOF
12068 CAPI4LINUXLIBS="-lcapi20"
12076 done
12081 done
12085 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12086 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12087 if test "${ac_cv_mmap64_works+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090 if test "$cross_compiling" = yes; then
12091 ac_cv_mmap64_works="no"
12092 else
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 #define _FILE_OFFSET_BITS 64
12101 #include <stdio.h>
12102 #include <unistd.h>
12103 #include <fcntl.h>
12104 #include <sys/mman.h>
12105 #include <errno.h>
12107 int main(int argc,char **argv) {
12108 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12109 if (fd == -1) exit(1);
12111 unlink("conftest.map");
12113 write(fd,"test",4);
12115 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12116 (errno == EINVAL)
12118 exit(1);
12120 close(fd);
12121 fprintf(stderr,"success!\n");
12122 exit(0);
12126 _ACEOF
12127 rm -f conftest$ac_exeext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12129 (eval $ac_link) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_cv_mmap64_works="yes"
12139 else
12140 echo "$as_me: program exited with status $ac_status" >&5
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ( exit $ac_status )
12145 ac_cv_mmap64_works="no"
12147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12150 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12151 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12153 if test "$ac_cv_mmap64_works" = "yes"
12154 then
12156 cat >>confdefs.h <<\_ACEOF
12157 #define _FILE_OFFSET_BITS 64
12158 _ACEOF
12163 EXTRACFLAGS=""
12165 if test "x${GCC}" = "xyes"
12166 then
12167 EXTRACFLAGS="-Wall -pipe"
12169 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12170 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12171 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 if test "$cross_compiling" = yes; then
12175 ac_cv_c_gcc_strength_bug="yes"
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 int L[4] = {0,1,2,3};
12185 int main(void) {
12186 static int Array[3];
12187 unsigned int B = 3;
12188 int i;
12189 for(i=0; i<B; i++) Array[i] = i - 3;
12190 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12191 L[i] = 4;
12193 exit( Array[1] != -2 || L[2] != 3);
12195 _ACEOF
12196 rm -f conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198 (eval $ac_link) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_c_gcc_strength_bug="no"
12208 else
12209 echo "$as_me: program exited with status $ac_status" >&5
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ( exit $ac_status )
12214 ac_cv_c_gcc_strength_bug="yes"
12216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12220 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12221 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12222 then
12223 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12226 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12227 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12228 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 ac_wine_try_cflags_saved=$CFLAGS
12232 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12241 main ()
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_c_gcc_stack_boundary="yes"
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_c_gcc_stack_boundary="no"
12276 rm -f conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 CFLAGS=$ac_wine_try_cflags_saved
12280 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12281 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12282 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12283 then
12284 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12287 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12288 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12289 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292 ac_wine_try_cflags_saved=$CFLAGS
12293 CFLAGS="$CFLAGS -fno-strict-aliasing"
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h. */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12302 main ()
12306 return 0;
12308 _ACEOF
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12324 { ac_try='test -s conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_c_gcc_no_strict_aliasing="yes"
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 ac_cv_c_gcc_no_strict_aliasing="no"
12337 rm -f conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339 CFLAGS=$ac_wine_try_cflags_saved
12341 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12342 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12343 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12344 then
12345 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12348 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12349 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12350 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353 ac_wine_try_cflags_saved=$CFLAGS
12354 CFLAGS="$CFLAGS -gstabs+"
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h. */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12363 main ()
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12385 { ac_try='test -s conftest$ac_exeext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_cv_c_gcc_gstabs="yes"
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_cv_c_gcc_gstabs="no"
12398 rm -f conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 CFLAGS=$ac_wine_try_cflags_saved
12402 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12403 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12404 if test "$ac_cv_c_gcc_gstabs" = "yes"
12405 then
12406 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12409 saved_CFLAGS="$CFLAGS"
12410 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12411 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12412 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12413 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h. */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #include <string.h>
12424 main ()
12428 return 0;
12430 _ACEOF
12431 rm -f conftest.$ac_objext
12432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12433 (eval $ac_compile) 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12446 { ac_try='test -s conftest.$ac_objext'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_c_string_h_warnings=no
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 ac_cv_c_string_h_warnings=yes
12459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12461 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12462 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12463 CFLAGS="$saved_CFLAGS"
12464 if test "$ac_cv_c_string_h_warnings" = "no"
12465 then
12466 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12471 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12472 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12473 if test "${ac_cv_asm_func_def+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 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"); }
12485 main ()
12489 return 0;
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494 (eval $ac_link) 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_asm_func_def=".def"
12514 else
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12527 main ()
12531 return 0;
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12536 (eval $ac_link) 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_cv_asm_func_def=".type @function"
12556 else
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12569 main ()
12573 return 0;
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578 (eval $ac_link) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12591 { ac_try='test -s conftest$ac_exeext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_cv_asm_func_def=".type 2"
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_asm_func_def="unknown"
12604 rm -f conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12607 rm -f conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12610 rm -f conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12613 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12614 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12618 case "$ac_cv_asm_func_def" in
12619 ".def")
12620 cat >>confdefs.h <<\_ACEOF
12621 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12622 _ACEOF
12624 ".type @function")
12625 cat >>confdefs.h <<\_ACEOF
12626 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12627 _ACEOF
12629 ".type 2")
12630 cat >>confdefs.h <<\_ACEOF
12631 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12632 _ACEOF
12635 cat >>confdefs.h <<\_ACEOF
12636 #define __ASM_FUNC(name) ""
12637 _ACEOF
12639 esac
12642 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12643 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12644 if test "${ac_cv_c_extern_prefix+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12654 extern int ac_test;
12656 main ()
12658 if (ac_test) return 1
12660 return 0;
12662 _ACEOF
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12678 { ac_try='test -s conftest$ac_exeext'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_cv_c_extern_prefix="yes"
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12689 ac_cv_c_extern_prefix="no"
12691 rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12694 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12695 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12699 if test "$ac_cv_c_extern_prefix" = "yes"
12700 then
12701 cat >>confdefs.h <<\_ACEOF
12702 #define __ASM_NAME(name) "_" name
12703 _ACEOF
12705 else
12706 cat >>confdefs.h <<\_ACEOF
12707 #define __ASM_NAME(name) name
12708 _ACEOF
12713 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12714 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12715 if test "${ac_cv_c_asm_string+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12727 main ()
12731 return 0;
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736 (eval $ac_link) 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_cv_c_asm_string=".string"
12756 else
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12769 main ()
12773 return 0;
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 ac_cv_c_asm_string=".asciz"
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12811 main ()
12815 return 0;
12817 _ACEOF
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820 (eval $ac_link) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12833 { ac_try='test -s conftest$ac_exeext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_c_asm_string=".ascii"
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12845 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12846 { (exit 1); exit 1; }; }
12848 rm -f conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12851 rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12854 rm -f conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12857 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12858 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12861 cat >>confdefs.h <<_ACEOF
12862 #define __ASM_STRING "$ac_cv_c_asm_string"
12863 _ACEOF
12867 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12868 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12869 if test "${ac_cv_c_asm_short+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12881 main ()
12885 return 0;
12887 _ACEOF
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890 (eval $ac_link) 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_c_asm_short=".short"
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12923 main ()
12927 return 0;
12929 _ACEOF
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932 (eval $ac_link) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_cv_c_asm_short=".half"
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12957 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12958 { (exit 1); exit 1; }; }
12960 rm -f conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12963 rm -f conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12966 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12967 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12970 cat >>confdefs.h <<_ACEOF
12971 #define __ASM_SHORT "$ac_cv_c_asm_short"
12972 _ACEOF
12976 DLLEXT=""
12978 DLLFLAGS="-D_REENTRANT"
12980 DLLIBS=""
12982 LDSHARED=""
12984 LDDLL=""
12986 LIBEXT="so"
12988 IMPLIBEXT="def"
12991 case $host_os in
12992 cygwin*|mingw32*)
12993 if test -n "$ac_tool_prefix"; then
12994 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12995 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12996 echo "$as_me:$LINENO: checking for $ac_word" >&5
12997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12998 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001 if test -n "$DLLTOOL"; then
13002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13003 else
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13015 done
13016 done
13020 DLLTOOL=$ac_cv_prog_DLLTOOL
13021 if test -n "$DLLTOOL"; then
13022 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13023 echo "${ECHO_T}$DLLTOOL" >&6
13024 else
13025 echo "$as_me:$LINENO: result: no" >&5
13026 echo "${ECHO_T}no" >&6
13030 if test -z "$ac_cv_prog_DLLTOOL"; then
13031 ac_ct_DLLTOOL=$DLLTOOL
13032 # Extract the first word of "dlltool", so it can be a program name with args.
13033 set dummy dlltool; ac_word=$2
13034 echo "$as_me:$LINENO: checking for $ac_word" >&5
13035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13036 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039 if test -n "$ac_ct_DLLTOOL"; then
13040 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13049 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13053 done
13054 done
13056 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13060 if test -n "$ac_ct_DLLTOOL"; then
13061 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13062 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13063 else
13064 echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6
13068 DLLTOOL=$ac_ct_DLLTOOL
13069 else
13070 DLLTOOL="$ac_cv_prog_DLLTOOL"
13073 if test -n "$ac_tool_prefix"; then
13074 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13075 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13076 echo "$as_me:$LINENO: checking for $ac_word" >&5
13077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13078 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 if test -n "$DLLWRAP"; then
13082 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 break 2
13095 done
13096 done
13100 DLLWRAP=$ac_cv_prog_DLLWRAP
13101 if test -n "$DLLWRAP"; then
13102 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13103 echo "${ECHO_T}$DLLWRAP" >&6
13104 else
13105 echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6
13110 if test -z "$ac_cv_prog_DLLWRAP"; then
13111 ac_ct_DLLWRAP=$DLLWRAP
13112 # Extract the first word of "dllwrap", so it can be a program name with args.
13113 set dummy dllwrap; ac_word=$2
13114 echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13116 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 if test -n "$ac_ct_DLLWRAP"; then
13120 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13129 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13133 done
13134 done
13136 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13139 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13140 if test -n "$ac_ct_DLLWRAP"; then
13141 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13142 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13143 else
13144 echo "$as_me:$LINENO: result: no" >&5
13145 echo "${ECHO_T}no" >&6
13148 DLLWRAP=$ac_ct_DLLWRAP
13149 else
13150 DLLWRAP="$ac_cv_prog_DLLWRAP"
13153 if test "$DLLWRAP" = "false"; then
13154 LIBEXT="a"
13155 else
13156 LIBEXT="dll"
13158 IMPLIBEXT="a"
13162 for ac_header in dlfcn.h
13164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13166 echo "$as_me:$LINENO: checking for $ac_header" >&5
13167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13173 else
13174 # Is the header compilable?
13175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h. */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 $ac_includes_default
13184 #include <$ac_header>
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_header_compiler=yes
13208 else
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13212 ac_header_compiler=no
13214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13216 echo "${ECHO_T}$ac_header_compiler" >&6
13218 # Is the header present?
13219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 #include <$ac_header>
13228 _ACEOF
13229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } >/dev/null; then
13237 if test -s conftest.err; then
13238 ac_cpp_err=$ac_c_preproc_warn_flag
13239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13240 else
13241 ac_cpp_err=
13243 else
13244 ac_cpp_err=yes
13246 if test -z "$ac_cpp_err"; then
13247 ac_header_preproc=yes
13248 else
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 ac_header_preproc=no
13254 rm -f conftest.err conftest.$ac_ext
13255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13256 echo "${ECHO_T}$ac_header_preproc" >&6
13258 # So? What about this header?
13259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13260 yes:no: )
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13265 ac_header_preproc=yes
13267 no:yes:* )
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13281 cat <<\_ASBOX
13282 ## ------------------------------------ ##
13283 ## Report this to wine-devel@winehq.org ##
13284 ## ------------------------------------ ##
13285 _ASBOX
13287 sed "s/^/$as_me: WARNING: /" >&2
13289 esac
13290 echo "$as_me:$LINENO: checking for $ac_header" >&5
13291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295 eval "$as_ac_Header=\$ac_header_preproc"
13297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13302 cat >>confdefs.h <<_ACEOF
13303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13304 _ACEOF
13306 for ac_func in dlopen
13308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13309 echo "$as_me:$LINENO: checking for $ac_func" >&5
13310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13311 if eval "test \"\${$as_ac_var+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13322 #define $ac_func innocuous_$ac_func
13324 /* System header to define __stub macros and hopefully few prototypes,
13325 which can conflict with char $ac_func (); below.
13326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13327 <limits.h> exists even on freestanding compilers. */
13329 #ifdef __STDC__
13330 # include <limits.h>
13331 #else
13332 # include <assert.h>
13333 #endif
13335 #undef $ac_func
13337 /* Override any gcc2 internal prototype to avoid an error. */
13338 #ifdef __cplusplus
13339 extern "C"
13341 #endif
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char $ac_func ();
13345 /* The GNU C library defines this for functions which it implements
13346 to always fail with ENOSYS. Some functions are actually named
13347 something starting with __ and the normal name is an alias. */
13348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13349 choke me
13350 #else
13351 char (*f) () = $ac_func;
13352 #endif
13353 #ifdef __cplusplus
13355 #endif
13358 main ()
13360 return f != $ac_func;
13362 return 0;
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13367 (eval $ac_link) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 eval "$as_ac_var=yes"
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 eval "$as_ac_var=no"
13393 rm -f conftest.err conftest.$ac_objext \
13394 conftest$ac_exeext conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13398 if test `eval echo '${'$as_ac_var'}'` = yes; then
13399 cat >>confdefs.h <<_ACEOF
13400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13401 _ACEOF
13403 else
13404 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13405 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 ac_check_lib_save_LIBS=$LIBS
13410 LIBS="-ldl $LIBS"
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13418 /* Override any gcc2 internal prototype to avoid an error. */
13419 #ifdef __cplusplus
13420 extern "C"
13421 #endif
13422 /* We use char because int might match the return type of a gcc2
13423 builtin and then its argument prototype would still apply. */
13424 char dlopen ();
13426 main ()
13428 dlopen ();
13430 return 0;
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13448 { ac_try='test -s conftest$ac_exeext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_lib_dl_dlopen=yes
13455 else
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 ac_cv_lib_dl_dlopen=no
13461 rm -f conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 LIBS=$ac_check_lib_save_LIBS
13465 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13467 if test $ac_cv_lib_dl_dlopen = yes; then
13469 cat >>confdefs.h <<\_ACEOF
13470 #define HAVE_DLOPEN 1
13471 _ACEOF
13473 DLLIBS="-ldl"
13474 else
13475 LIBEXT="a"
13479 done
13481 else
13482 LIBEXT="a"
13485 done
13488 if test "$LIBEXT" = "so"
13489 then
13490 DLLFLAGS="$DLLFLAGS -fPIC"
13491 DLLEXT=".so"
13492 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13493 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13494 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497 ac_wine_try_cflags_saved=$CFLAGS
13498 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13507 main ()
13511 return 0;
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13529 { ac_try='test -s conftest$ac_exeext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_cv_c_dll_gnuelf="yes"
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_cv_c_dll_gnuelf="no"
13542 rm -f conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 CFLAGS=$ac_wine_try_cflags_saved
13546 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13547 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13548 if test "$ac_cv_c_dll_gnuelf" = "yes"
13549 then
13550 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13551 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
13552 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13553 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13554 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 ac_wine_try_cflags_saved=$CFLAGS
13558 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13567 main ()
13571 return 0;
13573 _ACEOF
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13576 (eval $ac_link) 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13589 { ac_try='test -s conftest$ac_exeext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_c_dll_zdefs="yes"
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_c_dll_zdefs="no"
13602 rm -f conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 CFLAGS=$ac_wine_try_cflags_saved
13606 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13607 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13608 if test "$ac_cv_c_dll_zdefs" = "yes"
13609 then
13610 LDDLL="$LDDLL,-z,defs"
13613 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13614 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13615 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618 ac_wine_try_cflags_saved=$CFLAGS
13619 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13628 main ()
13632 return 0;
13634 _ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_c_dll_init_fini="yes"
13657 else
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_cv_c_dll_init_fini="no"
13663 rm -f conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 CFLAGS=$ac_wine_try_cflags_saved
13667 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13668 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13669 if test "$ac_cv_c_dll_init_fini" = "yes"
13670 then
13672 cat >>confdefs.h <<\_ACEOF
13673 #define HAVE_LINKER_INIT_FINI 1
13674 _ACEOF
13676 LDDLL="$LDDLL,-init,__wine_spec_init,-fini,__wine_spec_fini"
13679 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13680 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13681 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684 echo '{ global: *; };' >conftest.map
13685 ac_wine_try_cflags_saved=$CFLAGS
13686 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13695 main ()
13699 return 0;
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704 (eval $ac_link) 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_c_ld_version_scripts="yes"
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_cv_c_ld_version_scripts="no"
13730 rm -f conftest.err conftest.$ac_objext \
13731 conftest$ac_exeext conftest.$ac_ext
13732 CFLAGS=$ac_wine_try_cflags_saved
13733 rm -f conftest.map
13735 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13736 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13737 if test "$ac_cv_c_ld_version_scripts" = "yes"
13738 then
13739 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13742 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13743 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13744 if test "${ac_cv_c_export_dynamic+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747 ac_wine_try_cflags_saved=$CFLAGS
13748 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h. */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13757 main ()
13761 return 0;
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_c_export_dynamic="yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_cv_c_export_dynamic="no"
13792 rm -f conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13794 CFLAGS=$ac_wine_try_cflags_saved
13796 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13797 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13798 if test "$ac_cv_c_export_dynamic" = "yes"
13799 then
13800 LDEXECFLAGS="-Wl,--export-dynamic"
13804 case $host_cpu in
13805 *i[3456789]86*)
13806 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
13807 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
13808 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 saved_CFLAGS="$CFLAGS"
13812 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
13813 if test "$cross_compiling" = yes; then
13814 ac_cv_ld_reloc_exec="no"
13815 else
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #include <unistd.h>
13823 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
13824 _ACEOF
13825 rm -f conftest$ac_exeext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_ld_reloc_exec="yes"
13837 else
13838 echo "$as_me: program exited with status $ac_status" >&5
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ( exit $ac_status )
13843 ac_cv_ld_reloc_exec="no"
13845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13847 CFLAGS="$saved_CFLAGS"
13849 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13850 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13851 if test "$ac_cv_ld_reloc_exec" = "yes"
13852 then
13853 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
13856 esac
13858 else
13859 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13860 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13861 if test "${ac_cv_c_dll_unixware+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864 ac_wine_try_cflags_saved=$CFLAGS
13865 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13866 cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h. */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13874 main ()
13878 return 0;
13880 _ACEOF
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13883 (eval $ac_link) 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_c_dll_unixware="yes"
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_c_dll_unixware="no"
13909 rm -f conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13911 CFLAGS=$ac_wine_try_cflags_saved
13913 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13914 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13915 if test "$ac_cv_c_dll_unixware" = "yes"
13916 then
13917 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13918 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
13920 else
13921 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13922 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13923 if test "${ac_cv_c_dll_macho+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926 ac_wine_try_cflags_saved=$CFLAGS
13927 CFLAGS="$CFLAGS -bundle"
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h. */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13936 main ()
13940 return 0;
13942 _ACEOF
13943 rm -f conftest.$ac_objext conftest$ac_exeext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945 (eval $ac_link) 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_c_dll_macho="yes"
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_cv_c_dll_macho="no"
13971 rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 CFLAGS=$ac_wine_try_cflags_saved
13975 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13976 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13977 if test "$ac_cv_c_dll_macho" = "yes"
13978 then
13979 LIBEXT="dylib"
13980 LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
13981 LDSHARED="\$(CC) -dynamiclib"
13982 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
13988 CROSSTEST=""
13990 if test "$cross_compiling" = "no"
13991 then
13992 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13994 # Extract the first word of "$ac_prog", so it can be a program name with args.
13995 set dummy $ac_prog; ac_word=$2
13996 echo "$as_me:$LINENO: checking for $ac_word" >&5
13997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13998 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001 if test -n "$CROSSCC"; then
14002 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14003 else
14004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14005 for as_dir in $PATH
14007 IFS=$as_save_IFS
14008 test -z "$as_dir" && as_dir=.
14009 for ac_exec_ext in '' $ac_executable_extensions; do
14010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14011 ac_cv_prog_CROSSCC="$ac_prog"
14012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14013 break 2
14015 done
14016 done
14020 CROSSCC=$ac_cv_prog_CROSSCC
14021 if test -n "$CROSSCC"; then
14022 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14023 echo "${ECHO_T}$CROSSCC" >&6
14024 else
14025 echo "$as_me:$LINENO: result: no" >&5
14026 echo "${ECHO_T}no" >&6
14029 test -n "$CROSSCC" && break
14030 done
14031 test -n "$CROSSCC" || CROSSCC="false"
14033 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14035 # Extract the first word of "$ac_prog", so it can be a program name with args.
14036 set dummy $ac_prog; ac_word=$2
14037 echo "$as_me:$LINENO: checking for $ac_word" >&5
14038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14039 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042 if test -n "$DLLTOOL"; then
14043 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14044 else
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14052 ac_cv_prog_DLLTOOL="$ac_prog"
14053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14056 done
14057 done
14061 DLLTOOL=$ac_cv_prog_DLLTOOL
14062 if test -n "$DLLTOOL"; then
14063 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14064 echo "${ECHO_T}$DLLTOOL" >&6
14065 else
14066 echo "$as_me:$LINENO: result: no" >&5
14067 echo "${ECHO_T}no" >&6
14070 test -n "$DLLTOOL" && break
14071 done
14072 test -n "$DLLTOOL" || DLLTOOL="false"
14074 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14076 # Extract the first word of "$ac_prog", so it can be a program name with args.
14077 set dummy $ac_prog; ac_word=$2
14078 echo "$as_me:$LINENO: checking for $ac_word" >&5
14079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14080 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083 if test -n "$CROSSWINDRES"; then
14084 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093 ac_cv_prog_CROSSWINDRES="$ac_prog"
14094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 break 2
14097 done
14098 done
14102 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14103 if test -n "$CROSSWINDRES"; then
14104 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14105 echo "${ECHO_T}$CROSSWINDRES" >&6
14106 else
14107 echo "$as_me:$LINENO: result: no" >&5
14108 echo "${ECHO_T}no" >&6
14111 test -n "$CROSSWINDRES" && break
14112 done
14113 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14115 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14118 esac
14120 if test "$LIBEXT" = "a"; then
14121 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14122 It is currently not possible to build Wine without shared library
14123 (.so) support to allow transparent switch between .so and .dll files.
14124 If you are using Linux, you will need a newer binutils.
14125 " >&5
14126 echo "$as_me: error: could not find a way to build shared libraries.
14127 It is currently not possible to build Wine without shared library
14128 (.so) support to allow transparent switch between .so and .dll files.
14129 If you are using Linux, you will need a newer binutils.
14130 " >&2;}
14131 { (exit 1); exit 1; }; }
14134 case $build_os in
14135 cygwin*|mingw32*)
14136 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14138 darwin*|macosx*)
14139 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14142 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14144 esac
14146 case $host_os in
14147 mingw32*)
14148 CRTLIBS="-lmsvcrt"
14150 esac
14152 case $host_os in
14153 linux*)
14154 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14156 MAIN_BINARY="wine-glibc"
14160 WINE_BINARIES="wine-kthread"
14162 MAIN_BINARY="wine-kthread"
14165 esac
14168 if test "$LIBEXT" = "so"
14169 then
14170 # Extract the first word of "ldd", so it can be a program name with args.
14171 set dummy ldd; ac_word=$2
14172 echo "$as_me:$LINENO: checking for $ac_word" >&5
14173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14174 if test "${ac_cv_path_LDD+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 else
14177 case $LDD in
14178 [\\/]* | ?:[\\/]*)
14179 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 as_dummy="/sbin:/usr/sbin:$PATH"
14184 for as_dir in $as_dummy
14186 IFS=$as_save_IFS
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14190 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 break 2
14194 done
14195 done
14197 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14199 esac
14201 LDD=$ac_cv_path_LDD
14203 if test -n "$LDD"; then
14204 echo "$as_me:$LINENO: result: $LDD" >&5
14205 echo "${ECHO_T}$LDD" >&6
14206 else
14207 echo "$as_me:$LINENO: result: no" >&5
14208 echo "${ECHO_T}no" >&6
14212 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14213 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14214 if test "${ac_cv_lib_soname_X11+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 ac_get_soname_save_LIBS=$LIBS
14218 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14226 /* Override any gcc2 internal prototype to avoid an error. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 /* We use char because int might match the return type of a gcc2
14231 builtin and then its argument prototype would still apply. */
14232 char XCreateWindow ();
14234 main ()
14236 XCreateWindow ();
14238 return 0;
14240 _ACEOF
14241 rm -f conftest.$ac_objext conftest$ac_exeext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest$ac_exeext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14263 if test "x$ac_cv_lib_soname_X11" = "x"
14264 then
14265 ac_cv_lib_soname_X11="libX11.so"
14267 else
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_lib_soname_X11="libX11.so"
14273 rm -f conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 LIBS=$ac_get_soname_save_LIBS
14277 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14278 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14279 if test "x$ac_cv_lib_soname_X11" != xNONE
14280 then
14281 cat >>confdefs.h <<_ACEOF
14282 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14283 _ACEOF
14286 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14287 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14288 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 ac_get_soname_save_LIBS=$LIBS
14292 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 /* Override any gcc2 internal prototype to avoid an error. */
14301 #ifdef __cplusplus
14302 extern "C"
14303 #endif
14304 /* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14306 char XextCreateExtension ();
14308 main ()
14310 XextCreateExtension ();
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>conftest.er1
14318 ac_status=$?
14319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
14324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14337 if test "x$ac_cv_lib_soname_Xext" = "x"
14338 then
14339 ac_cv_lib_soname_Xext="libXext.so"
14341 else
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_cv_lib_soname_Xext="libXext.so"
14347 rm -f conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_get_soname_save_LIBS
14351 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14352 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14353 if test "x$ac_cv_lib_soname_Xext" != xNONE
14354 then
14355 cat >>confdefs.h <<_ACEOF
14356 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14357 _ACEOF
14360 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14361 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14362 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 ac_get_soname_save_LIBS=$LIBS
14366 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14374 /* Override any gcc2 internal prototype to avoid an error. */
14375 #ifdef __cplusplus
14376 extern "C"
14377 #endif
14378 /* We use char because int might match the return type of a gcc2
14379 builtin and then its argument prototype would still apply. */
14380 char XOpenDevice ();
14382 main ()
14384 XOpenDevice ();
14386 return 0;
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>conftest.er1
14392 ac_status=$?
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14411 if test "x$ac_cv_lib_soname_Xi" = "x"
14412 then
14413 ac_cv_lib_soname_Xi="libXi.so"
14415 else
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 ac_cv_lib_soname_Xi="libXi.so"
14421 rm -f conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 LIBS=$ac_get_soname_save_LIBS
14425 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14426 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14427 if test "x$ac_cv_lib_soname_Xi" != xNONE
14428 then
14429 cat >>confdefs.h <<_ACEOF
14430 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14431 _ACEOF
14434 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14435 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14436 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 ac_get_soname_save_LIBS=$LIBS
14440 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14441 cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14448 /* Override any gcc2 internal prototype to avoid an error. */
14449 #ifdef __cplusplus
14450 extern "C"
14451 #endif
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14454 char XRenderQueryExtension ();
14456 main ()
14458 XRenderQueryExtension ();
14460 return 0;
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465 (eval $ac_link) 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; } &&
14478 { ac_try='test -s conftest$ac_exeext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14485 if test "x$ac_cv_lib_soname_Xrender" = "x"
14486 then
14487 ac_cv_lib_soname_Xrender="libXrender.so"
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_lib_soname_Xrender="libXrender.so"
14495 rm -f conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext conftest.$ac_ext
14497 LIBS=$ac_get_soname_save_LIBS
14499 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14500 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14501 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14502 then
14503 cat >>confdefs.h <<_ACEOF
14504 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14505 _ACEOF
14508 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14509 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14510 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513 ac_get_soname_save_LIBS=$LIBS
14514 LIBS="-lfreetype $X_LIBS $LIBS"
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 /* Override any gcc2 internal prototype to avoid an error. */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14528 char FT_Init_FreeType ();
14530 main ()
14532 FT_Init_FreeType ();
14534 return 0;
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } &&
14552 { ac_try='test -s conftest$ac_exeext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
14559 if test "x$ac_cv_lib_soname_freetype" = "x"
14560 then
14561 ac_cv_lib_soname_freetype="libfreetype.so"
14563 else
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14567 ac_cv_lib_soname_freetype="libfreetype.so"
14569 rm -f conftest.err conftest.$ac_objext \
14570 conftest$ac_exeext conftest.$ac_ext
14571 LIBS=$ac_get_soname_save_LIBS
14573 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14574 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14575 if test "x$ac_cv_lib_soname_freetype" != xNONE
14576 then
14577 cat >>confdefs.h <<_ACEOF
14578 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14579 _ACEOF
14582 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14583 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14584 if test "${ac_cv_lib_soname_GL+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 ac_get_soname_save_LIBS=$LIBS
14588 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14596 /* Override any gcc2 internal prototype to avoid an error. */
14597 #ifdef __cplusplus
14598 extern "C"
14599 #endif
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14602 char glXQueryExtension ();
14604 main ()
14606 glXQueryExtension ();
14608 return 0;
14610 _ACEOF
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14613 (eval $ac_link) 2>conftest.er1
14614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest$ac_exeext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
14633 if test "x$ac_cv_lib_soname_GL" = "x"
14634 then
14635 ac_cv_lib_soname_GL="libGL.so"
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_cv_lib_soname_GL="libGL.so"
14643 rm -f conftest.err conftest.$ac_objext \
14644 conftest$ac_exeext conftest.$ac_ext
14645 LIBS=$ac_get_soname_save_LIBS
14647 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14648 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14649 if test "x$ac_cv_lib_soname_GL" != xNONE
14650 then
14651 cat >>confdefs.h <<_ACEOF
14652 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14653 _ACEOF
14656 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14657 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14658 if test "${ac_cv_lib_soname_cups+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 ac_get_soname_save_LIBS=$LIBS
14662 LIBS="-lcups $LIBS"
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* Override any gcc2 internal prototype to avoid an error. */
14671 #ifdef __cplusplus
14672 extern "C"
14673 #endif
14674 /* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14676 char cupsGetDefault ();
14678 main ()
14680 cupsGetDefault ();
14682 return 0;
14684 _ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14687 (eval $ac_link) 2>conftest.er1
14688 ac_status=$?
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
14694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest$ac_exeext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
14707 if test "x$ac_cv_lib_soname_cups" = "x"
14708 then
14709 ac_cv_lib_soname_cups="libcups.so"
14711 else
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_cv_lib_soname_cups="libcups.so"
14717 rm -f conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_get_soname_save_LIBS
14721 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14722 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14723 if test "x$ac_cv_lib_soname_cups" != xNONE
14724 then
14725 cat >>confdefs.h <<_ACEOF
14726 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14727 _ACEOF
14730 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14731 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14732 if test "${ac_cv_lib_soname_jack+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 ac_get_soname_save_LIBS=$LIBS
14736 LIBS="-ljack $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h. */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any gcc2 internal prototype to avoid an error. */
14745 #ifdef __cplusplus
14746 extern "C"
14747 #endif
14748 /* We use char because int might match the return type of a gcc2
14749 builtin and then its argument prototype would still apply. */
14750 char jack_client_new ();
14752 main ()
14754 jack_client_new ();
14756 return 0;
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14761 (eval $ac_link) 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest$ac_exeext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
14781 if test "x$ac_cv_lib_soname_jack" = "x"
14782 then
14783 ac_cv_lib_soname_jack="libjack.so"
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_lib_soname_jack="libjack.so"
14791 rm -f conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_get_soname_save_LIBS
14795 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14796 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14797 if test "x$ac_cv_lib_soname_jack" != xNONE
14798 then
14799 cat >>confdefs.h <<_ACEOF
14800 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14801 _ACEOF
14804 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14805 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14806 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 ac_get_soname_save_LIBS=$LIBS
14810 LIBS="-lfontconfig $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any gcc2 internal prototype to avoid an error. */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 /* We use char because int might match the return type of a gcc2
14823 builtin and then its argument prototype would still apply. */
14824 char FcInit ();
14826 main ()
14828 FcInit ();
14830 return 0;
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
14842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
14855 if test "x$ac_cv_lib_soname_fontconfig" = "x"
14856 then
14857 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14859 else
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14865 rm -f conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14867 LIBS=$ac_get_soname_save_LIBS
14869 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14870 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14871 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
14872 then
14873 cat >>confdefs.h <<_ACEOF
14874 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14875 _ACEOF
14878 echo "$as_me:$LINENO: checking for -lssl soname" >&5
14879 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14880 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883 ac_get_soname_save_LIBS=$LIBS
14884 LIBS="-lssl $LIBS"
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h. */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14892 /* Override any gcc2 internal prototype to avoid an error. */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14898 char SSL_library_init ();
14900 main ()
14902 SSL_library_init ();
14904 return 0;
14906 _ACEOF
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
14929 if test "x$ac_cv_lib_soname_ssl" = "x"
14930 then
14931 ac_cv_lib_soname_ssl="libssl.so"
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 ac_cv_lib_soname_ssl="libssl.so"
14939 rm -f conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext conftest.$ac_ext
14941 LIBS=$ac_get_soname_save_LIBS
14943 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14944 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14945 if test "x$ac_cv_lib_soname_ssl" != xNONE
14946 then
14947 cat >>confdefs.h <<_ACEOF
14948 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14949 _ACEOF
14952 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14953 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14954 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957 ac_get_soname_save_LIBS=$LIBS
14958 LIBS="-lcrypto $LIBS"
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h. */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14966 /* Override any gcc2 internal prototype to avoid an error. */
14967 #ifdef __cplusplus
14968 extern "C"
14969 #endif
14970 /* We use char because int might match the return type of a gcc2
14971 builtin and then its argument prototype would still apply. */
14972 char BIO_new_socket ();
14974 main ()
14976 BIO_new_socket ();
14978 return 0;
14980 _ACEOF
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14983 (eval $ac_link) 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15003 if test "x$ac_cv_lib_soname_crypto" = "x"
15004 then
15005 ac_cv_lib_soname_crypto="libcrypto.so"
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_cv_lib_soname_crypto="libcrypto.so"
15013 rm -f conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_get_soname_save_LIBS
15017 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15018 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15019 if test "x$ac_cv_lib_soname_crypto" != xNONE
15020 then
15021 cat >>confdefs.h <<_ACEOF
15022 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15023 _ACEOF
15026 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15027 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15028 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031 ac_get_soname_save_LIBS=$LIBS
15032 LIBS="-lncurses $LIBS"
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15040 /* Override any gcc2 internal prototype to avoid an error. */
15041 #ifdef __cplusplus
15042 extern "C"
15043 #endif
15044 /* We use char because int might match the return type of a gcc2
15045 builtin and then its argument prototype would still apply. */
15046 char waddch ();
15048 main ()
15050 waddch ();
15052 return 0;
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest$ac_exeext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15077 if test "x$ac_cv_lib_soname_ncurses" = "x"
15078 then
15079 ac_cv_lib_soname_ncurses="libncurses.so"
15081 else
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 ac_cv_lib_soname_ncurses="libncurses.so"
15087 rm -f conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_get_soname_save_LIBS
15091 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15092 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15093 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15094 then
15095 cat >>confdefs.h <<_ACEOF
15096 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15097 _ACEOF
15100 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15101 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15102 if test "${ac_cv_lib_soname_curses+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105 ac_get_soname_save_LIBS=$LIBS
15106 LIBS="-lcurses $LIBS"
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15114 /* Override any gcc2 internal prototype to avoid an error. */
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 /* We use char because int might match the return type of a gcc2
15119 builtin and then its argument prototype would still apply. */
15120 char waddch ();
15122 main ()
15124 waddch ();
15126 return 0;
15128 _ACEOF
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15131 (eval $ac_link) 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15151 if test "x$ac_cv_lib_soname_curses" = "x"
15152 then
15153 ac_cv_lib_soname_curses="libcurses.so"
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_cv_lib_soname_curses="libcurses.so"
15161 rm -f conftest.err conftest.$ac_objext \
15162 conftest$ac_exeext conftest.$ac_ext
15163 LIBS=$ac_get_soname_save_LIBS
15165 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15166 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15167 if test "x$ac_cv_lib_soname_curses" != xNONE
15168 then
15169 cat >>confdefs.h <<_ACEOF
15170 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15171 _ACEOF
15177 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15178 # for constant arguments. Useless!
15179 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15180 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15181 if test "${ac_cv_working_alloca_h+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 #include <alloca.h>
15192 main ()
15194 char *p = (char *) alloca (2 * sizeof (int));
15196 return 0;
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15201 (eval $ac_link) 2>conftest.er1
15202 ac_status=$?
15203 grep -v '^ *+' conftest.er1 >conftest.err
15204 rm -f conftest.er1
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; } &&
15214 { ac_try='test -s conftest$ac_exeext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_working_alloca_h=yes
15221 else
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_cv_working_alloca_h=no
15227 rm -f conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
15230 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15231 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15232 if test $ac_cv_working_alloca_h = yes; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_ALLOCA_H 1
15236 _ACEOF
15240 echo "$as_me:$LINENO: checking for alloca" >&5
15241 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15242 if test "${ac_cv_func_alloca_works+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #ifdef __GNUC__
15252 # define alloca __builtin_alloca
15253 #else
15254 # ifdef _MSC_VER
15255 # include <malloc.h>
15256 # define alloca _alloca
15257 # else
15258 # if HAVE_ALLOCA_H
15259 # include <alloca.h>
15260 # else
15261 # ifdef _AIX
15262 #pragma alloca
15263 # else
15264 # ifndef alloca /* predefined by HP cc +Olibcalls */
15265 char *alloca ();
15266 # endif
15267 # endif
15268 # endif
15269 # endif
15270 #endif
15273 main ()
15275 char *p = (char *) alloca (1);
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15282 (eval $ac_link) 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest$ac_exeext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_cv_func_alloca_works=yes
15302 else
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_cv_func_alloca_works=no
15308 rm -f conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15311 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15312 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15314 if test $ac_cv_func_alloca_works = yes; then
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_ALLOCA 1
15318 _ACEOF
15320 else
15321 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15322 # that cause trouble. Some versions do not even contain alloca or
15323 # contain a buggy version. If you still want to use their alloca,
15324 # use ar to extract alloca.o from them instead of compiling alloca.c.
15326 ALLOCA=alloca.$ac_objext
15328 cat >>confdefs.h <<\_ACEOF
15329 #define C_ALLOCA 1
15330 _ACEOF
15333 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15334 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15335 if test "${ac_cv_os_cray+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 #if defined(CRAY) && ! defined(CRAY2)
15345 webecray
15346 #else
15347 wenotbecray
15348 #endif
15350 _ACEOF
15351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15352 $EGREP "webecray" >/dev/null 2>&1; then
15353 ac_cv_os_cray=yes
15354 else
15355 ac_cv_os_cray=no
15357 rm -f conftest*
15360 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15361 echo "${ECHO_T}$ac_cv_os_cray" >&6
15362 if test $ac_cv_os_cray = yes; then
15363 for ac_func in _getb67 GETB67 getb67; do
15364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15365 echo "$as_me:$LINENO: checking for $ac_func" >&5
15366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15367 if eval "test \"\${$as_ac_var+set}\" = set"; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370 cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h. */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15378 #define $ac_func innocuous_$ac_func
15380 /* System header to define __stub macros and hopefully few prototypes,
15381 which can conflict with char $ac_func (); below.
15382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15383 <limits.h> exists even on freestanding compilers. */
15385 #ifdef __STDC__
15386 # include <limits.h>
15387 #else
15388 # include <assert.h>
15389 #endif
15391 #undef $ac_func
15393 /* Override any gcc2 internal prototype to avoid an error. */
15394 #ifdef __cplusplus
15395 extern "C"
15397 #endif
15398 /* We use char because int might match the return type of a gcc2
15399 builtin and then its argument prototype would still apply. */
15400 char $ac_func ();
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15405 choke me
15406 #else
15407 char (*f) () = $ac_func;
15408 #endif
15409 #ifdef __cplusplus
15411 #endif
15414 main ()
15416 return f != $ac_func;
15418 return 0;
15420 _ACEOF
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15423 (eval $ac_link) 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s 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 eval "$as_ac_var=yes"
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 eval "$as_ac_var=no"
15449 rm -f conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15454 if test `eval echo '${'$as_ac_var'}'` = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define CRAY_STACKSEG_END $ac_func
15458 _ACEOF
15460 break
15463 done
15466 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15467 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15468 if test "${ac_cv_c_stack_direction+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 else
15471 if test "$cross_compiling" = yes; then
15472 ac_cv_c_stack_direction=0
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15481 find_stack_direction ()
15483 static char *addr = 0;
15484 auto char dummy;
15485 if (addr == 0)
15487 addr = &dummy;
15488 return find_stack_direction ();
15490 else
15491 return (&dummy > addr) ? 1 : -1;
15495 main ()
15497 exit (find_stack_direction () < 0);
15499 _ACEOF
15500 rm -f conftest$ac_exeext
15501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15502 (eval $ac_link) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 ac_cv_c_stack_direction=1
15512 else
15513 echo "$as_me: program exited with status $ac_status" >&5
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ( exit $ac_status )
15518 ac_cv_c_stack_direction=-1
15520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15523 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15524 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15526 cat >>confdefs.h <<_ACEOF
15527 #define STACK_DIRECTION $ac_cv_c_stack_direction
15528 _ACEOF
15586 for ac_func in \
15587 _lwp_create \
15588 _lwp_self \
15589 _pclose \
15590 _popen \
15591 _snprintf \
15592 _spawnvp \
15593 _stricmp \
15594 _strnicmp \
15595 _vsnprintf \
15596 chsize \
15597 clone \
15598 finite \
15599 fpclass \
15600 ftruncate \
15601 ftruncate64 \
15602 getnetbyaddr \
15603 getnetbyname \
15604 getopt_long \
15605 getpagesize \
15606 getprotobyname \
15607 getprotobynumber \
15608 getpwuid \
15609 getservbyport \
15610 gettid \
15611 gettimeofday \
15612 inet_network \
15613 lseek64 \
15614 lstat \
15615 memmove \
15616 mmap \
15617 pclose \
15618 popen \
15619 pread \
15620 pwrite \
15621 readlink \
15622 rfork \
15623 select \
15624 sendmsg \
15625 settimeofday \
15626 sigaltstack \
15627 snprintf \
15628 spawnvp \
15629 statfs \
15630 strcasecmp \
15631 strerror \
15632 strncasecmp \
15633 tcgetattr \
15634 timegm \
15635 usleep \
15636 vfscanf \
15637 vsnprintf \
15638 wait4 \
15639 waitpid \
15642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15643 echo "$as_me:$LINENO: checking for $ac_func" >&5
15644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15645 if eval "test \"\${$as_ac_var+set}\" = set"; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15656 #define $ac_func innocuous_$ac_func
15658 /* System header to define __stub macros and hopefully few prototypes,
15659 which can conflict with char $ac_func (); below.
15660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661 <limits.h> exists even on freestanding compilers. */
15663 #ifdef __STDC__
15664 # include <limits.h>
15665 #else
15666 # include <assert.h>
15667 #endif
15669 #undef $ac_func
15671 /* Override any gcc2 internal prototype to avoid an error. */
15672 #ifdef __cplusplus
15673 extern "C"
15675 #endif
15676 /* We use char because int might match the return type of a gcc2
15677 builtin and then its argument prototype would still apply. */
15678 char $ac_func ();
15679 /* The GNU C library defines this for functions which it implements
15680 to always fail with ENOSYS. Some functions are actually named
15681 something starting with __ and the normal name is an alias. */
15682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15683 choke me
15684 #else
15685 char (*f) () = $ac_func;
15686 #endif
15687 #ifdef __cplusplus
15689 #endif
15692 main ()
15694 return f != $ac_func;
15696 return 0;
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15701 (eval $ac_link) 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; } &&
15714 { ac_try='test -s conftest$ac_exeext'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 eval "$as_ac_var=yes"
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 eval "$as_ac_var=no"
15727 rm -f conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
15730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15732 if test `eval echo '${'$as_ac_var'}'` = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15735 _ACEOF
15738 done
15824 for ac_header in \
15825 arpa/inet.h \
15826 arpa/nameser.h \
15827 cups/cups.h \
15828 direct.h \
15829 elf.h \
15830 float.h \
15831 fontconfig/fontconfig.h \
15832 getopt.h \
15833 ieeefp.h \
15834 io.h \
15835 jack/jack.h \
15836 libio.h \
15837 libutil.h \
15838 link.h \
15839 linux/cdrom.h \
15840 linux/hdreg.h \
15841 linux/input.h \
15842 linux/joystick.h \
15843 linux/major.h \
15844 linux/param.h \
15845 linux/serial.h \
15846 linux/ucdrom.h \
15847 machine/cpu.h \
15848 netdb.h \
15849 netinet/in.h \
15850 netinet/in_systm.h \
15851 netinet/tcp.h \
15852 netinet/tcp_fsm.h \
15853 openssl/ssl.h \
15854 process.h \
15855 pthread.h \
15856 pty.h \
15857 pwd.h \
15858 regex.h \
15859 sched.h \
15860 scsi/sg.h \
15861 scsi/scsi.h \
15862 scsi/scsi_ioctl.h \
15863 socket.h \
15864 stdint.h \
15865 strings.h \
15866 sys/cdio.h \
15867 sys/elf32.h \
15868 sys/errno.h \
15869 sys/exec_elf.h \
15870 sys/file.h \
15871 sys/filio.h \
15872 sys/inttypes.h \
15873 sys/ioctl.h \
15874 sys/ipc.h \
15875 sys/link.h \
15876 sys/lwp.h \
15877 sys/mman.h \
15878 sys/modem.h \
15879 sys/msg.h \
15880 sys/param.h \
15881 sys/poll.h \
15882 sys/ptrace.h \
15883 sys/reg.h \
15884 sys/scsiio.h \
15885 sys/shm.h \
15886 sys/signal.h \
15887 sys/socket.h \
15888 sys/sockio.h \
15889 sys/statfs.h \
15890 sys/strtio.h \
15891 sys/syscall.h \
15892 sys/sysctl.h \
15893 sys/time.h \
15894 sys/times.h \
15895 sys/uio.h \
15896 sys/un.h \
15897 sys/v86.h \
15898 sys/v86intr.h \
15899 sys/vfs.h \
15900 sys/vm86.h \
15901 sys/wait.h \
15902 syscall.h \
15903 termios.h \
15904 unistd.h \
15905 utime.h \
15906 valgrind/memcheck.h
15909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15911 echo "$as_me:$LINENO: checking for $ac_header" >&5
15912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15918 else
15919 # Is the header compilable?
15920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 $ac_includes_default
15929 #include <$ac_header>
15930 _ACEOF
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_header_compiler=yes
15953 else
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 ac_header_compiler=no
15959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15961 echo "${ECHO_T}$ac_header_compiler" >&6
15963 # Is the header present?
15964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h. */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 #include <$ac_header>
15973 _ACEOF
15974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15976 ac_status=$?
15977 grep -v '^ *+' conftest.er1 >conftest.err
15978 rm -f conftest.er1
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } >/dev/null; then
15982 if test -s conftest.err; then
15983 ac_cpp_err=$ac_c_preproc_warn_flag
15984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15985 else
15986 ac_cpp_err=
15988 else
15989 ac_cpp_err=yes
15991 if test -z "$ac_cpp_err"; then
15992 ac_header_preproc=yes
15993 else
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 ac_header_preproc=no
15999 rm -f conftest.err conftest.$ac_ext
16000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16001 echo "${ECHO_T}$ac_header_preproc" >&6
16003 # So? What about this header?
16004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16005 yes:no: )
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16010 ac_header_preproc=yes
16012 no:yes:* )
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16026 cat <<\_ASBOX
16027 ## ------------------------------------ ##
16028 ## Report this to wine-devel@winehq.org ##
16029 ## ------------------------------------ ##
16030 _ASBOX
16032 sed "s/^/$as_me: WARNING: /" >&2
16034 esac
16035 echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 eval "$as_ac_Header=\$ac_header_preproc"
16042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16047 cat >>confdefs.h <<_ACEOF
16048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16049 _ACEOF
16053 done
16055 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16056 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16057 if test "${ac_cv_header_stat_broken+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060 cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h. */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 #include <sys/types.h>
16067 #include <sys/stat.h>
16069 #if defined(S_ISBLK) && defined(S_IFDIR)
16070 # if S_ISBLK (S_IFDIR)
16071 You lose.
16072 # endif
16073 #endif
16075 #if defined(S_ISBLK) && defined(S_IFCHR)
16076 # if S_ISBLK (S_IFCHR)
16077 You lose.
16078 # endif
16079 #endif
16081 #if defined(S_ISLNK) && defined(S_IFREG)
16082 # if S_ISLNK (S_IFREG)
16083 You lose.
16084 # endif
16085 #endif
16087 #if defined(S_ISSOCK) && defined(S_IFREG)
16088 # if S_ISSOCK (S_IFREG)
16089 You lose.
16090 # endif
16091 #endif
16093 _ACEOF
16094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16095 $EGREP "You lose" >/dev/null 2>&1; then
16096 ac_cv_header_stat_broken=yes
16097 else
16098 ac_cv_header_stat_broken=no
16100 rm -f conftest*
16103 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16104 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16105 if test $ac_cv_header_stat_broken = yes; then
16107 cat >>confdefs.h <<\_ACEOF
16108 #define STAT_MACROS_BROKEN 1
16109 _ACEOF
16117 for ac_header in sys/mount.h sys/user.h
16119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16120 echo "$as_me:$LINENO: checking for $ac_header" >&5
16121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <sys/types.h>
16132 #if HAVE_SYS_PARAM_H
16133 # include <sys/param.h>
16134 #endif
16136 #include <$ac_header>
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try='test -s conftest.$ac_objext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 eval "$as_ac_Header=yes"
16160 else
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16164 eval "$as_ac_Header=no"
16166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16173 _ACEOF
16177 done
16185 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16188 echo "$as_me:$LINENO: checking for $ac_header" >&5
16189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h. */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 #include <sys/types.h>
16200 #if HAVE_SYS_SOCKET_H
16201 # include <sys/socket.h>
16202 #endif
16204 #include <$ac_header>
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208 (eval $ac_compile) 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest.$ac_objext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 eval "$as_ac_Header=yes"
16228 else
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 eval "$as_ac_Header=no"
16234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16239 cat >>confdefs.h <<_ACEOF
16240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16241 _ACEOF
16245 done
16249 for ac_header in resolv.h
16251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16252 echo "$as_me:$LINENO: checking for $ac_header" >&5
16253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 #include <sys/types.h>
16264 #if HAVE_SYS_SOCKET_H
16265 # include <sys/socket.h>
16266 #endif
16267 #if HAVE_NETINET_IN_H
16268 # include <netinet/in.h>
16269 #endif
16270 #if HAVE_ARPA_NAMESER_H
16271 # include <arpa/nameser.h>
16272 #endif
16274 #include <$ac_header>
16275 _ACEOF
16276 rm -f conftest.$ac_objext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16278 (eval $ac_compile) 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 eval "$as_ac_Header=yes"
16298 else
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 eval "$as_ac_Header=no"
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16309 cat >>confdefs.h <<_ACEOF
16310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16311 _ACEOF
16315 done
16319 for ac_header in netinet/ip.h
16321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <sys/types.h>
16334 #if HAVE_SYS_SOCKET_H
16335 # include <sys/socket.h>
16336 #endif
16337 #if HAVE_NETINET_IN_SYSTM_H
16338 # include <netinet/in_systm.h>
16339 #endif
16341 #include <$ac_header>
16342 _ACEOF
16343 rm -f conftest.$ac_objext
16344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16345 (eval $ac_compile) 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 eval "$as_ac_Header=yes"
16365 else
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 eval "$as_ac_Header=no"
16371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16376 cat >>confdefs.h <<_ACEOF
16377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16378 _ACEOF
16382 done
16386 for ac_header in ucontext.h
16388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16389 echo "$as_me:$LINENO: checking for $ac_header" >&5
16390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 #include <signal.h>
16402 #include <$ac_header>
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406 (eval $ac_compile) 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
16413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest.$ac_objext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 eval "$as_ac_Header=yes"
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 eval "$as_ac_Header=no"
16432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16437 cat >>confdefs.h <<_ACEOF
16438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16439 _ACEOF
16443 done
16447 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16448 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16449 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h. */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <sys/types.h>
16459 #ifdef HAVE_SYS_SOCKET_H
16460 # include <sys/socket.h>
16461 #endif
16462 #include <netipx/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_gnu="yes"
16493 else
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 ac_cv_c_ipx_gnu="no"
16499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16502 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16503 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16504 if test "$ac_cv_c_ipx_gnu" = "yes"
16505 then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_IPX_GNU 1
16509 _ACEOF
16513 if test "$ac_cv_c_ipx_gnu" = "no"
16514 then
16515 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16516 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16517 if test "${ac_cv_c_ipx_linux+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. */
16526 #include <sys/types.h>
16527 #ifdef HAVE_SYS_SOCKET_H
16528 # include <sys/socket.h>
16529 #endif
16530 #include <asm/types.h>
16531 #include <linux/ipx.h>
16533 main ()
16535 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16537 return 0;
16539 _ACEOF
16540 rm -f conftest.$ac_objext
16541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16542 (eval $ac_compile) 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_cv_c_ipx_linux="yes"
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_c_ipx_linux="no"
16568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16571 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16572 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16573 if test "$ac_cv_c_ipx_linux" = "yes"
16574 then
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_IPX_LINUX 1
16578 _ACEOF
16584 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16585 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16586 if test "${ac_cv_c_const+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589 cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16597 main ()
16599 /* FIXME: Include the comments suggested by Paul. */
16600 #ifndef __cplusplus
16601 /* Ultrix mips cc rejects this. */
16602 typedef int charset[2];
16603 const charset x;
16604 /* SunOS 4.1.1 cc rejects this. */
16605 char const *const *ccp;
16606 char **p;
16607 /* NEC SVR4.0.2 mips cc rejects this. */
16608 struct point {int x, y;};
16609 static struct point const zero = {0,0};
16610 /* AIX XL C 1.02.0.0 rejects this.
16611 It does not let you subtract one const X* pointer from another in
16612 an arm of an if-expression whose if-part is not a constant
16613 expression */
16614 const char *g = "string";
16615 ccp = &g + (g ? g-g : 0);
16616 /* HPUX 7.0 cc rejects these. */
16617 ++ccp;
16618 p = (char**) ccp;
16619 ccp = (char const *const *) p;
16620 { /* SCO 3.2v4 cc rejects this. */
16621 char *t;
16622 char const *s = 0 ? (char *) 0 : (char const *) 0;
16624 *t++ = 0;
16626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16627 int x[] = {25, 17};
16628 const int *foo = &x[0];
16629 ++foo;
16631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16632 typedef const int *iptr;
16633 iptr p = 0;
16634 ++p;
16636 { /* AIX XL C 1.02.0.0 rejects this saying
16637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16638 struct s { int j; const int *ap[3]; };
16639 struct s *b; b->j = 5;
16641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16642 const int foo = 10;
16644 #endif
16647 return 0;
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>conftest.er1
16653 ac_status=$?
16654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest.$ac_objext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_c_const=yes
16672 else
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_c_const=no
16678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16680 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16681 echo "${ECHO_T}$ac_cv_c_const" >&6
16682 if test $ac_cv_c_const = no; then
16684 cat >>confdefs.h <<\_ACEOF
16685 #define const
16686 _ACEOF
16690 echo "$as_me:$LINENO: checking for inline" >&5
16691 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16692 if test "${ac_cv_c_inline+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 else
16695 ac_cv_c_inline=no
16696 for ac_kw in inline __inline__ __inline; do
16697 cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h. */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703 #ifndef __cplusplus
16704 typedef int foo_t;
16705 static $ac_kw foo_t static_foo () {return 0; }
16706 $ac_kw foo_t foo () {return 0; }
16707 #endif
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_c_inline=$ac_kw; break
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16738 done
16741 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16742 echo "${ECHO_T}$ac_cv_c_inline" >&6
16745 case $ac_cv_c_inline in
16746 inline | yes) ;;
16748 case $ac_cv_c_inline in
16749 no) ac_val=;;
16750 *) ac_val=$ac_cv_c_inline;;
16751 esac
16752 cat >>confdefs.h <<_ACEOF
16753 #ifndef __cplusplus
16754 #define inline $ac_val
16755 #endif
16756 _ACEOF
16758 esac
16760 echo "$as_me:$LINENO: checking for mode_t" >&5
16761 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16762 if test "${ac_cv_type_mode_t+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765 cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h. */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 $ac_includes_default
16773 main ()
16775 if ((mode_t *) 0)
16776 return 0;
16777 if (sizeof (mode_t))
16778 return 0;
16780 return 0;
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16798 { ac_try='test -s conftest.$ac_objext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_type_mode_t=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_type_mode_t=no
16811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16813 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16814 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16815 if test $ac_cv_type_mode_t = yes; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_MODE_T 1
16819 _ACEOF
16823 echo "$as_me:$LINENO: checking for off_t" >&5
16824 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16825 if test "${ac_cv_type_off_t+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 $ac_includes_default
16836 main ()
16838 if ((off_t *) 0)
16839 return 0;
16840 if (sizeof (off_t))
16841 return 0;
16843 return 0;
16845 _ACEOF
16846 rm -f conftest.$ac_objext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_type_off_t=yes
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_type_off_t=no
16874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16877 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16878 if test $ac_cv_type_off_t = yes; then
16880 cat >>confdefs.h <<_ACEOF
16881 #define HAVE_OFF_T 1
16882 _ACEOF
16886 echo "$as_me:$LINENO: checking for pid_t" >&5
16887 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16888 if test "${ac_cv_type_pid_t+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 else
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 $ac_includes_default
16899 main ()
16901 if ((pid_t *) 0)
16902 return 0;
16903 if (sizeof (pid_t))
16904 return 0;
16906 return 0;
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_type_pid_t=yes
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_type_pid_t=no
16937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16939 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16940 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16941 if test $ac_cv_type_pid_t = yes; then
16943 cat >>confdefs.h <<_ACEOF
16944 #define HAVE_PID_T 1
16945 _ACEOF
16949 echo "$as_me:$LINENO: checking for size_t" >&5
16950 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16951 if test "${ac_cv_type_size_t+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 $ac_includes_default
16962 main ()
16964 if ((size_t *) 0)
16965 return 0;
16966 if (sizeof (size_t))
16967 return 0;
16969 return 0;
16971 _ACEOF
16972 rm -f conftest.$ac_objext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16974 (eval $ac_compile) 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16987 { ac_try='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_cv_type_size_t=yes
16994 else
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ac_cv_type_size_t=no
17000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17003 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17004 if test $ac_cv_type_size_t = yes; then
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_SIZE_T 1
17008 _ACEOF
17012 echo "$as_me:$LINENO: checking for ssize_t" >&5
17013 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17014 if test "${ac_cv_type_ssize_t+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 $ac_includes_default
17025 main ()
17027 if ((ssize_t *) 0)
17028 return 0;
17029 if (sizeof (ssize_t))
17030 return 0;
17032 return 0;
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_cv_type_ssize_t=yes
17057 else
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17061 ac_cv_type_ssize_t=no
17063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17065 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17066 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17067 if test $ac_cv_type_ssize_t = yes; then
17069 cat >>confdefs.h <<_ACEOF
17070 #define HAVE_SSIZE_T 1
17071 _ACEOF
17076 echo "$as_me:$LINENO: checking for long long" >&5
17077 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17078 if test "${ac_cv_type_long_long+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17089 main ()
17091 if ((long long *) 0)
17092 return 0;
17093 if (sizeof (long long))
17094 return 0;
17096 return 0;
17098 _ACEOF
17099 rm -f conftest.$ac_objext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17101 (eval $ac_compile) 2>conftest.er1
17102 ac_status=$?
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_cv_type_long_long=yes
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_cv_type_long_long=no
17127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17130 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17132 echo "$as_me:$LINENO: checking size of long long" >&5
17133 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17134 if test "${ac_cv_sizeof_long_long+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 else
17137 if test "$ac_cv_type_long_long" = yes; then
17138 # The cast to unsigned long works around a bug in the HP C Compiler
17139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17141 # This bug is HP SR number 8606223364.
17142 if test "$cross_compiling" = yes; then
17143 # Depending upon the size, compute the lo and hi bounds.
17144 cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h. */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 $ac_includes_default
17152 main ()
17154 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17155 test_array [0] = 0
17158 return 0;
17160 _ACEOF
17161 rm -f conftest.$ac_objext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17163 (eval $ac_compile) 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest.$ac_objext'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_lo=0 ac_mid=0
17183 while :; do
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h. */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17192 main ()
17194 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17195 test_array [0] = 0
17198 return 0;
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_hi=$ac_mid; break
17223 else
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 ac_lo=`expr $ac_mid + 1`
17228 if test $ac_lo -le $ac_mid; then
17229 ac_lo= ac_hi=
17230 break
17232 ac_mid=`expr 2 '*' $ac_mid + 1`
17234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17235 done
17236 else
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 $ac_includes_default
17248 main ()
17250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17251 test_array [0] = 0
17254 return 0;
17256 _ACEOF
17257 rm -f conftest.$ac_objext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259 (eval $ac_compile) 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_hi=-1 ac_mid=-1
17279 while :; do
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 $ac_includes_default
17288 main ()
17290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17291 test_array [0] = 0
17294 return 0;
17296 _ACEOF
17297 rm -f conftest.$ac_objext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17299 (eval $ac_compile) 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest.$ac_objext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_lo=$ac_mid; break
17319 else
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17323 ac_hi=`expr '(' $ac_mid ')' - 1`
17324 if test $ac_mid -le $ac_hi; then
17325 ac_lo= ac_hi=
17326 break
17328 ac_mid=`expr 2 '*' $ac_mid`
17330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17331 done
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 ac_lo= ac_hi=
17338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17341 # Binary search between lo and hi bounds.
17342 while test "x$ac_lo" != "x$ac_hi"; do
17343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 $ac_includes_default
17352 main ()
17354 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17355 test_array [0] = 0
17358 return 0;
17360 _ACEOF
17361 rm -f conftest.$ac_objext
17362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17363 (eval $ac_compile) 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest.$ac_objext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382 ac_hi=$ac_mid
17383 else
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_lo=`expr '(' $ac_mid ')' + 1`
17389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17390 done
17391 case $ac_lo in
17392 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17393 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17394 See \`config.log' for more details." >&5
17395 echo "$as_me: error: cannot compute sizeof (long long), 77
17396 See \`config.log' for more details." >&2;}
17397 { (exit 1); exit 1; }; } ;;
17398 esac
17399 else
17400 if test "$cross_compiling" = yes; then
17401 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17402 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17403 { (exit 1); exit 1; }; }
17404 else
17405 cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h. */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 $ac_includes_default
17412 long longval () { return (long) (sizeof (long long)); }
17413 unsigned long ulongval () { return (long) (sizeof (long long)); }
17414 #include <stdio.h>
17415 #include <stdlib.h>
17417 main ()
17420 FILE *f = fopen ("conftest.val", "w");
17421 if (! f)
17422 exit (1);
17423 if (((long) (sizeof (long long))) < 0)
17425 long i = longval ();
17426 if (i != ((long) (sizeof (long long))))
17427 exit (1);
17428 fprintf (f, "%ld\n", i);
17430 else
17432 unsigned long i = ulongval ();
17433 if (i != ((long) (sizeof (long long))))
17434 exit (1);
17435 fprintf (f, "%lu\n", i);
17437 exit (ferror (f) || fclose (f) != 0);
17440 return 0;
17442 _ACEOF
17443 rm -f conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_sizeof_long_long=`cat conftest.val`
17455 else
17456 echo "$as_me: program exited with status $ac_status" >&5
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ( exit $ac_status )
17461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17462 See \`config.log' for more details." >&5
17463 echo "$as_me: error: cannot compute sizeof (long long), 77
17464 See \`config.log' for more details." >&2;}
17465 { (exit 1); exit 1; }; }
17467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17470 rm -f conftest.val
17471 else
17472 ac_cv_sizeof_long_long=0
17475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17476 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17477 cat >>confdefs.h <<_ACEOF
17478 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17479 _ACEOF
17483 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17484 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17485 if test "${wine_cv_linux_input_h+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 <linux/input.h>
17498 main ()
17501 int foo = EVIOCGBIT(EV_ABS,42);
17502 int bar = BTN_PINKIE;
17503 int fortytwo = 42;
17506 return 0;
17508 _ACEOF
17509 rm -f conftest.$ac_objext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17511 (eval $ac_compile) 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 wine_cv_linux_input_h=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 wine_cv_linux_input_h=no
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17541 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17542 if test "$wine_cv_linux_input_h" = "yes"
17543 then
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_CORRECT_LINUXINPUT_H 1
17547 _ACEOF
17552 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17553 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17554 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17564 #include <netdb.h>
17567 main ()
17570 char *name=NULL;
17571 struct hostent he;
17572 struct hostent *result;
17573 char *buf=NULL;
17574 int bufsize=0;
17575 int res,errnr;
17576 char *addr=NULL;
17577 int addrlen=0;
17578 int addrtype=0;
17579 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17580 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17583 return 0;
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 wine_cv_linux_gethostbyname_r_6=yes
17608 else
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 wine_cv_linux_gethostbyname_r_6=no
17615 rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17619 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17620 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17621 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17622 then
17624 cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17626 _ACEOF
17630 if test "$ac_cv_header_linux_joystick_h" = "yes"
17631 then
17632 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17633 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17634 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17644 #include <sys/ioctl.h>
17645 #include <linux/joystick.h>
17647 struct js_event blub;
17648 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17649 #error "no 2.2 header"
17650 #endif
17653 main ()
17655 /*empty*/
17657 return 0;
17659 _ACEOF
17660 rm -f conftest.$ac_objext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 wine_cv_linux_joystick_22_api=yes
17682 else
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 wine_cv_linux_joystick_22_api=no
17688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17691 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17692 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17693 if test "$wine_cv_linux_joystick_22_api" = "yes"
17694 then
17696 cat >>confdefs.h <<\_ACEOF
17697 #define HAVE_LINUX_22_JOYSTICK_API 1
17698 _ACEOF
17704 if test "$ac_cv_header_sys_vfs_h" = "yes"
17705 then
17706 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17707 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17708 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17718 #include <sys/types.h>
17719 #ifdef HAVE_SYS_PARAM_H
17720 # include <sys/param.h>
17721 #endif
17722 #include <sys/vfs.h>
17725 main ()
17728 struct statfs stfs;
17730 memset(&stfs,0,sizeof(stfs));
17733 return 0;
17735 _ACEOF
17736 rm -f conftest.$ac_objext
17737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17738 (eval $ac_compile) 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest.$ac_objext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 wine_cv_sys_vfs_has_statfs=yes
17758 else
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 wine_cv_sys_vfs_has_statfs=no
17765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17768 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17769 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17770 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17771 then
17773 cat >>confdefs.h <<\_ACEOF
17774 #define STATFS_DEFINED_BY_SYS_VFS 1
17775 _ACEOF
17780 if test "$ac_cv_header_sys_statfs_h" = "yes"
17781 then
17782 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17783 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17784 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17794 #include <sys/types.h>
17795 #ifdef HAVE_SYS_PARAM_H
17796 # include <sys/param.h>
17797 #endif
17798 #include <sys/statfs.h>
17801 main ()
17804 struct statfs stfs;
17807 return 0;
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17812 (eval $ac_compile) 2>conftest.er1
17813 ac_status=$?
17814 grep -v '^ *+' conftest.er1 >conftest.err
17815 rm -f conftest.er1
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 wine_cv_sys_statfs_has_statfs=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 wine_cv_sys_statfs_has_statfs=no
17839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17842 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
17843 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
17844 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17845 then
17847 cat >>confdefs.h <<\_ACEOF
17848 #define STATFS_DEFINED_BY_SYS_STATFS 1
17849 _ACEOF
17854 if test "$ac_cv_header_sys_mount_h" = "yes"
17855 then
17856 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
17857 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17858 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861 cat >conftest.$ac_ext <<_ACEOF
17862 /* confdefs.h. */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17868 #include <sys/types.h>
17869 #ifdef HAVE_SYS_PARAM_H
17870 # include <sys/param.h>
17871 #endif
17872 #include <sys/mount.h>
17875 main ()
17878 struct statfs stfs;
17881 return 0;
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest.$ac_objext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 wine_cv_sys_mount_has_statfs=yes
17906 else
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 wine_cv_sys_mount_has_statfs=no
17913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17916 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
17917 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
17918 if test "$wine_cv_sys_mount_has_statfs" = "yes"
17919 then
17921 cat >>confdefs.h <<\_ACEOF
17922 #define STATFS_DEFINED_BY_SYS_MOUNT 1
17923 _ACEOF
17929 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17930 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17931 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 #include <sys/types.h>
17941 #ifdef HAVE_SYS_PARAM_H
17942 # include <sys/param.h>
17943 #endif
17944 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17945 # include <sys/mount.h>
17946 #else
17947 # ifdef STATFS_DEFINED_BY_SYS_VFS
17948 # include <sys/vfs.h>
17949 # else
17950 # ifdef STATFS_DEFINED_BY_SYS_STATFS
17951 # include <sys/statfs.h>
17952 # endif
17953 # endif
17954 #endif
17957 main ()
17959 static struct statfs ac_aggr;
17960 if (ac_aggr.f_bfree)
17961 return 0;
17963 return 0;
17965 _ACEOF
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>conftest.er1
17969 ac_status=$?
17970 grep -v '^ *+' conftest.er1 >conftest.err
17971 rm -f conftest.er1
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest.$ac_objext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_member_struct_statfs_f_bfree=yes
17988 else
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 #include <sys/types.h>
17999 #ifdef HAVE_SYS_PARAM_H
18000 # include <sys/param.h>
18001 #endif
18002 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18003 # include <sys/mount.h>
18004 #else
18005 # ifdef STATFS_DEFINED_BY_SYS_VFS
18006 # include <sys/vfs.h>
18007 # else
18008 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18009 # include <sys/statfs.h>
18010 # endif
18011 # endif
18012 #endif
18015 main ()
18017 static struct statfs ac_aggr;
18018 if (sizeof ac_aggr.f_bfree)
18019 return 0;
18021 return 0;
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18026 (eval $ac_compile) 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; } &&
18039 { ac_try='test -s conftest.$ac_objext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_member_struct_statfs_f_bfree=yes
18046 else
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_cv_member_struct_statfs_f_bfree=no
18052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18057 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18058 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18060 cat >>confdefs.h <<_ACEOF
18061 #define HAVE_STRUCT_STATFS_F_BFREE 1
18062 _ACEOF
18066 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18067 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18068 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 else
18071 cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h. */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077 #include <sys/types.h>
18078 #ifdef HAVE_SYS_PARAM_H
18079 # include <sys/param.h>
18080 #endif
18081 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18082 # include <sys/mount.h>
18083 #else
18084 # ifdef STATFS_DEFINED_BY_SYS_VFS
18085 # include <sys/vfs.h>
18086 # else
18087 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18088 # include <sys/statfs.h>
18089 # endif
18090 # endif
18091 #endif
18094 main ()
18096 static struct statfs ac_aggr;
18097 if (ac_aggr.f_bavail)
18098 return 0;
18100 return 0;
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18105 (eval $ac_compile) 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_cv_member_struct_statfs_f_bavail=yes
18125 else
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h. */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 #include <sys/types.h>
18136 #ifdef HAVE_SYS_PARAM_H
18137 # include <sys/param.h>
18138 #endif
18139 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18140 # include <sys/mount.h>
18141 #else
18142 # ifdef STATFS_DEFINED_BY_SYS_VFS
18143 # include <sys/vfs.h>
18144 # else
18145 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18146 # include <sys/statfs.h>
18147 # endif
18148 # endif
18149 #endif
18152 main ()
18154 static struct statfs ac_aggr;
18155 if (sizeof ac_aggr.f_bavail)
18156 return 0;
18158 return 0;
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest.$ac_objext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_cv_member_struct_statfs_f_bavail=yes
18183 else
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ac_cv_member_struct_statfs_f_bavail=no
18189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18193 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18194 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18195 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18197 cat >>confdefs.h <<_ACEOF
18198 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18199 _ACEOF
18205 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18206 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18207 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h. */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18216 #include <sys/types.h>
18217 #ifdef HAVE_SYS_SOCKET_H
18218 # include <sys/socket.h>
18219 #endif
18220 #ifdef HAVE_SYS_UN_H
18221 # include <sys/un.h>
18222 #endif
18225 main ()
18227 static struct msghdr ac_aggr;
18228 if (ac_aggr.msg_accrights)
18229 return 0;
18231 return 0;
18233 _ACEOF
18234 rm -f conftest.$ac_objext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18236 (eval $ac_compile) 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; } &&
18249 { ac_try='test -s conftest.$ac_objext'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18255 ac_cv_member_struct_msghdr_msg_accrights=yes
18256 else
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 #include <sys/types.h>
18267 #ifdef HAVE_SYS_SOCKET_H
18268 # include <sys/socket.h>
18269 #endif
18270 #ifdef HAVE_SYS_UN_H
18271 # include <sys/un.h>
18272 #endif
18275 main ()
18277 static struct msghdr ac_aggr;
18278 if (sizeof ac_aggr.msg_accrights)
18279 return 0;
18281 return 0;
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest.$ac_objext'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; }; then
18305 ac_cv_member_struct_msghdr_msg_accrights=yes
18306 else
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18310 ac_cv_member_struct_msghdr_msg_accrights=no
18312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18316 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18317 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18318 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18320 cat >>confdefs.h <<_ACEOF
18321 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18322 _ACEOF
18326 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18327 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18328 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331 cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h. */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <sys/types.h>
18338 #ifdef HAVE_SYS_SOCKET_H
18339 # include <sys/socket.h>
18340 #endif
18341 #ifdef HAVE_SYS_UN_H
18342 # include <sys/un.h>
18343 #endif
18346 main ()
18348 static struct sockaddr ac_aggr;
18349 if (ac_aggr.sa_len)
18350 return 0;
18352 return 0;
18354 _ACEOF
18355 rm -f conftest.$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest.$ac_objext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_member_struct_sockaddr_sa_len=yes
18377 else
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h. */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18387 #include <sys/types.h>
18388 #ifdef HAVE_SYS_SOCKET_H
18389 # include <sys/socket.h>
18390 #endif
18391 #ifdef HAVE_SYS_UN_H
18392 # include <sys/un.h>
18393 #endif
18396 main ()
18398 static struct sockaddr ac_aggr;
18399 if (sizeof ac_aggr.sa_len)
18400 return 0;
18402 return 0;
18404 _ACEOF
18405 rm -f conftest.$ac_objext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18407 (eval $ac_compile) 2>conftest.er1
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
18414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest.$ac_objext'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_member_struct_sockaddr_sa_len=yes
18427 else
18428 echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18431 ac_cv_member_struct_sockaddr_sa_len=no
18433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18438 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18439 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18441 cat >>confdefs.h <<_ACEOF
18442 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18443 _ACEOF
18447 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18448 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18449 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <sys/types.h>
18459 #ifdef HAVE_SYS_SOCKET_H
18460 # include <sys/socket.h>
18461 #endif
18462 #ifdef HAVE_SYS_UN_H
18463 # include <sys/un.h>
18464 #endif
18467 main ()
18469 static struct sockaddr_un ac_aggr;
18470 if (ac_aggr.sun_len)
18471 return 0;
18473 return 0;
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478 (eval $ac_compile) 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; } &&
18491 { ac_try='test -s conftest.$ac_objext'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 ac_cv_member_struct_sockaddr_un_sun_len=yes
18498 else
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h. */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 #include <sys/types.h>
18509 #ifdef HAVE_SYS_SOCKET_H
18510 # include <sys/socket.h>
18511 #endif
18512 #ifdef HAVE_SYS_UN_H
18513 # include <sys/un.h>
18514 #endif
18517 main ()
18519 static struct sockaddr_un ac_aggr;
18520 if (sizeof ac_aggr.sun_len)
18521 return 0;
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528 (eval $ac_compile) 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest.$ac_objext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_member_struct_sockaddr_un_sun_len=yes
18548 else
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 ac_cv_member_struct_sockaddr_un_sun_len=no
18554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18559 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18560 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18562 cat >>confdefs.h <<_ACEOF
18563 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18564 _ACEOF
18570 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18571 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18572 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <signal.h>
18584 main ()
18586 static siginfo_t ac_aggr;
18587 if (ac_aggr.si_fd)
18588 return 0;
18590 return 0;
18592 _ACEOF
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest.$ac_objext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_member_siginfo_t_si_fd=yes
18615 else
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h. */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 #include <signal.h>
18628 main ()
18630 static siginfo_t ac_aggr;
18631 if (sizeof ac_aggr.si_fd)
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_siginfo_t_si_fd=yes
18659 else
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 ac_cv_member_siginfo_t_si_fd=no
18665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18669 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18670 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18671 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_SIGINFO_T_SI_FD 1
18675 _ACEOF
18681 echo "$as_me:$LINENO: checking for struct option.name" >&5
18682 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18683 if test "${ac_cv_member_struct_option_name+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 #ifdef HAVE_GETOPT_H
18693 #include <getopt.h>
18694 #endif
18697 main ()
18699 static struct option ac_aggr;
18700 if (ac_aggr.name)
18701 return 0;
18703 return 0;
18705 _ACEOF
18706 rm -f conftest.$ac_objext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18708 (eval $ac_compile) 2>conftest.er1
18709 ac_status=$?
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest.$ac_objext'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; }; then
18727 ac_cv_member_struct_option_name=yes
18728 else
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
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 #ifdef HAVE_GETOPT_H
18739 #include <getopt.h>
18740 #endif
18743 main ()
18745 static struct option ac_aggr;
18746 if (sizeof ac_aggr.name)
18747 return 0;
18749 return 0;
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754 (eval $ac_compile) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_member_struct_option_name=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_cv_member_struct_option_name=no
18780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18784 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18785 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18786 if test $ac_cv_member_struct_option_name = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789 #define HAVE_STRUCT_OPTION_NAME 1
18790 _ACEOF
18796 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18797 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18798 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 $ac_includes_default
18809 main ()
18811 static struct stat ac_aggr;
18812 if (ac_aggr.st_blocks)
18813 return 0;
18815 return 0;
18817 _ACEOF
18818 rm -f conftest.$ac_objext
18819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18820 (eval $ac_compile) 2>conftest.er1
18821 ac_status=$?
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest.$ac_objext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 ac_cv_member_struct_stat_st_blocks=yes
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 $ac_includes_default
18852 main ()
18854 static struct stat ac_aggr;
18855 if (sizeof ac_aggr.st_blocks)
18856 return 0;
18858 return 0;
18860 _ACEOF
18861 rm -f conftest.$ac_objext
18862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18863 (eval $ac_compile) 2>conftest.er1
18864 ac_status=$?
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest.$ac_objext'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 ac_cv_member_struct_stat_st_blocks=yes
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_member_struct_stat_st_blocks=no
18889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18893 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18894 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18895 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18899 _ACEOF
18906 case $host_cpu in
18907 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
18908 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
18909 if test "${ac_cv_cpp_def___i386__+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 else
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h. */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 #ifndef __i386__
18920 #endif
18921 _ACEOF
18922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18923 $EGREP "yes" >/dev/null 2>&1; then
18924 ac_cv_cpp_def___i386__=yes
18925 else
18926 ac_cv_cpp_def___i386__=no
18928 rm -f conftest*
18931 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
18932 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
18933 if test $ac_cv_cpp_def___i386__ = yes; then
18934 CFLAGS="$CFLAGS -D__i386__"
18935 LINTFLAGS="$LINTFLAGS -D__i386__"
18938 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
18939 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
18940 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 #ifndef __ALPHA__
18951 #endif
18952 _ACEOF
18953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18954 $EGREP "yes" >/dev/null 2>&1; then
18955 ac_cv_cpp_def___ALPHA__=yes
18956 else
18957 ac_cv_cpp_def___ALPHA__=no
18959 rm -f conftest*
18962 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
18963 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
18964 if test $ac_cv_cpp_def___ALPHA__ = yes; then
18965 CFLAGS="$CFLAGS -D__ALPHA__"
18966 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
18969 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
18970 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
18971 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h. */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #ifndef __sparc__
18982 #endif
18983 _ACEOF
18984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18985 $EGREP "yes" >/dev/null 2>&1; then
18986 ac_cv_cpp_def___sparc__=yes
18987 else
18988 ac_cv_cpp_def___sparc__=no
18990 rm -f conftest*
18993 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
18994 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
18995 if test $ac_cv_cpp_def___sparc__ = yes; then
18996 CFLAGS="$CFLAGS -D__sparc__"
18997 LINTFLAGS="$LINTFLAGS -D__sparc__"
19000 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19001 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19002 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 else
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h. */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 #ifndef __powerpc__
19013 #endif
19014 _ACEOF
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016 $EGREP "yes" >/dev/null 2>&1; then
19017 ac_cv_cpp_def___powerpc__=yes
19018 else
19019 ac_cv_cpp_def___powerpc__=no
19021 rm -f conftest*
19024 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19025 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19026 if test $ac_cv_cpp_def___powerpc__ = yes; then
19027 CFLAGS="$CFLAGS -D__powerpc__"
19028 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19031 esac
19033 case $host_vendor in
19034 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19035 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19036 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 #ifndef __sun__
19047 #endif
19048 _ACEOF
19049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19050 $EGREP "yes" >/dev/null 2>&1; then
19051 ac_cv_cpp_def___sun__=yes
19052 else
19053 ac_cv_cpp_def___sun__=no
19055 rm -f conftest*
19058 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19059 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19060 if test $ac_cv_cpp_def___sun__ = yes; then
19061 CFLAGS="$CFLAGS -D__sun__"
19062 LINTFLAGS="$LINTFLAGS -D__sun__"
19065 esac
19071 ac_config_commands="$ac_config_commands controls"
19073 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19075 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19077 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19079 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19081 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19083 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19085 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19087 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19089 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19091 ac_config_commands="$ac_config_commands dlls/user/dde"
19093 ac_config_commands="$ac_config_commands dlls/user/resources"
19095 ac_config_commands="$ac_config_commands dlls/wineps/data"
19097 ac_config_commands="$ac_config_commands files"
19099 ac_config_commands="$ac_config_commands include/wine"
19101 ac_config_commands="$ac_config_commands misc"
19103 ac_config_commands="$ac_config_commands objects"
19105 ac_config_commands="$ac_config_commands programs/regedit/tests"
19107 ac_config_commands="$ac_config_commands windows"
19110 MAKE_RULES=Make.rules
19113 MAKE_DLL_RULES=dlls/Makedll.rules
19116 MAKE_TEST_RULES=dlls/Maketest.rules
19119 MAKE_LIB_RULES=libs/Makelib.rules
19122 MAKE_PROG_RULES=programs/Makeprog.rules
19125 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/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/rsabase/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/version/Makefile dlls/vmm.vxd/Makefile dlls/vnb.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
19128 cat >confcache <<\_ACEOF
19129 # This file is a shell script that caches the results of configure
19130 # tests run on this system so they can be shared between configure
19131 # scripts and configure runs, see configure's option --config-cache.
19132 # It is not useful on other systems. If it contains results you don't
19133 # want to keep, you may remove or edit it.
19135 # config.status only pays attention to the cache file if you give it
19136 # the --recheck option to rerun configure.
19138 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19139 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19140 # following values.
19142 _ACEOF
19144 # The following way of writing the cache mishandles newlines in values,
19145 # but we know of no workaround that is simple, portable, and efficient.
19146 # So, don't put newlines in cache variables' values.
19147 # Ultrix sh set writes to stderr and can't be redirected directly,
19148 # and sets the high bit in the cache file unless we assign to the vars.
19150 (set) 2>&1 |
19151 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19152 *ac_space=\ *)
19153 # `set' does not quote correctly, so add quotes (double-quote
19154 # substitution turns \\\\ into \\, and sed turns \\ into \).
19155 sed -n \
19156 "s/'/'\\\\''/g;
19157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19160 # `set' quotes correctly as required by POSIX, so do not add quotes.
19161 sed -n \
19162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19164 esac;
19166 sed '
19167 t clear
19168 : clear
19169 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19170 t end
19171 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19172 : end' >>confcache
19173 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19174 if test -w $cache_file; then
19175 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19176 cat confcache >$cache_file
19177 else
19178 echo "not updating unwritable cache $cache_file"
19181 rm -f confcache
19183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19184 # Let make expand exec_prefix.
19185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19187 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19188 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19189 # trailing colons and then remove the whole line if VPATH becomes empty
19190 # (actually we leave an empty line to preserve line numbers).
19191 if test "x$srcdir" = x.; then
19192 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19193 s/:*\$(srcdir):*/:/;
19194 s/:*\${srcdir}:*/:/;
19195 s/:*@srcdir@:*/:/;
19196 s/^\([^=]*=[ ]*\):*/\1/;
19197 s/:*$//;
19198 s/^[^=]*=[ ]*$//;
19202 DEFS=-DHAVE_CONFIG_H
19204 ac_libobjs=
19205 ac_ltlibobjs=
19206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19207 # 1. Remove the extension, and $U if already installed.
19208 ac_i=`echo "$ac_i" |
19209 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19210 # 2. Add them.
19211 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19212 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19213 done
19214 LIBOBJS=$ac_libobjs
19216 LTLIBOBJS=$ac_ltlibobjs
19220 : ${CONFIG_STATUS=./config.status}
19221 ac_clean_files_save=$ac_clean_files
19222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19223 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19224 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19225 cat >$CONFIG_STATUS <<_ACEOF
19226 #! $SHELL
19227 # Generated by $as_me.
19228 # Run this file to recreate the current configuration.
19229 # Compiler output produced by configure, useful for debugging
19230 # configure, is in config.log if it exists.
19232 debug=false
19233 ac_cs_recheck=false
19234 ac_cs_silent=false
19235 SHELL=\${CONFIG_SHELL-$SHELL}
19236 _ACEOF
19238 cat >>$CONFIG_STATUS <<\_ACEOF
19239 ## --------------------- ##
19240 ## M4sh Initialization. ##
19241 ## --------------------- ##
19243 # Be Bourne compatible
19244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19245 emulate sh
19246 NULLCMD=:
19247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19248 # is contrary to our usage. Disable this feature.
19249 alias -g '${1+"$@"}'='"$@"'
19250 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19251 set -o posix
19253 DUALCASE=1; export DUALCASE # for MKS sh
19255 # Support unset when possible.
19256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19257 as_unset=unset
19258 else
19259 as_unset=false
19263 # Work around bugs in pre-3.0 UWIN ksh.
19264 $as_unset ENV MAIL MAILPATH
19265 PS1='$ '
19266 PS2='> '
19267 PS4='+ '
19269 # NLS nuisances.
19270 for as_var in \
19271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19273 LC_TELEPHONE LC_TIME
19275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19276 eval $as_var=C; export $as_var
19277 else
19278 $as_unset $as_var
19280 done
19282 # Required to use basename.
19283 if expr a : '\(a\)' >/dev/null 2>&1; then
19284 as_expr=expr
19285 else
19286 as_expr=false
19289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19290 as_basename=basename
19291 else
19292 as_basename=false
19296 # Name of the executable.
19297 as_me=`$as_basename "$0" ||
19298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19299 X"$0" : 'X\(//\)$' \| \
19300 X"$0" : 'X\(/\)$' \| \
19301 . : '\(.\)' 2>/dev/null ||
19302 echo X/"$0" |
19303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19304 /^X\/\(\/\/\)$/{ s//\1/; q; }
19305 /^X\/\(\/\).*/{ s//\1/; q; }
19306 s/.*/./; q'`
19309 # PATH needs CR, and LINENO needs CR and PATH.
19310 # Avoid depending upon Character Ranges.
19311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19314 as_cr_digits='0123456789'
19315 as_cr_alnum=$as_cr_Letters$as_cr_digits
19317 # The user is always right.
19318 if test "${PATH_SEPARATOR+set}" != set; then
19319 echo "#! /bin/sh" >conf$$.sh
19320 echo "exit 0" >>conf$$.sh
19321 chmod +x conf$$.sh
19322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19323 PATH_SEPARATOR=';'
19324 else
19325 PATH_SEPARATOR=:
19327 rm -f conf$$.sh
19331 as_lineno_1=$LINENO
19332 as_lineno_2=$LINENO
19333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19334 test "x$as_lineno_1" != "x$as_lineno_2" &&
19335 test "x$as_lineno_3" = "x$as_lineno_2" || {
19336 # Find who we are. Look in the path if we contain no path at all
19337 # relative or not.
19338 case $0 in
19339 *[\\/]* ) as_myself=$0 ;;
19340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19341 for as_dir in $PATH
19343 IFS=$as_save_IFS
19344 test -z "$as_dir" && as_dir=.
19345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19346 done
19349 esac
19350 # We did not find ourselves, most probably we were run as `sh COMMAND'
19351 # in which case we are not to be found in the path.
19352 if test "x$as_myself" = x; then
19353 as_myself=$0
19355 if test ! -f "$as_myself"; then
19356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19358 { (exit 1); exit 1; }; }
19360 case $CONFIG_SHELL in
19362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19365 IFS=$as_save_IFS
19366 test -z "$as_dir" && as_dir=.
19367 for as_base in sh bash ksh sh5; do
19368 case $as_dir in
19370 if ("$as_dir/$as_base" -c '
19371 as_lineno_1=$LINENO
19372 as_lineno_2=$LINENO
19373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19374 test "x$as_lineno_1" != "x$as_lineno_2" &&
19375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19378 CONFIG_SHELL=$as_dir/$as_base
19379 export CONFIG_SHELL
19380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19381 fi;;
19382 esac
19383 done
19384 done
19386 esac
19388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19389 # uniformly replaced by the line number. The first 'sed' inserts a
19390 # line-number line before each line; the second 'sed' does the real
19391 # work. The second script uses 'N' to pair each line-number line
19392 # with the numbered line, and appends trailing '-' during
19393 # substitution so that $LINENO is not a special case at line end.
19394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19396 sed '=' <$as_myself |
19397 sed '
19399 s,$,-,
19400 : loop
19401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19402 t loop
19403 s,-$,,
19404 s,^['$as_cr_digits']*\n,,
19405 ' >$as_me.lineno &&
19406 chmod +x $as_me.lineno ||
19407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19409 { (exit 1); exit 1; }; }
19411 # Don't try to exec as it changes $[0], causing all sort of problems
19412 # (the dirname of $[0] is not the place where we might find the
19413 # original and so on. Autoconf is especially sensible to this).
19414 . ./$as_me.lineno
19415 # Exit status is that of the last command.
19416 exit
19420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19421 *c*,-n*) ECHO_N= ECHO_C='
19422 ' ECHO_T=' ' ;;
19423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19425 esac
19427 if expr a : '\(a\)' >/dev/null 2>&1; then
19428 as_expr=expr
19429 else
19430 as_expr=false
19433 rm -f conf$$ conf$$.exe conf$$.file
19434 echo >conf$$.file
19435 if ln -s conf$$.file conf$$ 2>/dev/null; then
19436 # We could just check for DJGPP; but this test a) works b) is more generic
19437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19438 if test -f conf$$.exe; then
19439 # Don't use ln at all; we don't have any links
19440 as_ln_s='cp -p'
19441 else
19442 as_ln_s='ln -s'
19444 elif ln conf$$.file conf$$ 2>/dev/null; then
19445 as_ln_s=ln
19446 else
19447 as_ln_s='cp -p'
19449 rm -f conf$$ conf$$.exe conf$$.file
19451 if mkdir -p . 2>/dev/null; then
19452 as_mkdir_p=:
19453 else
19454 test -d ./-p && rmdir ./-p
19455 as_mkdir_p=false
19458 as_executable_p="test -f"
19460 # Sed expression to map a string onto a valid CPP name.
19461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19463 # Sed expression to map a string onto a valid variable name.
19464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19467 # IFS
19468 # We need space, tab and new line, in precisely that order.
19469 as_nl='
19471 IFS=" $as_nl"
19473 # CDPATH.
19474 $as_unset CDPATH
19476 exec 6>&1
19478 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19479 # report actual input values of CONFIG_FILES etc. instead of their
19480 # values after options handling. Logging --version etc. is OK.
19481 exec 5>>config.log
19483 echo
19484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19485 ## Running $as_me. ##
19486 _ASBOX
19487 } >&5
19488 cat >&5 <<_CSEOF
19490 This file was extended by Wine $as_me 20040213, which was
19491 generated by GNU Autoconf 2.59. Invocation command line was
19493 CONFIG_FILES = $CONFIG_FILES
19494 CONFIG_HEADERS = $CONFIG_HEADERS
19495 CONFIG_LINKS = $CONFIG_LINKS
19496 CONFIG_COMMANDS = $CONFIG_COMMANDS
19497 $ $0 $@
19499 _CSEOF
19500 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19501 echo >&5
19502 _ACEOF
19504 # Files that config.status was made for.
19505 if test -n "$ac_config_files"; then
19506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19509 if test -n "$ac_config_headers"; then
19510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19513 if test -n "$ac_config_links"; then
19514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19517 if test -n "$ac_config_commands"; then
19518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19521 cat >>$CONFIG_STATUS <<\_ACEOF
19523 ac_cs_usage="\
19524 \`$as_me' instantiates files from templates according to the
19525 current configuration.
19527 Usage: $0 [OPTIONS] [FILE]...
19529 -h, --help print this help, then exit
19530 -V, --version print version number, then exit
19531 -q, --quiet do not print progress messages
19532 -d, --debug don't remove temporary files
19533 --recheck update $as_me by reconfiguring in the same conditions
19534 --file=FILE[:TEMPLATE]
19535 instantiate the configuration file FILE
19536 --header=FILE[:TEMPLATE]
19537 instantiate the configuration header FILE
19539 Configuration files:
19540 $config_files
19542 Configuration headers:
19543 $config_headers
19545 Configuration commands:
19546 $config_commands
19548 Report bugs to <bug-autoconf@gnu.org>."
19549 _ACEOF
19551 cat >>$CONFIG_STATUS <<_ACEOF
19552 ac_cs_version="\\
19553 Wine config.status 20040213
19554 configured by $0, generated by GNU Autoconf 2.59,
19555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19557 Copyright (C) 2003 Free Software Foundation, Inc.
19558 This config.status script is free software; the Free Software Foundation
19559 gives unlimited permission to copy, distribute and modify it."
19560 srcdir=$srcdir
19561 INSTALL="$INSTALL"
19562 _ACEOF
19564 cat >>$CONFIG_STATUS <<\_ACEOF
19565 # If no file are specified by the user, then we need to provide default
19566 # value. By we need to know if files were specified by the user.
19567 ac_need_defaults=:
19568 while test $# != 0
19570 case $1 in
19571 --*=*)
19572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19574 ac_shift=:
19577 ac_option=$1
19578 ac_optarg=$2
19579 ac_shift=shift
19581 *) # This is not an option, so the user has probably given explicit
19582 # arguments.
19583 ac_option=$1
19584 ac_need_defaults=false;;
19585 esac
19587 case $ac_option in
19588 # Handling of the options.
19589 _ACEOF
19590 cat >>$CONFIG_STATUS <<\_ACEOF
19591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19592 ac_cs_recheck=: ;;
19593 --version | --vers* | -V )
19594 echo "$ac_cs_version"; exit 0 ;;
19595 --he | --h)
19596 # Conflict between --help and --header
19597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19598 Try \`$0 --help' for more information." >&5
19599 echo "$as_me: error: ambiguous option: $1
19600 Try \`$0 --help' for more information." >&2;}
19601 { (exit 1); exit 1; }; };;
19602 --help | --hel | -h )
19603 echo "$ac_cs_usage"; exit 0 ;;
19604 --debug | --d* | -d )
19605 debug=: ;;
19606 --file | --fil | --fi | --f )
19607 $ac_shift
19608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19609 ac_need_defaults=false;;
19610 --header | --heade | --head | --hea )
19611 $ac_shift
19612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19613 ac_need_defaults=false;;
19614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19616 ac_cs_silent=: ;;
19618 # This is an error.
19619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19620 Try \`$0 --help' for more information." >&5
19621 echo "$as_me: error: unrecognized option: $1
19622 Try \`$0 --help' for more information." >&2;}
19623 { (exit 1); exit 1; }; } ;;
19625 *) ac_config_targets="$ac_config_targets $1" ;;
19627 esac
19628 shift
19629 done
19631 ac_configure_extra_args=
19633 if $ac_cs_silent; then
19634 exec 6>/dev/null
19635 ac_configure_extra_args="$ac_configure_extra_args --silent"
19638 _ACEOF
19639 cat >>$CONFIG_STATUS <<_ACEOF
19640 if \$ac_cs_recheck; then
19641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19645 _ACEOF
19651 cat >>$CONFIG_STATUS <<\_ACEOF
19652 for ac_config_target in $ac_config_targets
19654 case "$ac_config_target" in
19655 # Handling of arguments.
19656 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19657 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19658 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19659 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19660 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19661 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19662 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19663 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19664 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19665 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19666 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19667 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19668 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19669 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19670 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19671 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19672 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19673 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19674 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19675 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19676 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19677 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19678 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19679 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19680 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19681 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19682 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19683 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19684 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19685 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19686 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19687 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19688 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19689 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19690 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19691 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19692 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19693 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19694 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19695 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19696 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19697 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19698 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19699 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19700 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19701 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
19702 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
19703 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19704 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19705 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19706 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19707 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19708 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19709 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
19710 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19711 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19712 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19713 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19714 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19715 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19716 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19717 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19718 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
19719 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
19720 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19721 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19722 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19723 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19724 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19725 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19726 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19727 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19728 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19729 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19730 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19731 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19732 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19733 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19734 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19735 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19736 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19737 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
19738 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19739 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
19740 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19741 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19742 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19743 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19744 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19745 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19746 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19747 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19748 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19749 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19750 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19751 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19752 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19753 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19754 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19755 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19756 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19757 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19758 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19759 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19760 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19761 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19762 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19763 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
19764 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19765 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19766 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19767 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19768 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19769 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19770 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19771 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19772 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19773 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19774 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19775 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19776 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19777 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19778 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19779 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19780 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19781 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19782 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19783 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
19784 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19785 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
19786 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19787 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
19788 "dlls/vnb.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnb.vxd/Makefile" ;;
19789 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
19790 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
19791 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
19792 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19793 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19794 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19795 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19796 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19797 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19798 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19799 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19800 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19801 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19802 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19803 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19804 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19805 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19806 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19807 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19808 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19809 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19810 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19811 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19812 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19813 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19814 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19815 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19816 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19817 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19818 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19819 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19820 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19821 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19822 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19823 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19824 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19825 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19826 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19827 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19828 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19829 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19830 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19831 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19832 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19833 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19834 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19835 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19836 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19837 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19838 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19839 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19840 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19841 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19842 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19843 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19844 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19845 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19846 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19847 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19848 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19849 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19850 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
19851 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19852 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19853 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19854 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19855 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19856 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19857 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19858 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19859 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19860 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19861 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19862 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19863 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19864 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19865 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19866 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19867 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19868 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19869 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19870 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19871 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
19872 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
19873 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
19874 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
19875 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
19876 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
19877 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
19878 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19879 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19880 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19881 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
19882 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19883 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19884 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
19885 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
19886 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
19887 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
19888 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
19889 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
19890 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19891 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19892 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19893 { (exit 1); exit 1; }; };;
19894 esac
19895 done
19897 # If the user did not use the arguments to specify the items to instantiate,
19898 # then the envvar interface is used. Set only those that are not.
19899 # We use the long form for the default assignment because of an extremely
19900 # bizarre bug on SunOS 4.1.3.
19901 if $ac_need_defaults; then
19902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19907 # Have a temporary directory for convenience. Make it in the build tree
19908 # simply because there is no reason to put it here, and in addition,
19909 # creating and moving files from /tmp can sometimes cause problems.
19910 # Create a temporary directory, and hook for its removal unless debugging.
19911 $debug ||
19913 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19914 trap '{ (exit 1); exit 1; }' 1 2 13 15
19917 # Create a (secure) tmp directory for tmp files.
19920 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19921 test -n "$tmp" && test -d "$tmp"
19922 } ||
19924 tmp=./confstat$$-$RANDOM
19925 (umask 077 && mkdir $tmp)
19926 } ||
19928 echo "$me: cannot create a temporary directory in ." >&2
19929 { (exit 1); exit 1; }
19932 _ACEOF
19934 cat >>$CONFIG_STATUS <<_ACEOF
19937 # CONFIG_FILES section.
19940 # No need to generate the scripts if there are no CONFIG_FILES.
19941 # This happens for instance when ./config.status config.h
19942 if test -n "\$CONFIG_FILES"; then
19943 # Protect against being on the right side of a sed subst in config.status.
19944 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19945 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19946 s,@SHELL@,$SHELL,;t t
19947 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19948 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19949 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19950 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19951 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19952 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19953 s,@exec_prefix@,$exec_prefix,;t t
19954 s,@prefix@,$prefix,;t t
19955 s,@program_transform_name@,$program_transform_name,;t t
19956 s,@bindir@,$bindir,;t t
19957 s,@sbindir@,$sbindir,;t t
19958 s,@libexecdir@,$libexecdir,;t t
19959 s,@datadir@,$datadir,;t t
19960 s,@sysconfdir@,$sysconfdir,;t t
19961 s,@sharedstatedir@,$sharedstatedir,;t t
19962 s,@localstatedir@,$localstatedir,;t t
19963 s,@libdir@,$libdir,;t t
19964 s,@includedir@,$includedir,;t t
19965 s,@oldincludedir@,$oldincludedir,;t t
19966 s,@infodir@,$infodir,;t t
19967 s,@mandir@,$mandir,;t t
19968 s,@build_alias@,$build_alias,;t t
19969 s,@host_alias@,$host_alias,;t t
19970 s,@target_alias@,$target_alias,;t t
19971 s,@DEFS@,$DEFS,;t t
19972 s,@ECHO_C@,$ECHO_C,;t t
19973 s,@ECHO_N@,$ECHO_N,;t t
19974 s,@ECHO_T@,$ECHO_T,;t t
19975 s,@LIBS@,$LIBS,;t t
19976 s,@WIN16_FILES@,$WIN16_FILES,;t t
19977 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
19978 s,@build@,$build,;t t
19979 s,@build_cpu@,$build_cpu,;t t
19980 s,@build_vendor@,$build_vendor,;t t
19981 s,@build_os@,$build_os,;t t
19982 s,@host@,$host,;t t
19983 s,@host_cpu@,$host_cpu,;t t
19984 s,@host_vendor@,$host_vendor,;t t
19985 s,@host_os@,$host_os,;t t
19986 s,@SET_MAKE@,$SET_MAKE,;t t
19987 s,@CC@,$CC,;t t
19988 s,@CFLAGS@,$CFLAGS,;t t
19989 s,@LDFLAGS@,$LDFLAGS,;t t
19990 s,@CPPFLAGS@,$CPPFLAGS,;t t
19991 s,@ac_ct_CC@,$ac_ct_CC,;t t
19992 s,@EXEEXT@,$EXEEXT,;t t
19993 s,@OBJEXT@,$OBJEXT,;t t
19994 s,@CPP@,$CPP,;t t
19995 s,@TOOLSDIR@,$TOOLSDIR,;t t
19996 s,@X_CFLAGS@,$X_CFLAGS,;t t
19997 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19998 s,@X_LIBS@,$X_LIBS,;t t
19999 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20000 s,@YACC@,$YACC,;t t
20001 s,@LEX@,$LEX,;t t
20002 s,@LEXLIB@,$LEXLIB,;t t
20003 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20004 s,@XYACC@,$XYACC,;t t
20005 s,@XLEX@,$XLEX,;t t
20006 s,@AS@,$AS,;t t
20007 s,@ac_ct_AS@,$ac_ct_AS,;t t
20008 s,@LD@,$LD,;t t
20009 s,@ac_ct_LD@,$ac_ct_LD,;t t
20010 s,@AR@,$AR,;t t
20011 s,@ac_ct_AR@,$ac_ct_AR,;t t
20012 s,@RANLIB@,$RANLIB,;t t
20013 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20014 s,@STRIP@,$STRIP,;t t
20015 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20016 s,@WINDRES@,$WINDRES,;t t
20017 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20018 s,@LN_S@,$LN_S,;t t
20019 s,@LN@,$LN,;t t
20020 s,@LDCONFIG@,$LDCONFIG,;t t
20021 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20022 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20023 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20024 s,@LINT@,$LINT,;t t
20025 s,@LINTFLAGS@,$LINTFLAGS,;t t
20026 s,@DB2HTML@,$DB2HTML,;t t
20027 s,@DB2PDF@,$DB2PDF,;t t
20028 s,@DB2PS@,$DB2PS,;t t
20029 s,@DB2TXT@,$DB2TXT,;t t
20030 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20031 s,@JPEGLIB@,$JPEGLIB,;t t
20032 s,@EGREP@,$EGREP,;t t
20033 s,@GIFLIB@,$GIFLIB,;t t
20034 s,@XLIB@,$XLIB,;t t
20035 s,@XFILES@,$XFILES,;t t
20036 s,@OPENGLFILES@,$OPENGLFILES,;t t
20037 s,@GLU32FILES@,$GLU32FILES,;t t
20038 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20039 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20040 s,@GLUT32FILES@,$GLUT32FILES,;t t
20041 s,@NASLIBS@,$NASLIBS,;t t
20042 s,@CURSESLIBS@,$CURSESLIBS,;t t
20043 s,@sane_devel@,$sane_devel,;t t
20044 s,@SANELIBS@,$SANELIBS,;t t
20045 s,@SANEINCL@,$SANEINCL,;t t
20046 s,@ICULIBS@,$ICULIBS,;t t
20047 s,@ft_devel@,$ft_devel,;t t
20048 s,@ft_devel2@,$ft_devel2,;t t
20049 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20050 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20051 s,@ARTSLIBS@,$ARTSLIBS,;t t
20052 s,@ARTSINCL@,$ARTSINCL,;t t
20053 s,@ALSALIBS@,$ALSALIBS,;t t
20054 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20055 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20056 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20057 s,@DLLEXT@,$DLLEXT,;t t
20058 s,@DLLFLAGS@,$DLLFLAGS,;t t
20059 s,@DLLIBS@,$DLLIBS,;t t
20060 s,@LDSHARED@,$LDSHARED,;t t
20061 s,@LDDLL@,$LDDLL,;t t
20062 s,@LIBEXT@,$LIBEXT,;t t
20063 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20064 s,@DLLTOOL@,$DLLTOOL,;t t
20065 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20066 s,@DLLWRAP@,$DLLWRAP,;t t
20067 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20068 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20069 s,@CROSSTEST@,$CROSSTEST,;t t
20070 s,@CROSSCC@,$CROSSCC,;t t
20071 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20072 s,@LDPATH@,$LDPATH,;t t
20073 s,@CRTLIBS@,$CRTLIBS,;t t
20074 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20075 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20076 s,@LDD@,$LDD,;t t
20077 s,@ALLOCA@,$ALLOCA,;t t
20078 s,@LIBOBJS@,$LIBOBJS,;t t
20079 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20080 /@MAKE_RULES@/r $MAKE_RULES
20081 s,@MAKE_RULES@,,;t t
20082 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20083 s,@MAKE_DLL_RULES@,,;t t
20084 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20085 s,@MAKE_TEST_RULES@,,;t t
20086 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20087 s,@MAKE_LIB_RULES@,,;t t
20088 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20089 s,@MAKE_PROG_RULES@,,;t t
20090 CEOF
20092 _ACEOF
20094 cat >>$CONFIG_STATUS <<\_ACEOF
20095 # Split the substitutions into bite-sized pieces for seds with
20096 # small command number limits, like on Digital OSF/1 and HP-UX.
20097 ac_max_sed_lines=48
20098 ac_sed_frag=1 # Number of current file.
20099 ac_beg=1 # First line for current file.
20100 ac_end=$ac_max_sed_lines # Line after last line for current file.
20101 ac_more_lines=:
20102 ac_sed_cmds=
20103 while $ac_more_lines; do
20104 if test $ac_beg -gt 1; then
20105 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20106 else
20107 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20109 if test ! -s $tmp/subs.frag; then
20110 ac_more_lines=false
20111 else
20112 # The purpose of the label and of the branching condition is to
20113 # speed up the sed processing (if there are no `@' at all, there
20114 # is no need to browse any of the substitutions).
20115 # These are the two extra sed commands mentioned above.
20116 (echo ':t
20117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20118 if test -z "$ac_sed_cmds"; then
20119 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20120 else
20121 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20123 ac_sed_frag=`expr $ac_sed_frag + 1`
20124 ac_beg=$ac_end
20125 ac_end=`expr $ac_end + $ac_max_sed_lines`
20127 done
20128 if test -z "$ac_sed_cmds"; then
20129 ac_sed_cmds=cat
20131 fi # test -n "$CONFIG_FILES"
20133 _ACEOF
20134 cat >>$CONFIG_STATUS <<\_ACEOF
20135 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20137 case $ac_file in
20138 - | *:- | *:-:* ) # input from stdin
20139 cat >$tmp/stdin
20140 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20142 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20144 * ) ac_file_in=$ac_file.in ;;
20145 esac
20147 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20148 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20150 X"$ac_file" : 'X\(//\)[^/]' \| \
20151 X"$ac_file" : 'X\(//\)$' \| \
20152 X"$ac_file" : 'X\(/\)' \| \
20153 . : '\(.\)' 2>/dev/null ||
20154 echo X"$ac_file" |
20155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20157 /^X\(\/\/\)$/{ s//\1/; q; }
20158 /^X\(\/\).*/{ s//\1/; q; }
20159 s/.*/./; q'`
20160 { if $as_mkdir_p; then
20161 mkdir -p "$ac_dir"
20162 else
20163 as_dir="$ac_dir"
20164 as_dirs=
20165 while test ! -d "$as_dir"; do
20166 as_dirs="$as_dir $as_dirs"
20167 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20169 X"$as_dir" : 'X\(//\)[^/]' \| \
20170 X"$as_dir" : 'X\(//\)$' \| \
20171 X"$as_dir" : 'X\(/\)' \| \
20172 . : '\(.\)' 2>/dev/null ||
20173 echo X"$as_dir" |
20174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20176 /^X\(\/\/\)$/{ s//\1/; q; }
20177 /^X\(\/\).*/{ s//\1/; q; }
20178 s/.*/./; q'`
20179 done
20180 test ! -n "$as_dirs" || mkdir $as_dirs
20181 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20182 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20183 { (exit 1); exit 1; }; }; }
20185 ac_builddir=.
20187 if test "$ac_dir" != .; then
20188 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20189 # A "../" for each directory in $ac_dir_suffix.
20190 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20191 else
20192 ac_dir_suffix= ac_top_builddir=
20195 case $srcdir in
20196 .) # No --srcdir option. We are building in place.
20197 ac_srcdir=.
20198 if test -z "$ac_top_builddir"; then
20199 ac_top_srcdir=.
20200 else
20201 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20202 fi ;;
20203 [\\/]* | ?:[\\/]* ) # Absolute path.
20204 ac_srcdir=$srcdir$ac_dir_suffix;
20205 ac_top_srcdir=$srcdir ;;
20206 *) # Relative path.
20207 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20208 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20209 esac
20211 # Do not use `cd foo && pwd` to compute absolute paths, because
20212 # the directories may not exist.
20213 case `pwd` in
20214 .) ac_abs_builddir="$ac_dir";;
20216 case "$ac_dir" in
20217 .) ac_abs_builddir=`pwd`;;
20218 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20219 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20220 esac;;
20221 esac
20222 case $ac_abs_builddir in
20223 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20225 case ${ac_top_builddir}. in
20226 .) ac_abs_top_builddir=$ac_abs_builddir;;
20227 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20228 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20229 esac;;
20230 esac
20231 case $ac_abs_builddir in
20232 .) ac_abs_srcdir=$ac_srcdir;;
20234 case $ac_srcdir in
20235 .) ac_abs_srcdir=$ac_abs_builddir;;
20236 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20237 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20238 esac;;
20239 esac
20240 case $ac_abs_builddir in
20241 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20243 case $ac_top_srcdir in
20244 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20245 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20246 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20247 esac;;
20248 esac
20251 case $INSTALL in
20252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20253 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20254 esac
20256 # Let's still pretend it is `configure' which instantiates (i.e., don't
20257 # use $as_me), people would be surprised to read:
20258 # /* config.h. Generated by config.status. */
20259 if test x"$ac_file" = x-; then
20260 configure_input=
20261 else
20262 configure_input="$ac_file. "
20264 configure_input=$configure_input"Generated from `echo $ac_file_in |
20265 sed 's,.*/,,'` by configure."
20267 # First look for the input files in the build tree, otherwise in the
20268 # src tree.
20269 ac_file_inputs=`IFS=:
20270 for f in $ac_file_in; do
20271 case $f in
20272 -) echo $tmp/stdin ;;
20273 [\\/$]*)
20274 # Absolute (can't be DOS-style, as IFS=:)
20275 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20276 echo "$as_me: error: cannot find input file: $f" >&2;}
20277 { (exit 1); exit 1; }; }
20278 echo "$f";;
20279 *) # Relative
20280 if test -f "$f"; then
20281 # Build tree
20282 echo "$f"
20283 elif test -f "$srcdir/$f"; then
20284 # Source tree
20285 echo "$srcdir/$f"
20286 else
20287 # /dev/null tree
20288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20289 echo "$as_me: error: cannot find input file: $f" >&2;}
20290 { (exit 1); exit 1; }; }
20291 fi;;
20292 esac
20293 done` || { (exit 1); exit 1; }
20295 if test x"$ac_file" != x-; then
20296 { echo "$as_me:$LINENO: creating $ac_file" >&5
20297 echo "$as_me: creating $ac_file" >&6;}
20298 rm -f "$ac_file"
20300 _ACEOF
20301 cat >>$CONFIG_STATUS <<_ACEOF
20302 sed "$ac_vpsub
20303 $extrasub
20304 _ACEOF
20305 cat >>$CONFIG_STATUS <<\_ACEOF
20307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20308 s,@configure_input@,$configure_input,;t t
20309 s,@srcdir@,$ac_srcdir,;t t
20310 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20311 s,@top_srcdir@,$ac_top_srcdir,;t t
20312 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20313 s,@builddir@,$ac_builddir,;t t
20314 s,@abs_builddir@,$ac_abs_builddir,;t t
20315 s,@top_builddir@,$ac_top_builddir,;t t
20316 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20317 s,@INSTALL@,$ac_INSTALL,;t t
20318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20319 rm -f $tmp/stdin
20320 if test x"$ac_file" != x-; then
20321 mv $tmp/out $ac_file
20322 else
20323 cat $tmp/out
20324 rm -f $tmp/out
20327 done
20328 _ACEOF
20329 cat >>$CONFIG_STATUS <<\_ACEOF
20332 # CONFIG_HEADER section.
20335 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20336 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20338 # ac_d sets the value in "#define NAME VALUE" lines.
20339 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20340 ac_dB='[ ].*$,\1#\2'
20341 ac_dC=' '
20342 ac_dD=',;t'
20343 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20344 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20345 ac_uB='$,\1#\2define\3'
20346 ac_uC=' '
20347 ac_uD=',;t'
20349 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20351 case $ac_file in
20352 - | *:- | *:-:* ) # input from stdin
20353 cat >$tmp/stdin
20354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20358 * ) ac_file_in=$ac_file.in ;;
20359 esac
20361 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20362 echo "$as_me: creating $ac_file" >&6;}
20364 # First look for the input files in the build tree, otherwise in the
20365 # src tree.
20366 ac_file_inputs=`IFS=:
20367 for f in $ac_file_in; do
20368 case $f in
20369 -) echo $tmp/stdin ;;
20370 [\\/$]*)
20371 # Absolute (can't be DOS-style, as IFS=:)
20372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20373 echo "$as_me: error: cannot find input file: $f" >&2;}
20374 { (exit 1); exit 1; }; }
20375 # Do quote $f, to prevent DOS paths from being IFS'd.
20376 echo "$f";;
20377 *) # Relative
20378 if test -f "$f"; then
20379 # Build tree
20380 echo "$f"
20381 elif test -f "$srcdir/$f"; then
20382 # Source tree
20383 echo "$srcdir/$f"
20384 else
20385 # /dev/null tree
20386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20387 echo "$as_me: error: cannot find input file: $f" >&2;}
20388 { (exit 1); exit 1; }; }
20389 fi;;
20390 esac
20391 done` || { (exit 1); exit 1; }
20392 # Remove the trailing spaces.
20393 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20395 _ACEOF
20397 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20398 # `conftest.undefs', that substitutes the proper values into
20399 # config.h.in to produce config.h. The first handles `#define'
20400 # templates, and the second `#undef' templates.
20401 # And first: Protect against being on the right side of a sed subst in
20402 # config.status. Protect against being in an unquoted here document
20403 # in config.status.
20404 rm -f conftest.defines conftest.undefs
20405 # Using a here document instead of a string reduces the quoting nightmare.
20406 # Putting comments in sed scripts is not portable.
20408 # `end' is used to avoid that the second main sed command (meant for
20409 # 0-ary CPP macros) applies to n-ary macro definitions.
20410 # See the Autoconf documentation for `clear'.
20411 cat >confdef2sed.sed <<\_ACEOF
20412 s/[\\&,]/\\&/g
20413 s,[\\$`],\\&,g
20414 t clear
20415 : clear
20416 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20417 t end
20418 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20419 : end
20420 _ACEOF
20421 # If some macros were called several times there might be several times
20422 # the same #defines, which is useless. Nevertheless, we may not want to
20423 # sort them, since we want the *last* AC-DEFINE to be honored.
20424 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20425 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20426 rm -f confdef2sed.sed
20428 # This sed command replaces #undef with comments. This is necessary, for
20429 # example, in the case of _POSIX_SOURCE, which is predefined and required
20430 # on some systems where configure will not decide to define it.
20431 cat >>conftest.undefs <<\_ACEOF
20432 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20433 _ACEOF
20435 # Break up conftest.defines because some shells have a limit on the size
20436 # of here documents, and old seds have small limits too (100 cmds).
20437 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20438 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20439 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20440 echo ' :' >>$CONFIG_STATUS
20441 rm -f conftest.tail
20442 while grep . conftest.defines >/dev/null
20444 # Write a limited-size here document to $tmp/defines.sed.
20445 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20446 # Speed up: don't consider the non `#define' lines.
20447 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20448 # Work around the forget-to-reset-the-flag bug.
20449 echo 't clr' >>$CONFIG_STATUS
20450 echo ': clr' >>$CONFIG_STATUS
20451 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20452 echo 'CEOF
20453 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20454 rm -f $tmp/in
20455 mv $tmp/out $tmp/in
20456 ' >>$CONFIG_STATUS
20457 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20458 rm -f conftest.defines
20459 mv conftest.tail conftest.defines
20460 done
20461 rm -f conftest.defines
20462 echo ' fi # grep' >>$CONFIG_STATUS
20463 echo >>$CONFIG_STATUS
20465 # Break up conftest.undefs because some shells have a limit on the size
20466 # of here documents, and old seds have small limits too (100 cmds).
20467 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20468 rm -f conftest.tail
20469 while grep . conftest.undefs >/dev/null
20471 # Write a limited-size here document to $tmp/undefs.sed.
20472 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20473 # Speed up: don't consider the non `#undef'
20474 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20475 # Work around the forget-to-reset-the-flag bug.
20476 echo 't clr' >>$CONFIG_STATUS
20477 echo ': clr' >>$CONFIG_STATUS
20478 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20479 echo 'CEOF
20480 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20481 rm -f $tmp/in
20482 mv $tmp/out $tmp/in
20483 ' >>$CONFIG_STATUS
20484 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20485 rm -f conftest.undefs
20486 mv conftest.tail conftest.undefs
20487 done
20488 rm -f conftest.undefs
20490 cat >>$CONFIG_STATUS <<\_ACEOF
20491 # Let's still pretend it is `configure' which instantiates (i.e., don't
20492 # use $as_me), people would be surprised to read:
20493 # /* config.h. Generated by config.status. */
20494 if test x"$ac_file" = x-; then
20495 echo "/* Generated by configure. */" >$tmp/config.h
20496 else
20497 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20499 cat $tmp/in >>$tmp/config.h
20500 rm -f $tmp/in
20501 if test x"$ac_file" != x-; then
20502 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20503 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20504 echo "$as_me: $ac_file is unchanged" >&6;}
20505 else
20506 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20508 X"$ac_file" : 'X\(//\)[^/]' \| \
20509 X"$ac_file" : 'X\(//\)$' \| \
20510 X"$ac_file" : 'X\(/\)' \| \
20511 . : '\(.\)' 2>/dev/null ||
20512 echo X"$ac_file" |
20513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20515 /^X\(\/\/\)$/{ s//\1/; q; }
20516 /^X\(\/\).*/{ s//\1/; q; }
20517 s/.*/./; q'`
20518 { if $as_mkdir_p; then
20519 mkdir -p "$ac_dir"
20520 else
20521 as_dir="$ac_dir"
20522 as_dirs=
20523 while test ! -d "$as_dir"; do
20524 as_dirs="$as_dir $as_dirs"
20525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20527 X"$as_dir" : 'X\(//\)[^/]' \| \
20528 X"$as_dir" : 'X\(//\)$' \| \
20529 X"$as_dir" : 'X\(/\)' \| \
20530 . : '\(.\)' 2>/dev/null ||
20531 echo X"$as_dir" |
20532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20534 /^X\(\/\/\)$/{ s//\1/; q; }
20535 /^X\(\/\).*/{ s//\1/; q; }
20536 s/.*/./; q'`
20537 done
20538 test ! -n "$as_dirs" || mkdir $as_dirs
20539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20541 { (exit 1); exit 1; }; }; }
20543 rm -f $ac_file
20544 mv $tmp/config.h $ac_file
20546 else
20547 cat $tmp/config.h
20548 rm -f $tmp/config.h
20550 done
20551 _ACEOF
20552 cat >>$CONFIG_STATUS <<\_ACEOF
20555 # CONFIG_COMMANDS section.
20557 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20558 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20559 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20560 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20561 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562 X"$ac_dest" : 'X\(//\)[^/]' \| \
20563 X"$ac_dest" : 'X\(//\)$' \| \
20564 X"$ac_dest" : 'X\(/\)' \| \
20565 . : '\(.\)' 2>/dev/null ||
20566 echo X"$ac_dest" |
20567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20569 /^X\(\/\/\)$/{ s//\1/; q; }
20570 /^X\(\/\).*/{ s//\1/; q; }
20571 s/.*/./; q'`
20572 { if $as_mkdir_p; then
20573 mkdir -p "$ac_dir"
20574 else
20575 as_dir="$ac_dir"
20576 as_dirs=
20577 while test ! -d "$as_dir"; do
20578 as_dirs="$as_dir $as_dirs"
20579 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20581 X"$as_dir" : 'X\(//\)[^/]' \| \
20582 X"$as_dir" : 'X\(//\)$' \| \
20583 X"$as_dir" : 'X\(/\)' \| \
20584 . : '\(.\)' 2>/dev/null ||
20585 echo X"$as_dir" |
20586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20588 /^X\(\/\/\)$/{ s//\1/; q; }
20589 /^X\(\/\).*/{ s//\1/; q; }
20590 s/.*/./; q'`
20591 done
20592 test ! -n "$as_dirs" || mkdir $as_dirs
20593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20594 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20595 { (exit 1); exit 1; }; }; }
20597 ac_builddir=.
20599 if test "$ac_dir" != .; then
20600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20601 # A "../" for each directory in $ac_dir_suffix.
20602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20603 else
20604 ac_dir_suffix= ac_top_builddir=
20607 case $srcdir in
20608 .) # No --srcdir option. We are building in place.
20609 ac_srcdir=.
20610 if test -z "$ac_top_builddir"; then
20611 ac_top_srcdir=.
20612 else
20613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20614 fi ;;
20615 [\\/]* | ?:[\\/]* ) # Absolute path.
20616 ac_srcdir=$srcdir$ac_dir_suffix;
20617 ac_top_srcdir=$srcdir ;;
20618 *) # Relative path.
20619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20620 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20621 esac
20623 # Do not use `cd foo && pwd` to compute absolute paths, because
20624 # the directories may not exist.
20625 case `pwd` in
20626 .) ac_abs_builddir="$ac_dir";;
20628 case "$ac_dir" in
20629 .) ac_abs_builddir=`pwd`;;
20630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20631 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20632 esac;;
20633 esac
20634 case $ac_abs_builddir in
20635 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20637 case ${ac_top_builddir}. in
20638 .) ac_abs_top_builddir=$ac_abs_builddir;;
20639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20641 esac;;
20642 esac
20643 case $ac_abs_builddir in
20644 .) ac_abs_srcdir=$ac_srcdir;;
20646 case $ac_srcdir in
20647 .) ac_abs_srcdir=$ac_abs_builddir;;
20648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20650 esac;;
20651 esac
20652 case $ac_abs_builddir in
20653 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20655 case $ac_top_srcdir in
20656 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20659 esac;;
20660 esac
20663 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20664 echo "$as_me: executing $ac_dest commands" >&6;}
20665 case $ac_dest in
20666 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20667 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20668 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20669 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20670 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20671 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20672 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20673 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20674 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20675 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20676 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20677 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20678 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20679 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20680 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20681 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20682 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20683 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20684 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20685 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20686 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20687 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20688 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20689 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20690 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20691 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20692 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20693 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20694 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20695 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20696 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20697 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20698 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20699 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20700 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20701 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20702 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20703 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20704 esac
20705 done
20706 _ACEOF
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20710 { (exit 0); exit 0; }
20711 _ACEOF
20712 chmod +x $CONFIG_STATUS
20713 ac_clean_files=$ac_clean_files_save
20716 # configure is writing to config.log, and then calls config.status.
20717 # config.status does its own redirection, appending to config.log.
20718 # Unfortunately, on DOS this fails, as config.log is still kept open
20719 # by configure, so config.status won't be able to write to it; its
20720 # output is simply discarded. So we exec the FD to /dev/null,
20721 # effectively closing config.log, so it can be properly (re)opened and
20722 # appended to by config.status. When coming back to configure, we
20723 # need to make the FD available again.
20724 if test "$no_create" != yes; then
20725 ac_cs_success=:
20726 ac_config_status_args=
20727 test "$silent" = yes &&
20728 ac_config_status_args="$ac_config_status_args --quiet"
20729 exec 5>/dev/null
20730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20731 exec 5>>config.log
20732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20733 # would make configure fail if this is the last instruction.
20734 $ac_cs_success || { (exit 1); exit 1; }
20738 if test "$have_x" = "no"
20739 then
20740 echo
20741 echo "*** Warning: X development files not found. Wine will be built without"
20742 echo "*** X support, which currently does not work, and would probably not be"
20743 echo "*** what you want anyway. You will need to install devel packages of"
20744 echo "*** Xlib/Xfree86 at the very least."
20747 if test "$wine_cv_opengl_version_OK" = "no"
20748 then
20749 echo
20750 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20751 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20754 if test "$wine_cv_msg_freetype" = "yes"
20755 then
20756 echo
20757 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20758 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20759 echo "*** freetype-devel package (or its equivalent on your distribution) to"
20760 echo "*** enable Wine to use TrueType fonts."
20763 echo
20764 echo "Configure finished. Do 'make depend && make' to compile Wine."
20765 echo