Fix cut'n'paste error: leave the CriticalSection not enter it again
[wine.git] / configure
blobaff6ad5c47505d619e3e943ccc6a4ffa03afd33c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040309.
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='20040309'
273 PACKAGE_STRING='Wine 20040309'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20040309 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
854 if test -n "$ac_init_help"; then
855 case $ac_init_help in
856 short | recursive ) echo "Configuration of Wine 20040309:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-opengl do not use OpenGL
871 --without-curses do not use curses
872 --with-wine-tools=<dir> use Wine tools from directory <dir>
873 --with-x use the X Window System
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd "$ac_popdir"
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985 Wine configure 20040309
986 generated by GNU Autoconf 2.59
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by Wine $as_me 20040309, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 ac_config_headers="$ac_config_headers include/config.h"
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367 enableval="$enable_win16"
1370 # Check whether --enable-debug or --disable-debug was given.
1371 if test "${enable_debug+set}" = set; then
1372 enableval="$enable_debug"
1375 # Check whether --enable-trace or --disable-trace was given.
1376 if test "${enable_trace+set}" = set; then
1377 enableval="$enable_trace"
1382 # Check whether --with-opengl or --without-opengl was given.
1383 if test "${with_opengl+set}" = set; then
1384 withval="$with_opengl"
1388 # Check whether --with-curses or --without-curses was given.
1389 if test "${with_curses+set}" = set; then
1390 withval="$with_curses"
1394 # Check whether --with-wine-tools or --without-wine-tools was given.
1395 if test "${with_wine_tools+set}" = set; then
1396 withval="$with_wine_tools"
1400 WIN16_FILES="\$(WIN16_FILES)"
1402 WIN16_INSTALL="\$(WIN16_INSTALL)"
1404 if test "x$enable_win16" = "xno"
1405 then
1406 WIN16_FILES=""
1407 WIN16_INSTALL=""
1409 if test "x$enable_debug" = "xno"
1410 then
1412 cat >>confdefs.h <<\_ACEOF
1413 #define NO_DEBUG_MSGS 1
1414 _ACEOF
1417 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1418 then
1420 cat >>confdefs.h <<\_ACEOF
1421 #define NO_TRACE_MSGS 1
1422 _ACEOF
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 cat >conftest.make <<\_ACEOF
1488 all:
1489 @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494 eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496 eval ac_cv_prog_make_${ac_make}_set=no
1498 rm -f conftest.make
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501 echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503 SET_MAKE=
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1617 done
1618 done
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 CC=$ac_ct_CC
1670 else
1671 CC="$ac_cv_prog_CC"
1675 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695 ac_prog_rejected=yes
1696 continue
1698 ac_cv_prog_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1705 if test $ac_prog_rejected = yes; then
1706 # We found a bogon in the path, so make sure we never use it.
1707 set dummy $ac_cv_prog_CC
1708 shift
1709 if test $# != 0; then
1710 # We chose a different compiler from the bogus one.
1711 # However, it has the same basename, so the bogon will be chosen
1712 # first if we set CC to just the basename; use the full file name.
1713 shift
1714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$CC" && break
1769 done
1771 if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$ac_ct_CC" && break
1811 done
1813 CC=$ac_ct_CC
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827 "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830 (eval $ac_compiler --version </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835 (eval $ac_compiler -v </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840 (eval $ac_compiler -V </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1853 main ()
1857 return 0;
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869 (eval $ac_link_default) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # Find the output, starting from the most likely. This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 test -f "$ac_file" || continue
1884 case $ac_file in
1885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887 conftest.$ac_ext )
1888 # This is the source file.
1890 [ab].out )
1891 # We found the default executable, but exeext='' is most
1892 # certainly right.
1893 break;;
1894 *.* )
1895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 # FIXME: I believe we export ac_cv_exeext for Libtool,
1897 # but it would be cool to find out if it's true. Does anybody
1898 # maintain Libtool? --akim.
1899 export ac_cv_exeext
1900 break;;
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913 { (exit 77); exit 77; }; }
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1920 # Check the compiler produces executables we can run. If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927 if { ac_try='./$ac_file'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 (eval $ac_try) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 cross_compiling=no
1934 else
1935 if test "$cross_compiling" = maybe; then
1936 cross_compiling=yes
1937 else
1938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963 (eval $ac_link) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976 export ac_cv_exeext
1977 break;;
1978 * ) break;;
1979 esac
1980 done
1981 else
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2009 main ()
2013 return 0;
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026 break;;
2027 esac
2028 done
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 main ()
2061 #ifndef __GNUC__
2062 choke me
2063 #endif
2066 return 0;
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2072 ac_status=$?
2073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_compiler_gnu=yes
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_compiler_gnu=no
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h. */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2120 main ()
2124 return 0;
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>conftest.er1
2130 ac_status=$?
2131 grep -v '^ *+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_g=yes
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_cv_prog_cc_g=no
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160 CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162 if test "$GCC" = yes; then
2163 CFLAGS="-g -O2"
2164 else
2165 CFLAGS="-g"
2167 else
2168 if test "$GCC" = yes; then
2169 CFLAGS="-O2"
2170 else
2171 CFLAGS=
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195 char **p;
2196 int i;
2198 return p[i];
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not '\xHH' hex character constants.
2212 These don't provoke an error unfortunately, instead are silently treated
2213 as 'x'. The following induces an error, until -std1 is added to get
2214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215 array size at least. It's necessary to write '\x00'==0 to get something
2216 that's true only with -std1. */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2226 main ()
2228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2230 return 0;
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX -qlanglvl=ansi
2236 # Ultrix and OSF/1 -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions -Aa -D_HPUX_SOURCE
2239 # SVR4 -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242 CC="$ac_save_CC $ac_arg"
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2278 case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2288 # Some people use a C++ compiler to compile C. Since we use `exit',
2289 # in C++ we need to declare it. In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294 choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>conftest.er1
2300 ac_status=$?
2301 grep -v '^ *+' conftest.er1 >conftest.err
2302 rm -f conftest.er1
2303 cat conftest.err >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 for ac_declaration in \
2319 '' \
2320 'extern "C" void std::exit (int) throw (); using std::exit;' \
2321 'extern "C" void std::exit (int); using std::exit;' \
2322 'extern "C" void exit (int) throw ();' \
2323 'extern "C" void exit (int);' \
2324 'void exit (int);'
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 #include <stdlib.h>
2335 main ()
2337 exit (42);
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 continue
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2379 main ()
2381 exit (42);
2383 return 0;
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 break
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417 echo '#ifdef __cplusplus' >>confdefs.h
2418 echo $ac_declaration >>confdefs.h
2419 echo '#endif' >>confdefs.h
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CXX"; then
2450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470 echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$CXX" && break
2478 done
2480 if test -z "$CXX"; then
2481 ac_ct_CXX=$CXX
2482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 if test -n "$ac_ct_CXX"; then
2492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CXX="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2505 done
2506 done
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2523 CXX=$ac_ct_CXX
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529 "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2560 main ()
2562 #ifndef __GNUC__
2563 choke me
2564 #endif
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_compiler_gnu=no
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 ac_cv_prog_cxx_g=no
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2664 CXXFLAGS="-g -O2"
2665 else
2666 CXXFLAGS="-g"
2668 else
2669 if test "$GXX" = yes; then
2670 CXXFLAGS="-O2"
2671 else
2672 CXXFLAGS=
2675 for ac_declaration in \
2676 '' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 $ac_declaration
2690 #include <stdlib.h>
2692 main ()
2694 exit (42);
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 continue
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2736 main ()
2738 exit (42);
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 break
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774 echo '#ifdef __cplusplus' >>confdefs.h
2775 echo $ac_declaration >>confdefs.h
2776 echo '#endif' >>confdefs.h
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
2824 # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CPPBIN="cpp"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CPPBIN=$ac_ct_CPPBIN
2861 else
2862 CPPBIN="$ac_cv_prog_CPPBIN"
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for X" >&5
3132 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135 # Check whether --with-x or --without-x was given.
3136 if test "${with_x+set}" = set; then
3137 withval="$with_x"
3140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3141 if test "x$with_x" = xno; then
3142 # The user explicitly disabled X.
3143 have_x=disabled
3144 else
3145 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3146 # Both variables are already set.
3147 have_x=yes
3148 else
3149 if test "${ac_cv_have_x+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 # One or both of the vars are not set, and there is no cached value.
3153 ac_x_includes=no ac_x_libraries=no
3154 rm -fr conftest.dir
3155 if mkdir conftest.dir; then
3156 cd conftest.dir
3157 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3158 cat >Imakefile <<'_ACEOF'
3159 acfindx:
3160 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3161 _ACEOF
3162 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3164 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3165 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3166 for ac_extension in a so sl; do
3167 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3168 test -f $ac_im_libdir/libX11.$ac_extension; then
3169 ac_im_usrlibdir=$ac_im_libdir; break
3171 done
3172 # Screen out bogus values from the imake configuration. They are
3173 # bogus both because they are the default anyway, and because
3174 # using them would break gcc on systems where it needs fixed includes.
3175 case $ac_im_incroot in
3176 /usr/include) ;;
3177 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3178 esac
3179 case $ac_im_usrlibdir in
3180 /usr/lib | /lib) ;;
3181 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3182 esac
3184 cd ..
3185 rm -fr conftest.dir
3188 # Standard set of common directories for X headers.
3189 # Check X11 before X11Rn because it is often a symlink to the current release.
3190 ac_x_header_dirs='
3191 /usr/X11/include
3192 /usr/X11R6/include
3193 /usr/X11R5/include
3194 /usr/X11R4/include
3196 /usr/include/X11
3197 /usr/include/X11R6
3198 /usr/include/X11R5
3199 /usr/include/X11R4
3201 /usr/local/X11/include
3202 /usr/local/X11R6/include
3203 /usr/local/X11R5/include
3204 /usr/local/X11R4/include
3206 /usr/local/include/X11
3207 /usr/local/include/X11R6
3208 /usr/local/include/X11R5
3209 /usr/local/include/X11R4
3211 /usr/X386/include
3212 /usr/x386/include
3213 /usr/XFree86/include/X11
3215 /usr/include
3216 /usr/local/include
3217 /usr/unsupported/include
3218 /usr/athena/include
3219 /usr/local/x11r5/include
3220 /usr/lpp/Xamples/include
3222 /usr/openwin/include
3223 /usr/openwin/share/include'
3225 if test "$ac_x_includes" = no; then
3226 # Guess where to find include files, by looking for Intrinsic.h.
3227 # First, try using that file with no special directory specified.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <X11/Intrinsic.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3250 else
3251 ac_cpp_err=yes
3253 if test -z "$ac_cpp_err"; then
3254 # We can compile using X headers with no special include directory.
3255 ac_x_includes=
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 for ac_dir in $ac_x_header_dirs; do
3261 if test -r "$ac_dir/X11/Intrinsic.h"; then
3262 ac_x_includes=$ac_dir
3263 break
3265 done
3267 rm -f conftest.err conftest.$ac_ext
3268 fi # $ac_x_includes = no
3270 if test "$ac_x_libraries" = no; then
3271 # Check for the libraries.
3272 # See if we find them without any special options.
3273 # Don't add to $LIBS permanently.
3274 ac_save_LIBS=$LIBS
3275 LIBS="-lXt $LIBS"
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <X11/Intrinsic.h>
3284 main ()
3286 XtMalloc (0)
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext conftest$ac_exeext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 LIBS=$ac_save_LIBS
3313 # We can link X programs with no special library path.
3314 ac_x_libraries=
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 LIBS=$ac_save_LIBS
3320 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3322 # Don't even attempt the hair of trying to link an X program!
3323 for ac_extension in a so sl; do
3324 if test -r $ac_dir/libXt.$ac_extension; then
3325 ac_x_libraries=$ac_dir
3326 break 2
3328 done
3329 done
3331 rm -f conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext conftest.$ac_ext
3333 fi # $ac_x_libraries = no
3335 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3336 # Didn't find X anywhere. Cache the known absence of X.
3337 ac_cv_have_x="have_x=no"
3338 else
3339 # Record where we found X for the cache.
3340 ac_cv_have_x="have_x=yes \
3341 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3346 eval "$ac_cv_have_x"
3347 fi # $with_x != no
3349 if test "$have_x" != yes; then
3350 echo "$as_me:$LINENO: result: $have_x" >&5
3351 echo "${ECHO_T}$have_x" >&6
3352 no_x=yes
3353 else
3354 # If each of the values was on the command line, it overrides each guess.
3355 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3356 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3357 # Update the cache value to reflect the command line values.
3358 ac_cv_have_x="have_x=yes \
3359 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3360 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3361 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3364 if test "$no_x" = yes; then
3365 # Not all programs may use this symbol, but it does not hurt to define it.
3367 cat >>confdefs.h <<\_ACEOF
3368 #define X_DISPLAY_MISSING 1
3369 _ACEOF
3371 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3372 else
3373 if test -n "$x_includes"; then
3374 X_CFLAGS="$X_CFLAGS -I$x_includes"
3377 # It would also be nice to do this for all -L options, not just this one.
3378 if test -n "$x_libraries"; then
3379 X_LIBS="$X_LIBS -L$x_libraries"
3380 # For Solaris; some versions of Sun CC require a space after -R and
3381 # others require no space. Words are not sufficient . . . .
3382 case `(uname -sr) 2>/dev/null` in
3383 "SunOS 5"*)
3384 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3385 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3386 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 rm -f conftest.$ac_objext conftest$ac_exeext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3404 (eval $ac_link) 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_R_nospace=yes
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_R_nospace=no
3430 rm -f conftest.err conftest.$ac_objext \
3431 conftest$ac_exeext conftest.$ac_ext
3432 if test $ac_R_nospace = yes; then
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 X_LIBS="$X_LIBS -R$x_libraries"
3436 else
3437 LIBS="$ac_xsave_LIBS -R $x_libraries"
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3446 main ()
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_R_space=yes
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 ac_R_space=no
3481 rm -f conftest.err conftest.$ac_objext \
3482 conftest$ac_exeext conftest.$ac_ext
3483 if test $ac_R_space = yes; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 X_LIBS="$X_LIBS -R $x_libraries"
3487 else
3488 echo "$as_me:$LINENO: result: neither works" >&5
3489 echo "${ECHO_T}neither works" >&6
3492 LIBS=$ac_xsave_LIBS
3493 esac
3496 # Check for system-dependent libraries X programs must link with.
3497 # Do this before checking for the system-independent R6 libraries
3498 # (-lICE), since we may need -lsocket or whatever for X linking.
3500 if test "$ISC" = yes; then
3501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3502 else
3503 # Martyn Johnson says this is needed for Ultrix, if the X
3504 # libraries were built with DECnet support. And Karl Berry says
3505 # the Alpha needs dnet_stub (dnet does not exist).
3506 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 #ifdef __cplusplus
3516 extern "C"
3517 #endif
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char XOpenDisplay ();
3522 main ()
3524 XOpenDisplay ();
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.$ac_objext conftest$ac_exeext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3556 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 ac_check_lib_save_LIBS=$LIBS
3561 LIBS="-ldnet $LIBS"
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char dnet_ntoa ();
3577 main ()
3579 dnet_ntoa ();
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_dnet_dnet_ntoa=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ac_cv_lib_dnet_dnet_ntoa=no
3612 rm -f conftest.err conftest.$ac_objext \
3613 conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_check_lib_save_LIBS
3616 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3617 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3618 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3619 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3622 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3623 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3624 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3625 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_check_lib_save_LIBS=$LIBS
3629 LIBS="-ldnet_stub $LIBS"
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 #ifdef __cplusplus
3639 extern "C"
3640 #endif
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3643 char dnet_ntoa ();
3645 main ()
3647 dnet_ntoa ();
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 ac_cv_lib_dnet_stub_dnet_ntoa=no
3680 rm -f conftest.err conftest.$ac_objext \
3681 conftest$ac_exeext conftest.$ac_ext
3682 LIBS=$ac_check_lib_save_LIBS
3684 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3685 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3686 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3692 rm -f conftest.err conftest.$ac_objext \
3693 conftest$ac_exeext conftest.$ac_ext
3694 LIBS="$ac_xsave_LIBS"
3696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3697 # to get the SysV transport functions.
3698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3699 # needs -lnsl.
3700 # The nsl library prevents programs from opening the X display
3701 # on Irix 5.2, according to T.E. Dickey.
3702 # The functions gethostbyname, getservbyname, and inet_addr are
3703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3704 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3706 if test "${ac_cv_func_gethostbyname+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3717 #define gethostbyname innocuous_gethostbyname
3719 /* System header to define __stub macros and hopefully few prototypes,
3720 which can conflict with char gethostbyname (); below.
3721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 <limits.h> exists even on freestanding compilers. */
3724 #ifdef __STDC__
3725 # include <limits.h>
3726 #else
3727 # include <assert.h>
3728 #endif
3730 #undef gethostbyname
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 #ifdef __cplusplus
3734 extern "C"
3736 #endif
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3739 char gethostbyname ();
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3744 choke me
3745 #else
3746 char (*f) () = gethostbyname;
3747 #endif
3748 #ifdef __cplusplus
3750 #endif
3753 main ()
3755 return f != gethostbyname;
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_func_gethostbyname=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 ac_cv_func_gethostbyname=no
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3792 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3794 if test $ac_cv_func_gethostbyname = no; then
3795 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3796 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3797 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 ac_check_lib_save_LIBS=$LIBS
3801 LIBS="-lnsl $LIBS"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char gethostbyname ();
3817 main ()
3819 gethostbyname ();
3821 return 0;
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_lib_nsl_gethostbyname=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_lib_nsl_gethostbyname=no
3852 rm -f conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
3854 LIBS=$ac_check_lib_save_LIBS
3856 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3857 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3858 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3862 if test $ac_cv_lib_nsl_gethostbyname = no; then
3863 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3864 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3865 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_check_lib_save_LIBS=$LIBS
3869 LIBS="-lbsd $LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 #ifdef __cplusplus
3879 extern "C"
3880 #endif
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char gethostbyname ();
3885 main ()
3887 gethostbyname ();
3889 return 0;
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest$ac_exeext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_lib_bsd_gethostbyname=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 ac_cv_lib_bsd_gethostbyname=no
3920 rm -f conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3922 LIBS=$ac_check_lib_save_LIBS
3924 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3925 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3926 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3933 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3934 # socket/setsockopt and other routines are undefined under SCO ODT
3935 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3936 # on later versions), says Simon Leinen: it contains gethostby*
3937 # variants that don't use the name server (or something). -lsocket
3938 # must be given before -lnsl if both are needed. We assume that
3939 # if connect needs -lnsl, so does gethostbyname.
3940 echo "$as_me:$LINENO: checking for connect" >&5
3941 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3942 if test "${ac_cv_func_connect+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953 #define connect innocuous_connect
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char connect (); below.
3957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 <limits.h> exists even on freestanding compilers. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3966 #undef connect
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 #ifdef __cplusplus
3970 extern "C"
3972 #endif
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3975 char connect ();
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_connect) || defined (__stub___connect)
3980 choke me
3981 #else
3982 char (*f) () = connect;
3983 #endif
3984 #ifdef __cplusplus
3986 #endif
3989 main ()
3991 return f != connect;
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_connect=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_func_connect=no
4024 rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4027 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4028 echo "${ECHO_T}$ac_cv_func_connect" >&6
4030 if test $ac_cv_func_connect = no; then
4031 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4032 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4033 if test "${ac_cv_lib_socket_connect+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 ac_check_lib_save_LIBS=$LIBS
4037 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 #ifdef __cplusplus
4047 extern "C"
4048 #endif
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4051 char connect ();
4053 main ()
4055 connect ();
4057 return 0;
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_cv_lib_socket_connect=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_lib_socket_connect=no
4088 rm -f conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
4090 LIBS=$ac_check_lib_save_LIBS
4092 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4093 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4094 if test $ac_cv_lib_socket_connect = yes; then
4095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4100 # Guillermo Gomez says -lposix is necessary on A/UX.
4101 echo "$as_me:$LINENO: checking for remove" >&5
4102 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4103 if test "${ac_cv_func_remove+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4114 #define remove innocuous_remove
4116 /* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char remove (); below.
4118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 <limits.h> exists even on freestanding compilers. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4127 #undef remove
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 #ifdef __cplusplus
4131 extern "C"
4133 #endif
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char remove ();
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_remove) || defined (__stub___remove)
4141 choke me
4142 #else
4143 char (*f) () = remove;
4144 #endif
4145 #ifdef __cplusplus
4147 #endif
4150 main ()
4152 return f != remove;
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest$ac_exeext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_func_remove=yes
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_func_remove=no
4185 rm -f conftest.err conftest.$ac_objext \
4186 conftest$ac_exeext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4189 echo "${ECHO_T}$ac_cv_func_remove" >&6
4191 if test $ac_cv_func_remove = no; then
4192 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4193 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4194 if test "${ac_cv_lib_posix_remove+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lposix $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char remove ();
4214 main ()
4216 remove ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_lib_posix_remove=yes
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_lib_posix_remove=no
4249 rm -f conftest.err conftest.$ac_objext \
4250 conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4254 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4255 if test $ac_cv_lib_posix_remove = yes; then
4256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4261 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4262 echo "$as_me:$LINENO: checking for shmat" >&5
4263 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4264 if test "${ac_cv_func_shmat+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4275 #define shmat innocuous_shmat
4277 /* System header to define __stub macros and hopefully few prototypes,
4278 which can conflict with char shmat (); below.
4279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 <limits.h> exists even on freestanding compilers. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4288 #undef shmat
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 #ifdef __cplusplus
4292 extern "C"
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char shmat ();
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_shmat) || defined (__stub___shmat)
4302 choke me
4303 #else
4304 char (*f) () = shmat;
4305 #endif
4306 #ifdef __cplusplus
4308 #endif
4311 main ()
4313 return f != shmat;
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_func_shmat=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_func_shmat=no
4346 rm -f conftest.err conftest.$ac_objext \
4347 conftest$ac_exeext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4350 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4352 if test $ac_cv_func_shmat = no; then
4353 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-lipc $LIBS"
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 #ifdef __cplusplus
4369 extern "C"
4370 #endif
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4373 char shmat ();
4375 main ()
4377 shmat ();
4379 return 0;
4381 _ACEOF
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_lib_ipc_shmat=yes
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_cv_lib_ipc_shmat=no
4410 rm -f conftest.err conftest.$ac_objext \
4411 conftest$ac_exeext conftest.$ac_ext
4412 LIBS=$ac_check_lib_save_LIBS
4414 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4415 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4416 if test $ac_cv_lib_ipc_shmat = yes; then
4417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4423 # Check for libraries that X11R6 Xt/Xaw programs need.
4424 ac_save_LDFLAGS=$LDFLAGS
4425 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4426 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4427 # check for ICE first), but we must link in the order -lSM -lICE or
4428 # we get undefined symbols. So assume we have SM if we have ICE.
4429 # These have to be linked with before -lX11, unlike the other
4430 # libraries we check for below, so use a different variable.
4431 # John Interrante, Karl Berry
4432 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4433 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4434 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_check_lib_save_LIBS=$LIBS
4438 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char IceConnectionNumber ();
4454 main ()
4456 IceConnectionNumber ();
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_lib_ICE_IceConnectionNumber=yes
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_lib_ICE_IceConnectionNumber=no
4489 rm -f conftest.err conftest.$ac_objext \
4490 conftest$ac_exeext conftest.$ac_ext
4491 LIBS=$ac_check_lib_save_LIBS
4493 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4494 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4495 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4499 LDFLAGS=$ac_save_LDFLAGS
4503 for ac_prog in flex lex
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_prog_LEX+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$LEX"; then
4513 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_LEX="$ac_prog"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4531 LEX=$ac_cv_prog_LEX
4532 if test -n "$LEX"; then
4533 echo "$as_me:$LINENO: result: $LEX" >&5
4534 echo "${ECHO_T}$LEX" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4540 test -n "$LEX" && break
4541 done
4542 test -n "$LEX" || LEX=":"
4544 if test -z "$LEXLIB"
4545 then
4546 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4547 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4548 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 ac_check_lib_save_LIBS=$LIBS
4552 LIBS="-lfl $LIBS"
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 #ifdef __cplusplus
4562 extern "C"
4563 #endif
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char yywrap ();
4568 main ()
4570 yywrap ();
4572 return 0;
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; } &&
4590 { ac_try='test -s conftest$ac_exeext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_lib_fl_yywrap=yes
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 ac_cv_lib_fl_yywrap=no
4603 rm -f conftest.err conftest.$ac_objext \
4604 conftest$ac_exeext conftest.$ac_ext
4605 LIBS=$ac_check_lib_save_LIBS
4607 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4608 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4609 if test $ac_cv_lib_fl_yywrap = yes; then
4610 LEXLIB="-lfl"
4611 else
4612 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4613 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4614 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-ll $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 /* Override any gcc2 internal prototype to avoid an error. */
4627 #ifdef __cplusplus
4628 extern "C"
4629 #endif
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632 char yywrap ();
4634 main ()
4636 yywrap ();
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643 (eval $ac_link) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_l_yywrap=yes
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_cv_lib_l_yywrap=no
4669 rm -f conftest.err conftest.$ac_objext \
4670 conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$ac_check_lib_save_LIBS
4673 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4674 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4675 if test $ac_cv_lib_l_yywrap = yes; then
4676 LEXLIB="-ll"
4683 if test "x$LEX" != "x:"; then
4684 echo "$as_me:$LINENO: checking lex output file root" >&5
4685 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4686 if test "${ac_cv_prog_lex_root+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 # The minimal lex program is just a single line: %%. But some broken lexes
4690 # (Solaris, I think it was) want two %% lines, so accommodate them.
4691 cat >conftest.l <<_ACEOF
4694 _ACEOF
4695 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4696 (eval $LEX conftest.l) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }
4700 if test -f lex.yy.c; then
4701 ac_cv_prog_lex_root=lex.yy
4702 elif test -f lexyy.c; then
4703 ac_cv_prog_lex_root=lexyy
4704 else
4705 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4706 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4707 { (exit 1); exit 1; }; }
4710 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4711 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4712 rm -f conftest.l
4713 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4715 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4716 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4717 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 # POSIX says lex can declare yytext either as a pointer or an array; the
4721 # default is implementation-dependent. Figure out which it is, since
4722 # not all implementations provide the %pointer and %array declarations.
4723 ac_cv_prog_lex_yytext_pointer=no
4724 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4725 ac_save_LIBS=$LIBS
4726 LIBS="$LIBS $LEXLIB"
4727 cat >conftest.$ac_ext <<_ACEOF
4728 `cat $LEX_OUTPUT_ROOT.c`
4729 _ACEOF
4730 rm -f conftest.$ac_objext conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest$ac_exeext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 ac_cv_prog_lex_yytext_pointer=yes
4752 else
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4757 rm -f conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 LIBS=$ac_save_LIBS
4760 rm -f "${LEX_OUTPUT_ROOT}.c"
4763 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4764 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4765 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4767 cat >>confdefs.h <<\_ACEOF
4768 #define YYTEXT_POINTER 1
4769 _ACEOF
4775 for ac_prog in $LEX flex lex
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_XLEX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 if test -n "$XLEX"; then
4785 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_XLEX="$ac_prog"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4803 XLEX=$ac_cv_prog_XLEX
4804 if test -n "$XLEX"; then
4805 echo "$as_me:$LINENO: result: $XLEX" >&5
4806 echo "${ECHO_T}$XLEX" >&6
4807 else
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 test -n "$XLEX" && break
4813 done
4814 test -n "$XLEX" || XLEX="none"
4816 if test "$XLEX" = "none"
4817 then
4818 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4819 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4820 { (exit 1); exit 1; }; }
4823 for ac_prog in bison
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_BISON+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 if test -n "$BISON"; then
4833 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_BISON="$ac_prog"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4851 BISON=$ac_cv_prog_BISON
4852 if test -n "$BISON"; then
4853 echo "$as_me:$LINENO: result: $BISON" >&5
4854 echo "${ECHO_T}$BISON" >&6
4855 else
4856 echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4860 test -n "$BISON" && break
4861 done
4862 test -n "$BISON" || BISON="none"
4864 if test "$BISON" = "none"
4865 then
4866 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4867 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4868 { (exit 1); exit 1; }; }
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in gas as
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_prog_AS+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 if test -n "$AS"; then
4882 ac_cv_prog_AS="$AS" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4900 AS=$ac_cv_prog_AS
4901 if test -n "$AS"; then
4902 echo "$as_me:$LINENO: result: $AS" >&5
4903 echo "${ECHO_T}$AS" >&6
4904 else
4905 echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6
4909 test -n "$AS" && break
4910 done
4912 if test -z "$AS"; then
4913 ac_ct_AS=$AS
4914 for ac_prog in gas as
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; 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_AS+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$ac_ct_AS"; then
4924 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="$ac_prog"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4942 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4943 if test -n "$ac_ct_AS"; then
4944 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4945 echo "${ECHO_T}$ac_ct_AS" >&6
4946 else
4947 echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4951 test -n "$ac_ct_AS" && break
4952 done
4953 test -n "$ac_ct_AS" || ac_ct_AS="as"
4955 AS=$ac_ct_AS
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}ld; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_prog_LD+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 if test -n "$LD"; then
4967 ac_cv_prog_LD="$LD" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_LD="${ac_tool_prefix}ld"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4985 LD=$ac_cv_prog_LD
4986 if test -n "$LD"; then
4987 echo "$as_me:$LINENO: result: $LD" >&5
4988 echo "${ECHO_T}$LD" >&6
4989 else
4990 echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4995 if test -z "$ac_cv_prog_LD"; then
4996 ac_ct_LD=$LD
4997 # Extract the first word of "ld", so it can be a program name with args.
4998 set dummy ld; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$ac_ct_LD"; then
5005 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_LD="ld"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5021 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5024 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5025 if test -n "$ac_ct_LD"; then
5026 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5027 echo "${ECHO_T}$ac_ct_LD" >&6
5028 else
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5033 LD=$ac_ct_LD
5034 else
5035 LD="$ac_cv_prog_LD"
5038 if test -n "$ac_tool_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}ar; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_prog_AR+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 if test -n "$AR"; then
5047 ac_cv_prog_AR="$AR" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_AR="${ac_tool_prefix}ar"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5065 AR=$ac_cv_prog_AR
5066 if test -n "$AR"; then
5067 echo "$as_me:$LINENO: result: $AR" >&5
5068 echo "${ECHO_T}$AR" >&6
5069 else
5070 echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5075 if test -z "$ac_cv_prog_AR"; then
5076 ac_ct_AR=$AR
5077 # Extract the first word of "ar", so it can be a program name with args.
5078 set dummy ar; ac_word=$2
5079 echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 if test -n "$ac_ct_AR"; then
5085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_ac_ct_AR="ar"
5095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5101 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5105 if test -n "$ac_ct_AR"; then
5106 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5107 echo "${ECHO_T}$ac_ct_AR" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5113 AR=$ac_ct_AR
5114 else
5115 AR="$ac_cv_prog_AR"
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_RANLIB+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 if test -n "$RANLIB"; then
5127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5145 RANLIB=$ac_cv_prog_RANLIB
5146 if test -n "$RANLIB"; then
5147 echo "$as_me:$LINENO: result: $RANLIB" >&5
5148 echo "${ECHO_T}$RANLIB" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5155 if test -z "$ac_cv_prog_RANLIB"; then
5156 ac_ct_RANLIB=$RANLIB
5157 # Extract the first word of "ranlib", so it can be a program name with args.
5158 set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$ac_ct_RANLIB"; then
5165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5181 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5185 if test -n "$ac_ct_RANLIB"; then
5186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 RANLIB=$ac_ct_RANLIB
5194 else
5195 RANLIB="$ac_cv_prog_RANLIB"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}strip; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_STRIP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$STRIP"; then
5207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5225 STRIP=$ac_cv_prog_STRIP
5226 if test -n "$STRIP"; then
5227 echo "$as_me:$LINENO: result: $STRIP" >&5
5228 echo "${ECHO_T}$STRIP" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5235 if test -z "$ac_cv_prog_STRIP"; then
5236 ac_ct_STRIP=$STRIP
5237 # Extract the first word of "strip", so it can be a program name with args.
5238 set dummy strip; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$ac_ct_STRIP"; then
5245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_STRIP="strip"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5261 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5264 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5265 if test -n "$ac_ct_STRIP"; then
5266 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5267 echo "${ECHO_T}$ac_ct_STRIP" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5273 STRIP=$ac_ct_STRIP
5274 else
5275 STRIP="$ac_cv_prog_STRIP"
5278 if test -n "$ac_tool_prefix"; then
5279 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}windres; ac_word=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_prog_WINDRES+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test -n "$WINDRES"; then
5287 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5305 WINDRES=$ac_cv_prog_WINDRES
5306 if test -n "$WINDRES"; then
5307 echo "$as_me:$LINENO: result: $WINDRES" >&5
5308 echo "${ECHO_T}$WINDRES" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5315 if test -z "$ac_cv_prog_WINDRES"; then
5316 ac_ct_WINDRES=$WINDRES
5317 # Extract the first word of "windres", so it can be a program name with args.
5318 set dummy windres; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$ac_ct_WINDRES"; then
5325 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_ac_ct_WINDRES="windres"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5341 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5344 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5345 if test -n "$ac_ct_WINDRES"; then
5346 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5347 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5348 else
5349 echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6
5353 WINDRES=$ac_ct_WINDRES
5354 else
5355 WINDRES="$ac_cv_prog_WINDRES"
5358 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5360 LN_S=$as_ln_s
5361 if test "$LN_S" = "ln -s"; then
5362 echo "$as_me:$LINENO: result: yes" >&5
5363 echo "${ECHO_T}yes" >&6
5364 else
5365 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5366 echo "${ECHO_T}no, using $LN_S" >&6
5369 echo "$as_me:$LINENO: checking whether ln works" >&5
5370 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5371 rm -f conf$$ conf$$.file
5372 echo >conf$$.file
5373 if ln conf$$.file conf$$ 2>/dev/null; then
5374 LN=ln
5376 echo "$as_me:$LINENO: result: yes" >&5
5377 echo "${ECHO_T}yes" >&6
5378 else
5379 LN="cp -p"
5381 echo "$as_me:$LINENO: result: no, using $LN" >&5
5382 echo "${ECHO_T}no, using $LN" >&6
5384 rm -f conf$$ conf$$.file
5385 # Extract the first word of "ldconfig", so it can be a program name with args.
5386 set dummy ldconfig; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 case $LDCONFIG in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in /sbin /usr/sbin $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5411 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5413 esac
5415 LDCONFIG=$ac_cv_path_LDCONFIG
5417 if test -n "$LDCONFIG"; then
5418 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5419 echo "${ECHO_T}$LDCONFIG" >&6
5420 else
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5425 # Find a good install program. We prefer a C program (faster),
5426 # so one script is as good as another. But avoid the broken or
5427 # incompatible versions:
5428 # SysV /etc/install, /usr/sbin/install
5429 # SunOS /usr/etc/install
5430 # IRIX /sbin/install
5431 # AIX /bin/install
5432 # AmigaOS /C/install, which installs bootblocks on floppy discs
5433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5436 # OS/2's system install, which has a completely different semantic
5437 # ./install, which can be erroneously created by make from ./install.sh.
5438 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5439 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5440 if test -z "$INSTALL"; then
5441 if test "${ac_cv_path_install+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 # Account for people who put trailing slashes in PATH elements.
5450 case $as_dir/ in
5451 ./ | .// | /cC/* | \
5452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5453 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5454 /usr/ucb/* ) ;;
5456 # OSF1 and SCO ODT 3.0 have their own names for install.
5457 # Don't use installbsd from OSF since it installs stuff as root
5458 # by default.
5459 for ac_prog in ginstall scoinst install; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5462 if test $ac_prog = install &&
5463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5464 # AIX install. It has an incompatible calling convention.
5466 elif test $ac_prog = install &&
5467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5468 # program-specific install script used by HP pwplus--don't use.
5470 else
5471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5472 break 3
5475 done
5476 done
5478 esac
5479 done
5483 if test "${ac_cv_path_install+set}" = set; then
5484 INSTALL=$ac_cv_path_install
5485 else
5486 # As a last resort, use the slow shell script. We don't cache a
5487 # path for INSTALL within a source directory, because that will
5488 # break other packages using the cache if that directory is
5489 # removed, or if the path is relative.
5490 INSTALL=$ac_install_sh
5493 echo "$as_me:$LINENO: result: $INSTALL" >&5
5494 echo "${ECHO_T}$INSTALL" >&6
5496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5497 # It thinks the first close brace ends the variable substitution.
5498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5504 case "$INSTALL" in
5505 [\\/$]* | ?:[\\/]* ) ;;
5506 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5507 esac
5509 for ac_prog in lclint lint
5511 # Extract the first word of "$ac_prog", so it can be a program name with args.
5512 set dummy $ac_prog; ac_word=$2
5513 echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515 if test "${ac_cv_prog_LINT+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 if test -n "$LINT"; then
5519 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_LINT="$ac_prog"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5532 done
5533 done
5537 LINT=$ac_cv_prog_LINT
5538 if test -n "$LINT"; then
5539 echo "$as_me:$LINENO: result: $LINT" >&5
5540 echo "${ECHO_T}$LINT" >&6
5541 else
5542 echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5546 test -n "$LINT" && break
5547 done
5549 if test "$LINT" = "lint"
5550 then
5551 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5556 for ac_prog in docbook2html db2html
5558 # Extract the first word of "$ac_prog", so it can be a program name with args.
5559 set dummy $ac_prog; ac_word=$2
5560 echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5562 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 if test -n "$DB2HTML"; then
5566 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_DB2HTML="$ac_prog"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5584 DB2HTML=$ac_cv_prog_DB2HTML
5585 if test -n "$DB2HTML"; then
5586 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5587 echo "${ECHO_T}$DB2HTML" >&6
5588 else
5589 echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5593 test -n "$DB2HTML" && break
5594 done
5595 test -n "$DB2HTML" || DB2HTML="false"
5599 for ac_prog in docbook2pdf db2pdf
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608 if test -n "$DB2PDF"; then
5609 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_DB2PDF="$ac_prog"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5627 DB2PDF=$ac_cv_prog_DB2PDF
5628 if test -n "$DB2PDF"; then
5629 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5630 echo "${ECHO_T}$DB2PDF" >&6
5631 else
5632 echo "$as_me:$LINENO: result: no" >&5
5633 echo "${ECHO_T}no" >&6
5636 test -n "$DB2PDF" && break
5637 done
5638 test -n "$DB2PDF" || DB2PDF="false"
5642 for ac_prog in docbook2ps db2ps
5644 # Extract the first word of "$ac_prog", so it can be a program name with args.
5645 set dummy $ac_prog; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_prog_DB2PS+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 if test -n "$DB2PS"; then
5652 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_DB2PS="$ac_prog"
5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5670 DB2PS=$ac_cv_prog_DB2PS
5671 if test -n "$DB2PS"; then
5672 echo "$as_me:$LINENO: result: $DB2PS" >&5
5673 echo "${ECHO_T}$DB2PS" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5679 test -n "$DB2PS" && break
5680 done
5681 test -n "$DB2PS" || DB2PS="false"
5685 for ac_prog in docbook2txt db2txt
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy $ac_prog; ac_word=$2
5689 echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5691 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 if test -n "$DB2TXT"; then
5695 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_DB2TXT="$ac_prog"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5713 DB2TXT=$ac_cv_prog_DB2TXT
5714 if test -n "$DB2TXT"; then
5715 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5716 echo "${ECHO_T}$DB2TXT" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5722 test -n "$DB2TXT" && break
5723 done
5724 test -n "$DB2TXT" || DB2TXT="false"
5730 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5731 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5732 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 ac_check_lib_save_LIBS=$LIBS
5736 LIBS="-li386 $LIBS"
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 #ifdef __cplusplus
5746 extern "C"
5747 #endif
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5750 char i386_set_ldt ();
5752 main ()
5754 i386_set_ldt ();
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761 (eval $ac_link) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest$ac_exeext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_lib_i386_i386_set_ldt=yes
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ac_cv_lib_i386_i386_set_ldt=no
5787 rm -f conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789 LIBS=$ac_check_lib_save_LIBS
5791 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5792 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5793 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE_LIBI386 1
5796 _ACEOF
5798 LIBS="-li386 $LIBS"
5803 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5804 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5805 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 ac_check_lib_save_LIBS=$LIBS
5809 LIBS="-lossaudio $LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5823 char _oss_ioctl ();
5825 main ()
5827 _oss_ioctl ();
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_lib_ossaudio__oss_ioctl=yes
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_cv_lib_ossaudio__oss_ioctl=no
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5862 LIBS=$ac_check_lib_save_LIBS
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5865 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5866 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5867 cat >>confdefs.h <<_ACEOF
5868 #define HAVE_LIBOSSAUDIO 1
5869 _ACEOF
5871 LIBS="-lossaudio $LIBS"
5876 for ac_func in iswalnum
5878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5879 echo "$as_me:$LINENO: checking for $ac_func" >&5
5880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5881 if eval "test \"\${$as_ac_var+set}\" = set"; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5892 #define $ac_func innocuous_$ac_func
5894 /* System header to define __stub macros and hopefully few prototypes,
5895 which can conflict with char $ac_func (); below.
5896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897 <limits.h> exists even on freestanding compilers. */
5899 #ifdef __STDC__
5900 # include <limits.h>
5901 #else
5902 # include <assert.h>
5903 #endif
5905 #undef $ac_func
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 #ifdef __cplusplus
5909 extern "C"
5911 #endif
5912 /* We use char because int might match the return type of a gcc2
5913 builtin and then its argument prototype would still apply. */
5914 char $ac_func ();
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 choke me
5920 #else
5921 char (*f) () = $ac_func;
5922 #endif
5923 #ifdef __cplusplus
5925 #endif
5928 main ()
5930 return f != $ac_func;
5932 return 0;
5934 _ACEOF
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 eval "$as_ac_var=yes"
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 eval "$as_ac_var=no"
5963 rm -f conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5968 if test `eval echo '${'$as_ac_var'}'` = yes; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5971 _ACEOF
5973 else
5975 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5976 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5977 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lw $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5989 /* Override any gcc2 internal prototype to avoid an error. */
5990 #ifdef __cplusplus
5991 extern "C"
5992 #endif
5993 /* We use char because int might match the return type of a gcc2
5994 builtin and then its argument prototype would still apply. */
5995 char iswalnum ();
5997 main ()
5999 iswalnum ();
6001 return 0;
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest$ac_exeext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_lib_w_iswalnum=yes
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 ac_cv_lib_w_iswalnum=no
6032 rm -f conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6037 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6038 if test $ac_cv_lib_w_iswalnum = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define HAVE_LIBW 1
6041 _ACEOF
6043 LIBS="-lw $LIBS"
6048 done
6051 for ac_func in gethostbyname
6053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6054 echo "$as_me:$LINENO: checking for $ac_func" >&5
6055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_var+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6067 #define $ac_func innocuous_$ac_func
6069 /* System header to define __stub macros and hopefully few prototypes,
6070 which can conflict with char $ac_func (); below.
6071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6072 <limits.h> exists even on freestanding compilers. */
6074 #ifdef __STDC__
6075 # include <limits.h>
6076 #else
6077 # include <assert.h>
6078 #endif
6080 #undef $ac_func
6082 /* Override any gcc2 internal prototype to avoid an error. */
6083 #ifdef __cplusplus
6084 extern "C"
6086 #endif
6087 /* We use char because int might match the return type of a gcc2
6088 builtin and then its argument prototype would still apply. */
6089 char $ac_func ();
6090 /* The GNU C library defines this for functions which it implements
6091 to always fail with ENOSYS. Some functions are actually named
6092 something starting with __ and the normal name is an alias. */
6093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6094 choke me
6095 #else
6096 char (*f) () = $ac_func;
6097 #endif
6098 #ifdef __cplusplus
6100 #endif
6103 main ()
6105 return f != $ac_func;
6107 return 0;
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest$ac_exeext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 eval "$as_ac_var=yes"
6132 else
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 eval "$as_ac_var=no"
6138 rm -f conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6143 if test `eval echo '${'$as_ac_var'}'` = yes; then
6144 cat >>confdefs.h <<_ACEOF
6145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6146 _ACEOF
6148 else
6150 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6151 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6152 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lnsl $LIBS"
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6164 /* Override any gcc2 internal prototype to avoid an error. */
6165 #ifdef __cplusplus
6166 extern "C"
6167 #endif
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6170 char gethostbyname ();
6172 main ()
6174 gethostbyname ();
6176 return 0;
6178 _ACEOF
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_lib_nsl_gethostbyname=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_lib_nsl_gethostbyname=no
6207 rm -f conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209 LIBS=$ac_check_lib_save_LIBS
6211 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6212 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6213 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define HAVE_LIBNSL 1
6216 _ACEOF
6218 LIBS="-lnsl $LIBS"
6223 done
6226 for ac_func in connect
6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229 echo "$as_me:$LINENO: checking for $ac_func" >&5
6230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_var+set}\" = set"; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6242 #define $ac_func innocuous_$ac_func
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func (); below.
6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247 <limits.h> exists even on freestanding compilers. */
6249 #ifdef __STDC__
6250 # include <limits.h>
6251 #else
6252 # include <assert.h>
6253 #endif
6255 #undef $ac_func
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 #ifdef __cplusplus
6259 extern "C"
6261 #endif
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char $ac_func ();
6265 /* The GNU C library defines this for functions which it implements
6266 to always fail with ENOSYS. Some functions are actually named
6267 something starting with __ and the normal name is an alias. */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 choke me
6270 #else
6271 char (*f) () = $ac_func;
6272 #endif
6273 #ifdef __cplusplus
6275 #endif
6278 main ()
6280 return f != $ac_func;
6282 return 0;
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 eval "$as_ac_var=yes"
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 eval "$as_ac_var=no"
6313 rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6318 if test `eval echo '${'$as_ac_var'}'` = yes; then
6319 cat >>confdefs.h <<_ACEOF
6320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6321 _ACEOF
6323 else
6325 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6326 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6327 if test "${ac_cv_lib_socket_connect+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 ac_check_lib_save_LIBS=$LIBS
6331 LIBS="-lsocket $LIBS"
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 #ifdef __cplusplus
6341 extern "C"
6342 #endif
6343 /* We use char because int might match the return type of a gcc2
6344 builtin and then its argument prototype would still apply. */
6345 char connect ();
6347 main ()
6349 connect ();
6351 return 0;
6353 _ACEOF
6354 rm -f conftest.$ac_objext conftest$ac_exeext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356 (eval $ac_link) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_lib_socket_connect=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_cv_lib_socket_connect=no
6382 rm -f conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS=$ac_check_lib_save_LIBS
6386 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6387 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6388 if test $ac_cv_lib_socket_connect = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_LIBSOCKET 1
6391 _ACEOF
6393 LIBS="-lsocket $LIBS"
6398 done
6401 for ac_func in inet_aton
6403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6404 echo "$as_me:$LINENO: checking for $ac_func" >&5
6405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_var+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6417 #define $ac_func innocuous_$ac_func
6419 /* System header to define __stub macros and hopefully few prototypes,
6420 which can conflict with char $ac_func (); below.
6421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6422 <limits.h> exists even on freestanding compilers. */
6424 #ifdef __STDC__
6425 # include <limits.h>
6426 #else
6427 # include <assert.h>
6428 #endif
6430 #undef $ac_func
6432 /* Override any gcc2 internal prototype to avoid an error. */
6433 #ifdef __cplusplus
6434 extern "C"
6436 #endif
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6439 char $ac_func ();
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 choke me
6445 #else
6446 char (*f) () = $ac_func;
6447 #endif
6448 #ifdef __cplusplus
6450 #endif
6453 main ()
6455 return f != $ac_func;
6457 return 0;
6459 _ACEOF
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 eval "$as_ac_var=yes"
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 eval "$as_ac_var=no"
6488 rm -f conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6493 if test `eval echo '${'$as_ac_var'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496 _ACEOF
6498 else
6500 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6501 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6502 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lresolv $LIBS"
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520 char inet_aton ();
6522 main ()
6524 inet_aton ();
6526 return 0;
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_lib_resolv_inet_aton=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_cv_lib_resolv_inet_aton=no
6557 rm -f conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext conftest.$ac_ext
6559 LIBS=$ac_check_lib_save_LIBS
6561 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6562 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6563 if test $ac_cv_lib_resolv_inet_aton = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define HAVE_LIBRESOLV 1
6566 _ACEOF
6568 LIBS="-lresolv $LIBS"
6573 done
6576 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6577 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6578 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 ac_check_lib_save_LIBS=$LIBS
6582 LIBS="-lxpg4 $LIBS"
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6596 char _xpg4_setrunelocale ();
6598 main ()
6600 _xpg4_setrunelocale ();
6602 return 0;
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607 (eval $ac_link) 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6633 rm -f conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 LIBS=$ac_check_lib_save_LIBS
6637 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6638 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6639 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6640 cat >>confdefs.h <<_ACEOF
6641 #define HAVE_LIBXPG4 1
6642 _ACEOF
6644 LIBS="-lxpg4 $LIBS"
6649 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6650 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6651 if test "${ac_cv_lib_poll_poll+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 ac_check_lib_save_LIBS=$LIBS
6655 LIBS="-lpoll $LIBS"
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 #ifdef __cplusplus
6665 extern "C"
6666 #endif
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6669 char poll ();
6671 main ()
6673 poll ();
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext conftest$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_lib_poll_poll=yes
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_cv_lib_poll_poll=no
6706 rm -f conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 LIBS=$ac_check_lib_save_LIBS
6710 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6711 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6712 if test $ac_cv_lib_poll_poll = yes; then
6713 cat >>confdefs.h <<_ACEOF
6714 #define HAVE_LIBPOLL 1
6715 _ACEOF
6717 LIBS="-lpoll $LIBS"
6721 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6722 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6723 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 ac_check_lib_save_LIBS=$LIBS
6727 LIBS="-lpthread $LIBS"
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 #ifdef __cplusplus
6737 extern "C"
6738 #endif
6739 /* We use char because int might match the return type of a gcc2
6740 builtin and then its argument prototype would still apply. */
6741 char pthread_create ();
6743 main ()
6745 pthread_create ();
6747 return 0;
6749 _ACEOF
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>conftest.er1
6753 ac_status=$?
6754 grep -v '^ *+' conftest.er1 >conftest.err
6755 rm -f conftest.er1
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest$ac_exeext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_lib_pthread_pthread_create=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 ac_cv_lib_pthread_pthread_create=no
6778 rm -f conftest.err conftest.$ac_objext \
6779 conftest$ac_exeext conftest.$ac_ext
6780 LIBS=$ac_check_lib_save_LIBS
6782 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6783 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6784 if test $ac_cv_lib_pthread_pthread_create = yes; then
6785 LIBPTHREAD="-lpthread"
6790 JPEGLIB=""
6792 echo "$as_me:$LINENO: checking for egrep" >&5
6793 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6794 if test "${ac_cv_prog_egrep+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6798 then ac_cv_prog_egrep='grep -E'
6799 else ac_cv_prog_egrep='egrep'
6802 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6803 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6804 EGREP=$ac_cv_prog_egrep
6807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6809 if test "${ac_cv_header_stdc+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <stdlib.h>
6819 #include <stdarg.h>
6820 #include <string.h>
6821 #include <float.h>
6824 main ()
6828 return 0;
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_header_stdc=yes
6853 else
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_header_stdc=no
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 if test $ac_cv_header_stdc = yes; then
6862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <string.h>
6871 _ACEOF
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 $EGREP "memchr" >/dev/null 2>&1; then
6875 else
6876 ac_cv_header_stdc=no
6878 rm -f conftest*
6882 if test $ac_cv_header_stdc = yes; then
6883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <stdlib.h>
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "free" >/dev/null 2>&1; then
6896 else
6897 ac_cv_header_stdc=no
6899 rm -f conftest*
6903 if test $ac_cv_header_stdc = yes; then
6904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6905 if test "$cross_compiling" = yes; then
6907 else
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <ctype.h>
6915 #if ((' ' & 0x0FF) == 0x020)
6916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 #else
6919 # define ISLOWER(c) \
6920 (('a' <= (c) && (c) <= 'i') \
6921 || ('j' <= (c) && (c) <= 'r') \
6922 || ('s' <= (c) && (c) <= 'z'))
6923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924 #endif
6926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6928 main ()
6930 int i;
6931 for (i = 0; i < 256; i++)
6932 if (XOR (islower (i), ISLOWER (i))
6933 || toupper (i) != TOUPPER (i))
6934 exit(2);
6935 exit (0);
6937 _ACEOF
6938 rm -f conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6950 else
6951 echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ( exit $ac_status )
6956 ac_cv_header_stdc=no
6958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6968 _ACEOF
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983 inttypes.h stdint.h unistd.h
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h. */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 $ac_includes_default
6999 #include <$ac_header>
7000 _ACEOF
7001 rm -f conftest.$ac_objext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003 (eval $ac_compile) 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 eval "$as_ac_Header=yes"
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 eval "$as_ac_Header=no"
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7034 cat >>confdefs.h <<_ACEOF
7035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7036 _ACEOF
7040 done
7044 for ac_header in jpeglib.h
7046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048 echo "$as_me:$LINENO: checking for $ac_header" >&5
7049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7055 else
7056 # Is the header compilable?
7057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 $ac_includes_default
7066 #include <$ac_header>
7067 _ACEOF
7068 rm -f conftest.$ac_objext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 (eval $ac_compile) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; } &&
7083 { ac_try='test -s conftest.$ac_objext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_header_compiler=yes
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_header_compiler=no
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7098 echo "${ECHO_T}$ac_header_compiler" >&6
7100 # Is the header present?
7101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <$ac_header>
7110 _ACEOF
7111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } >/dev/null; then
7119 if test -s conftest.err; then
7120 ac_cpp_err=$ac_c_preproc_warn_flag
7121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7122 else
7123 ac_cpp_err=
7125 else
7126 ac_cpp_err=yes
7128 if test -z "$ac_cpp_err"; then
7129 ac_header_preproc=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_header_preproc=no
7136 rm -f conftest.err conftest.$ac_ext
7137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7138 echo "${ECHO_T}$ac_header_preproc" >&6
7140 # So? What about this header?
7141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7142 yes:no: )
7143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7147 ac_header_preproc=yes
7149 no:yes:* )
7150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7163 cat <<\_ASBOX
7164 ## ------------------------------------ ##
7165 ## Report this to wine-devel@winehq.org ##
7166 ## ------------------------------------ ##
7167 _ASBOX
7169 sed "s/^/$as_me: WARNING: /" >&2
7171 esac
7172 echo "$as_me:$LINENO: checking for $ac_header" >&5
7173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177 eval "$as_ac_Header=\$ac_header_preproc"
7179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7184 cat >>confdefs.h <<_ACEOF
7185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7186 _ACEOF
7187 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7188 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7189 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 ac_check_lib_save_LIBS=$LIBS
7193 LIBS="-ljpeg $LIBS"
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7201 /* Override any gcc2 internal prototype to avoid an error. */
7202 #ifdef __cplusplus
7203 extern "C"
7204 #endif
7205 /* We use char because int might match the return type of a gcc2
7206 builtin and then its argument prototype would still apply. */
7207 char jpeg_start_decompress ();
7209 main ()
7211 jpeg_start_decompress ();
7213 return 0;
7215 _ACEOF
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest$ac_exeext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7242 ac_cv_lib_jpeg_jpeg_start_decompress=no
7244 rm -f conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 LIBS=$ac_check_lib_save_LIBS
7248 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7249 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7250 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7252 cat >>confdefs.h <<\_ACEOF
7253 #define HAVE_LIBJPEG 1
7254 _ACEOF
7256 JPEGLIB="-ljpeg"
7263 done
7266 GIFLIB=""
7269 for ac_header in gif_lib.h
7271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7273 echo "$as_me:$LINENO: checking for $ac_header" >&5
7274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7280 else
7281 # Is the header compilable?
7282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7291 #include <$ac_header>
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7295 (eval $ac_compile) 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try='test -s conftest.$ac_objext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 ac_header_compiler=yes
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ac_header_compiler=no
7321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7323 echo "${ECHO_T}$ac_header_compiler" >&6
7325 # Is the header present?
7326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 #include <$ac_header>
7335 _ACEOF
7336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } >/dev/null; then
7344 if test -s conftest.err; then
7345 ac_cpp_err=$ac_c_preproc_warn_flag
7346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7347 else
7348 ac_cpp_err=
7350 else
7351 ac_cpp_err=yes
7353 if test -z "$ac_cpp_err"; then
7354 ac_header_preproc=yes
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 ac_header_preproc=no
7361 rm -f conftest.err conftest.$ac_ext
7362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7363 echo "${ECHO_T}$ac_header_preproc" >&6
7365 # So? What about this header?
7366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7367 yes:no: )
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7372 ac_header_preproc=yes
7374 no:yes:* )
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7388 cat <<\_ASBOX
7389 ## ------------------------------------ ##
7390 ## Report this to wine-devel@winehq.org ##
7391 ## ------------------------------------ ##
7392 _ASBOX
7394 sed "s/^/$as_me: WARNING: /" >&2
7396 esac
7397 echo "$as_me:$LINENO: checking for $ac_header" >&5
7398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402 eval "$as_ac_Header=\$ac_header_preproc"
7404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409 cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 _ACEOF
7412 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7413 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7414 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 ac_check_lib_save_LIBS=$LIBS
7418 LIBS="-lungif $LIBS"
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7426 /* Override any gcc2 internal prototype to avoid an error. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7432 char DGifOpen ();
7434 main ()
7436 DGifOpen ();
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try='test -s conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_lib_ungif_DGifOpen=yes
7463 else
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_cv_lib_ungif_DGifOpen=no
7469 rm -f conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 LIBS=$ac_check_lib_save_LIBS
7473 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7474 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7475 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_LIBGIF 1
7479 _ACEOF
7481 GIFLIB="-lungif"
7482 else
7483 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7484 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7485 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 ac_check_lib_save_LIBS=$LIBS
7489 LIBS="-lgif $LIBS"
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7497 /* Override any gcc2 internal prototype to avoid an error. */
7498 #ifdef __cplusplus
7499 extern "C"
7500 #endif
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char DGifOpen ();
7505 main ()
7507 DGifOpen ();
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext conftest$ac_exeext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7514 (eval $ac_link) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7527 { ac_try='test -s conftest$ac_exeext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_lib_gif_DGifOpen=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_lib_gif_DGifOpen=no
7540 rm -f conftest.err conftest.$ac_objext \
7541 conftest$ac_exeext conftest.$ac_ext
7542 LIBS=$ac_check_lib_save_LIBS
7544 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7545 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7546 if test $ac_cv_lib_gif_DGifOpen = yes; then
7547 cat >>confdefs.h <<\_ACEOF
7548 #define HAVE_LIBGIF 1
7549 _ACEOF
7551 GIFLIB="-lgif"
7558 done
7563 XFILES=""
7565 OPENGLFILES=""
7567 GLU32FILES=""
7569 OPENGL_LIBS=""
7570 if test "$have_x" = "yes"
7571 then
7572 XLIB="-lXext -lX11"
7573 ac_save_CPPFLAGS="$CPPFLAGS"
7574 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7577 for ac_header in X11/Xlib.h
7579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7581 echo "$as_me:$LINENO: checking for $ac_header" >&5
7582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7588 else
7589 # Is the header compilable?
7590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 $ac_includes_default
7599 #include <$ac_header>
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7604 ac_status=$?
7605 grep -v '^ *+' conftest.er1 >conftest.err
7606 rm -f conftest.er1
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_header_compiler=yes
7623 else
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_header_compiler=no
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7631 echo "${ECHO_T}$ac_header_compiler" >&6
7633 # Is the header present?
7634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <$ac_header>
7643 _ACEOF
7644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } >/dev/null; then
7652 if test -s conftest.err; then
7653 ac_cpp_err=$ac_c_preproc_warn_flag
7654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7655 else
7656 ac_cpp_err=
7658 else
7659 ac_cpp_err=yes
7661 if test -z "$ac_cpp_err"; then
7662 ac_header_preproc=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 ac_header_preproc=no
7669 rm -f conftest.err conftest.$ac_ext
7670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7671 echo "${ECHO_T}$ac_header_preproc" >&6
7673 # So? What about this header?
7674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7675 yes:no: )
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7680 ac_header_preproc=yes
7682 no:yes:* )
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7696 cat <<\_ASBOX
7697 ## ------------------------------------ ##
7698 ## Report this to wine-devel@winehq.org ##
7699 ## ------------------------------------ ##
7700 _ASBOX
7702 sed "s/^/$as_me: WARNING: /" >&2
7704 esac
7705 echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710 eval "$as_ac_Header=\$ac_header_preproc"
7712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7717 cat >>confdefs.h <<_ACEOF
7718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7719 _ACEOF
7731 for ac_header in X11/XKBlib.h \
7732 X11/Xutil.h \
7733 X11/extensions/shape.h \
7734 X11/extensions/XInput.h \
7735 X11/extensions/XShm.h \
7736 X11/extensions/Xrandr.h \
7737 X11/extensions/Xrender.h \
7738 X11/extensions/Xvlib.h \
7739 X11/extensions/xf86dga.h \
7740 X11/extensions/xf86vmode.h
7742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 echo "$as_me:$LINENO: checking for $ac_header" >&5
7744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <X11/Xlib.h>
7755 #ifdef HAVE_X11_XUTIL_H
7756 # include <X11/Xutil.h>
7757 #endif
7759 #include <$ac_header>
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 eval "$as_ac_Header=yes"
7783 else
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 eval "$as_ac_Header=no"
7789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7800 done
7803 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7804 then
7805 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7806 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7807 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810 ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7812 cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7819 /* Override any gcc2 internal prototype to avoid an error. */
7820 #ifdef __cplusplus
7821 extern "C"
7822 #endif
7823 /* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7825 char XkbQueryExtension ();
7827 main ()
7829 XkbQueryExtension ();
7831 return 0;
7833 _ACEOF
7834 rm -f conftest.$ac_objext conftest$ac_exeext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7836 (eval $ac_link) 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest$ac_exeext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_cv_lib_X11_XkbQueryExtension=yes
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_lib_X11_XkbQueryExtension=no
7862 rm -f conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_lib_save_LIBS
7866 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7867 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7868 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_XKB 1
7872 _ACEOF
7878 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7879 then
7880 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7881 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7882 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 ac_check_lib_save_LIBS=$LIBS
7886 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h. */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 #ifdef __cplusplus
7896 extern "C"
7897 #endif
7898 /* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7900 char XShmQueryExtension ();
7902 main ()
7904 XShmQueryExtension ();
7906 return 0;
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_lib_Xext_XShmQueryExtension=yes
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_cv_lib_Xext_XShmQueryExtension=no
7937 rm -f conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 LIBS=$ac_check_lib_save_LIBS
7941 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7942 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7943 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7945 cat >>confdefs.h <<\_ACEOF
7946 #define HAVE_LIBXXSHM 1
7947 _ACEOF
7953 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7954 then
7955 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7956 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7957 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960 ac_check_lib_save_LIBS=$LIBS
7961 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7969 /* Override any gcc2 internal prototype to avoid an error. */
7970 #ifdef __cplusplus
7971 extern "C"
7972 #endif
7973 /* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7975 char XShapeQueryExtension ();
7977 main ()
7979 XShapeQueryExtension ();
7981 return 0;
7983 _ACEOF
7984 rm -f conftest.$ac_objext conftest$ac_exeext
7985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7986 (eval $ac_link) 2>conftest.er1
7987 ac_status=$?
7988 grep -v '^ *+' conftest.er1 >conftest.err
7989 rm -f conftest.er1
7990 cat conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest$ac_exeext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_cv_lib_Xext_XShapeQueryExtension=yes
8006 else
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ac_cv_lib_Xext_XShapeQueryExtension=no
8012 rm -f conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8016 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8017 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8018 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8020 cat >>confdefs.h <<\_ACEOF
8021 #define HAVE_LIBXSHAPE 1
8022 _ACEOF
8028 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8029 then
8030 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8031 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8032 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035 ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8050 char XDGAQueryExtension ();
8052 main ()
8054 XDGAQueryExtension ();
8056 return 0;
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; } &&
8074 { ac_try='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8087 rm -f conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8089 LIBS=$ac_check_lib_save_LIBS
8091 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8092 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8093 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8095 cat >>confdefs.h <<\_ACEOF
8096 #define HAVE_LIBXXF86DGA2 1
8097 _ACEOF
8099 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8101 else
8102 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8103 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8104 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107 ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8109 $LIBS"
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h. */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 #ifdef __cplusplus
8119 extern "C"
8120 #endif
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char XF86DGAQueryExtension ();
8125 main ()
8127 XF86DGAQueryExtension ();
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8160 rm -f conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8165 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8166 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_LIBXXF86DGA 1
8170 _ACEOF
8172 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8181 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8182 then
8183 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8184 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8185 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188 ac_check_lib_save_LIBS=$LIBS
8189 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8197 /* Override any gcc2 internal prototype to avoid an error. */
8198 #ifdef __cplusplus
8199 extern "C"
8200 #endif
8201 /* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203 char XF86VidModeQueryExtension ();
8205 main ()
8207 XF86VidModeQueryExtension ();
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8240 rm -f conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LIBS=$ac_check_lib_save_LIBS
8244 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8245 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8246 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_LIBXXF86VM 1
8250 _ACEOF
8252 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8258 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8259 then
8260 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8261 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
8262 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265 ac_check_lib_save_LIBS=$LIBS
8266 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 /* Override any gcc2 internal prototype to avoid an error. */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8280 char XRRSetScreenConfigAndRate ();
8282 main ()
8284 XRRSetScreenConfigAndRate ();
8286 return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
8311 else
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
8317 rm -f conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 LIBS=$ac_check_lib_save_LIBS
8321 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8322 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8323 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8325 cat >>confdefs.h <<\_ACEOF
8326 #define HAVE_LIBXRANDR 1
8327 _ACEOF
8329 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8335 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8336 then
8337 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8338 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8339 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 ac_check_lib_save_LIBS=$LIBS
8343 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8351 /* Override any gcc2 internal prototype to avoid an error. */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8357 char XvShmCreateImage ();
8359 main ()
8361 XvShmCreateImage ();
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_lib_Xv_XvShmCreateImage=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_cv_lib_Xv_XvShmCreateImage=no
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8398 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8399 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8400 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_XVIDEO 1
8404 _ACEOF
8406 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8415 done
8417 if test "x$with_opengl" != "xno"
8418 then
8419 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8420 then
8421 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8422 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8423 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8424 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8425 { (exit 1); exit 1; }; }
8430 for ac_header in GL/gl.h GL/glx.h
8432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434 echo "$as_me:$LINENO: checking for $ac_header" >&5
8435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8441 else
8442 # Is the header compilable?
8443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 $ac_includes_default
8452 #include <$ac_header>
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456 (eval $ac_compile) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_header_compiler=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_header_compiler=no
8482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 echo "${ECHO_T}$ac_header_compiler" >&6
8486 # Is the header present?
8487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <$ac_header>
8496 _ACEOF
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev/null; then
8505 if test -s conftest.err; then
8506 ac_cpp_err=$ac_c_preproc_warn_flag
8507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8508 else
8509 ac_cpp_err=
8511 else
8512 ac_cpp_err=yes
8514 if test -z "$ac_cpp_err"; then
8515 ac_header_preproc=yes
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_header_preproc=no
8522 rm -f conftest.err conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8524 echo "${ECHO_T}$ac_header_preproc" >&6
8526 # So? What about this header?
8527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8528 yes:no: )
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8533 ac_header_preproc=yes
8535 no:yes:* )
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8549 cat <<\_ASBOX
8550 ## ------------------------------------ ##
8551 ## Report this to wine-devel@winehq.org ##
8552 ## ------------------------------------ ##
8553 _ASBOX
8555 sed "s/^/$as_me: WARNING: /" >&2
8557 esac
8558 echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 eval "$as_ac_Header=\$ac_header_preproc"
8565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 _ACEOF
8576 done
8578 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8579 then
8581 for ac_header in GL/glext.h
8583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8584 echo "$as_me:$LINENO: checking for $ac_header" >&5
8585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 #include <GL/glx.h>
8597 #include <$ac_header>
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 eval "$as_ac_Header=yes"
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 eval "$as_ac_Header=no"
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 _ACEOF
8638 done
8640 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8641 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8642 if test "${wine_cv_opengl_version_OK+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 #include <GL/gl.h>
8653 main ()
8655 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8657 return 0;
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662 (eval $ac_compile) 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 wine_cv_opengl_version_OK="yes"
8682 else
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 wine_cv_opengl_version_OK="no"
8689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8692 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8693 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8695 if test "$wine_cv_opengl_version_OK" = "yes"
8696 then
8697 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8698 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8699 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702 ac_check_lib_save_LIBS=$LIBS
8703 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8711 /* Override any gcc2 internal prototype to avoid an error. */
8712 #ifdef __cplusplus
8713 extern "C"
8714 #endif
8715 /* We use char because int might match the return type of a gcc2
8716 builtin and then its argument prototype would still apply. */
8717 char glXCreateContext ();
8719 main ()
8721 glXCreateContext ();
8723 return 0;
8725 _ACEOF
8726 rm -f conftest.$ac_objext conftest$ac_exeext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728 (eval $ac_link) 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_lib_GL_glXCreateContext=yes
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_lib_GL_glXCreateContext=no
8754 rm -f conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8759 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8760 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8761 OPENGL_LIBS="-lGL"
8766 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8767 then
8768 OPENGLFILES='$(OPENGLFILES)'
8770 cat >>confdefs.h <<\_ACEOF
8771 #define HAVE_OPENGL 1
8772 _ACEOF
8775 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8776 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8777 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 ac_check_lib_save_LIBS=$LIBS
8781 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8782 cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h. */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8789 /* Override any gcc2 internal prototype to avoid an error. */
8790 #ifdef __cplusplus
8791 extern "C"
8792 #endif
8793 /* We use char because int might match the return type of a gcc2
8794 builtin and then its argument prototype would still apply. */
8795 char glXGetProcAddressARB ();
8797 main ()
8799 glXGetProcAddressARB ();
8801 return 0;
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 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); } &&
8813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; } &&
8819 { ac_try='test -s conftest$ac_exeext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_lib_GL_glXGetProcAddressARB=yes
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_lib_GL_glXGetProcAddressARB=no
8832 rm -f conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 LIBS=$ac_check_lib_save_LIBS
8836 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8837 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8838 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8840 cat >>confdefs.h <<\_ACEOF
8841 #define HAVE_GLX_GETPROCADDRESS 1
8842 _ACEOF
8847 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8848 then
8849 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8850 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8851 if test "${wine_cv_extension_prototypes+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8860 #include <GL/gl.h>
8861 #ifdef HAVE_GL_GLEXT_H
8862 # include <GL/glext.h>
8863 #endif
8866 main ()
8868 PFNGLCOLORTABLEEXTPROC test_proc;
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8875 (eval $ac_compile) 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try='test -s conftest.$ac_objext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 wine_cv_extension_prototypes="yes"
8895 else
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 wine_cv_extension_prototypes="no"
8902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8906 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8907 if test "$wine_cv_extension_prototypes" = "yes"
8908 then
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_GLEXT_PROTOTYPES 1
8912 _ACEOF
8918 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8919 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8920 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 ac_check_lib_save_LIBS=$LIBS
8924 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8925 $LIBS"
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 /* Override any gcc2 internal prototype to avoid an error. */
8934 #ifdef __cplusplus
8935 extern "C"
8936 #endif
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8939 char gluLookAt ();
8941 main ()
8943 gluLookAt ();
8945 return 0;
8947 _ACEOF
8948 rm -f conftest.$ac_objext conftest$ac_exeext
8949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8950 (eval $ac_link) 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_lib_GLU_gluLookAt=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_cv_lib_GLU_gluLookAt=no
8976 rm -f conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8981 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8982 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8983 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8984 GLU32FILES='$(GLU32FILES)'
8990 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8991 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8992 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9004 /* Override any gcc2 internal prototype to avoid an error. */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9010 char glutMainLoop ();
9012 main ()
9014 glutMainLoop ();
9016 return 0;
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9021 (eval $ac_link) 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest$ac_exeext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 ac_cv_lib_glut_glutMainLoop=yes
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 ac_cv_lib_glut_glutMainLoop=no
9047 rm -f conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_check_lib_save_LIBS
9051 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9052 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9053 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9054 GLUT_LIBS="-lglut -lXmu -lXi"
9056 GLUT32FILES='$(GLUT32FILES)'
9063 NASLIBS=""
9066 for ac_header in audio/audiolib.h
9068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070 echo "$as_me:$LINENO: checking for $ac_header" >&5
9071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077 else
9078 # Is the header compilable?
9079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 $ac_includes_default
9088 #include <$ac_header>
9089 _ACEOF
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092 (eval $ac_compile) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest.$ac_objext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_header_compiler=yes
9112 else
9113 echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9116 ac_header_compiler=no
9118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120 echo "${ECHO_T}$ac_header_compiler" >&6
9122 # Is the header present?
9123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <$ac_header>
9132 _ACEOF
9133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } >/dev/null; then
9141 if test -s conftest.err; then
9142 ac_cpp_err=$ac_c_preproc_warn_flag
9143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9144 else
9145 ac_cpp_err=
9147 else
9148 ac_cpp_err=yes
9150 if test -z "$ac_cpp_err"; then
9151 ac_header_preproc=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ac_header_preproc=no
9158 rm -f conftest.err conftest.$ac_ext
9159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9160 echo "${ECHO_T}$ac_header_preproc" >&6
9162 # So? What about this header?
9163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9164 yes:no: )
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9169 ac_header_preproc=yes
9171 no:yes:* )
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9185 cat <<\_ASBOX
9186 ## ------------------------------------ ##
9187 ## Report this to wine-devel@winehq.org ##
9188 ## ------------------------------------ ##
9189 _ASBOX
9191 sed "s/^/$as_me: WARNING: /" >&2
9193 esac
9194 echo "$as_me:$LINENO: checking for $ac_header" >&5
9195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 eval "$as_ac_Header=\$ac_header_preproc"
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9208 _ACEOF
9210 for ac_header in audio/soundlib.h
9212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 #include <audio/audiolib.h>
9226 #include <$ac_header>
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230 (eval $ac_compile) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 eval "$as_ac_Header=yes"
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 eval "$as_ac_Header=no"
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9263 _ACEOF
9267 done
9269 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9270 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9271 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 ac_check_lib_save_LIBS=$LIBS
9275 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9283 /* Override any gcc2 internal prototype to avoid an error. */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 /* We use char because int might match the return type of a gcc2
9288 builtin and then its argument prototype would still apply. */
9289 char AuCreateFlow ();
9291 main ()
9293 AuCreateFlow ();
9295 return 0;
9297 _ACEOF
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_lib_audio_AuCreateFlow=yes
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 ac_cv_lib_audio_AuCreateFlow=no
9326 rm -f conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9330 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9331 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9332 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9334 cat >>confdefs.h <<\_ACEOF
9335 #define HAVE_NAS 1
9336 _ACEOF
9338 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9343 done
9346 CPPFLAGS="$ac_save_CPPFLAGS"
9347 XFILES='$(XFILES)'
9348 else
9349 XLIB=""
9350 X_CFLAGS=""
9351 X_LIBS=""
9354 CURSESLIBS=""
9355 if test "x$with_curses" != "xno"
9356 then
9358 for ac_header in ncurses.h
9360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9362 echo "$as_me:$LINENO: checking for $ac_header" >&5
9363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9369 else
9370 # Is the header compilable?
9371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 $ac_includes_default
9380 #include <$ac_header>
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9384 (eval $ac_compile) 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_header_compiler=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_header_compiler=no
9410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9412 echo "${ECHO_T}$ac_header_compiler" >&6
9414 # Is the header present?
9415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h. */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9423 #include <$ac_header>
9424 _ACEOF
9425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null; then
9433 if test -s conftest.err; then
9434 ac_cpp_err=$ac_c_preproc_warn_flag
9435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9436 else
9437 ac_cpp_err=
9439 else
9440 ac_cpp_err=yes
9442 if test -z "$ac_cpp_err"; then
9443 ac_header_preproc=yes
9444 else
9445 echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ac_header_preproc=no
9450 rm -f conftest.err conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452 echo "${ECHO_T}$ac_header_preproc" >&6
9454 # So? What about this header?
9455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9456 yes:no: )
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9461 ac_header_preproc=yes
9463 no:yes:* )
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9477 cat <<\_ASBOX
9478 ## ------------------------------------ ##
9479 ## Report this to wine-devel@winehq.org ##
9480 ## ------------------------------------ ##
9481 _ASBOX
9483 sed "s/^/$as_me: WARNING: /" >&2
9485 esac
9486 echo "$as_me:$LINENO: checking for $ac_header" >&5
9487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 eval "$as_ac_Header=\$ac_header_preproc"
9493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9498 cat >>confdefs.h <<_ACEOF
9499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9500 _ACEOF
9501 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9502 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9503 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-lncurses $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9515 /* Override any gcc2 internal prototype to avoid an error. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521 char waddch ();
9523 main ()
9525 waddch ();
9527 return 0;
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; } &&
9545 { ac_try='test -s conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_lib_ncurses_waddch=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_lib_ncurses_waddch=no
9558 rm -f conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9562 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9563 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9564 if test $ac_cv_lib_ncurses_waddch = yes; then
9566 cat >>confdefs.h <<\_ACEOF
9567 #define HAVE_LIBNCURSES 1
9568 _ACEOF
9570 CURSESLIBS="-lncurses"
9571 else
9573 for ac_header in curses.h
9575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9577 echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9584 else
9585 # Is the header compilable?
9586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9595 #include <$ac_header>
9596 _ACEOF
9597 rm -f conftest.$ac_objext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9599 (eval $ac_compile) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest.$ac_objext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_header_compiler=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_header_compiler=no
9625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9627 echo "${ECHO_T}$ac_header_compiler" >&6
9629 # Is the header present?
9630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 #include <$ac_header>
9639 _ACEOF
9640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev/null; then
9648 if test -s conftest.err; then
9649 ac_cpp_err=$ac_c_preproc_warn_flag
9650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9651 else
9652 ac_cpp_err=
9654 else
9655 ac_cpp_err=yes
9657 if test -z "$ac_cpp_err"; then
9658 ac_header_preproc=yes
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_header_preproc=no
9665 rm -f conftest.err conftest.$ac_ext
9666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9667 echo "${ECHO_T}$ac_header_preproc" >&6
9669 # So? What about this header?
9670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9671 yes:no: )
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9676 ac_header_preproc=yes
9678 no:yes:* )
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9692 cat <<\_ASBOX
9693 ## ------------------------------------ ##
9694 ## Report this to wine-devel@winehq.org ##
9695 ## ------------------------------------ ##
9696 _ASBOX
9698 sed "s/^/$as_me: WARNING: /" >&2
9700 esac
9701 echo "$as_me:$LINENO: checking for $ac_header" >&5
9702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 eval "$as_ac_Header=\$ac_header_preproc"
9708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9713 cat >>confdefs.h <<_ACEOF
9714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9715 _ACEOF
9716 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9717 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9718 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721 ac_check_lib_save_LIBS=$LIBS
9722 LIBS="-lcurses $LIBS"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9730 /* Override any gcc2 internal prototype to avoid an error. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char waddch ();
9738 main ()
9740 waddch ();
9742 return 0;
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; } &&
9760 { ac_try='test -s conftest$ac_exeext'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 (eval $ac_try) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_lib_curses_waddch=yes
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_lib_curses_waddch=no
9773 rm -f conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 LIBS=$ac_check_lib_save_LIBS
9777 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9778 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9779 if test $ac_cv_lib_curses_waddch = yes; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_LIBCURSES 1
9783 _ACEOF
9785 CURSESLIBS="-lcurses"
9790 done
9796 done
9798 saved_libs="$LIBS"
9799 LIBS="$CURSESLIBS $LIBS"
9802 for ac_func in getbkgd resizeterm
9804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9805 echo "$as_me:$LINENO: checking for $ac_func" >&5
9806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9807 if eval "test \"\${$as_ac_var+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define $ac_func innocuous_$ac_func
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char $ac_func (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9825 #ifdef __STDC__
9826 # include <limits.h>
9827 #else
9828 # include <assert.h>
9829 #endif
9831 #undef $ac_func
9833 /* Override any gcc2 internal prototype to avoid an error. */
9834 #ifdef __cplusplus
9835 extern "C"
9837 #endif
9838 /* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */
9840 char $ac_func ();
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9845 choke me
9846 #else
9847 char (*f) () = $ac_func;
9848 #endif
9849 #ifdef __cplusplus
9851 #endif
9854 main ()
9856 return f != $ac_func;
9858 return 0;
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863 (eval $ac_link) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try='test -s conftest$ac_exeext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 eval "$as_ac_var=yes"
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 eval "$as_ac_var=no"
9889 rm -f conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9894 if test `eval echo '${'$as_ac_var'}'` = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9897 _ACEOF
9900 done
9902 LIBS="$saved_libs"
9906 # Extract the first word of "sane-config", so it can be a program name with args.
9907 set dummy sane-config; ac_word=$2
9908 echo "$as_me:$LINENO: checking for $ac_word" >&5
9909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9910 if test "${ac_cv_prog_sane_devel+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 if test -n "$sane_devel"; then
9914 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9915 else
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923 ac_cv_prog_sane_devel="sane-config"
9924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9927 done
9928 done
9930 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9933 sane_devel=$ac_cv_prog_sane_devel
9934 if test -n "$sane_devel"; then
9935 echo "$as_me:$LINENO: result: $sane_devel" >&5
9936 echo "${ECHO_T}$sane_devel" >&6
9937 else
9938 echo "$as_me:$LINENO: result: no" >&5
9939 echo "${ECHO_T}no" >&6
9942 if test "$sane_devel" = "no"
9943 then
9944 SANELIBS=""
9945 SANEINCL=""
9946 else
9947 SANELIBS="`$sane_devel --libs`"
9948 SANEINCL="`$sane_devel --cflags`"
9949 ac_save_CPPFLAGS="$CPPFLAGS"
9950 ac_save_LIBS="$LIBS"
9951 CPPFLAGS="$CPPFLAGS $SANEINCL"
9952 LIBS="$LIBS $SANELIBS"
9953 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9954 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9955 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9956 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9960 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9961 else
9962 # Is the header compilable?
9963 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9964 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 $ac_includes_default
9972 #include <sane/sane.h>
9973 _ACEOF
9974 rm -f conftest.$ac_objext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976 (eval $ac_compile) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest.$ac_objext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_header_compiler=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_header_compiler=no
10002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 echo "${ECHO_T}$ac_header_compiler" >&6
10006 # Is the header present?
10007 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10008 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 #include <sane/sane.h>
10016 _ACEOF
10017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } >/dev/null; then
10025 if test -s conftest.err; then
10026 ac_cpp_err=$ac_c_preproc_warn_flag
10027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10028 else
10029 ac_cpp_err=
10031 else
10032 ac_cpp_err=yes
10034 if test -z "$ac_cpp_err"; then
10035 ac_header_preproc=yes
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_header_preproc=no
10042 rm -f conftest.err conftest.$ac_ext
10043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 echo "${ECHO_T}$ac_header_preproc" >&6
10046 # So? What about this header?
10047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10048 yes:no: )
10049 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10050 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10052 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10053 ac_header_preproc=yes
10055 no:yes:* )
10056 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10057 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10059 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10061 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10063 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10065 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10067 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10069 cat <<\_ASBOX
10070 ## ------------------------------------ ##
10071 ## Report this to wine-devel@winehq.org ##
10072 ## ------------------------------------ ##
10073 _ASBOX
10075 sed "s/^/$as_me: WARNING: /" >&2
10077 esac
10078 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10079 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10080 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 ac_cv_header_sane_sane_h=$ac_header_preproc
10085 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10086 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10089 if test $ac_cv_header_sane_sane_h = yes; then
10090 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10091 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10092 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lsane $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10104 /* Override any gcc2 internal prototype to avoid an error. */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 /* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10110 char sane_open ();
10112 main ()
10114 sane_open ();
10116 return 0;
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121 (eval $ac_link) 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_lib_sane_sane_open=yes
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ac_cv_lib_sane_sane_open=no
10147 rm -f conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10152 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10153 if test $ac_cv_lib_sane_sane_open = yes; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_SANE 1
10157 _ACEOF
10159 else
10160 SANELIBS=""
10161 SANEINCL=""
10164 else
10165 SANELIBS=""
10166 SANEINCL=""
10170 LIBS="$ac_save_LIBS"
10171 CPPFLAGS="$ac_save_CPPFLAGS"
10177 for ac_header in unicode/ubidi.h
10179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181 echo "$as_me:$LINENO: checking for $ac_header" >&5
10182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10188 else
10189 # Is the header compilable?
10190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 $ac_includes_default
10199 #include <$ac_header>
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_header_compiler=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_compiler=no
10229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231 echo "${ECHO_T}$ac_header_compiler" >&6
10233 # Is the header present?
10234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <$ac_header>
10243 _ACEOF
10244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null; then
10252 if test -s conftest.err; then
10253 ac_cpp_err=$ac_c_preproc_warn_flag
10254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10255 else
10256 ac_cpp_err=
10258 else
10259 ac_cpp_err=yes
10261 if test -z "$ac_cpp_err"; then
10262 ac_header_preproc=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_header_preproc=no
10269 rm -f conftest.err conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 yes:no: )
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10282 no:yes:* )
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10296 cat <<\_ASBOX
10297 ## ------------------------------------ ##
10298 ## Report this to wine-devel@winehq.org ##
10299 ## ------------------------------------ ##
10300 _ASBOX
10302 sed "s/^/$as_me: WARNING: /" >&2
10304 esac
10305 echo "$as_me:$LINENO: checking for $ac_header" >&5
10306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 eval "$as_ac_Header=\$ac_header_preproc"
10312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10319 _ACEOF
10323 done
10325 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10326 then
10327 saved_libs="$LIBS"
10328 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10329 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10330 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10331 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <unicode/ubidi.h>
10340 main ()
10342 ubidi_open()
10344 return 0;
10346 _ACEOF
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>conftest.er1
10350 ac_status=$?
10351 grep -v '^ *+' conftest.er1 >conftest.err
10352 rm -f conftest.er1
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10369 cat >>confdefs.h <<\_ACEOF
10370 #define HAVE_ICU 1
10371 _ACEOF
10373 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10380 rm -f conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 LIBS="$saved_libs"
10385 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10386 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10387 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390 ac_check_lib_save_LIBS=$LIBS
10391 LIBS="-lfreetype $X_LIBS $LIBS"
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10399 /* Override any gcc2 internal prototype to avoid an error. */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 /* We use char because int might match the return type of a gcc2
10404 builtin and then its argument prototype would still apply. */
10405 char FT_Init_FreeType ();
10407 main ()
10409 FT_Init_FreeType ();
10411 return 0;
10413 _ACEOF
10414 rm -f conftest.$ac_objext conftest$ac_exeext
10415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416 (eval $ac_link) 2>conftest.er1
10417 ac_status=$?
10418 grep -v '^ *+' conftest.er1 >conftest.err
10419 rm -f conftest.er1
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
10423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; } &&
10429 { ac_try='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_lib_freetype_FT_Init_FreeType=yes
10436 else
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_cv_lib_freetype_FT_Init_FreeType=no
10442 rm -f conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS=$ac_check_lib_save_LIBS
10446 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10447 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10448 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10449 ft_lib=yes
10450 else
10451 ft_lib=no
10454 if test "$ft_lib" = "no"
10455 then
10456 FREETYPEINCL=""
10457 wine_cv_msg_freetype=no
10458 else
10459 # Extract the first word of "freetype-config", so it can be a program name with args.
10460 set dummy freetype-config; ac_word=$2
10461 echo "$as_me:$LINENO: checking for $ac_word" >&5
10462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10463 if test "${ac_cv_prog_ft_devel+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 if test -n "$ft_devel"; then
10467 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10468 else
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476 ac_cv_prog_ft_devel="freetype-config"
10477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10480 done
10481 done
10483 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10486 ft_devel=$ac_cv_prog_ft_devel
10487 if test -n "$ft_devel"; then
10488 echo "$as_me:$LINENO: result: $ft_devel" >&5
10489 echo "${ECHO_T}$ft_devel" >&6
10490 else
10491 echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6
10495 if test "$ft_devel" = "no"
10496 then
10497 # Extract the first word of "freetype2-config", so it can be a program name with args.
10498 set dummy freetype2-config; ac_word=$2
10499 echo "$as_me:$LINENO: checking for $ac_word" >&5
10500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10501 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 if test -n "$ft_devel2"; then
10505 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10506 else
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514 ac_cv_prog_ft_devel2="freetype2-config"
10515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10518 done
10519 done
10521 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10524 ft_devel2=$ac_cv_prog_ft_devel2
10525 if test -n "$ft_devel2"; then
10526 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10527 echo "${ECHO_T}$ft_devel2" >&6
10528 else
10529 echo "$as_me:$LINENO: result: no" >&5
10530 echo "${ECHO_T}no" >&6
10533 if test "$ft_devel2" = "freetype2-config"
10534 then
10535 ft_devel=$ft_devel2
10538 if test "$ft_devel" = "no"
10539 then
10540 FREETYPEINCL=""
10541 wine_cv_msg_freetype=yes
10542 else
10543 FREETYPEINCL=`$ft_devel --cflags`
10544 ac_save_CPPFLAGS="$CPPFLAGS"
10545 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10555 for ac_header in ft2build.h \
10556 freetype/freetype.h \
10557 freetype/ftglyph.h \
10558 freetype/tttables.h \
10559 freetype/ftnames.h \
10560 freetype/ftsnames.h \
10561 freetype/ttnameid.h \
10562 freetype/ftoutln.h \
10563 freetype/internal/sfnt.h
10565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10566 echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h. */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #if HAVE_FT2BUILD_H
10578 #include <ft2build.h>
10579 #endif
10581 #include <$ac_header>
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585 (eval $ac_compile) 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
10592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest.$ac_objext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10601 ac_status=$?
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 eval "$as_ac_Header=yes"
10605 else
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 eval "$as_ac_Header=no"
10611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10616 cat >>confdefs.h <<_ACEOF
10617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10618 _ACEOF
10622 done
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 #include <ft2build.h>
10631 #include <freetype/fttrigon.h>
10632 _ACEOF
10633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } >/dev/null; then
10641 if test -s conftest.err; then
10642 ac_cpp_err=$ac_c_preproc_warn_flag
10643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10644 else
10645 ac_cpp_err=
10647 else
10648 ac_cpp_err=yes
10650 if test -z "$ac_cpp_err"; then
10652 cat >>confdefs.h <<\_ACEOF
10653 #define HAVE_FREETYPE_FTTRIGON_H 1
10654 _ACEOF
10656 wine_cv_fttrigon=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 wine_cv_fttrigon=no
10663 rm -f conftest.err conftest.$ac_ext
10664 CPPFLAGS="$ac_save_CPPFLAGS"
10665 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10666 then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_FREETYPE 1
10670 _ACEOF
10672 wine_cv_msg_freetype=no
10673 else
10674 FREETYPEINCL=""
10675 wine_cv_msg_freetype=yes
10681 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10682 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10683 if test "${ac_cv_c_ppdev+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <linux/ppdev.h>
10694 main ()
10696 ioctl (1,PPCLAIM,0)
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703 (eval $ac_compile) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_c_ppdev="yes"
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_cv_c_ppdev="no"
10729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10733 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10734 if test "$ac_cv_c_ppdev" = "yes"
10735 then
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_PPDEV 1
10739 _ACEOF
10743 echo "$as_me:$LINENO: checking for va_copy" >&5
10744 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10745 if test "${ac_cv_c_va_copy+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h. */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 #include <stdarg.h>
10756 main ()
10758 va_list ap1, ap2;
10759 va_copy(ap1,ap2);
10762 return 0;
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10767 (eval $ac_link) 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_c_va_copy="yes"
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_cv_c_va_copy="no"
10793 rm -f conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10797 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10798 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10799 if test "$ac_cv_c_va_copy" = "yes"
10800 then
10802 cat >>confdefs.h <<\_ACEOF
10803 #define HAVE_VA_COPY 1
10804 _ACEOF
10807 echo "$as_me:$LINENO: checking for __va_copy" >&5
10808 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10809 if test "${ac_cv_c___va_copy+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <stdarg.h>
10820 main ()
10822 va_list ap1, ap2;
10823 __va_copy(ap1,ap2);
10826 return 0;
10828 _ACEOF
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_c___va_copy="yes"
10851 else
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_c___va_copy="no"
10857 rm -f conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10861 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10862 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10863 if test "$ac_cv_c___va_copy" = "yes"
10864 then
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE___VA_COPY 1
10868 _ACEOF
10872 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10873 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10874 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <setjmp.h>
10885 main ()
10887 sigjmp_buf buf;
10888 sigsetjmp( buf, 1 );
10889 siglongjmp( buf, 1 );
10891 return 0;
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_c_sigsetjmp="yes"
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_c_sigsetjmp="no"
10922 rm -f conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10927 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10928 if test "$ac_cv_c_sigsetjmp" = "yes"
10929 then
10931 cat >>confdefs.h <<\_ACEOF
10932 #define HAVE_SIGSETJMP 1
10933 _ACEOF
10937 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10938 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10939 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 #define _GNU_SOURCE
10949 #include <pthread.h>
10952 main ()
10954 if ((pthread_rwlock_t *) 0)
10955 return 0;
10956 if (sizeof (pthread_rwlock_t))
10957 return 0;
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10964 (eval $ac_compile) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest.$ac_objext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_type_pthread_rwlock_t=yes
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 ac_cv_type_pthread_rwlock_t=no
10990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10992 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10993 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10994 if test $ac_cv_type_pthread_rwlock_t = yes; then
10996 cat >>confdefs.h <<_ACEOF
10997 #define HAVE_PTHREAD_RWLOCK_T 1
10998 _ACEOF
11002 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11003 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11004 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #define _GNU_SOURCE
11014 #include <pthread.h>
11017 main ()
11019 if ((pthread_rwlockattr_t *) 0)
11020 return 0;
11021 if (sizeof (pthread_rwlockattr_t))
11022 return 0;
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11029 (eval $ac_compile) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_type_pthread_rwlockattr_t=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_cv_type_pthread_rwlockattr_t=no
11055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11057 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11058 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11059 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11063 _ACEOF
11069 ac_save_LIBS="$LIBS"
11070 LIBS="$LIBS $LIBPTHREAD"
11072 for ac_func in pthread_getattr_np
11074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11075 echo "$as_me:$LINENO: checking for $ac_func" >&5
11076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11077 if eval "test \"\${$as_ac_var+set}\" = set"; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11088 #define $ac_func innocuous_$ac_func
11090 /* System header to define __stub macros and hopefully few prototypes,
11091 which can conflict with char $ac_func (); below.
11092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11093 <limits.h> exists even on freestanding compilers. */
11095 #ifdef __STDC__
11096 # include <limits.h>
11097 #else
11098 # include <assert.h>
11099 #endif
11101 #undef $ac_func
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 #ifdef __cplusplus
11105 extern "C"
11107 #endif
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110 char $ac_func ();
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11115 choke me
11116 #else
11117 char (*f) () = $ac_func;
11118 #endif
11119 #ifdef __cplusplus
11121 #endif
11124 main ()
11126 return f != $ac_func;
11128 return 0;
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 eval "$as_ac_var=yes"
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 eval "$as_ac_var=no"
11159 rm -f conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11164 if test `eval echo '${'$as_ac_var'}'` = yes; then
11165 cat >>confdefs.h <<_ACEOF
11166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11167 _ACEOF
11170 done
11172 LIBS="$ac_save_LIBS"
11177 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11181 echo "$as_me:$LINENO: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11188 else
11189 # Is the header compilable?
11190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199 #include <$ac_header>
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11203 (eval $ac_compile) 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_header_compiler=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_header_compiler=no
11229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11231 echo "${ECHO_T}$ac_header_compiler" >&6
11233 # Is the header present?
11234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <$ac_header>
11243 _ACEOF
11244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } >/dev/null; then
11252 if test -s conftest.err; then
11253 ac_cpp_err=$ac_c_preproc_warn_flag
11254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11255 else
11256 ac_cpp_err=
11258 else
11259 ac_cpp_err=yes
11261 if test -z "$ac_cpp_err"; then
11262 ac_header_preproc=yes
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 ac_header_preproc=no
11269 rm -f conftest.err conftest.$ac_ext
11270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11271 echo "${ECHO_T}$ac_header_preproc" >&6
11273 # So? What about this header?
11274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11275 yes:no: )
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11280 ac_header_preproc=yes
11282 no:yes:* )
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11296 cat <<\_ASBOX
11297 ## ------------------------------------ ##
11298 ## Report this to wine-devel@winehq.org ##
11299 ## ------------------------------------ ##
11300 _ASBOX
11302 sed "s/^/$as_me: WARNING: /" >&2
11304 esac
11305 echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 eval "$as_ac_Header=\$ac_header_preproc"
11312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11319 _ACEOF
11320 break
11323 done
11326 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11327 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11328 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11338 #if defined(HAVE_SYS_SOUNDCARD_H)
11339 #include <sys/soundcard.h>
11340 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11341 #include <machine/soundcard.h>
11342 #elif defined(HAVE_SOUNDCARD_H)
11343 #include <soundcard.h>
11344 #endif
11347 main ()
11351 /* check for one of the Open Sound System specific SNDCTL_ defines */
11352 #if !defined(SNDCTL_DSP_STEREO)
11353 #error No open sound system
11354 #endif
11357 return 0;
11359 _ACEOF
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_c_opensoundsystem="yes"
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_cv_c_opensoundsystem="no"
11388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11391 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11393 if test "$ac_cv_c_opensoundsystem" = "yes"
11394 then
11396 cat >>confdefs.h <<\_ACEOF
11397 #define HAVE_OSS 1
11398 _ACEOF
11402 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11403 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11404 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 else
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h. */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11414 #if defined(HAVE_SYS_SOUNDCARD_H)
11415 #include <sys/soundcard.h>
11416 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11417 #include <machine/soundcard.h>
11418 #elif defined(HAVE_SOUNDCARD_H)
11419 #include <soundcard.h>
11420 #endif
11423 main ()
11427 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11428 #if !defined(SNDCTL_SEQ_SYNC)
11429 #error No open sound system MIDI interface
11430 #endif
11433 return 0;
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438 (eval $ac_compile) 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_c_opensoundsystem_midi="yes"
11458 else
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_cv_c_opensoundsystem_midi="no"
11464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11467 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11469 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11470 then
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_OSS_MIDI 1
11474 _ACEOF
11478 # Extract the first word of "artsc-config", so it can be a program name with args.
11479 set dummy artsc-config; ac_word=$2
11480 echo "$as_me:$LINENO: checking for $ac_word" >&5
11481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11482 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 case $ARTSCCONFIG in
11486 [\\/]* | ?:[\\/]*)
11487 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11505 esac
11507 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11509 if test -n "$ARTSCCONFIG"; then
11510 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11511 echo "${ECHO_T}$ARTSCCONFIG" >&6
11512 else
11513 echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6
11517 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11518 then
11519 ARTSC_CFLAGS=""
11520 for i in `$ARTSCCONFIG --cflags`
11522 case "$i" in
11523 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11524 esac
11525 done
11526 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11527 save_CFLAGS="$CFLAGS"
11528 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <artsc.h>
11537 main ()
11539 arts_stream_t stream;
11541 return 0;
11543 _ACEOF
11544 rm -f conftest.$ac_objext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546 (eval $ac_compile) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try='test -s conftest.$ac_objext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ARTSLIBS=$ARTSC_LIBS
11567 ARTSINCL=$ARTSC_CFLAGS
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_ARTS 1
11572 _ACEOF
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 CFLAGS="$save_CFLAGS"
11583 ALSALIBS=""
11587 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11598 else
11599 # Is the header compilable?
11600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 $ac_includes_default
11609 #include <$ac_header>
11610 _ACEOF
11611 rm -f conftest.$ac_objext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_header_compiler=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6
11643 # Is the header present?
11644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <$ac_header>
11653 _ACEOF
11654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } >/dev/null; then
11662 if test -s conftest.err; then
11663 ac_cpp_err=$ac_c_preproc_warn_flag
11664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11665 else
11666 ac_cpp_err=
11668 else
11669 ac_cpp_err=yes
11671 if test -z "$ac_cpp_err"; then
11672 ac_header_preproc=yes
11673 else
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706 cat <<\_ASBOX
11707 ## ------------------------------------ ##
11708 ## Report this to wine-devel@winehq.org ##
11709 ## ------------------------------------ ##
11710 _ASBOX
11712 sed "s/^/$as_me: WARNING: /" >&2
11714 esac
11715 echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 eval "$as_ac_Header=\$ac_header_preproc"
11722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 _ACEOF
11730 break
11733 done
11735 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11736 then
11737 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11738 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11739 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742 ac_check_lib_save_LIBS=$LIBS
11743 LIBS="-lasound $LIBS"
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11751 /* Override any gcc2 internal prototype to avoid an error. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 /* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11757 char snd_pcm_open ();
11759 main ()
11761 snd_pcm_open ();
11763 return 0;
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest$ac_exeext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_lib_asound_snd_pcm_open=yes
11788 else
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_cv_lib_asound_snd_pcm_open=no
11794 rm -f conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11798 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11799 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11800 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_ALSA 1
11804 _ACEOF
11806 ALSALIBS="-lasound"
11812 AUDIOIOLIBS=""
11815 for ac_header in libaudioio.h
11817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11819 echo "$as_me:$LINENO: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11826 else
11827 # Is the header compilable?
11828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11830 cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h. */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 $ac_includes_default
11837 #include <$ac_header>
11838 _ACEOF
11839 rm -f conftest.$ac_objext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest.$ac_objext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_header_compiler=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_header_compiler=no
11867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11869 echo "${ECHO_T}$ac_header_compiler" >&6
11871 # Is the header present?
11872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <$ac_header>
11881 _ACEOF
11882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11884 ac_status=$?
11885 grep -v '^ *+' conftest.er1 >conftest.err
11886 rm -f conftest.er1
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } >/dev/null; then
11890 if test -s conftest.err; then
11891 ac_cpp_err=$ac_c_preproc_warn_flag
11892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11893 else
11894 ac_cpp_err=
11896 else
11897 ac_cpp_err=yes
11899 if test -z "$ac_cpp_err"; then
11900 ac_header_preproc=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_header_preproc=no
11907 rm -f conftest.err conftest.$ac_ext
11908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11909 echo "${ECHO_T}$ac_header_preproc" >&6
11911 # So? What about this header?
11912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11913 yes:no: )
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11918 ac_header_preproc=yes
11920 no:yes:* )
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11934 cat <<\_ASBOX
11935 ## ------------------------------------ ##
11936 ## Report this to wine-devel@winehq.org ##
11937 ## ------------------------------------ ##
11938 _ASBOX
11940 sed "s/^/$as_me: WARNING: /" >&2
11942 esac
11943 echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948 eval "$as_ac_Header=\$ac_header_preproc"
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11957 _ACEOF
11958 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11959 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11960 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-laudioio $LIBS"
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 /* Override any gcc2 internal prototype to avoid an error. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11978 char AudioIOGetVersion ();
11980 main ()
11982 AudioIOGetVersion ();
11984 return 0;
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_cv_lib_audioio_AudioIOGetVersion=yes
12009 else
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_cv_lib_audioio_AudioIOGetVersion=no
12015 rm -f conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12020 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12021 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12022 AUDIOIOLIBS="-laudioio"
12024 cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_LIBAUDIOIO 1
12026 _ACEOF
12032 done
12037 for ac_header in capi20.h
12039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12041 echo "$as_me:$LINENO: checking for $ac_header" >&5
12042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12048 else
12049 # Is the header compilable?
12050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 $ac_includes_default
12059 #include <$ac_header>
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063 (eval $ac_compile) 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_header_compiler=yes
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_header_compiler=no
12089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12091 echo "${ECHO_T}$ac_header_compiler" >&6
12093 # Is the header present?
12094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 #include <$ac_header>
12103 _ACEOF
12104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } >/dev/null; then
12112 if test -s conftest.err; then
12113 ac_cpp_err=$ac_c_preproc_warn_flag
12114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12115 else
12116 ac_cpp_err=
12118 else
12119 ac_cpp_err=yes
12121 if test -z "$ac_cpp_err"; then
12122 ac_header_preproc=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_header_preproc=no
12129 rm -f conftest.err conftest.$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131 echo "${ECHO_T}$ac_header_preproc" >&6
12133 # So? What about this header?
12134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12135 yes:no: )
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12140 ac_header_preproc=yes
12142 no:yes:* )
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12156 cat <<\_ASBOX
12157 ## ------------------------------------ ##
12158 ## Report this to wine-devel@winehq.org ##
12159 ## ------------------------------------ ##
12160 _ASBOX
12162 sed "s/^/$as_me: WARNING: /" >&2
12164 esac
12165 echo "$as_me:$LINENO: checking for $ac_header" >&5
12166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 eval "$as_ac_Header=\$ac_header_preproc"
12172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12177 cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12179 _ACEOF
12182 for ac_header in linux/capi.h
12184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12186 echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12193 else
12194 # Is the header compilable?
12195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 $ac_includes_default
12204 #include <$ac_header>
12205 _ACEOF
12206 rm -f conftest.$ac_objext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208 (eval $ac_compile) 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_header_compiler=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_header_compiler=no
12234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6
12238 # Is the header present?
12239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <$ac_header>
12248 _ACEOF
12249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12250 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
12257 if test -s conftest.err; then
12258 ac_cpp_err=$ac_c_preproc_warn_flag
12259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12260 else
12261 ac_cpp_err=
12263 else
12264 ac_cpp_err=yes
12266 if test -z "$ac_cpp_err"; then
12267 ac_header_preproc=yes
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_header_preproc=no
12274 rm -f conftest.err conftest.$ac_ext
12275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 echo "${ECHO_T}$ac_header_preproc" >&6
12278 # So? What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 yes:no: )
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12287 no:yes:* )
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12301 cat <<\_ASBOX
12302 ## ------------------------------------ ##
12303 ## Report this to wine-devel@winehq.org ##
12304 ## ------------------------------------ ##
12305 _ASBOX
12307 sed "s/^/$as_me: WARNING: /" >&2
12309 esac
12310 echo "$as_me:$LINENO: checking for $ac_header" >&5
12311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 eval "$as_ac_Header=\$ac_header_preproc"
12317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12322 cat >>confdefs.h <<_ACEOF
12323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12324 _ACEOF
12326 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12327 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12328 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_check_lib_save_LIBS=$LIBS
12332 LIBS="-lcapi20 $LIBS"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12340 /* Override any gcc2 internal prototype to avoid an error. */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 /* We use char because int might match the return type of a gcc2
12345 builtin and then its argument prototype would still apply. */
12346 char capi20_register ();
12348 main ()
12350 capi20_register ();
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_lib_capi20_capi20_register=yes
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_lib_capi20_capi20_register=no
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12388 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12389 if test $ac_cv_lib_capi20_capi20_register = yes; then
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_CAPI4LINUX 1
12394 _ACEOF
12396 CAPI4LINUXLIBS="-lcapi20"
12404 done
12409 done
12413 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12414 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12415 if test "${ac_cv_mmap64_works+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 if test "$cross_compiling" = yes; then
12419 ac_cv_mmap64_works="no"
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12428 #define _FILE_OFFSET_BITS 64
12429 #include <stdio.h>
12430 #include <unistd.h>
12431 #include <fcntl.h>
12432 #include <sys/mman.h>
12433 #include <errno.h>
12435 int main(int argc,char **argv) {
12436 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12437 if (fd == -1) exit(1);
12439 unlink("conftest.map");
12441 write(fd,"test",4);
12443 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12444 (errno == EINVAL)
12446 exit(1);
12448 close(fd);
12449 fprintf(stderr,"success!\n");
12450 exit(0);
12454 _ACEOF
12455 rm -f conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_mmap64_works="yes"
12467 else
12468 echo "$as_me: program exited with status $ac_status" >&5
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ( exit $ac_status )
12473 ac_cv_mmap64_works="no"
12475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12478 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12479 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12481 if test "$ac_cv_mmap64_works" = "yes"
12482 then
12484 cat >>confdefs.h <<\_ACEOF
12485 #define _FILE_OFFSET_BITS 64
12486 _ACEOF
12491 EXTRACFLAGS=""
12493 if test "x${GCC}" = "xyes"
12494 then
12495 EXTRACFLAGS="-Wall -pipe"
12497 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12498 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12499 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502 if test "$cross_compiling" = yes; then
12503 ac_cv_c_gcc_strength_bug="yes"
12504 else
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 int L[4] = {0,1,2,3};
12513 int main(void) {
12514 static int Array[3];
12515 unsigned int B = 3;
12516 int i;
12517 for(i=0; i<B; i++) Array[i] = i - 3;
12518 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12519 L[i] = 4;
12521 exit( Array[1] != -2 || L[2] != 3);
12523 _ACEOF
12524 rm -f conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 ac_cv_c_gcc_strength_bug="no"
12536 else
12537 echo "$as_me: program exited with status $ac_status" >&5
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 ( exit $ac_status )
12542 ac_cv_c_gcc_strength_bug="yes"
12544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12547 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12548 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12549 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12550 then
12551 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12554 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12555 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12556 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 ac_wine_try_cflags_saved=$CFLAGS
12560 CFLAGS="$CFLAGS -fshort-wchar"
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
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_c_gcc_fshort_wchar="yes"
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_c_gcc_fshort_wchar="no"
12604 rm -f conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 CFLAGS=$ac_wine_try_cflags_saved
12608 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12609 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12610 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12611 then
12613 cat >>confdefs.h <<\_ACEOF
12614 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12615 _ACEOF
12619 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12620 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12621 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 ac_wine_try_cflags_saved=$CFLAGS
12625 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12634 main ()
12638 return 0;
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643 (eval $ac_link) 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
12650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_c_gcc_stack_boundary="yes"
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_c_gcc_stack_boundary="no"
12669 rm -f conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 CFLAGS=$ac_wine_try_cflags_saved
12673 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12674 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12675 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12676 then
12677 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12680 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12681 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12682 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685 ac_wine_try_cflags_saved=$CFLAGS
12686 CFLAGS="$CFLAGS -fno-strict-aliasing"
12687 cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h. */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12695 main ()
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704 (eval $ac_link) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_c_gcc_no_strict_aliasing="yes"
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_cv_c_gcc_no_strict_aliasing="no"
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 CFLAGS=$ac_wine_try_cflags_saved
12734 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12735 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12736 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12737 then
12738 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12741 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12742 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12743 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746 ac_wine_try_cflags_saved=$CFLAGS
12747 CFLAGS="$CFLAGS -gstabs+"
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12756 main ()
12760 return 0;
12762 _ACEOF
12763 rm -f conftest.$ac_objext conftest$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest$ac_exeext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_c_gcc_gstabs="yes"
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_cv_c_gcc_gstabs="no"
12791 rm -f conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 CFLAGS=$ac_wine_try_cflags_saved
12795 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12796 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12797 if test "$ac_cv_c_gcc_gstabs" = "yes"
12798 then
12799 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12802 saved_CFLAGS="$CFLAGS"
12803 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12804 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12805 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12806 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 #include <string.h>
12817 main ()
12821 return 0;
12823 _ACEOF
12824 rm -f conftest.$ac_objext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12826 (eval $ac_compile) 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } &&
12833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12839 { ac_try='test -s conftest.$ac_objext'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12845 ac_cv_c_string_h_warnings=no
12846 else
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ac_cv_c_string_h_warnings=yes
12852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12854 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12855 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12856 CFLAGS="$saved_CFLAGS"
12857 if test "$ac_cv_c_string_h_warnings" = "no"
12858 then
12859 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12864 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12865 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12866 if test "${ac_cv_asm_func_def+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h. */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 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"); }
12878 main ()
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12887 (eval $ac_link) 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; } &&
12900 { ac_try='test -s conftest$ac_exeext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_asm_func_def=".def"
12907 else
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12920 main ()
12924 return 0;
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929 (eval $ac_link) 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try='test -s conftest$ac_exeext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_cv_asm_func_def=".type @function"
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12962 main ()
12966 return 0;
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_asm_func_def=".type 2"
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ac_cv_asm_func_def="unknown"
12997 rm -f conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
13000 rm -f conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13003 rm -f conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13006 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13007 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13011 case "$ac_cv_asm_func_def" in
13012 ".def")
13013 cat >>confdefs.h <<\_ACEOF
13014 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13015 _ACEOF
13017 ".type @function")
13018 cat >>confdefs.h <<\_ACEOF
13019 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13020 _ACEOF
13022 ".type 2")
13023 cat >>confdefs.h <<\_ACEOF
13024 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13025 _ACEOF
13028 cat >>confdefs.h <<\_ACEOF
13029 #define __ASM_FUNC(name) ""
13030 _ACEOF
13032 esac
13035 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13036 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13037 if test "${ac_cv_c_extern_prefix+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h. */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13047 extern int ac_test;
13049 main ()
13051 if (ac_test) return 1
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest$ac_exeext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_c_extern_prefix="yes"
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_c_extern_prefix="no"
13084 rm -f conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13088 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13092 if test "$ac_cv_c_extern_prefix" = "yes"
13093 then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define __ASM_NAME(name) "_" name
13096 _ACEOF
13098 else
13099 cat >>confdefs.h <<\_ACEOF
13100 #define __ASM_NAME(name) name
13101 _ACEOF
13106 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13107 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13108 if test "${ac_cv_c_asm_string+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111 cat >conftest.$ac_ext <<_ACEOF
13112 /* confdefs.h. */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13120 main ()
13124 return 0;
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_c_asm_string=".string"
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13162 main ()
13166 return 0;
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_cv_c_asm_string=".asciz"
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13204 main ()
13208 return 0;
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13213 (eval $ac_link) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_c_asm_string=".ascii"
13233 else
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13238 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13239 { (exit 1); exit 1; }; }
13241 rm -f conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13244 rm -f conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13247 rm -f conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13251 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13254 cat >>confdefs.h <<_ACEOF
13255 #define __ASM_STRING "$ac_cv_c_asm_string"
13256 _ACEOF
13260 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13261 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13262 if test "${ac_cv_c_asm_short+set}" = set; then
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 else
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13274 main ()
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest$ac_exeext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_c_asm_short=".short"
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13316 main ()
13320 return 0;
13322 _ACEOF
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13325 (eval $ac_link) 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_c_asm_short=".half"
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13350 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13351 { (exit 1); exit 1; }; }
13353 rm -f conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13356 rm -f conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13359 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13360 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13363 cat >>confdefs.h <<_ACEOF
13364 #define __ASM_SHORT "$ac_cv_c_asm_short"
13365 _ACEOF
13369 DLLEXT=""
13371 DLLFLAGS="-D_REENTRANT"
13373 DLLIBS=""
13375 LDSHARED=""
13377 LDDLLFLAGS=""
13379 LIBEXT="so"
13381 IMPLIBEXT="def"
13384 case $host_os in
13385 cygwin*|mingw32*)
13386 if test -n "$ac_tool_prefix"; then
13387 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13388 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13389 echo "$as_me:$LINENO: checking for $ac_word" >&5
13390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13391 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394 if test -n "$DLLTOOL"; then
13395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13396 else
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13404 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 break 2
13408 done
13409 done
13413 DLLTOOL=$ac_cv_prog_DLLTOOL
13414 if test -n "$DLLTOOL"; then
13415 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13416 echo "${ECHO_T}$DLLTOOL" >&6
13417 else
13418 echo "$as_me:$LINENO: result: no" >&5
13419 echo "${ECHO_T}no" >&6
13423 if test -z "$ac_cv_prog_DLLTOOL"; then
13424 ac_ct_DLLTOOL=$DLLTOOL
13425 # Extract the first word of "dlltool", so it can be a program name with args.
13426 set dummy dlltool; ac_word=$2
13427 echo "$as_me:$LINENO: checking for $ac_word" >&5
13428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13429 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 if test -n "$ac_ct_DLLTOOL"; then
13433 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 break 2
13446 done
13447 done
13449 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13452 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13453 if test -n "$ac_ct_DLLTOOL"; then
13454 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13455 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13456 else
13457 echo "$as_me:$LINENO: result: no" >&5
13458 echo "${ECHO_T}no" >&6
13461 DLLTOOL=$ac_ct_DLLTOOL
13462 else
13463 DLLTOOL="$ac_cv_prog_DLLTOOL"
13466 if test -n "$ac_tool_prefix"; then
13467 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13468 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13469 echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13471 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474 if test -n "$DLLWRAP"; then
13475 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13488 done
13489 done
13493 DLLWRAP=$ac_cv_prog_DLLWRAP
13494 if test -n "$DLLWRAP"; then
13495 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13496 echo "${ECHO_T}$DLLWRAP" >&6
13497 else
13498 echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13503 if test -z "$ac_cv_prog_DLLWRAP"; then
13504 ac_ct_DLLWRAP=$DLLWRAP
13505 # Extract the first word of "dllwrap", so it can be a program name with args.
13506 set dummy dllwrap; ac_word=$2
13507 echo "$as_me:$LINENO: checking for $ac_word" >&5
13508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13509 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512 if test -n "$ac_ct_DLLWRAP"; then
13513 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13514 else
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $PATH
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13526 done
13527 done
13529 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13532 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13533 if test -n "$ac_ct_DLLWRAP"; then
13534 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13535 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13536 else
13537 echo "$as_me:$LINENO: result: no" >&5
13538 echo "${ECHO_T}no" >&6
13541 DLLWRAP=$ac_ct_DLLWRAP
13542 else
13543 DLLWRAP="$ac_cv_prog_DLLWRAP"
13546 if test "$DLLWRAP" = "false"; then
13547 LIBEXT="a"
13548 else
13549 LIBEXT="dll"
13551 IMPLIBEXT="a"
13555 for ac_header in dlfcn.h
13557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13559 echo "$as_me:$LINENO: checking for $ac_header" >&5
13560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13566 else
13567 # Is the header compilable?
13568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 $ac_includes_default
13577 #include <$ac_header>
13578 _ACEOF
13579 rm -f conftest.$ac_objext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13581 (eval $ac_compile) 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
13588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_header_compiler=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_compiler=no
13607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609 echo "${ECHO_T}$ac_header_compiler" >&6
13611 # Is the header present?
13612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <$ac_header>
13621 _ACEOF
13622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev/null; then
13630 if test -s conftest.err; then
13631 ac_cpp_err=$ac_c_preproc_warn_flag
13632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13633 else
13634 ac_cpp_err=
13636 else
13637 ac_cpp_err=yes
13639 if test -z "$ac_cpp_err"; then
13640 ac_header_preproc=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_header_preproc=no
13647 rm -f conftest.err conftest.$ac_ext
13648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649 echo "${ECHO_T}$ac_header_preproc" >&6
13651 # So? What about this header?
13652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
13660 no:yes:* )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13674 cat <<\_ASBOX
13675 ## ------------------------------------ ##
13676 ## Report this to wine-devel@winehq.org ##
13677 ## ------------------------------------ ##
13678 _ASBOX
13680 sed "s/^/$as_me: WARNING: /" >&2
13682 esac
13683 echo "$as_me:$LINENO: checking for $ac_header" >&5
13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688 eval "$as_ac_Header=\$ac_header_preproc"
13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13697 _ACEOF
13699 for ac_func in dlopen
13701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13702 echo "$as_me:$LINENO: checking for $ac_func" >&5
13703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13704 if eval "test \"\${$as_ac_var+set}\" = set"; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13715 #define $ac_func innocuous_$ac_func
13717 /* System header to define __stub macros and hopefully few prototypes,
13718 which can conflict with char $ac_func (); below.
13719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13720 <limits.h> exists even on freestanding compilers. */
13722 #ifdef __STDC__
13723 # include <limits.h>
13724 #else
13725 # include <assert.h>
13726 #endif
13728 #undef $ac_func
13730 /* Override any gcc2 internal prototype to avoid an error. */
13731 #ifdef __cplusplus
13732 extern "C"
13734 #endif
13735 /* We use char because int might match the return type of a gcc2
13736 builtin and then its argument prototype would still apply. */
13737 char $ac_func ();
13738 /* The GNU C library defines this for functions which it implements
13739 to always fail with ENOSYS. Some functions are actually named
13740 something starting with __ and the normal name is an alias. */
13741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13742 choke me
13743 #else
13744 char (*f) () = $ac_func;
13745 #endif
13746 #ifdef __cplusplus
13748 #endif
13751 main ()
13753 return f != $ac_func;
13755 return 0;
13757 _ACEOF
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13779 eval "$as_ac_var=yes"
13780 else
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 eval "$as_ac_var=no"
13786 rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13791 if test `eval echo '${'$as_ac_var'}'` = yes; then
13792 cat >>confdefs.h <<_ACEOF
13793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13794 _ACEOF
13796 else
13797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802 ac_check_lib_save_LIBS=$LIBS
13803 LIBS="-ldl $LIBS"
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h. */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13811 /* Override any gcc2 internal prototype to avoid an error. */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 /* We use char because int might match the return type of a gcc2
13816 builtin and then its argument prototype would still apply. */
13817 char dlopen ();
13819 main ()
13821 dlopen ();
13823 return 0;
13825 _ACEOF
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828 (eval $ac_link) 2>conftest.er1
13829 ac_status=$?
13830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest$ac_exeext'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13847 ac_cv_lib_dl_dlopen=yes
13848 else
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13852 ac_cv_lib_dl_dlopen=no
13854 rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 LIBS=$ac_check_lib_save_LIBS
13858 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13859 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13860 if test $ac_cv_lib_dl_dlopen = yes; then
13862 cat >>confdefs.h <<\_ACEOF
13863 #define HAVE_DLOPEN 1
13864 _ACEOF
13866 DLLIBS="-ldl"
13867 else
13868 LIBEXT="a"
13872 done
13874 else
13875 LIBEXT="a"
13878 done
13881 if test "$LIBEXT" = "so"
13882 then
13883 DLLFLAGS="$DLLFLAGS -fPIC"
13884 DLLEXT=".so"
13885 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13886 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13887 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890 ac_wine_try_cflags_saved=$CFLAGS
13891 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h. */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13900 main ()
13904 return 0;
13906 _ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest$ac_exeext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 ac_cv_c_dll_gnuelf="yes"
13929 else
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 ac_cv_c_dll_gnuelf="no"
13935 rm -f conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937 CFLAGS=$ac_wine_try_cflags_saved
13939 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13940 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13941 if test "$ac_cv_c_dll_gnuelf" = "yes"
13942 then
13943 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13944 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13945 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13946 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13947 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950 ac_wine_try_cflags_saved=$CFLAGS
13951 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13960 main ()
13964 return 0;
13966 _ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13969 (eval $ac_link) 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try='test -s conftest$ac_exeext'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_cv_c_dll_zdefs="yes"
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_cv_c_dll_zdefs="no"
13995 rm -f conftest.err conftest.$ac_objext \
13996 conftest$ac_exeext conftest.$ac_ext
13997 CFLAGS=$ac_wine_try_cflags_saved
13999 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14000 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14001 if test "$ac_cv_c_dll_zdefs" = "yes"
14002 then
14003 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14006 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14007 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14008 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011 ac_wine_try_cflags_saved=$CFLAGS
14012 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14021 main ()
14025 return 0;
14027 _ACEOF
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030 (eval $ac_link) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest$ac_exeext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_cv_c_dll_init_fini="yes"
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_cv_c_dll_init_fini="no"
14056 rm -f conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext conftest.$ac_ext
14058 CFLAGS=$ac_wine_try_cflags_saved
14060 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14061 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14062 if test "$ac_cv_c_dll_init_fini" = "yes"
14063 then
14064 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14067 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14068 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14069 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072 echo '{ global: *; };' >conftest.map
14073 ac_wine_try_cflags_saved=$CFLAGS
14074 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14083 main ()
14087 return 0;
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14092 (eval $ac_link) 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_c_ld_version_scripts="yes"
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_c_ld_version_scripts="no"
14118 rm -f conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 CFLAGS=$ac_wine_try_cflags_saved
14121 rm -f conftest.map
14123 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14124 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14125 if test "$ac_cv_c_ld_version_scripts" = "yes"
14126 then
14127 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14130 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14131 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14132 if test "${ac_cv_c_export_dynamic+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 ac_wine_try_cflags_saved=$CFLAGS
14136 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14145 main ()
14149 return 0;
14151 _ACEOF
14152 rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154 (eval $ac_link) 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest$ac_exeext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_cv_c_export_dynamic="yes"
14174 else
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_c_export_dynamic="no"
14180 rm -f conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 CFLAGS=$ac_wine_try_cflags_saved
14184 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14185 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14186 if test "$ac_cv_c_export_dynamic" = "yes"
14187 then
14188 LDEXECFLAGS="-Wl,--export-dynamic"
14192 case $host_cpu in
14193 *i[3456789]86*)
14194 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
14195 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
14196 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 saved_CFLAGS="$CFLAGS"
14200 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
14201 if test "$cross_compiling" = yes; then
14202 ac_cv_ld_reloc_exec="no"
14203 else
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 #include <unistd.h>
14211 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
14212 _ACEOF
14213 rm -f conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215 (eval $ac_link) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_ld_reloc_exec="yes"
14225 else
14226 echo "$as_me: program exited with status $ac_status" >&5
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ( exit $ac_status )
14231 ac_cv_ld_reloc_exec="no"
14233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14235 CFLAGS="$saved_CFLAGS"
14237 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14238 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14239 if test "$ac_cv_ld_reloc_exec" = "yes"
14240 then
14241 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
14244 esac
14246 else
14247 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14248 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14249 if test "${ac_cv_c_dll_unixware+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252 ac_wine_try_cflags_saved=$CFLAGS
14253 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14262 main ()
14266 return 0;
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest$ac_exeext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_c_dll_unixware="yes"
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_cv_c_dll_unixware="no"
14297 rm -f conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 CFLAGS=$ac_wine_try_cflags_saved
14301 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14302 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14303 if test "$ac_cv_c_dll_unixware" = "yes"
14304 then
14305 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14306 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14308 else
14309 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14310 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14311 if test "${ac_cv_c_dll_macho+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314 ac_wine_try_cflags_saved=$CFLAGS
14315 CFLAGS="$CFLAGS -bundle"
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14324 main ()
14328 return 0;
14330 _ACEOF
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333 (eval $ac_link) 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } &&
14346 { ac_try='test -s conftest$ac_exeext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_cv_c_dll_macho="yes"
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_cv_c_dll_macho="no"
14359 rm -f conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
14361 CFLAGS=$ac_wine_try_cflags_saved
14363 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14364 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14365 if test "$ac_cv_c_dll_macho" = "yes"
14366 then
14367 LIBEXT="dylib"
14368 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14369 LDSHARED="\$(CC) -dynamiclib"
14370 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14376 CROSSTEST=""
14378 if test "$cross_compiling" = "no"
14379 then
14380 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14382 # Extract the first word of "$ac_prog", so it can be a program name with args.
14383 set dummy $ac_prog; ac_word=$2
14384 echo "$as_me:$LINENO: checking for $ac_word" >&5
14385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14386 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 if test -n "$CROSSCC"; then
14390 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14391 else
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14395 IFS=$as_save_IFS
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14399 ac_cv_prog_CROSSCC="$ac_prog"
14400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14401 break 2
14403 done
14404 done
14408 CROSSCC=$ac_cv_prog_CROSSCC
14409 if test -n "$CROSSCC"; then
14410 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14411 echo "${ECHO_T}$CROSSCC" >&6
14412 else
14413 echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6
14417 test -n "$CROSSCC" && break
14418 done
14419 test -n "$CROSSCC" || CROSSCC="false"
14421 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14423 # Extract the first word of "$ac_prog", so it can be a program name with args.
14424 set dummy $ac_prog; ac_word=$2
14425 echo "$as_me:$LINENO: checking for $ac_word" >&5
14426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14427 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430 if test -n "$DLLTOOL"; then
14431 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440 ac_cv_prog_DLLTOOL="$ac_prog"
14441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14444 done
14445 done
14449 DLLTOOL=$ac_cv_prog_DLLTOOL
14450 if test -n "$DLLTOOL"; then
14451 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14452 echo "${ECHO_T}$DLLTOOL" >&6
14453 else
14454 echo "$as_me:$LINENO: result: no" >&5
14455 echo "${ECHO_T}no" >&6
14458 test -n "$DLLTOOL" && break
14459 done
14460 test -n "$DLLTOOL" || DLLTOOL="false"
14462 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14464 # Extract the first word of "$ac_prog", so it can be a program name with args.
14465 set dummy $ac_prog; ac_word=$2
14466 echo "$as_me:$LINENO: checking for $ac_word" >&5
14467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14468 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471 if test -n "$CROSSWINDRES"; then
14472 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14481 ac_cv_prog_CROSSWINDRES="$ac_prog"
14482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14485 done
14486 done
14490 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14491 if test -n "$CROSSWINDRES"; then
14492 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14493 echo "${ECHO_T}$CROSSWINDRES" >&6
14494 else
14495 echo "$as_me:$LINENO: result: no" >&5
14496 echo "${ECHO_T}no" >&6
14499 test -n "$CROSSWINDRES" && break
14500 done
14501 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14503 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14506 esac
14508 if test "$LIBEXT" = "a"; then
14509 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14510 It is currently not possible to build Wine without shared library
14511 (.so) support to allow transparent switch between .so and .dll files.
14512 If you are using Linux, you will need a newer binutils.
14513 " >&5
14514 echo "$as_me: error: could not find a way to build shared libraries.
14515 It is currently not possible to build Wine without shared library
14516 (.so) support to allow transparent switch between .so and .dll files.
14517 If you are using Linux, you will need a newer binutils.
14518 " >&2;}
14519 { (exit 1); exit 1; }; }
14522 case $build_os in
14523 cygwin*|mingw32*)
14524 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14526 darwin*|macosx*)
14527 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14530 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14532 esac
14534 case $host_os in
14535 mingw32*)
14536 CRTLIBS="-lmsvcrt"
14538 esac
14540 case $host_os in
14541 linux*)
14542 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14544 MAIN_BINARY="wine-glibc"
14548 WINE_BINARIES="wine-kthread"
14550 MAIN_BINARY="wine-kthread"
14553 esac
14556 if test "$LIBEXT" = "so"
14557 then
14558 # Extract the first word of "ldd", so it can be a program name with args.
14559 set dummy ldd; ac_word=$2
14560 echo "$as_me:$LINENO: checking for $ac_word" >&5
14561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14562 if test "${ac_cv_path_LDD+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 case $LDD in
14566 [\\/]* | ?:[\\/]*)
14567 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14571 as_dummy="/sbin:/usr/sbin:$PATH"
14572 for as_dir in $as_dummy
14574 IFS=$as_save_IFS
14575 test -z "$as_dir" && as_dir=.
14576 for ac_exec_ext in '' $ac_executable_extensions; do
14577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14578 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 break 2
14582 done
14583 done
14585 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14587 esac
14589 LDD=$ac_cv_path_LDD
14591 if test -n "$LDD"; then
14592 echo "$as_me:$LINENO: result: $LDD" >&5
14593 echo "${ECHO_T}$LDD" >&6
14594 else
14595 echo "$as_me:$LINENO: result: no" >&5
14596 echo "${ECHO_T}no" >&6
14600 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14601 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14602 if test "${ac_cv_lib_soname_X11+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605 ac_get_soname_save_LIBS=$LIBS
14606 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h. */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14614 /* Override any gcc2 internal prototype to avoid an error. */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 /* We use char because int might match the return type of a gcc2
14619 builtin and then its argument prototype would still apply. */
14620 char XCreateWindow ();
14622 main ()
14624 XCreateWindow ();
14626 return 0;
14628 _ACEOF
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14631 (eval $ac_link) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest$ac_exeext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14651 if test "x$ac_cv_lib_soname_X11" = "x"
14652 then
14653 ac_cv_lib_soname_X11="libX11.so"
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 ac_cv_lib_soname_X11="libX11.so"
14661 rm -f conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14663 LIBS=$ac_get_soname_save_LIBS
14665 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14666 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14667 if test "x$ac_cv_lib_soname_X11" != xNONE
14668 then
14669 cat >>confdefs.h <<_ACEOF
14670 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14671 _ACEOF
14674 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14675 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14676 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679 ac_get_soname_save_LIBS=$LIBS
14680 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14688 /* Override any gcc2 internal prototype to avoid an error. */
14689 #ifdef __cplusplus
14690 extern "C"
14691 #endif
14692 /* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14694 char XextCreateExtension ();
14696 main ()
14698 XextCreateExtension ();
14700 return 0;
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest$ac_exeext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14725 if test "x$ac_cv_lib_soname_Xext" = "x"
14726 then
14727 ac_cv_lib_soname_Xext="libXext.so"
14729 else
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_cv_lib_soname_Xext="libXext.so"
14735 rm -f conftest.err conftest.$ac_objext \
14736 conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_get_soname_save_LIBS
14739 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14740 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14741 if test "x$ac_cv_lib_soname_Xext" != xNONE
14742 then
14743 cat >>confdefs.h <<_ACEOF
14744 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14745 _ACEOF
14748 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14749 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14750 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753 ac_get_soname_save_LIBS=$LIBS
14754 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h. */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14762 /* Override any gcc2 internal prototype to avoid an error. */
14763 #ifdef __cplusplus
14764 extern "C"
14765 #endif
14766 /* We use char because int might match the return type of a gcc2
14767 builtin and then its argument prototype would still apply. */
14768 char XOpenDevice ();
14770 main ()
14772 XOpenDevice ();
14774 return 0;
14776 _ACEOF
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779 (eval $ac_link) 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest$ac_exeext'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14799 if test "x$ac_cv_lib_soname_Xi" = "x"
14800 then
14801 ac_cv_lib_soname_Xi="libXi.so"
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_cv_lib_soname_Xi="libXi.so"
14809 rm -f conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_get_soname_save_LIBS
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14814 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14815 if test "x$ac_cv_lib_soname_Xi" != xNONE
14816 then
14817 cat >>confdefs.h <<_ACEOF
14818 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14819 _ACEOF
14822 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14823 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14824 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827 ac_get_soname_save_LIBS=$LIBS
14828 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h. */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14836 /* Override any gcc2 internal prototype to avoid an error. */
14837 #ifdef __cplusplus
14838 extern "C"
14839 #endif
14840 /* We use char because int might match the return type of a gcc2
14841 builtin and then its argument prototype would still apply. */
14842 char XRenderQueryExtension ();
14844 main ()
14846 XRenderQueryExtension ();
14848 return 0;
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14853 (eval $ac_link) 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14873 if test "x$ac_cv_lib_soname_Xrender" = "x"
14874 then
14875 ac_cv_lib_soname_Xrender="libXrender.so"
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_cv_lib_soname_Xrender="libXrender.so"
14883 rm -f conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LIBS=$ac_get_soname_save_LIBS
14887 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14888 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14889 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14890 then
14891 cat >>confdefs.h <<_ACEOF
14892 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14893 _ACEOF
14896 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14897 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14898 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901 ac_get_soname_save_LIBS=$LIBS
14902 LIBS="-lfreetype $X_LIBS $LIBS"
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14910 /* Override any gcc2 internal prototype to avoid an error. */
14911 #ifdef __cplusplus
14912 extern "C"
14913 #endif
14914 /* We use char because int might match the return type of a gcc2
14915 builtin and then its argument prototype would still apply. */
14916 char FT_Init_FreeType ();
14918 main ()
14920 FT_Init_FreeType ();
14922 return 0;
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest$ac_exeext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
14947 if test "x$ac_cv_lib_soname_freetype" = "x"
14948 then
14949 ac_cv_lib_soname_freetype="libfreetype.so"
14951 else
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14955 ac_cv_lib_soname_freetype="libfreetype.so"
14957 rm -f conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959 LIBS=$ac_get_soname_save_LIBS
14961 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14962 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14963 if test "x$ac_cv_lib_soname_freetype" != xNONE
14964 then
14965 cat >>confdefs.h <<_ACEOF
14966 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14967 _ACEOF
14970 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14971 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14972 if test "${ac_cv_lib_soname_GL+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 ac_get_soname_save_LIBS=$LIBS
14976 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14984 /* Override any gcc2 internal prototype to avoid an error. */
14985 #ifdef __cplusplus
14986 extern "C"
14987 #endif
14988 /* We use char because int might match the return type of a gcc2
14989 builtin and then its argument prototype would still apply. */
14990 char glXQueryExtension ();
14992 main ()
14994 glXQueryExtension ();
14996 return 0;
14998 _ACEOF
14999 rm -f conftest.$ac_objext conftest$ac_exeext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15001 (eval $ac_link) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
15008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest$ac_exeext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
15021 if test "x$ac_cv_lib_soname_GL" = "x"
15022 then
15023 ac_cv_lib_soname_GL="libGL.so"
15025 else
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 ac_cv_lib_soname_GL="libGL.so"
15031 rm -f conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_get_soname_save_LIBS
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15036 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15037 if test "x$ac_cv_lib_soname_GL" != xNONE
15038 then
15039 cat >>confdefs.h <<_ACEOF
15040 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15041 _ACEOF
15044 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15045 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15046 if test "${ac_cv_lib_soname_cups+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049 ac_get_soname_save_LIBS=$LIBS
15050 LIBS="-lcups $LIBS"
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15058 /* Override any gcc2 internal prototype to avoid an error. */
15059 #ifdef __cplusplus
15060 extern "C"
15061 #endif
15062 /* We use char because int might match the return type of a gcc2
15063 builtin and then its argument prototype would still apply. */
15064 char cupsGetDefault ();
15066 main ()
15068 cupsGetDefault ();
15070 return 0;
15072 _ACEOF
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15075 (eval $ac_link) 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; } &&
15088 { ac_try='test -s conftest$ac_exeext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
15095 if test "x$ac_cv_lib_soname_cups" = "x"
15096 then
15097 ac_cv_lib_soname_cups="libcups.so"
15099 else
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_cv_lib_soname_cups="libcups.so"
15105 rm -f conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_get_soname_save_LIBS
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15110 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15111 if test "x$ac_cv_lib_soname_cups" != xNONE
15112 then
15113 cat >>confdefs.h <<_ACEOF
15114 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15115 _ACEOF
15118 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15119 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15120 if test "${ac_cv_lib_soname_jack+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123 ac_get_soname_save_LIBS=$LIBS
15124 LIBS="-ljack $LIBS"
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* Override any gcc2 internal prototype to avoid an error. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char jack_client_new ();
15140 main ()
15142 jack_client_new ();
15144 return 0;
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>conftest.er1
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; } &&
15162 { ac_try='test -s conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
15169 if test "x$ac_cv_lib_soname_jack" = "x"
15170 then
15171 ac_cv_lib_soname_jack="libjack.so"
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_lib_soname_jack="libjack.so"
15179 rm -f conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_get_soname_save_LIBS
15183 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15184 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15185 if test "x$ac_cv_lib_soname_jack" != xNONE
15186 then
15187 cat >>confdefs.h <<_ACEOF
15188 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15189 _ACEOF
15192 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15193 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15194 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 ac_get_soname_save_LIBS=$LIBS
15198 LIBS="-lfontconfig $LIBS"
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 /* Override any gcc2 internal prototype to avoid an error. */
15207 #ifdef __cplusplus
15208 extern "C"
15209 #endif
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15212 char FcInit ();
15214 main ()
15216 FcInit ();
15218 return 0;
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest$ac_exeext'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
15243 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15244 then
15245 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15253 rm -f conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15255 LIBS=$ac_get_soname_save_LIBS
15257 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15258 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15259 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15260 then
15261 cat >>confdefs.h <<_ACEOF
15262 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15263 _ACEOF
15266 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15267 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15268 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 ac_get_soname_save_LIBS=$LIBS
15272 LIBS="-lssl $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any gcc2 internal prototype to avoid an error. */
15281 #ifdef __cplusplus
15282 extern "C"
15283 #endif
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15286 char SSL_library_init ();
15288 main ()
15290 SSL_library_init ();
15292 return 0;
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15297 (eval $ac_link) 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; } &&
15310 { ac_try='test -s conftest$ac_exeext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
15317 if test "x$ac_cv_lib_soname_ssl" = "x"
15318 then
15319 ac_cv_lib_soname_ssl="libssl.so"
15321 else
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_cv_lib_soname_ssl="libssl.so"
15327 rm -f conftest.err conftest.$ac_objext \
15328 conftest$ac_exeext conftest.$ac_ext
15329 LIBS=$ac_get_soname_save_LIBS
15331 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15332 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15333 if test "x$ac_cv_lib_soname_ssl" != xNONE
15334 then
15335 cat >>confdefs.h <<_ACEOF
15336 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15337 _ACEOF
15340 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15341 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15342 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 else
15345 ac_get_soname_save_LIBS=$LIBS
15346 LIBS="-lcrypto $LIBS"
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15354 /* Override any gcc2 internal prototype to avoid an error. */
15355 #ifdef __cplusplus
15356 extern "C"
15357 #endif
15358 /* We use char because int might match the return type of a gcc2
15359 builtin and then its argument prototype would still apply. */
15360 char BIO_new_socket ();
15362 main ()
15364 BIO_new_socket ();
15366 return 0;
15368 _ACEOF
15369 rm -f conftest.$ac_objext conftest$ac_exeext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15371 (eval $ac_link) 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try='test -s conftest$ac_exeext'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15391 if test "x$ac_cv_lib_soname_crypto" = "x"
15392 then
15393 ac_cv_lib_soname_crypto="libcrypto.so"
15395 else
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 ac_cv_lib_soname_crypto="libcrypto.so"
15401 rm -f conftest.err conftest.$ac_objext \
15402 conftest$ac_exeext conftest.$ac_ext
15403 LIBS=$ac_get_soname_save_LIBS
15405 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15406 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15407 if test "x$ac_cv_lib_soname_crypto" != xNONE
15408 then
15409 cat >>confdefs.h <<_ACEOF
15410 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15411 _ACEOF
15414 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15415 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15416 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 ac_get_soname_save_LIBS=$LIBS
15420 LIBS="-lncurses $LIBS"
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h. */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 #ifdef __cplusplus
15430 extern "C"
15431 #endif
15432 /* We use char because int might match the return type of a gcc2
15433 builtin and then its argument prototype would still apply. */
15434 char waddch ();
15436 main ()
15438 waddch ();
15440 return 0;
15442 _ACEOF
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15445 (eval $ac_link) 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try='test -s conftest$ac_exeext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15465 if test "x$ac_cv_lib_soname_ncurses" = "x"
15466 then
15467 ac_cv_lib_soname_ncurses="libncurses.so"
15469 else
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 ac_cv_lib_soname_ncurses="libncurses.so"
15475 rm -f conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 LIBS=$ac_get_soname_save_LIBS
15479 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15480 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15481 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15482 then
15483 cat >>confdefs.h <<_ACEOF
15484 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15485 _ACEOF
15488 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15489 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15490 if test "${ac_cv_lib_soname_curses+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493 ac_get_soname_save_LIBS=$LIBS
15494 LIBS="-lcurses $LIBS"
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h. */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15502 /* Override any gcc2 internal prototype to avoid an error. */
15503 #ifdef __cplusplus
15504 extern "C"
15505 #endif
15506 /* We use char because int might match the return type of a gcc2
15507 builtin and then its argument prototype would still apply. */
15508 char waddch ();
15510 main ()
15512 waddch ();
15514 return 0;
15516 _ACEOF
15517 rm -f conftest.$ac_objext conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest$ac_exeext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15539 if test "x$ac_cv_lib_soname_curses" = "x"
15540 then
15541 ac_cv_lib_soname_curses="libcurses.so"
15543 else
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_lib_soname_curses="libcurses.so"
15549 rm -f conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15551 LIBS=$ac_get_soname_save_LIBS
15553 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15554 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15555 if test "x$ac_cv_lib_soname_curses" != xNONE
15556 then
15557 cat >>confdefs.h <<_ACEOF
15558 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15559 _ACEOF
15565 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15566 # for constant arguments. Useless!
15567 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15568 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15569 if test "${ac_cv_working_alloca_h+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 #include <alloca.h>
15580 main ()
15582 char *p = (char *) alloca (2 * sizeof (int));
15584 return 0;
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_working_alloca_h=yes
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_cv_working_alloca_h=no
15615 rm -f conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15618 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15619 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15620 if test $ac_cv_working_alloca_h = yes; then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_ALLOCA_H 1
15624 _ACEOF
15628 echo "$as_me:$LINENO: checking for alloca" >&5
15629 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15630 if test "${ac_cv_func_alloca_works+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #ifdef __GNUC__
15640 # define alloca __builtin_alloca
15641 #else
15642 # ifdef _MSC_VER
15643 # include <malloc.h>
15644 # define alloca _alloca
15645 # else
15646 # if HAVE_ALLOCA_H
15647 # include <alloca.h>
15648 # else
15649 # ifdef _AIX
15650 #pragma alloca
15651 # else
15652 # ifndef alloca /* predefined by HP cc +Olibcalls */
15653 char *alloca ();
15654 # endif
15655 # endif
15656 # endif
15657 # endif
15658 #endif
15661 main ()
15663 char *p = (char *) alloca (1);
15665 return 0;
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670 (eval $ac_link) 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; } &&
15683 { ac_try='test -s conftest$ac_exeext'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_cv_func_alloca_works=yes
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_func_alloca_works=no
15696 rm -f conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15699 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15700 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15702 if test $ac_cv_func_alloca_works = yes; then
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_ALLOCA 1
15706 _ACEOF
15708 else
15709 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15710 # that cause trouble. Some versions do not even contain alloca or
15711 # contain a buggy version. If you still want to use their alloca,
15712 # use ar to extract alloca.o from them instead of compiling alloca.c.
15714 ALLOCA=alloca.$ac_objext
15716 cat >>confdefs.h <<\_ACEOF
15717 #define C_ALLOCA 1
15718 _ACEOF
15721 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15722 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15723 if test "${ac_cv_os_cray+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 #if defined(CRAY) && ! defined(CRAY2)
15733 webecray
15734 #else
15735 wenotbecray
15736 #endif
15738 _ACEOF
15739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15740 $EGREP "webecray" >/dev/null 2>&1; then
15741 ac_cv_os_cray=yes
15742 else
15743 ac_cv_os_cray=no
15745 rm -f conftest*
15748 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15749 echo "${ECHO_T}$ac_cv_os_cray" >&6
15750 if test $ac_cv_os_cray = yes; then
15751 for ac_func in _getb67 GETB67 getb67; do
15752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15753 echo "$as_me:$LINENO: checking for $ac_func" >&5
15754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15755 if eval "test \"\${$as_ac_var+set}\" = set"; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 else
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15766 #define $ac_func innocuous_$ac_func
15768 /* System header to define __stub macros and hopefully few prototypes,
15769 which can conflict with char $ac_func (); below.
15770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771 <limits.h> exists even on freestanding compilers. */
15773 #ifdef __STDC__
15774 # include <limits.h>
15775 #else
15776 # include <assert.h>
15777 #endif
15779 #undef $ac_func
15781 /* Override any gcc2 internal prototype to avoid an error. */
15782 #ifdef __cplusplus
15783 extern "C"
15785 #endif
15786 /* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15788 char $ac_func ();
15789 /* The GNU C library defines this for functions which it implements
15790 to always fail with ENOSYS. Some functions are actually named
15791 something starting with __ and the normal name is an alias. */
15792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15793 choke me
15794 #else
15795 char (*f) () = $ac_func;
15796 #endif
15797 #ifdef __cplusplus
15799 #endif
15802 main ()
15804 return f != $ac_func;
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 eval "$as_ac_var=no"
15837 rm -f conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15842 if test `eval echo '${'$as_ac_var'}'` = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845 #define CRAY_STACKSEG_END $ac_func
15846 _ACEOF
15848 break
15851 done
15854 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15855 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15856 if test "${ac_cv_c_stack_direction+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859 if test "$cross_compiling" = yes; then
15860 ac_cv_c_stack_direction=0
15861 else
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h. */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15869 find_stack_direction ()
15871 static char *addr = 0;
15872 auto char dummy;
15873 if (addr == 0)
15875 addr = &dummy;
15876 return find_stack_direction ();
15878 else
15879 return (&dummy > addr) ? 1 : -1;
15883 main ()
15885 exit (find_stack_direction () < 0);
15887 _ACEOF
15888 rm -f conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890 (eval $ac_link) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_c_stack_direction=1
15900 else
15901 echo "$as_me: program exited with status $ac_status" >&5
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ( exit $ac_status )
15906 ac_cv_c_stack_direction=-1
15908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15912 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15914 cat >>confdefs.h <<_ACEOF
15915 #define STACK_DIRECTION $ac_cv_c_stack_direction
15916 _ACEOF
15976 for ac_func in \
15977 _lwp_create \
15978 _lwp_self \
15979 _pclose \
15980 _popen \
15981 _snprintf \
15982 _spawnvp \
15983 _stricmp \
15984 _strnicmp \
15985 _vsnprintf \
15986 chsize \
15987 clone \
15988 finite \
15989 fpclass \
15990 ftruncate \
15991 ftruncate64 \
15992 futimes \
15993 getnetbyaddr \
15994 getnetbyname \
15995 getopt_long \
15996 getpagesize \
15997 getprotobyname \
15998 getprotobynumber \
15999 getpwuid \
16000 getservbyport \
16001 gettid \
16002 gettimeofday \
16003 inet_network \
16004 lseek64 \
16005 lstat \
16006 memmove \
16007 mmap \
16008 pclose \
16009 popen \
16010 pread \
16011 pwrite \
16012 readlink \
16013 rfork \
16014 select \
16015 sendmsg \
16016 settimeofday \
16017 sigaltstack \
16018 snprintf \
16019 spawnvp \
16020 statfs \
16021 statvfs \
16022 strcasecmp \
16023 strerror \
16024 strncasecmp \
16025 tcgetattr \
16026 timegm \
16027 usleep \
16028 vfscanf \
16029 vsnprintf \
16030 wait4 \
16031 waitpid \
16034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16035 echo "$as_me:$LINENO: checking for $ac_func" >&5
16036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16037 if eval "test \"\${$as_ac_var+set}\" = set"; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16048 #define $ac_func innocuous_$ac_func
16050 /* System header to define __stub macros and hopefully few prototypes,
16051 which can conflict with char $ac_func (); below.
16052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16053 <limits.h> exists even on freestanding compilers. */
16055 #ifdef __STDC__
16056 # include <limits.h>
16057 #else
16058 # include <assert.h>
16059 #endif
16061 #undef $ac_func
16063 /* Override any gcc2 internal prototype to avoid an error. */
16064 #ifdef __cplusplus
16065 extern "C"
16067 #endif
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16070 char $ac_func ();
16071 /* The GNU C library defines this for functions which it implements
16072 to always fail with ENOSYS. Some functions are actually named
16073 something starting with __ and the normal name is an alias. */
16074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16075 choke me
16076 #else
16077 char (*f) () = $ac_func;
16078 #endif
16079 #ifdef __cplusplus
16081 #endif
16084 main ()
16086 return f != $ac_func;
16088 return 0;
16090 _ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16093 (eval $ac_link) 2>conftest.er1
16094 ac_status=$?
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest$ac_exeext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 eval "$as_ac_var=yes"
16113 else
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 eval "$as_ac_var=no"
16119 rm -f conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16124 if test `eval echo '${'$as_ac_var'}'` = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16127 _ACEOF
16130 done
16218 for ac_header in \
16219 arpa/inet.h \
16220 arpa/nameser.h \
16221 cups/cups.h \
16222 direct.h \
16223 elf.h \
16224 float.h \
16225 fontconfig/fontconfig.h \
16226 getopt.h \
16227 ieeefp.h \
16228 io.h \
16229 jack/jack.h \
16230 libio.h \
16231 libutil.h \
16232 link.h \
16233 linux/cdrom.h \
16234 linux/hdreg.h \
16235 linux/input.h \
16236 linux/ioctl.h \
16237 linux/joystick.h \
16238 linux/major.h \
16239 linux/param.h \
16240 linux/serial.h \
16241 linux/ucdrom.h \
16242 machine/cpu.h \
16243 netdb.h \
16244 netinet/in.h \
16245 netinet/in_systm.h \
16246 netinet/tcp.h \
16247 netinet/tcp_fsm.h \
16248 openssl/ssl.h \
16249 process.h \
16250 pthread.h \
16251 pty.h \
16252 pwd.h \
16253 regex.h \
16254 sched.h \
16255 scsi/sg.h \
16256 scsi/scsi.h \
16257 scsi/scsi_ioctl.h \
16258 socket.h \
16259 stdint.h \
16260 strings.h \
16261 sys/cdio.h \
16262 sys/elf32.h \
16263 sys/errno.h \
16264 sys/exec_elf.h \
16265 sys/file.h \
16266 sys/filio.h \
16267 sys/inttypes.h \
16268 sys/ioctl.h \
16269 sys/ipc.h \
16270 sys/link.h \
16271 sys/lwp.h \
16272 sys/mman.h \
16273 sys/modem.h \
16274 sys/msg.h \
16275 sys/param.h \
16276 sys/poll.h \
16277 sys/ptrace.h \
16278 sys/reg.h \
16279 sys/scsiio.h \
16280 sys/shm.h \
16281 sys/signal.h \
16282 sys/socket.h \
16283 sys/sockio.h \
16284 sys/statfs.h \
16285 sys/statvfs.h \
16286 sys/strtio.h \
16287 sys/syscall.h \
16288 sys/sysctl.h \
16289 sys/time.h \
16290 sys/times.h \
16291 sys/uio.h \
16292 sys/un.h \
16293 sys/v86.h \
16294 sys/v86intr.h \
16295 sys/vfs.h \
16296 sys/vm86.h \
16297 sys/wait.h \
16298 syscall.h \
16299 termios.h \
16300 unistd.h \
16301 utime.h \
16302 valgrind/memcheck.h
16305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16307 echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16314 else
16315 # Is the header compilable?
16316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16318 cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h. */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16324 $ac_includes_default
16325 #include <$ac_header>
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_header_compiler=yes
16349 else
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_compiler=no
16355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16357 echo "${ECHO_T}$ac_header_compiler" >&6
16359 # Is the header present?
16360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h. */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 #include <$ac_header>
16369 _ACEOF
16370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } >/dev/null; then
16378 if test -s conftest.err; then
16379 ac_cpp_err=$ac_c_preproc_warn_flag
16380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16381 else
16382 ac_cpp_err=
16384 else
16385 ac_cpp_err=yes
16387 if test -z "$ac_cpp_err"; then
16388 ac_header_preproc=yes
16389 else
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_header_preproc=no
16395 rm -f conftest.err conftest.$ac_ext
16396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16397 echo "${ECHO_T}$ac_header_preproc" >&6
16399 # So? What about this header?
16400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16401 yes:no: )
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16406 ac_header_preproc=yes
16408 no:yes:* )
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16422 cat <<\_ASBOX
16423 ## ------------------------------------ ##
16424 ## Report this to wine-devel@winehq.org ##
16425 ## ------------------------------------ ##
16426 _ASBOX
16428 sed "s/^/$as_me: WARNING: /" >&2
16430 esac
16431 echo "$as_me:$LINENO: checking for $ac_header" >&5
16432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436 eval "$as_ac_Header=\$ac_header_preproc"
16438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16443 cat >>confdefs.h <<_ACEOF
16444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16445 _ACEOF
16449 done
16451 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16452 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16453 if test "${ac_cv_header_stat_broken+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <sys/types.h>
16463 #include <sys/stat.h>
16465 #if defined(S_ISBLK) && defined(S_IFDIR)
16466 # if S_ISBLK (S_IFDIR)
16467 You lose.
16468 # endif
16469 #endif
16471 #if defined(S_ISBLK) && defined(S_IFCHR)
16472 # if S_ISBLK (S_IFCHR)
16473 You lose.
16474 # endif
16475 #endif
16477 #if defined(S_ISLNK) && defined(S_IFREG)
16478 # if S_ISLNK (S_IFREG)
16479 You lose.
16480 # endif
16481 #endif
16483 #if defined(S_ISSOCK) && defined(S_IFREG)
16484 # if S_ISSOCK (S_IFREG)
16485 You lose.
16486 # endif
16487 #endif
16489 _ACEOF
16490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16491 $EGREP "You lose" >/dev/null 2>&1; then
16492 ac_cv_header_stat_broken=yes
16493 else
16494 ac_cv_header_stat_broken=no
16496 rm -f conftest*
16499 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16500 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16501 if test $ac_cv_header_stat_broken = yes; then
16503 cat >>confdefs.h <<\_ACEOF
16504 #define STAT_MACROS_BROKEN 1
16505 _ACEOF
16513 for ac_header in sys/mount.h sys/user.h
16515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16516 echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <sys/types.h>
16528 #if HAVE_SYS_PARAM_H
16529 # include <sys/param.h>
16530 #endif
16532 #include <$ac_header>
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 (eval $ac_compile) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16555 eval "$as_ac_Header=yes"
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 eval "$as_ac_Header=no"
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16567 cat >>confdefs.h <<_ACEOF
16568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16569 _ACEOF
16573 done
16581 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16584 echo "$as_me:$LINENO: checking for $ac_header" >&5
16585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16586 if eval "test \"\${$as_ac_Header+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. */
16595 #include <sys/types.h>
16596 #if HAVE_SYS_SOCKET_H
16597 # include <sys/socket.h>
16598 #endif
16600 #include <$ac_header>
16601 _ACEOF
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16604 (eval $ac_compile) 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; } &&
16617 { ac_try='test -s conftest.$ac_objext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 eval "$as_ac_Header=yes"
16624 else
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 eval "$as_ac_Header=no"
16630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16637 _ACEOF
16641 done
16645 for ac_header in resolv.h
16647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 #include <sys/types.h>
16660 #if HAVE_SYS_SOCKET_H
16661 # include <sys/socket.h>
16662 #endif
16663 #if HAVE_NETINET_IN_H
16664 # include <netinet/in.h>
16665 #endif
16666 #if HAVE_ARPA_NAMESER_H
16667 # include <arpa/nameser.h>
16668 #endif
16670 #include <$ac_header>
16671 _ACEOF
16672 rm -f conftest.$ac_objext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16674 (eval $ac_compile) 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; } &&
16687 { ac_try='test -s conftest.$ac_objext'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 eval "$as_ac_Header=yes"
16694 else
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 eval "$as_ac_Header=no"
16700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16705 cat >>confdefs.h <<_ACEOF
16706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16707 _ACEOF
16711 done
16715 for ac_header in netinet/ip.h
16717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16718 echo "$as_me:$LINENO: checking for $ac_header" >&5
16719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723 cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h. */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 #include <sys/types.h>
16730 #if HAVE_SYS_SOCKET_H
16731 # include <sys/socket.h>
16732 #endif
16733 #if HAVE_NETINET_IN_SYSTM_H
16734 # include <netinet/in_systm.h>
16735 #endif
16737 #include <$ac_header>
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>conftest.er1
16742 ac_status=$?
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try='test -s conftest.$ac_objext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 eval "$as_ac_Header=yes"
16761 else
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 eval "$as_ac_Header=no"
16767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16772 cat >>confdefs.h <<_ACEOF
16773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16774 _ACEOF
16778 done
16782 for ac_header in ucontext.h
16784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16785 echo "$as_me:$LINENO: checking for $ac_header" >&5
16786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 #include <signal.h>
16798 #include <$ac_header>
16799 _ACEOF
16800 rm -f conftest.$ac_objext
16801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16802 (eval $ac_compile) 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; } &&
16815 { ac_try='test -s conftest.$ac_objext'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 eval "$as_ac_Header=yes"
16822 else
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 eval "$as_ac_Header=no"
16828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16835 _ACEOF
16839 done
16843 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16844 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16845 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <sys/types.h>
16855 #ifdef HAVE_SYS_SOCKET_H
16856 # include <sys/socket.h>
16857 #endif
16858 #include <netipx/ipx.h>
16860 main ()
16862 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16864 return 0;
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_c_ipx_gnu="yes"
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_cv_c_ipx_gnu="no"
16895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16898 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16899 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16900 if test "$ac_cv_c_ipx_gnu" = "yes"
16901 then
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_IPX_GNU 1
16905 _ACEOF
16909 if test "$ac_cv_c_ipx_gnu" = "no"
16910 then
16911 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16912 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16913 if test "${ac_cv_c_ipx_linux+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <sys/types.h>
16923 #ifdef HAVE_SYS_SOCKET_H
16924 # include <sys/socket.h>
16925 #endif
16926 #include <asm/types.h>
16927 #include <linux/ipx.h>
16929 main ()
16931 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16933 return 0;
16935 _ACEOF
16936 rm -f conftest.$ac_objext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16938 (eval $ac_compile) 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_cv_c_ipx_linux="yes"
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_c_ipx_linux="no"
16964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16967 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16968 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16969 if test "$ac_cv_c_ipx_linux" = "yes"
16970 then
16972 cat >>confdefs.h <<\_ACEOF
16973 #define HAVE_IPX_LINUX 1
16974 _ACEOF
16980 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16981 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16982 if test "${ac_cv_c_const+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16993 main ()
16995 /* FIXME: Include the comments suggested by Paul. */
16996 #ifndef __cplusplus
16997 /* Ultrix mips cc rejects this. */
16998 typedef int charset[2];
16999 const charset x;
17000 /* SunOS 4.1.1 cc rejects this. */
17001 char const *const *ccp;
17002 char **p;
17003 /* NEC SVR4.0.2 mips cc rejects this. */
17004 struct point {int x, y;};
17005 static struct point const zero = {0,0};
17006 /* AIX XL C 1.02.0.0 rejects this.
17007 It does not let you subtract one const X* pointer from another in
17008 an arm of an if-expression whose if-part is not a constant
17009 expression */
17010 const char *g = "string";
17011 ccp = &g + (g ? g-g : 0);
17012 /* HPUX 7.0 cc rejects these. */
17013 ++ccp;
17014 p = (char**) ccp;
17015 ccp = (char const *const *) p;
17016 { /* SCO 3.2v4 cc rejects this. */
17017 char *t;
17018 char const *s = 0 ? (char *) 0 : (char const *) 0;
17020 *t++ = 0;
17022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17023 int x[] = {25, 17};
17024 const int *foo = &x[0];
17025 ++foo;
17027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17028 typedef const int *iptr;
17029 iptr p = 0;
17030 ++p;
17032 { /* AIX XL C 1.02.0.0 rejects this saying
17033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17034 struct s { int j; const int *ap[3]; };
17035 struct s *b; b->j = 5;
17037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17038 const int foo = 10;
17040 #endif
17043 return 0;
17045 _ACEOF
17046 rm -f conftest.$ac_objext
17047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17048 (eval $ac_compile) 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest.$ac_objext'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_c_const=yes
17068 else
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17072 ac_cv_c_const=no
17074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17076 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17077 echo "${ECHO_T}$ac_cv_c_const" >&6
17078 if test $ac_cv_c_const = no; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define const
17082 _ACEOF
17086 echo "$as_me:$LINENO: checking for inline" >&5
17087 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17088 if test "${ac_cv_c_inline+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091 ac_cv_c_inline=no
17092 for ac_kw in inline __inline__ __inline; do
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 #ifndef __cplusplus
17100 typedef int foo_t;
17101 static $ac_kw foo_t static_foo () {return 0; }
17102 $ac_kw foo_t foo () {return 0; }
17103 #endif
17105 _ACEOF
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_cv_c_inline=$ac_kw; break
17128 else
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17134 done
17137 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17138 echo "${ECHO_T}$ac_cv_c_inline" >&6
17141 case $ac_cv_c_inline in
17142 inline | yes) ;;
17144 case $ac_cv_c_inline in
17145 no) ac_val=;;
17146 *) ac_val=$ac_cv_c_inline;;
17147 esac
17148 cat >>confdefs.h <<_ACEOF
17149 #ifndef __cplusplus
17150 #define inline $ac_val
17151 #endif
17152 _ACEOF
17154 esac
17156 echo "$as_me:$LINENO: checking for mode_t" >&5
17157 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17158 if test "${ac_cv_type_mode_t+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h. */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 $ac_includes_default
17169 main ()
17171 if ((mode_t *) 0)
17172 return 0;
17173 if (sizeof (mode_t))
17174 return 0;
17176 return 0;
17178 _ACEOF
17179 rm -f conftest.$ac_objext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181 (eval $ac_compile) 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_type_mode_t=yes
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_cv_type_mode_t=no
17207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17210 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17211 if test $ac_cv_type_mode_t = yes; then
17213 cat >>confdefs.h <<_ACEOF
17214 #define HAVE_MODE_T 1
17215 _ACEOF
17219 echo "$as_me:$LINENO: checking for off_t" >&5
17220 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17221 if test "${ac_cv_type_off_t+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224 cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h. */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 $ac_includes_default
17232 main ()
17234 if ((off_t *) 0)
17235 return 0;
17236 if (sizeof (off_t))
17237 return 0;
17239 return 0;
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_off_t=yes
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_type_off_t=no
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17273 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17274 if test $ac_cv_type_off_t = yes; then
17276 cat >>confdefs.h <<_ACEOF
17277 #define HAVE_OFF_T 1
17278 _ACEOF
17282 echo "$as_me:$LINENO: checking for pid_t" >&5
17283 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17284 if test "${ac_cv_type_pid_t+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293 $ac_includes_default
17295 main ()
17297 if ((pid_t *) 0)
17298 return 0;
17299 if (sizeof (pid_t))
17300 return 0;
17302 return 0;
17304 _ACEOF
17305 rm -f conftest.$ac_objext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17307 (eval $ac_compile) 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
17314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_type_pid_t=yes
17327 else
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_type_pid_t=no
17333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17335 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17336 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17337 if test $ac_cv_type_pid_t = yes; then
17339 cat >>confdefs.h <<_ACEOF
17340 #define HAVE_PID_T 1
17341 _ACEOF
17345 echo "$as_me:$LINENO: checking for size_t" >&5
17346 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17347 if test "${ac_cv_type_size_t+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h. */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356 $ac_includes_default
17358 main ()
17360 if ((size_t *) 0)
17361 return 0;
17362 if (sizeof (size_t))
17363 return 0;
17365 return 0;
17367 _ACEOF
17368 rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest.$ac_objext'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; }; then
17389 ac_cv_type_size_t=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_cv_type_size_t=no
17396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17399 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17400 if test $ac_cv_type_size_t = yes; then
17402 cat >>confdefs.h <<_ACEOF
17403 #define HAVE_SIZE_T 1
17404 _ACEOF
17408 echo "$as_me:$LINENO: checking for ssize_t" >&5
17409 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17410 if test "${ac_cv_type_ssize_t+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 $ac_includes_default
17421 main ()
17423 if ((ssize_t *) 0)
17424 return 0;
17425 if (sizeof (ssize_t))
17426 return 0;
17428 return 0;
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
17440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; } &&
17446 { ac_try='test -s conftest.$ac_objext'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_type_ssize_t=yes
17453 else
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_type_ssize_t=no
17459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17461 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17462 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17463 if test $ac_cv_type_ssize_t = yes; then
17465 cat >>confdefs.h <<_ACEOF
17466 #define HAVE_SSIZE_T 1
17467 _ACEOF
17471 echo "$as_me:$LINENO: checking for long long" >&5
17472 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17473 if test "${ac_cv_type_long_long+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h. */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 $ac_includes_default
17484 main ()
17486 if ((long long *) 0)
17487 return 0;
17488 if (sizeof (long long))
17489 return 0;
17491 return 0;
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest.$ac_objext'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 ac_cv_type_long_long=yes
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_cv_type_long_long=no
17522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17524 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17525 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17526 if test $ac_cv_type_long_long = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define HAVE_LONG_LONG 1
17530 _ACEOF
17534 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17535 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17536 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 $ac_includes_default
17547 main ()
17549 if ((fsblkcnt_t *) 0)
17550 return 0;
17551 if (sizeof (fsblkcnt_t))
17552 return 0;
17554 return 0;
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17559 (eval $ac_compile) 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
17566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_cv_type_fsblkcnt_t=yes
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ac_cv_type_fsblkcnt_t=no
17585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17588 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17589 if test $ac_cv_type_fsblkcnt_t = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_FSBLKCNT_T 1
17593 _ACEOF
17597 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17598 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17599 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602 cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h. */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 $ac_includes_default
17610 main ()
17612 if ((fsfilcnt_t *) 0)
17613 return 0;
17614 if (sizeof (fsfilcnt_t))
17615 return 0;
17617 return 0;
17619 _ACEOF
17620 rm -f conftest.$ac_objext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622 (eval $ac_compile) 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest.$ac_objext'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 ac_cv_type_fsfilcnt_t=yes
17642 else
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_cv_type_fsfilcnt_t=no
17648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17650 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17651 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17652 if test $ac_cv_type_fsfilcnt_t = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define HAVE_FSFILCNT_T 1
17656 _ACEOF
17662 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17663 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17664 if test "${wine_cv_linux_input_h+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17674 #include <linux/input.h>
17677 main ()
17680 int foo = EVIOCGBIT(EV_ABS,42);
17681 int bar = BTN_PINKIE;
17682 int fortytwo = 42;
17685 return 0;
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 wine_cv_linux_input_h=yes
17710 else
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17714 wine_cv_linux_input_h=no
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17719 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17720 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17721 if test "$wine_cv_linux_input_h" = "yes"
17722 then
17724 cat >>confdefs.h <<\_ACEOF
17725 #define HAVE_CORRECT_LINUXINPUT_H 1
17726 _ACEOF
17731 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17732 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17733 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736 cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h. */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h. */
17743 #include <netdb.h>
17746 main ()
17749 char *name=NULL;
17750 struct hostent he;
17751 struct hostent *result;
17752 char *buf=NULL;
17753 int bufsize=0;
17754 int res,errnr;
17755 char *addr=NULL;
17756 int addrlen=0;
17757 int addrtype=0;
17758 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17759 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17762 return 0;
17764 _ACEOF
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767 (eval $ac_link) 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 wine_cv_linux_gethostbyname_r_6=yes
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 wine_cv_linux_gethostbyname_r_6=no
17794 rm -f conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17798 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17799 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17800 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17801 then
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17805 _ACEOF
17809 if test "$ac_cv_header_linux_joystick_h" = "yes"
17810 then
17811 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17812 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17813 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17823 #include <sys/ioctl.h>
17824 #include <linux/joystick.h>
17826 struct js_event blub;
17827 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17828 #error "no 2.2 header"
17829 #endif
17832 main ()
17834 /*empty*/
17836 return 0;
17838 _ACEOF
17839 rm -f conftest.$ac_objext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17841 (eval $ac_compile) 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 wine_cv_linux_joystick_22_api=yes
17861 else
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 wine_cv_linux_joystick_22_api=no
17867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17870 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17871 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17872 if test "$wine_cv_linux_joystick_22_api" = "yes"
17873 then
17875 cat >>confdefs.h <<\_ACEOF
17876 #define HAVE_LINUX_22_JOYSTICK_API 1
17877 _ACEOF
17883 if test "$ac_cv_header_sys_vfs_h" = "yes"
17884 then
17885 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17886 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17887 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17897 #include <sys/types.h>
17898 #ifdef HAVE_SYS_PARAM_H
17899 # include <sys/param.h>
17900 #endif
17901 #include <sys/vfs.h>
17904 main ()
17907 struct statfs stfs;
17909 memset(&stfs,0,sizeof(stfs));
17912 return 0;
17914 _ACEOF
17915 rm -f conftest.$ac_objext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17917 (eval $ac_compile) 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 wine_cv_sys_vfs_has_statfs=yes
17937 else
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 wine_cv_sys_vfs_has_statfs=no
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17947 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17948 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17949 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17950 then
17952 cat >>confdefs.h <<\_ACEOF
17953 #define STATFS_DEFINED_BY_SYS_VFS 1
17954 _ACEOF
17959 if test "$ac_cv_header_sys_statfs_h" = "yes"
17960 then
17961 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17962 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17963 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17973 #include <sys/types.h>
17974 #ifdef HAVE_SYS_PARAM_H
17975 # include <sys/param.h>
17976 #endif
17977 #include <sys/statfs.h>
17980 main ()
17983 struct statfs stfs;
17986 return 0;
17988 _ACEOF
17989 rm -f conftest.$ac_objext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17991 (eval $ac_compile) 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest.$ac_objext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 wine_cv_sys_statfs_has_statfs=yes
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 wine_cv_sys_statfs_has_statfs=no
18018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18021 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18022 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18023 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18024 then
18026 cat >>confdefs.h <<\_ACEOF
18027 #define STATFS_DEFINED_BY_SYS_STATFS 1
18028 _ACEOF
18033 if test "$ac_cv_header_sys_mount_h" = "yes"
18034 then
18035 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18036 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18037 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18047 #include <sys/types.h>
18048 #ifdef HAVE_SYS_PARAM_H
18049 # include <sys/param.h>
18050 #endif
18051 #include <sys/mount.h>
18054 main ()
18057 struct statfs stfs;
18060 return 0;
18062 _ACEOF
18063 rm -f conftest.$ac_objext
18064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18065 (eval $ac_compile) 2>conftest.er1
18066 ac_status=$?
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
18072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest.$ac_objext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 wine_cv_sys_mount_has_statfs=yes
18085 else
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 wine_cv_sys_mount_has_statfs=no
18092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18095 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18096 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18097 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18098 then
18100 cat >>confdefs.h <<\_ACEOF
18101 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18102 _ACEOF
18108 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18109 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18110 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 #include <sys/types.h>
18120 #ifdef HAVE_SYS_PARAM_H
18121 # include <sys/param.h>
18122 #endif
18123 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18124 # include <sys/mount.h>
18125 #else
18126 # ifdef STATFS_DEFINED_BY_SYS_VFS
18127 # include <sys/vfs.h>
18128 # else
18129 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18130 # include <sys/statfs.h>
18131 # endif
18132 # endif
18133 #endif
18136 main ()
18138 static struct statfs ac_aggr;
18139 if (ac_aggr.f_bfree)
18140 return 0;
18142 return 0;
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18147 (eval $ac_compile) 2>conftest.er1
18148 ac_status=$?
18149 grep -v '^ *+' conftest.er1 >conftest.err
18150 rm -f conftest.er1
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_member_struct_statfs_f_bfree=yes
18167 else
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h. */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 #include <sys/types.h>
18178 #ifdef HAVE_SYS_PARAM_H
18179 # include <sys/param.h>
18180 #endif
18181 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18182 # include <sys/mount.h>
18183 #else
18184 # ifdef STATFS_DEFINED_BY_SYS_VFS
18185 # include <sys/vfs.h>
18186 # else
18187 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18188 # include <sys/statfs.h>
18189 # endif
18190 # endif
18191 #endif
18194 main ()
18196 static struct statfs ac_aggr;
18197 if (sizeof ac_aggr.f_bfree)
18198 return 0;
18200 return 0;
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205 (eval $ac_compile) 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_member_struct_statfs_f_bfree=yes
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_cv_member_struct_statfs_f_bfree=no
18231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18236 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18237 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240 #define HAVE_STRUCT_STATFS_F_BFREE 1
18241 _ACEOF
18245 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18246 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18247 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 #include <sys/types.h>
18257 #ifdef HAVE_SYS_PARAM_H
18258 # include <sys/param.h>
18259 #endif
18260 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18261 # include <sys/mount.h>
18262 #else
18263 # ifdef STATFS_DEFINED_BY_SYS_VFS
18264 # include <sys/vfs.h>
18265 # else
18266 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18267 # include <sys/statfs.h>
18268 # endif
18269 # endif
18270 #endif
18273 main ()
18275 static struct statfs ac_aggr;
18276 if (ac_aggr.f_bavail)
18277 return 0;
18279 return 0;
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18284 (eval $ac_compile) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest.$ac_objext'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_member_struct_statfs_f_bavail=yes
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 #include <sys/types.h>
18315 #ifdef HAVE_SYS_PARAM_H
18316 # include <sys/param.h>
18317 #endif
18318 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18319 # include <sys/mount.h>
18320 #else
18321 # ifdef STATFS_DEFINED_BY_SYS_VFS
18322 # include <sys/vfs.h>
18323 # else
18324 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18325 # include <sys/statfs.h>
18326 # endif
18327 # endif
18328 #endif
18331 main ()
18333 static struct statfs ac_aggr;
18334 if (sizeof ac_aggr.f_bavail)
18335 return 0;
18337 return 0;
18339 _ACEOF
18340 rm -f conftest.$ac_objext
18341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18342 (eval $ac_compile) 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest.$ac_objext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 ac_cv_member_struct_statfs_f_bavail=yes
18362 else
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_cv_member_struct_statfs_f_bavail=no
18368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18372 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18373 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18374 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18376 cat >>confdefs.h <<_ACEOF
18377 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18378 _ACEOF
18382 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18383 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18384 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h. */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 #include <sys/types.h>
18394 #ifdef HAVE_SYS_PARAM_H
18395 # include <sys/param.h>
18396 #endif
18397 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18398 # include <sys/mount.h>
18399 #else
18400 # ifdef STATFS_DEFINED_BY_SYS_VFS
18401 # include <sys/vfs.h>
18402 # else
18403 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18404 # include <sys/statfs.h>
18405 # endif
18406 # endif
18407 #endif
18410 main ()
18412 static struct statfs ac_aggr;
18413 if (ac_aggr.f_frsize)
18414 return 0;
18416 return 0;
18418 _ACEOF
18419 rm -f conftest.$ac_objext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18421 (eval $ac_compile) 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_cv_member_struct_statfs_f_frsize=yes
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h. */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 #include <sys/types.h>
18452 #ifdef HAVE_SYS_PARAM_H
18453 # include <sys/param.h>
18454 #endif
18455 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18456 # include <sys/mount.h>
18457 #else
18458 # ifdef STATFS_DEFINED_BY_SYS_VFS
18459 # include <sys/vfs.h>
18460 # else
18461 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18462 # include <sys/statfs.h>
18463 # endif
18464 # endif
18465 #endif
18468 main ()
18470 static struct statfs ac_aggr;
18471 if (sizeof ac_aggr.f_frsize)
18472 return 0;
18474 return 0;
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18479 (eval $ac_compile) 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try='test -s conftest.$ac_objext'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 ac_cv_member_struct_statfs_f_frsize=yes
18499 else
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 ac_cv_member_struct_statfs_f_frsize=no
18505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18509 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18510 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18511 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18513 cat >>confdefs.h <<_ACEOF
18514 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18515 _ACEOF
18519 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18520 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18521 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 else
18524 cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h. */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 #include <sys/types.h>
18531 #ifdef HAVE_SYS_PARAM_H
18532 # include <sys/param.h>
18533 #endif
18534 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18535 # include <sys/mount.h>
18536 #else
18537 # ifdef STATFS_DEFINED_BY_SYS_VFS
18538 # include <sys/vfs.h>
18539 # else
18540 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18541 # include <sys/statfs.h>
18542 # endif
18543 # endif
18544 #endif
18547 main ()
18549 static struct statfs ac_aggr;
18550 if (ac_aggr.f_ffree)
18551 return 0;
18553 return 0;
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18558 (eval $ac_compile) 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
18565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_cv_member_struct_statfs_f_ffree=yes
18578 else
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <sys/types.h>
18589 #ifdef HAVE_SYS_PARAM_H
18590 # include <sys/param.h>
18591 #endif
18592 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18593 # include <sys/mount.h>
18594 #else
18595 # ifdef STATFS_DEFINED_BY_SYS_VFS
18596 # include <sys/vfs.h>
18597 # else
18598 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18599 # include <sys/statfs.h>
18600 # endif
18601 # endif
18602 #endif
18605 main ()
18607 static struct statfs ac_aggr;
18608 if (sizeof ac_aggr.f_ffree)
18609 return 0;
18611 return 0;
18613 _ACEOF
18614 rm -f conftest.$ac_objext
18615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_member_struct_statfs_f_ffree=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ac_cv_member_struct_statfs_f_ffree=no
18642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18646 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18647 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18648 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18650 cat >>confdefs.h <<_ACEOF
18651 #define HAVE_STRUCT_STATFS_F_FFREE 1
18652 _ACEOF
18656 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18657 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18658 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661 cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h. */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18667 #include <sys/types.h>
18668 #ifdef HAVE_SYS_PARAM_H
18669 # include <sys/param.h>
18670 #endif
18671 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18672 # include <sys/mount.h>
18673 #else
18674 # ifdef STATFS_DEFINED_BY_SYS_VFS
18675 # include <sys/vfs.h>
18676 # else
18677 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18678 # include <sys/statfs.h>
18679 # endif
18680 # endif
18681 #endif
18684 main ()
18686 static struct statfs ac_aggr;
18687 if (ac_aggr.f_favail)
18688 return 0;
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18695 (eval $ac_compile) 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest.$ac_objext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_member_struct_statfs_f_favail=yes
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <sys/types.h>
18726 #ifdef HAVE_SYS_PARAM_H
18727 # include <sys/param.h>
18728 #endif
18729 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18730 # include <sys/mount.h>
18731 #else
18732 # ifdef STATFS_DEFINED_BY_SYS_VFS
18733 # include <sys/vfs.h>
18734 # else
18735 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18736 # include <sys/statfs.h>
18737 # endif
18738 # endif
18739 #endif
18742 main ()
18744 static struct statfs ac_aggr;
18745 if (sizeof ac_aggr.f_favail)
18746 return 0;
18748 return 0;
18750 _ACEOF
18751 rm -f conftest.$ac_objext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753 (eval $ac_compile) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_member_struct_statfs_f_favail=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_cv_member_struct_statfs_f_favail=no
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18784 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18785 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18789 _ACEOF
18793 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18794 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18795 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 #include <sys/types.h>
18805 #ifdef HAVE_SYS_PARAM_H
18806 # include <sys/param.h>
18807 #endif
18808 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18809 # include <sys/mount.h>
18810 #else
18811 # ifdef STATFS_DEFINED_BY_SYS_VFS
18812 # include <sys/vfs.h>
18813 # else
18814 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18815 # include <sys/statfs.h>
18816 # endif
18817 # endif
18818 #endif
18821 main ()
18823 static struct statfs ac_aggr;
18824 if (ac_aggr.f_namelen)
18825 return 0;
18827 return 0;
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18832 (eval $ac_compile) 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_member_struct_statfs_f_namelen=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 #include <sys/types.h>
18863 #ifdef HAVE_SYS_PARAM_H
18864 # include <sys/param.h>
18865 #endif
18866 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18867 # include <sys/mount.h>
18868 #else
18869 # ifdef STATFS_DEFINED_BY_SYS_VFS
18870 # include <sys/vfs.h>
18871 # else
18872 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18873 # include <sys/statfs.h>
18874 # endif
18875 # endif
18876 #endif
18879 main ()
18881 static struct statfs ac_aggr;
18882 if (sizeof ac_aggr.f_namelen)
18883 return 0;
18885 return 0;
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18890 (eval $ac_compile) 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_member_struct_statfs_f_namelen=yes
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_member_struct_statfs_f_namelen=no
18916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18921 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18922 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18926 _ACEOF
18932 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18933 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18934 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 #ifdef HAVE_SYS_STATVFS_H
18944 #include <sys/statvfs.h>
18945 #endif
18948 main ()
18950 static struct statvfs ac_aggr;
18951 if (ac_aggr.f_blocks)
18952 return 0;
18954 return 0;
18956 _ACEOF
18957 rm -f conftest.$ac_objext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959 (eval $ac_compile) 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest.$ac_objext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_member_struct_statvfs_f_blocks=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 #ifdef HAVE_SYS_STATVFS_H
18990 #include <sys/statvfs.h>
18991 #endif
18994 main ()
18996 static struct statvfs ac_aggr;
18997 if (sizeof ac_aggr.f_blocks)
18998 return 0;
19000 return 0;
19002 _ACEOF
19003 rm -f conftest.$ac_objext
19004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19005 (eval $ac_compile) 2>conftest.er1
19006 ac_status=$?
19007 grep -v '^ *+' conftest.er1 >conftest.err
19008 rm -f conftest.er1
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } &&
19012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_member_struct_statvfs_f_blocks=yes
19025 else
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 ac_cv_member_struct_statvfs_f_blocks=no
19031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19036 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19037 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19041 _ACEOF
19047 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19048 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19049 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h. */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058 #include <sys/types.h>
19059 #ifdef HAVE_SYS_SOCKET_H
19060 # include <sys/socket.h>
19061 #endif
19062 #ifdef HAVE_SYS_UN_H
19063 # include <sys/un.h>
19064 #endif
19067 main ()
19069 static struct msghdr ac_aggr;
19070 if (ac_aggr.msg_accrights)
19071 return 0;
19073 return 0;
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19079 ac_status=$?
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_member_struct_msghdr_msg_accrights=yes
19098 else
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h. */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 #include <sys/types.h>
19109 #ifdef HAVE_SYS_SOCKET_H
19110 # include <sys/socket.h>
19111 #endif
19112 #ifdef HAVE_SYS_UN_H
19113 # include <sys/un.h>
19114 #endif
19117 main ()
19119 static struct msghdr ac_aggr;
19120 if (sizeof ac_aggr.msg_accrights)
19121 return 0;
19123 return 0;
19125 _ACEOF
19126 rm -f conftest.$ac_objext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19128 (eval $ac_compile) 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest.$ac_objext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_member_struct_msghdr_msg_accrights=yes
19148 else
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 ac_cv_member_struct_msghdr_msg_accrights=no
19154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19159 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19160 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19162 cat >>confdefs.h <<_ACEOF
19163 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19164 _ACEOF
19168 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19169 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19170 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 #include <sys/types.h>
19180 #ifdef HAVE_SYS_SOCKET_H
19181 # include <sys/socket.h>
19182 #endif
19183 #ifdef HAVE_SYS_UN_H
19184 # include <sys/un.h>
19185 #endif
19188 main ()
19190 static struct sockaddr ac_aggr;
19191 if (ac_aggr.sa_len)
19192 return 0;
19194 return 0;
19196 _ACEOF
19197 rm -f conftest.$ac_objext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19199 (eval $ac_compile) 2>conftest.er1
19200 ac_status=$?
19201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
19206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_cv_member_struct_sockaddr_sa_len=yes
19219 else
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 #include <sys/types.h>
19230 #ifdef HAVE_SYS_SOCKET_H
19231 # include <sys/socket.h>
19232 #endif
19233 #ifdef HAVE_SYS_UN_H
19234 # include <sys/un.h>
19235 #endif
19238 main ()
19240 static struct sockaddr ac_aggr;
19241 if (sizeof ac_aggr.sa_len)
19242 return 0;
19244 return 0;
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249 (eval $ac_compile) 2>conftest.er1
19250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_cv_member_struct_sockaddr_sa_len=yes
19269 else
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_cv_member_struct_sockaddr_sa_len=no
19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19279 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19280 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19281 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19285 _ACEOF
19289 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19290 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19291 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <sys/types.h>
19301 #ifdef HAVE_SYS_SOCKET_H
19302 # include <sys/socket.h>
19303 #endif
19304 #ifdef HAVE_SYS_UN_H
19305 # include <sys/un.h>
19306 #endif
19309 main ()
19311 static struct sockaddr_un ac_aggr;
19312 if (ac_aggr.sun_len)
19313 return 0;
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>conftest.er1
19321 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try='test -s conftest.$ac_objext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 ac_cv_member_struct_sockaddr_un_sun_len=yes
19340 else
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 #include <sys/types.h>
19351 #ifdef HAVE_SYS_SOCKET_H
19352 # include <sys/socket.h>
19353 #endif
19354 #ifdef HAVE_SYS_UN_H
19355 # include <sys/un.h>
19356 #endif
19359 main ()
19361 static struct sockaddr_un ac_aggr;
19362 if (sizeof ac_aggr.sun_len)
19363 return 0;
19365 return 0;
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19370 (eval $ac_compile) 2>conftest.er1
19371 ac_status=$?
19372 grep -v '^ *+' conftest.er1 >conftest.err
19373 rm -f conftest.er1
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_member_struct_sockaddr_un_sun_len=yes
19390 else
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_cv_member_struct_sockaddr_un_sun_len=no
19396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19400 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19401 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19402 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19404 cat >>confdefs.h <<_ACEOF
19405 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19406 _ACEOF
19412 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19413 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19414 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h. */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <signal.h>
19426 main ()
19428 static siginfo_t ac_aggr;
19429 if (ac_aggr.si_fd)
19430 return 0;
19432 return 0;
19434 _ACEOF
19435 rm -f conftest.$ac_objext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19437 (eval $ac_compile) 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest.$ac_objext'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
19456 ac_cv_member_siginfo_t_si_fd=yes
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <signal.h>
19470 main ()
19472 static siginfo_t ac_aggr;
19473 if (sizeof ac_aggr.si_fd)
19474 return 0;
19476 return 0;
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19481 (eval $ac_compile) 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_cv_member_siginfo_t_si_fd=yes
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_member_siginfo_t_si_fd=no
19507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19511 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19512 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19513 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_SIGINFO_T_SI_FD 1
19517 _ACEOF
19523 echo "$as_me:$LINENO: checking for struct option.name" >&5
19524 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19525 if test "${ac_cv_member_struct_option_name+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528 cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h. */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19534 #ifdef HAVE_GETOPT_H
19535 #include <getopt.h>
19536 #endif
19539 main ()
19541 static struct option ac_aggr;
19542 if (ac_aggr.name)
19543 return 0;
19545 return 0;
19547 _ACEOF
19548 rm -f conftest.$ac_objext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_member_struct_option_name=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #ifdef HAVE_GETOPT_H
19581 #include <getopt.h>
19582 #endif
19585 main ()
19587 static struct option ac_aggr;
19588 if (sizeof ac_aggr.name)
19589 return 0;
19591 return 0;
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596 (eval $ac_compile) 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615 ac_cv_member_struct_option_name=yes
19616 else
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19620 ac_cv_member_struct_option_name=no
19622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19626 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19627 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19628 if test $ac_cv_member_struct_option_name = yes; then
19630 cat >>confdefs.h <<_ACEOF
19631 #define HAVE_STRUCT_OPTION_NAME 1
19632 _ACEOF
19638 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19639 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19640 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 $ac_includes_default
19651 main ()
19653 static struct stat ac_aggr;
19654 if (ac_aggr.st_blocks)
19655 return 0;
19657 return 0;
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19662 (eval $ac_compile) 2>conftest.er1
19663 ac_status=$?
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try='test -s conftest.$ac_objext'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 ac_cv_member_struct_stat_st_blocks=yes
19682 else
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 $ac_includes_default
19694 main ()
19696 static struct stat ac_aggr;
19697 if (sizeof ac_aggr.st_blocks)
19698 return 0;
19700 return 0;
19702 _ACEOF
19703 rm -f conftest.$ac_objext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_member_struct_stat_st_blocks=yes
19725 else
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_member_struct_stat_st_blocks=no
19731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19736 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19737 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19741 _ACEOF
19748 case $host_cpu in
19749 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19750 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19751 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760 #ifndef __i386__
19762 #endif
19763 _ACEOF
19764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19765 $EGREP "yes" >/dev/null 2>&1; then
19766 ac_cv_cpp_def___i386__=yes
19767 else
19768 ac_cv_cpp_def___i386__=no
19770 rm -f conftest*
19773 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19774 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19775 if test $ac_cv_cpp_def___i386__ = yes; then
19776 CFLAGS="$CFLAGS -D__i386__"
19777 LINTFLAGS="$LINTFLAGS -D__i386__"
19780 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19781 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19782 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 #ifndef __ALPHA__
19793 #endif
19794 _ACEOF
19795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19796 $EGREP "yes" >/dev/null 2>&1; then
19797 ac_cv_cpp_def___ALPHA__=yes
19798 else
19799 ac_cv_cpp_def___ALPHA__=no
19801 rm -f conftest*
19804 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19805 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19806 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19807 CFLAGS="$CFLAGS -D__ALPHA__"
19808 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19811 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19812 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19813 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 #ifndef __sparc__
19824 #endif
19825 _ACEOF
19826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19827 $EGREP "yes" >/dev/null 2>&1; then
19828 ac_cv_cpp_def___sparc__=yes
19829 else
19830 ac_cv_cpp_def___sparc__=no
19832 rm -f conftest*
19835 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19836 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19837 if test $ac_cv_cpp_def___sparc__ = yes; then
19838 CFLAGS="$CFLAGS -D__sparc__"
19839 LINTFLAGS="$LINTFLAGS -D__sparc__"
19842 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19843 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19844 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 #ifndef __powerpc__
19855 #endif
19856 _ACEOF
19857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19858 $EGREP "yes" >/dev/null 2>&1; then
19859 ac_cv_cpp_def___powerpc__=yes
19860 else
19861 ac_cv_cpp_def___powerpc__=no
19863 rm -f conftest*
19866 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19867 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19868 if test $ac_cv_cpp_def___powerpc__ = yes; then
19869 CFLAGS="$CFLAGS -D__powerpc__"
19870 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19873 esac
19875 case $host_vendor in
19876 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19877 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19878 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #ifndef __sun__
19889 #endif
19890 _ACEOF
19891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19892 $EGREP "yes" >/dev/null 2>&1; then
19893 ac_cv_cpp_def___sun__=yes
19894 else
19895 ac_cv_cpp_def___sun__=no
19897 rm -f conftest*
19900 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19901 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19902 if test $ac_cv_cpp_def___sun__ = yes; then
19903 CFLAGS="$CFLAGS -D__sun__"
19904 LINTFLAGS="$LINTFLAGS -D__sun__"
19907 esac
19913 ac_config_commands="$ac_config_commands controls"
19915 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19917 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19919 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19921 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19923 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19925 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19927 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19929 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19931 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19933 ac_config_commands="$ac_config_commands dlls/user/dde"
19935 ac_config_commands="$ac_config_commands dlls/user/resources"
19937 ac_config_commands="$ac_config_commands dlls/wineps/data"
19939 ac_config_commands="$ac_config_commands files"
19941 ac_config_commands="$ac_config_commands include/wine"
19943 ac_config_commands="$ac_config_commands misc"
19945 ac_config_commands="$ac_config_commands objects"
19947 ac_config_commands="$ac_config_commands programs/regedit/tests"
19949 ac_config_commands="$ac_config_commands windows"
19952 MAKE_RULES=Make.rules
19955 MAKE_DLL_RULES=dlls/Makedll.rules
19958 MAKE_TEST_RULES=dlls/Maketest.rules
19961 MAKE_LIB_RULES=libs/Makelib.rules
19964 MAKE_PROG_RULES=programs/Makeprog.rules
19967 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/amstream/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/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/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/version/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
19970 cat >confcache <<\_ACEOF
19971 # This file is a shell script that caches the results of configure
19972 # tests run on this system so they can be shared between configure
19973 # scripts and configure runs, see configure's option --config-cache.
19974 # It is not useful on other systems. If it contains results you don't
19975 # want to keep, you may remove or edit it.
19977 # config.status only pays attention to the cache file if you give it
19978 # the --recheck option to rerun configure.
19980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19982 # following values.
19984 _ACEOF
19986 # The following way of writing the cache mishandles newlines in values,
19987 # but we know of no workaround that is simple, portable, and efficient.
19988 # So, don't put newlines in cache variables' values.
19989 # Ultrix sh set writes to stderr and can't be redirected directly,
19990 # and sets the high bit in the cache file unless we assign to the vars.
19992 (set) 2>&1 |
19993 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19994 *ac_space=\ *)
19995 # `set' does not quote correctly, so add quotes (double-quote
19996 # substitution turns \\\\ into \\, and sed turns \\ into \).
19997 sed -n \
19998 "s/'/'\\\\''/g;
19999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20002 # `set' quotes correctly as required by POSIX, so do not add quotes.
20003 sed -n \
20004 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20006 esac;
20008 sed '
20009 t clear
20010 : clear
20011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20012 t end
20013 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20014 : end' >>confcache
20015 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20016 if test -w $cache_file; then
20017 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20018 cat confcache >$cache_file
20019 else
20020 echo "not updating unwritable cache $cache_file"
20023 rm -f confcache
20025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20026 # Let make expand exec_prefix.
20027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20031 # trailing colons and then remove the whole line if VPATH becomes empty
20032 # (actually we leave an empty line to preserve line numbers).
20033 if test "x$srcdir" = x.; then
20034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20035 s/:*\$(srcdir):*/:/;
20036 s/:*\${srcdir}:*/:/;
20037 s/:*@srcdir@:*/:/;
20038 s/^\([^=]*=[ ]*\):*/\1/;
20039 s/:*$//;
20040 s/^[^=]*=[ ]*$//;
20044 DEFS=-DHAVE_CONFIG_H
20046 ac_libobjs=
20047 ac_ltlibobjs=
20048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20049 # 1. Remove the extension, and $U if already installed.
20050 ac_i=`echo "$ac_i" |
20051 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20052 # 2. Add them.
20053 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20054 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20055 done
20056 LIBOBJS=$ac_libobjs
20058 LTLIBOBJS=$ac_ltlibobjs
20062 : ${CONFIG_STATUS=./config.status}
20063 ac_clean_files_save=$ac_clean_files
20064 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20065 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20066 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20067 cat >$CONFIG_STATUS <<_ACEOF
20068 #! $SHELL
20069 # Generated by $as_me.
20070 # Run this file to recreate the current configuration.
20071 # Compiler output produced by configure, useful for debugging
20072 # configure, is in config.log if it exists.
20074 debug=false
20075 ac_cs_recheck=false
20076 ac_cs_silent=false
20077 SHELL=\${CONFIG_SHELL-$SHELL}
20078 _ACEOF
20080 cat >>$CONFIG_STATUS <<\_ACEOF
20081 ## --------------------- ##
20082 ## M4sh Initialization. ##
20083 ## --------------------- ##
20085 # Be Bourne compatible
20086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20087 emulate sh
20088 NULLCMD=:
20089 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20090 # is contrary to our usage. Disable this feature.
20091 alias -g '${1+"$@"}'='"$@"'
20092 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20093 set -o posix
20095 DUALCASE=1; export DUALCASE # for MKS sh
20097 # Support unset when possible.
20098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20099 as_unset=unset
20100 else
20101 as_unset=false
20105 # Work around bugs in pre-3.0 UWIN ksh.
20106 $as_unset ENV MAIL MAILPATH
20107 PS1='$ '
20108 PS2='> '
20109 PS4='+ '
20111 # NLS nuisances.
20112 for as_var in \
20113 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20114 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20115 LC_TELEPHONE LC_TIME
20117 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20118 eval $as_var=C; export $as_var
20119 else
20120 $as_unset $as_var
20122 done
20124 # Required to use basename.
20125 if expr a : '\(a\)' >/dev/null 2>&1; then
20126 as_expr=expr
20127 else
20128 as_expr=false
20131 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20132 as_basename=basename
20133 else
20134 as_basename=false
20138 # Name of the executable.
20139 as_me=`$as_basename "$0" ||
20140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20141 X"$0" : 'X\(//\)$' \| \
20142 X"$0" : 'X\(/\)$' \| \
20143 . : '\(.\)' 2>/dev/null ||
20144 echo X/"$0" |
20145 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20146 /^X\/\(\/\/\)$/{ s//\1/; q; }
20147 /^X\/\(\/\).*/{ s//\1/; q; }
20148 s/.*/./; q'`
20151 # PATH needs CR, and LINENO needs CR and PATH.
20152 # Avoid depending upon Character Ranges.
20153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20156 as_cr_digits='0123456789'
20157 as_cr_alnum=$as_cr_Letters$as_cr_digits
20159 # The user is always right.
20160 if test "${PATH_SEPARATOR+set}" != set; then
20161 echo "#! /bin/sh" >conf$$.sh
20162 echo "exit 0" >>conf$$.sh
20163 chmod +x conf$$.sh
20164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20165 PATH_SEPARATOR=';'
20166 else
20167 PATH_SEPARATOR=:
20169 rm -f conf$$.sh
20173 as_lineno_1=$LINENO
20174 as_lineno_2=$LINENO
20175 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20176 test "x$as_lineno_1" != "x$as_lineno_2" &&
20177 test "x$as_lineno_3" = "x$as_lineno_2" || {
20178 # Find who we are. Look in the path if we contain no path at all
20179 # relative or not.
20180 case $0 in
20181 *[\\/]* ) as_myself=$0 ;;
20182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20183 for as_dir in $PATH
20185 IFS=$as_save_IFS
20186 test -z "$as_dir" && as_dir=.
20187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20188 done
20191 esac
20192 # We did not find ourselves, most probably we were run as `sh COMMAND'
20193 # in which case we are not to be found in the path.
20194 if test "x$as_myself" = x; then
20195 as_myself=$0
20197 if test ! -f "$as_myself"; then
20198 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20199 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20200 { (exit 1); exit 1; }; }
20202 case $CONFIG_SHELL in
20204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20207 IFS=$as_save_IFS
20208 test -z "$as_dir" && as_dir=.
20209 for as_base in sh bash ksh sh5; do
20210 case $as_dir in
20212 if ("$as_dir/$as_base" -c '
20213 as_lineno_1=$LINENO
20214 as_lineno_2=$LINENO
20215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20216 test "x$as_lineno_1" != "x$as_lineno_2" &&
20217 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20218 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20219 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20220 CONFIG_SHELL=$as_dir/$as_base
20221 export CONFIG_SHELL
20222 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20223 fi;;
20224 esac
20225 done
20226 done
20228 esac
20230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20231 # uniformly replaced by the line number. The first 'sed' inserts a
20232 # line-number line before each line; the second 'sed' does the real
20233 # work. The second script uses 'N' to pair each line-number line
20234 # with the numbered line, and appends trailing '-' during
20235 # substitution so that $LINENO is not a special case at line end.
20236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20237 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20238 sed '=' <$as_myself |
20239 sed '
20241 s,$,-,
20242 : loop
20243 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20244 t loop
20245 s,-$,,
20246 s,^['$as_cr_digits']*\n,,
20247 ' >$as_me.lineno &&
20248 chmod +x $as_me.lineno ||
20249 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20250 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20251 { (exit 1); exit 1; }; }
20253 # Don't try to exec as it changes $[0], causing all sort of problems
20254 # (the dirname of $[0] is not the place where we might find the
20255 # original and so on. Autoconf is especially sensible to this).
20256 . ./$as_me.lineno
20257 # Exit status is that of the last command.
20258 exit
20262 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20263 *c*,-n*) ECHO_N= ECHO_C='
20264 ' ECHO_T=' ' ;;
20265 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20266 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20267 esac
20269 if expr a : '\(a\)' >/dev/null 2>&1; then
20270 as_expr=expr
20271 else
20272 as_expr=false
20275 rm -f conf$$ conf$$.exe conf$$.file
20276 echo >conf$$.file
20277 if ln -s conf$$.file conf$$ 2>/dev/null; then
20278 # We could just check for DJGPP; but this test a) works b) is more generic
20279 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20280 if test -f conf$$.exe; then
20281 # Don't use ln at all; we don't have any links
20282 as_ln_s='cp -p'
20283 else
20284 as_ln_s='ln -s'
20286 elif ln conf$$.file conf$$ 2>/dev/null; then
20287 as_ln_s=ln
20288 else
20289 as_ln_s='cp -p'
20291 rm -f conf$$ conf$$.exe conf$$.file
20293 if mkdir -p . 2>/dev/null; then
20294 as_mkdir_p=:
20295 else
20296 test -d ./-p && rmdir ./-p
20297 as_mkdir_p=false
20300 as_executable_p="test -f"
20302 # Sed expression to map a string onto a valid CPP name.
20303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20305 # Sed expression to map a string onto a valid variable name.
20306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20309 # IFS
20310 # We need space, tab and new line, in precisely that order.
20311 as_nl='
20313 IFS=" $as_nl"
20315 # CDPATH.
20316 $as_unset CDPATH
20318 exec 6>&1
20320 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20321 # report actual input values of CONFIG_FILES etc. instead of their
20322 # values after options handling. Logging --version etc. is OK.
20323 exec 5>>config.log
20325 echo
20326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20327 ## Running $as_me. ##
20328 _ASBOX
20329 } >&5
20330 cat >&5 <<_CSEOF
20332 This file was extended by Wine $as_me 20040309, which was
20333 generated by GNU Autoconf 2.59. Invocation command line was
20335 CONFIG_FILES = $CONFIG_FILES
20336 CONFIG_HEADERS = $CONFIG_HEADERS
20337 CONFIG_LINKS = $CONFIG_LINKS
20338 CONFIG_COMMANDS = $CONFIG_COMMANDS
20339 $ $0 $@
20341 _CSEOF
20342 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20343 echo >&5
20344 _ACEOF
20346 # Files that config.status was made for.
20347 if test -n "$ac_config_files"; then
20348 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20351 if test -n "$ac_config_headers"; then
20352 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20355 if test -n "$ac_config_links"; then
20356 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20359 if test -n "$ac_config_commands"; then
20360 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20363 cat >>$CONFIG_STATUS <<\_ACEOF
20365 ac_cs_usage="\
20366 \`$as_me' instantiates files from templates according to the
20367 current configuration.
20369 Usage: $0 [OPTIONS] [FILE]...
20371 -h, --help print this help, then exit
20372 -V, --version print version number, then exit
20373 -q, --quiet do not print progress messages
20374 -d, --debug don't remove temporary files
20375 --recheck update $as_me by reconfiguring in the same conditions
20376 --file=FILE[:TEMPLATE]
20377 instantiate the configuration file FILE
20378 --header=FILE[:TEMPLATE]
20379 instantiate the configuration header FILE
20381 Configuration files:
20382 $config_files
20384 Configuration headers:
20385 $config_headers
20387 Configuration commands:
20388 $config_commands
20390 Report bugs to <bug-autoconf@gnu.org>."
20391 _ACEOF
20393 cat >>$CONFIG_STATUS <<_ACEOF
20394 ac_cs_version="\\
20395 Wine config.status 20040309
20396 configured by $0, generated by GNU Autoconf 2.59,
20397 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20399 Copyright (C) 2003 Free Software Foundation, Inc.
20400 This config.status script is free software; the Free Software Foundation
20401 gives unlimited permission to copy, distribute and modify it."
20402 srcdir=$srcdir
20403 INSTALL="$INSTALL"
20404 _ACEOF
20406 cat >>$CONFIG_STATUS <<\_ACEOF
20407 # If no file are specified by the user, then we need to provide default
20408 # value. By we need to know if files were specified by the user.
20409 ac_need_defaults=:
20410 while test $# != 0
20412 case $1 in
20413 --*=*)
20414 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20415 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20416 ac_shift=:
20419 ac_option=$1
20420 ac_optarg=$2
20421 ac_shift=shift
20423 *) # This is not an option, so the user has probably given explicit
20424 # arguments.
20425 ac_option=$1
20426 ac_need_defaults=false;;
20427 esac
20429 case $ac_option in
20430 # Handling of the options.
20431 _ACEOF
20432 cat >>$CONFIG_STATUS <<\_ACEOF
20433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20434 ac_cs_recheck=: ;;
20435 --version | --vers* | -V )
20436 echo "$ac_cs_version"; exit 0 ;;
20437 --he | --h)
20438 # Conflict between --help and --header
20439 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20440 Try \`$0 --help' for more information." >&5
20441 echo "$as_me: error: ambiguous option: $1
20442 Try \`$0 --help' for more information." >&2;}
20443 { (exit 1); exit 1; }; };;
20444 --help | --hel | -h )
20445 echo "$ac_cs_usage"; exit 0 ;;
20446 --debug | --d* | -d )
20447 debug=: ;;
20448 --file | --fil | --fi | --f )
20449 $ac_shift
20450 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20451 ac_need_defaults=false;;
20452 --header | --heade | --head | --hea )
20453 $ac_shift
20454 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20455 ac_need_defaults=false;;
20456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20458 ac_cs_silent=: ;;
20460 # This is an error.
20461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20462 Try \`$0 --help' for more information." >&5
20463 echo "$as_me: error: unrecognized option: $1
20464 Try \`$0 --help' for more information." >&2;}
20465 { (exit 1); exit 1; }; } ;;
20467 *) ac_config_targets="$ac_config_targets $1" ;;
20469 esac
20470 shift
20471 done
20473 ac_configure_extra_args=
20475 if $ac_cs_silent; then
20476 exec 6>/dev/null
20477 ac_configure_extra_args="$ac_configure_extra_args --silent"
20480 _ACEOF
20481 cat >>$CONFIG_STATUS <<_ACEOF
20482 if \$ac_cs_recheck; then
20483 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20484 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20487 _ACEOF
20493 cat >>$CONFIG_STATUS <<\_ACEOF
20494 for ac_config_target in $ac_config_targets
20496 case "$ac_config_target" in
20497 # Handling of arguments.
20498 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20499 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20500 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20501 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20502 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20503 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20504 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20505 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20506 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20507 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20508 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20509 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20510 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20511 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20512 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20513 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20514 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20515 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20516 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20517 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20518 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20519 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20520 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20521 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20522 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20523 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20524 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20525 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20526 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20527 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20528 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20529 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20530 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20531 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20532 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20533 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20534 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20535 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20536 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20537 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20538 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20539 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20540 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20541 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20542 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20543 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20544 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20545 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20546 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20547 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20548 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20549 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20550 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20551 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20552 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20553 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20554 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20555 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20556 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20557 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20558 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20559 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20560 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20561 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20562 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20563 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20564 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20565 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20566 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20567 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20568 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20569 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20570 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20571 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20572 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20573 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20574 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20575 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20576 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20577 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20578 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20579 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20580 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20581 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20582 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20583 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20584 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20585 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20586 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20587 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20588 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20589 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20590 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20591 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20592 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20593 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20594 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20595 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20596 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20597 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20598 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20599 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20600 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20601 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20602 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20603 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20604 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20605 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20606 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20607 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20608 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20609 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20610 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20611 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20612 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20613 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20614 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20615 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20616 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20617 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20618 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20619 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20620 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20621 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20622 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20623 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20624 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20625 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20626 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20627 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20628 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20629 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20630 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20631 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20632 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20633 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20634 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20635 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20636 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20637 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20638 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20639 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20640 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20641 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20642 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20643 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20644 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20645 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20646 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20647 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20648 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20649 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20650 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20651 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20652 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20653 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20654 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20655 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20656 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20657 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20658 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20659 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20660 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20661 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20662 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20663 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20664 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20665 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20666 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20667 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20668 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20669 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20670 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20671 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20672 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20673 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20674 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20675 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20676 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20677 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20678 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20679 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20680 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20681 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20682 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20683 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20684 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20685 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20686 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20687 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20688 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20689 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20690 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20691 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20692 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20693 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20694 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20695 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20696 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20697 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20698 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20699 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20700 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20701 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20702 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20703 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20704 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20705 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20706 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20707 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20708 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20709 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20710 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20711 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20712 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20713 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20714 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20715 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20716 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20717 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20718 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20719 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
20720 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20721 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20722 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20723 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20724 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20725 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20726 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20727 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20728 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20729 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20730 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20731 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20732 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
20733 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20734 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20735 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20736 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20737 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20738 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20740 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20741 { (exit 1); exit 1; }; };;
20742 esac
20743 done
20745 # If the user did not use the arguments to specify the items to instantiate,
20746 # then the envvar interface is used. Set only those that are not.
20747 # We use the long form for the default assignment because of an extremely
20748 # bizarre bug on SunOS 4.1.3.
20749 if $ac_need_defaults; then
20750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20755 # Have a temporary directory for convenience. Make it in the build tree
20756 # simply because there is no reason to put it here, and in addition,
20757 # creating and moving files from /tmp can sometimes cause problems.
20758 # Create a temporary directory, and hook for its removal unless debugging.
20759 $debug ||
20761 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20762 trap '{ (exit 1); exit 1; }' 1 2 13 15
20765 # Create a (secure) tmp directory for tmp files.
20768 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20769 test -n "$tmp" && test -d "$tmp"
20770 } ||
20772 tmp=./confstat$$-$RANDOM
20773 (umask 077 && mkdir $tmp)
20774 } ||
20776 echo "$me: cannot create a temporary directory in ." >&2
20777 { (exit 1); exit 1; }
20780 _ACEOF
20782 cat >>$CONFIG_STATUS <<_ACEOF
20785 # CONFIG_FILES section.
20788 # No need to generate the scripts if there are no CONFIG_FILES.
20789 # This happens for instance when ./config.status config.h
20790 if test -n "\$CONFIG_FILES"; then
20791 # Protect against being on the right side of a sed subst in config.status.
20792 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20793 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20794 s,@SHELL@,$SHELL,;t t
20795 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20796 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20797 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20798 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20799 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20800 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20801 s,@exec_prefix@,$exec_prefix,;t t
20802 s,@prefix@,$prefix,;t t
20803 s,@program_transform_name@,$program_transform_name,;t t
20804 s,@bindir@,$bindir,;t t
20805 s,@sbindir@,$sbindir,;t t
20806 s,@libexecdir@,$libexecdir,;t t
20807 s,@datadir@,$datadir,;t t
20808 s,@sysconfdir@,$sysconfdir,;t t
20809 s,@sharedstatedir@,$sharedstatedir,;t t
20810 s,@localstatedir@,$localstatedir,;t t
20811 s,@libdir@,$libdir,;t t
20812 s,@includedir@,$includedir,;t t
20813 s,@oldincludedir@,$oldincludedir,;t t
20814 s,@infodir@,$infodir,;t t
20815 s,@mandir@,$mandir,;t t
20816 s,@build_alias@,$build_alias,;t t
20817 s,@host_alias@,$host_alias,;t t
20818 s,@target_alias@,$target_alias,;t t
20819 s,@DEFS@,$DEFS,;t t
20820 s,@ECHO_C@,$ECHO_C,;t t
20821 s,@ECHO_N@,$ECHO_N,;t t
20822 s,@ECHO_T@,$ECHO_T,;t t
20823 s,@LIBS@,$LIBS,;t t
20824 s,@WIN16_FILES@,$WIN16_FILES,;t t
20825 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20826 s,@build@,$build,;t t
20827 s,@build_cpu@,$build_cpu,;t t
20828 s,@build_vendor@,$build_vendor,;t t
20829 s,@build_os@,$build_os,;t t
20830 s,@host@,$host,;t t
20831 s,@host_cpu@,$host_cpu,;t t
20832 s,@host_vendor@,$host_vendor,;t t
20833 s,@host_os@,$host_os,;t t
20834 s,@SET_MAKE@,$SET_MAKE,;t t
20835 s,@CC@,$CC,;t t
20836 s,@CFLAGS@,$CFLAGS,;t t
20837 s,@LDFLAGS@,$LDFLAGS,;t t
20838 s,@CPPFLAGS@,$CPPFLAGS,;t t
20839 s,@ac_ct_CC@,$ac_ct_CC,;t t
20840 s,@EXEEXT@,$EXEEXT,;t t
20841 s,@OBJEXT@,$OBJEXT,;t t
20842 s,@CXX@,$CXX,;t t
20843 s,@CXXFLAGS@,$CXXFLAGS,;t t
20844 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20845 s,@CPPBIN@,$CPPBIN,;t t
20846 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20847 s,@TOOLSDIR@,$TOOLSDIR,;t t
20848 s,@CPP@,$CPP,;t t
20849 s,@X_CFLAGS@,$X_CFLAGS,;t t
20850 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20851 s,@X_LIBS@,$X_LIBS,;t t
20852 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20853 s,@LEX@,$LEX,;t t
20854 s,@LEXLIB@,$LEXLIB,;t t
20855 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20856 s,@XLEX@,$XLEX,;t t
20857 s,@BISON@,$BISON,;t t
20858 s,@AS@,$AS,;t t
20859 s,@ac_ct_AS@,$ac_ct_AS,;t t
20860 s,@LD@,$LD,;t t
20861 s,@ac_ct_LD@,$ac_ct_LD,;t t
20862 s,@AR@,$AR,;t t
20863 s,@ac_ct_AR@,$ac_ct_AR,;t t
20864 s,@RANLIB@,$RANLIB,;t t
20865 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20866 s,@STRIP@,$STRIP,;t t
20867 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20868 s,@WINDRES@,$WINDRES,;t t
20869 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20870 s,@LN_S@,$LN_S,;t t
20871 s,@LN@,$LN,;t t
20872 s,@LDCONFIG@,$LDCONFIG,;t t
20873 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20874 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20875 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20876 s,@LINT@,$LINT,;t t
20877 s,@LINTFLAGS@,$LINTFLAGS,;t t
20878 s,@DB2HTML@,$DB2HTML,;t t
20879 s,@DB2PDF@,$DB2PDF,;t t
20880 s,@DB2PS@,$DB2PS,;t t
20881 s,@DB2TXT@,$DB2TXT,;t t
20882 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20883 s,@JPEGLIB@,$JPEGLIB,;t t
20884 s,@EGREP@,$EGREP,;t t
20885 s,@GIFLIB@,$GIFLIB,;t t
20886 s,@XLIB@,$XLIB,;t t
20887 s,@XFILES@,$XFILES,;t t
20888 s,@OPENGLFILES@,$OPENGLFILES,;t t
20889 s,@GLU32FILES@,$GLU32FILES,;t t
20890 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20891 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20892 s,@GLUT32FILES@,$GLUT32FILES,;t t
20893 s,@NASLIBS@,$NASLIBS,;t t
20894 s,@CURSESLIBS@,$CURSESLIBS,;t t
20895 s,@sane_devel@,$sane_devel,;t t
20896 s,@SANELIBS@,$SANELIBS,;t t
20897 s,@SANEINCL@,$SANEINCL,;t t
20898 s,@ICULIBS@,$ICULIBS,;t t
20899 s,@ft_devel@,$ft_devel,;t t
20900 s,@ft_devel2@,$ft_devel2,;t t
20901 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20902 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20903 s,@ARTSLIBS@,$ARTSLIBS,;t t
20904 s,@ARTSINCL@,$ARTSINCL,;t t
20905 s,@ALSALIBS@,$ALSALIBS,;t t
20906 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20907 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20908 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20909 s,@DLLEXT@,$DLLEXT,;t t
20910 s,@DLLFLAGS@,$DLLFLAGS,;t t
20911 s,@DLLIBS@,$DLLIBS,;t t
20912 s,@LDSHARED@,$LDSHARED,;t t
20913 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20914 s,@LIBEXT@,$LIBEXT,;t t
20915 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20916 s,@DLLTOOL@,$DLLTOOL,;t t
20917 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20918 s,@DLLWRAP@,$DLLWRAP,;t t
20919 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20920 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20921 s,@CROSSTEST@,$CROSSTEST,;t t
20922 s,@CROSSCC@,$CROSSCC,;t t
20923 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20924 s,@LDPATH@,$LDPATH,;t t
20925 s,@CRTLIBS@,$CRTLIBS,;t t
20926 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20927 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20928 s,@LDD@,$LDD,;t t
20929 s,@ALLOCA@,$ALLOCA,;t t
20930 s,@LIBOBJS@,$LIBOBJS,;t t
20931 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20932 /@MAKE_RULES@/r $MAKE_RULES
20933 s,@MAKE_RULES@,,;t t
20934 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20935 s,@MAKE_DLL_RULES@,,;t t
20936 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20937 s,@MAKE_TEST_RULES@,,;t t
20938 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20939 s,@MAKE_LIB_RULES@,,;t t
20940 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20941 s,@MAKE_PROG_RULES@,,;t t
20942 CEOF
20944 _ACEOF
20946 cat >>$CONFIG_STATUS <<\_ACEOF
20947 # Split the substitutions into bite-sized pieces for seds with
20948 # small command number limits, like on Digital OSF/1 and HP-UX.
20949 ac_max_sed_lines=48
20950 ac_sed_frag=1 # Number of current file.
20951 ac_beg=1 # First line for current file.
20952 ac_end=$ac_max_sed_lines # Line after last line for current file.
20953 ac_more_lines=:
20954 ac_sed_cmds=
20955 while $ac_more_lines; do
20956 if test $ac_beg -gt 1; then
20957 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20958 else
20959 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20961 if test ! -s $tmp/subs.frag; then
20962 ac_more_lines=false
20963 else
20964 # The purpose of the label and of the branching condition is to
20965 # speed up the sed processing (if there are no `@' at all, there
20966 # is no need to browse any of the substitutions).
20967 # These are the two extra sed commands mentioned above.
20968 (echo ':t
20969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20970 if test -z "$ac_sed_cmds"; then
20971 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20972 else
20973 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20975 ac_sed_frag=`expr $ac_sed_frag + 1`
20976 ac_beg=$ac_end
20977 ac_end=`expr $ac_end + $ac_max_sed_lines`
20979 done
20980 if test -z "$ac_sed_cmds"; then
20981 ac_sed_cmds=cat
20983 fi # test -n "$CONFIG_FILES"
20985 _ACEOF
20986 cat >>$CONFIG_STATUS <<\_ACEOF
20987 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20989 case $ac_file in
20990 - | *:- | *:-:* ) # input from stdin
20991 cat >$tmp/stdin
20992 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20994 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20996 * ) ac_file_in=$ac_file.in ;;
20997 esac
20999 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21000 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21001 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21002 X"$ac_file" : 'X\(//\)[^/]' \| \
21003 X"$ac_file" : 'X\(//\)$' \| \
21004 X"$ac_file" : 'X\(/\)' \| \
21005 . : '\(.\)' 2>/dev/null ||
21006 echo X"$ac_file" |
21007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21009 /^X\(\/\/\)$/{ s//\1/; q; }
21010 /^X\(\/\).*/{ s//\1/; q; }
21011 s/.*/./; q'`
21012 { if $as_mkdir_p; then
21013 mkdir -p "$ac_dir"
21014 else
21015 as_dir="$ac_dir"
21016 as_dirs=
21017 while test ! -d "$as_dir"; do
21018 as_dirs="$as_dir $as_dirs"
21019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21021 X"$as_dir" : 'X\(//\)[^/]' \| \
21022 X"$as_dir" : 'X\(//\)$' \| \
21023 X"$as_dir" : 'X\(/\)' \| \
21024 . : '\(.\)' 2>/dev/null ||
21025 echo X"$as_dir" |
21026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21028 /^X\(\/\/\)$/{ s//\1/; q; }
21029 /^X\(\/\).*/{ s//\1/; q; }
21030 s/.*/./; q'`
21031 done
21032 test ! -n "$as_dirs" || mkdir $as_dirs
21033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21035 { (exit 1); exit 1; }; }; }
21037 ac_builddir=.
21039 if test "$ac_dir" != .; then
21040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21041 # A "../" for each directory in $ac_dir_suffix.
21042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21043 else
21044 ac_dir_suffix= ac_top_builddir=
21047 case $srcdir in
21048 .) # No --srcdir option. We are building in place.
21049 ac_srcdir=.
21050 if test -z "$ac_top_builddir"; then
21051 ac_top_srcdir=.
21052 else
21053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21054 fi ;;
21055 [\\/]* | ?:[\\/]* ) # Absolute path.
21056 ac_srcdir=$srcdir$ac_dir_suffix;
21057 ac_top_srcdir=$srcdir ;;
21058 *) # Relative path.
21059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21061 esac
21063 # Do not use `cd foo && pwd` to compute absolute paths, because
21064 # the directories may not exist.
21065 case `pwd` in
21066 .) ac_abs_builddir="$ac_dir";;
21068 case "$ac_dir" in
21069 .) ac_abs_builddir=`pwd`;;
21070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21072 esac;;
21073 esac
21074 case $ac_abs_builddir in
21075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21077 case ${ac_top_builddir}. in
21078 .) ac_abs_top_builddir=$ac_abs_builddir;;
21079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21081 esac;;
21082 esac
21083 case $ac_abs_builddir in
21084 .) ac_abs_srcdir=$ac_srcdir;;
21086 case $ac_srcdir in
21087 .) ac_abs_srcdir=$ac_abs_builddir;;
21088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21090 esac;;
21091 esac
21092 case $ac_abs_builddir in
21093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21095 case $ac_top_srcdir in
21096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21099 esac;;
21100 esac
21103 case $INSTALL in
21104 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21105 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21106 esac
21108 # Let's still pretend it is `configure' which instantiates (i.e., don't
21109 # use $as_me), people would be surprised to read:
21110 # /* config.h. Generated by config.status. */
21111 if test x"$ac_file" = x-; then
21112 configure_input=
21113 else
21114 configure_input="$ac_file. "
21116 configure_input=$configure_input"Generated from `echo $ac_file_in |
21117 sed 's,.*/,,'` by configure."
21119 # First look for the input files in the build tree, otherwise in the
21120 # src tree.
21121 ac_file_inputs=`IFS=:
21122 for f in $ac_file_in; do
21123 case $f in
21124 -) echo $tmp/stdin ;;
21125 [\\/$]*)
21126 # Absolute (can't be DOS-style, as IFS=:)
21127 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21128 echo "$as_me: error: cannot find input file: $f" >&2;}
21129 { (exit 1); exit 1; }; }
21130 echo "$f";;
21131 *) # Relative
21132 if test -f "$f"; then
21133 # Build tree
21134 echo "$f"
21135 elif test -f "$srcdir/$f"; then
21136 # Source tree
21137 echo "$srcdir/$f"
21138 else
21139 # /dev/null tree
21140 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21141 echo "$as_me: error: cannot find input file: $f" >&2;}
21142 { (exit 1); exit 1; }; }
21143 fi;;
21144 esac
21145 done` || { (exit 1); exit 1; }
21147 if test x"$ac_file" != x-; then
21148 { echo "$as_me:$LINENO: creating $ac_file" >&5
21149 echo "$as_me: creating $ac_file" >&6;}
21150 rm -f "$ac_file"
21152 _ACEOF
21153 cat >>$CONFIG_STATUS <<_ACEOF
21154 sed "$ac_vpsub
21155 $extrasub
21156 _ACEOF
21157 cat >>$CONFIG_STATUS <<\_ACEOF
21159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21160 s,@configure_input@,$configure_input,;t t
21161 s,@srcdir@,$ac_srcdir,;t t
21162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21163 s,@top_srcdir@,$ac_top_srcdir,;t t
21164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21165 s,@builddir@,$ac_builddir,;t t
21166 s,@abs_builddir@,$ac_abs_builddir,;t t
21167 s,@top_builddir@,$ac_top_builddir,;t t
21168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21169 s,@INSTALL@,$ac_INSTALL,;t t
21170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21171 rm -f $tmp/stdin
21172 if test x"$ac_file" != x-; then
21173 mv $tmp/out $ac_file
21174 else
21175 cat $tmp/out
21176 rm -f $tmp/out
21179 done
21180 _ACEOF
21181 cat >>$CONFIG_STATUS <<\_ACEOF
21184 # CONFIG_HEADER section.
21187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21190 # ac_d sets the value in "#define NAME VALUE" lines.
21191 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21192 ac_dB='[ ].*$,\1#\2'
21193 ac_dC=' '
21194 ac_dD=',;t'
21195 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21196 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21197 ac_uB='$,\1#\2define\3'
21198 ac_uC=' '
21199 ac_uD=',;t'
21201 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21203 case $ac_file in
21204 - | *:- | *:-:* ) # input from stdin
21205 cat >$tmp/stdin
21206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21210 * ) ac_file_in=$ac_file.in ;;
21211 esac
21213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21214 echo "$as_me: creating $ac_file" >&6;}
21216 # First look for the input files in the build tree, otherwise in the
21217 # src tree.
21218 ac_file_inputs=`IFS=:
21219 for f in $ac_file_in; do
21220 case $f in
21221 -) echo $tmp/stdin ;;
21222 [\\/$]*)
21223 # Absolute (can't be DOS-style, as IFS=:)
21224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21225 echo "$as_me: error: cannot find input file: $f" >&2;}
21226 { (exit 1); exit 1; }; }
21227 # Do quote $f, to prevent DOS paths from being IFS'd.
21228 echo "$f";;
21229 *) # Relative
21230 if test -f "$f"; then
21231 # Build tree
21232 echo "$f"
21233 elif test -f "$srcdir/$f"; then
21234 # Source tree
21235 echo "$srcdir/$f"
21236 else
21237 # /dev/null tree
21238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21239 echo "$as_me: error: cannot find input file: $f" >&2;}
21240 { (exit 1); exit 1; }; }
21241 fi;;
21242 esac
21243 done` || { (exit 1); exit 1; }
21244 # Remove the trailing spaces.
21245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21247 _ACEOF
21249 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21250 # `conftest.undefs', that substitutes the proper values into
21251 # config.h.in to produce config.h. The first handles `#define'
21252 # templates, and the second `#undef' templates.
21253 # And first: Protect against being on the right side of a sed subst in
21254 # config.status. Protect against being in an unquoted here document
21255 # in config.status.
21256 rm -f conftest.defines conftest.undefs
21257 # Using a here document instead of a string reduces the quoting nightmare.
21258 # Putting comments in sed scripts is not portable.
21260 # `end' is used to avoid that the second main sed command (meant for
21261 # 0-ary CPP macros) applies to n-ary macro definitions.
21262 # See the Autoconf documentation for `clear'.
21263 cat >confdef2sed.sed <<\_ACEOF
21264 s/[\\&,]/\\&/g
21265 s,[\\$`],\\&,g
21266 t clear
21267 : clear
21268 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21269 t end
21270 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21271 : end
21272 _ACEOF
21273 # If some macros were called several times there might be several times
21274 # the same #defines, which is useless. Nevertheless, we may not want to
21275 # sort them, since we want the *last* AC-DEFINE to be honored.
21276 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21277 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21278 rm -f confdef2sed.sed
21280 # This sed command replaces #undef with comments. This is necessary, for
21281 # example, in the case of _POSIX_SOURCE, which is predefined and required
21282 # on some systems where configure will not decide to define it.
21283 cat >>conftest.undefs <<\_ACEOF
21284 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21285 _ACEOF
21287 # Break up conftest.defines because some shells have a limit on the size
21288 # of here documents, and old seds have small limits too (100 cmds).
21289 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21290 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21291 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21292 echo ' :' >>$CONFIG_STATUS
21293 rm -f conftest.tail
21294 while grep . conftest.defines >/dev/null
21296 # Write a limited-size here document to $tmp/defines.sed.
21297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21298 # Speed up: don't consider the non `#define' lines.
21299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21300 # Work around the forget-to-reset-the-flag bug.
21301 echo 't clr' >>$CONFIG_STATUS
21302 echo ': clr' >>$CONFIG_STATUS
21303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21304 echo 'CEOF
21305 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21306 rm -f $tmp/in
21307 mv $tmp/out $tmp/in
21308 ' >>$CONFIG_STATUS
21309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21310 rm -f conftest.defines
21311 mv conftest.tail conftest.defines
21312 done
21313 rm -f conftest.defines
21314 echo ' fi # grep' >>$CONFIG_STATUS
21315 echo >>$CONFIG_STATUS
21317 # Break up conftest.undefs because some shells have a limit on the size
21318 # of here documents, and old seds have small limits too (100 cmds).
21319 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21320 rm -f conftest.tail
21321 while grep . conftest.undefs >/dev/null
21323 # Write a limited-size here document to $tmp/undefs.sed.
21324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21325 # Speed up: don't consider the non `#undef'
21326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21327 # Work around the forget-to-reset-the-flag bug.
21328 echo 't clr' >>$CONFIG_STATUS
21329 echo ': clr' >>$CONFIG_STATUS
21330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21331 echo 'CEOF
21332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21333 rm -f $tmp/in
21334 mv $tmp/out $tmp/in
21335 ' >>$CONFIG_STATUS
21336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21337 rm -f conftest.undefs
21338 mv conftest.tail conftest.undefs
21339 done
21340 rm -f conftest.undefs
21342 cat >>$CONFIG_STATUS <<\_ACEOF
21343 # Let's still pretend it is `configure' which instantiates (i.e., don't
21344 # use $as_me), people would be surprised to read:
21345 # /* config.h. Generated by config.status. */
21346 if test x"$ac_file" = x-; then
21347 echo "/* Generated by configure. */" >$tmp/config.h
21348 else
21349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21351 cat $tmp/in >>$tmp/config.h
21352 rm -f $tmp/in
21353 if test x"$ac_file" != x-; then
21354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21356 echo "$as_me: $ac_file is unchanged" >&6;}
21357 else
21358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360 X"$ac_file" : 'X\(//\)[^/]' \| \
21361 X"$ac_file" : 'X\(//\)$' \| \
21362 X"$ac_file" : 'X\(/\)' \| \
21363 . : '\(.\)' 2>/dev/null ||
21364 echo X"$ac_file" |
21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367 /^X\(\/\/\)$/{ s//\1/; q; }
21368 /^X\(\/\).*/{ s//\1/; q; }
21369 s/.*/./; q'`
21370 { if $as_mkdir_p; then
21371 mkdir -p "$ac_dir"
21372 else
21373 as_dir="$ac_dir"
21374 as_dirs=
21375 while test ! -d "$as_dir"; do
21376 as_dirs="$as_dir $as_dirs"
21377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379 X"$as_dir" : 'X\(//\)[^/]' \| \
21380 X"$as_dir" : 'X\(//\)$' \| \
21381 X"$as_dir" : 'X\(/\)' \| \
21382 . : '\(.\)' 2>/dev/null ||
21383 echo X"$as_dir" |
21384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21386 /^X\(\/\/\)$/{ s//\1/; q; }
21387 /^X\(\/\).*/{ s//\1/; q; }
21388 s/.*/./; q'`
21389 done
21390 test ! -n "$as_dirs" || mkdir $as_dirs
21391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21393 { (exit 1); exit 1; }; }; }
21395 rm -f $ac_file
21396 mv $tmp/config.h $ac_file
21398 else
21399 cat $tmp/config.h
21400 rm -f $tmp/config.h
21402 done
21403 _ACEOF
21404 cat >>$CONFIG_STATUS <<\_ACEOF
21407 # CONFIG_COMMANDS section.
21409 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21410 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21411 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21412 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21413 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21414 X"$ac_dest" : 'X\(//\)[^/]' \| \
21415 X"$ac_dest" : 'X\(//\)$' \| \
21416 X"$ac_dest" : 'X\(/\)' \| \
21417 . : '\(.\)' 2>/dev/null ||
21418 echo X"$ac_dest" |
21419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21421 /^X\(\/\/\)$/{ s//\1/; q; }
21422 /^X\(\/\).*/{ s//\1/; q; }
21423 s/.*/./; q'`
21424 { if $as_mkdir_p; then
21425 mkdir -p "$ac_dir"
21426 else
21427 as_dir="$ac_dir"
21428 as_dirs=
21429 while test ! -d "$as_dir"; do
21430 as_dirs="$as_dir $as_dirs"
21431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21433 X"$as_dir" : 'X\(//\)[^/]' \| \
21434 X"$as_dir" : 'X\(//\)$' \| \
21435 X"$as_dir" : 'X\(/\)' \| \
21436 . : '\(.\)' 2>/dev/null ||
21437 echo X"$as_dir" |
21438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21440 /^X\(\/\/\)$/{ s//\1/; q; }
21441 /^X\(\/\).*/{ s//\1/; q; }
21442 s/.*/./; q'`
21443 done
21444 test ! -n "$as_dirs" || mkdir $as_dirs
21445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21446 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21447 { (exit 1); exit 1; }; }; }
21449 ac_builddir=.
21451 if test "$ac_dir" != .; then
21452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21453 # A "../" for each directory in $ac_dir_suffix.
21454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21455 else
21456 ac_dir_suffix= ac_top_builddir=
21459 case $srcdir in
21460 .) # No --srcdir option. We are building in place.
21461 ac_srcdir=.
21462 if test -z "$ac_top_builddir"; then
21463 ac_top_srcdir=.
21464 else
21465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21466 fi ;;
21467 [\\/]* | ?:[\\/]* ) # Absolute path.
21468 ac_srcdir=$srcdir$ac_dir_suffix;
21469 ac_top_srcdir=$srcdir ;;
21470 *) # Relative path.
21471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21473 esac
21475 # Do not use `cd foo && pwd` to compute absolute paths, because
21476 # the directories may not exist.
21477 case `pwd` in
21478 .) ac_abs_builddir="$ac_dir";;
21480 case "$ac_dir" in
21481 .) ac_abs_builddir=`pwd`;;
21482 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21483 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21484 esac;;
21485 esac
21486 case $ac_abs_builddir in
21487 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21489 case ${ac_top_builddir}. in
21490 .) ac_abs_top_builddir=$ac_abs_builddir;;
21491 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21492 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21493 esac;;
21494 esac
21495 case $ac_abs_builddir in
21496 .) ac_abs_srcdir=$ac_srcdir;;
21498 case $ac_srcdir in
21499 .) ac_abs_srcdir=$ac_abs_builddir;;
21500 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21501 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21502 esac;;
21503 esac
21504 case $ac_abs_builddir in
21505 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21507 case $ac_top_srcdir in
21508 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21509 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21510 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21511 esac;;
21512 esac
21515 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21516 echo "$as_me: executing $ac_dest commands" >&6;}
21517 case $ac_dest in
21518 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21519 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
21520 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21521 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21522 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21523 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21524 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21525 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21526 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21527 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21528 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21529 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21530 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21531 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21532 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21533 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21534 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21535 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21536 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21537 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21538 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21539 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21540 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21541 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21542 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21543 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21544 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
21545 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
21546 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21547 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21548 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21549 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21550 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
21551 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
21552 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21553 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21554 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21555 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21556 esac
21557 done
21558 _ACEOF
21560 cat >>$CONFIG_STATUS <<\_ACEOF
21562 { (exit 0); exit 0; }
21563 _ACEOF
21564 chmod +x $CONFIG_STATUS
21565 ac_clean_files=$ac_clean_files_save
21568 # configure is writing to config.log, and then calls config.status.
21569 # config.status does its own redirection, appending to config.log.
21570 # Unfortunately, on DOS this fails, as config.log is still kept open
21571 # by configure, so config.status won't be able to write to it; its
21572 # output is simply discarded. So we exec the FD to /dev/null,
21573 # effectively closing config.log, so it can be properly (re)opened and
21574 # appended to by config.status. When coming back to configure, we
21575 # need to make the FD available again.
21576 if test "$no_create" != yes; then
21577 ac_cs_success=:
21578 ac_config_status_args=
21579 test "$silent" = yes &&
21580 ac_config_status_args="$ac_config_status_args --quiet"
21581 exec 5>/dev/null
21582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21583 exec 5>>config.log
21584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21585 # would make configure fail if this is the last instruction.
21586 $ac_cs_success || { (exit 1); exit 1; }
21590 if test "$have_x" = "no"
21591 then
21592 echo
21593 echo "*** Warning: X development files not found. Wine will be built without"
21594 echo "*** X support, which currently does not work, and would probably not be"
21595 echo "*** what you want anyway. You will need to install devel packages of"
21596 echo "*** Xlib/Xfree86 at the very least."
21599 if test "$wine_cv_opengl_version_OK" = "no"
21600 then
21601 echo
21602 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21603 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21606 if test "$wine_cv_msg_freetype" = "yes"
21607 then
21608 echo
21609 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21610 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21611 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21612 echo "*** enable Wine to use TrueType fonts."
21615 echo
21616 echo "Configure finished. Do 'make depend && make' to compile Wine."
21617 echo