comctl32: header: Correct WM_[GS]ETUNICODEFORMAT.
[wine/multimedia.git] / configure
blob104f08f24c8d092d41d69df68cf1057f34c9d09d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 0.9.12.
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='0.9.12'
273 PACKAGE_STRING='Wine 0.9.12'
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL 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 EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL HALINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS RESOLVLIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDEXERPATH LDDLLRPATH COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS MAIN_BINARY EXTRA_BINARIES LDD LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_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 0.9.12 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 0.9.12:";;
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 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
865 binaries)
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 0.9.12
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 0.9.12, 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-win64 or --disable-win64 was given.
1371 if test "${enable_win64+set}" = set; then
1372 enableval="$enable_win64"
1377 # Check whether --with-opengl or --without-opengl was given.
1378 if test "${with_opengl+set}" = set; then
1379 withval="$with_opengl"
1383 # Check whether --with-curses or --without-curses was given.
1384 if test "${with_curses+set}" = set; then
1385 withval="$with_curses"
1389 # Check whether --with-wine-tools or --without-wine-tools was given.
1390 if test "${with_wine_tools+set}" = set; then
1391 withval="$with_wine_tools"
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 echo "$as_me:$LINENO: checking host system type" >&5
1428 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429 if test "${ac_cv_host+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 ac_cv_host_alias=$host_alias
1433 test -z "$ac_cv_host_alias" &&
1434 ac_cv_host_alias=$ac_cv_build_alias
1435 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1441 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442 echo "${ECHO_T}$ac_cv_host" >&6
1443 host=$ac_cv_host
1444 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449 case $host in
1450 x86_64*linux*)
1451 if test "x$enable_win64" != "xyes"
1452 then
1453 test -n "$CC" || CC="gcc -m32"
1454 test -n "$LD" || LD="ld -m elf_i386"
1455 test -n "$AS" || AS="as --32"
1456 host_cpu="i386"
1459 esac
1461 case $host_cpu in
1462 *i[3456789]86*)
1463 if test "x$enable_win16" != "xno"
1464 then
1465 enable_win16="yes"
1468 esac
1470 WIN16_FILES="\$(WIN16_FILES)"
1472 WIN16_INSTALL="\$(WIN16_INSTALL)"
1474 if test "x$enable_win16" != "xyes"
1475 then
1476 WIN16_FILES=""
1477 WIN16_INSTALL=""
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
3132 if test "x$ac_path_x_has_been_run" != xyes; then
3133 echo "$as_me:$LINENO: checking for X" >&5
3134 echo $ECHO_N "checking for X... $ECHO_C" >&6
3136 ac_path_x_has_been_run=yes
3138 # Check whether --with-x or --without-x was given.
3139 if test "${with_x+set}" = set; then
3140 withval="$with_x"
3143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3144 if test "x$with_x" = xno; then
3145 # The user explicitly disabled X.
3146 have_x=disabled
3147 else
3148 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3149 # Both variables are already set.
3150 have_x=yes
3151 else
3152 if test "${ac_cv_have_x+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 # One or both of the vars are not set, and there is no cached value.
3156 ac_x_includes=no ac_x_libraries=no
3157 rm -fr conftest.dir
3158 if mkdir conftest.dir; then
3159 cd conftest.dir
3160 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3161 cat >Imakefile <<'_ACEOF'
3162 acfindx:
3163 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3164 _ACEOF
3165 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3167 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169 for ac_extension in a so sl; do
3170 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3171 test -f $ac_im_libdir/libX11.$ac_extension; then
3172 ac_im_usrlibdir=$ac_im_libdir; break
3174 done
3175 # Screen out bogus values from the imake configuration. They are
3176 # bogus both because they are the default anyway, and because
3177 # using them would break gcc on systems where it needs fixed includes.
3178 case $ac_im_incroot in
3179 /usr/include) ;;
3180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3181 esac
3182 case $ac_im_usrlibdir in
3183 /usr/lib | /lib) ;;
3184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3185 esac
3187 cd ..
3188 rm -fr conftest.dir
3191 # Standard set of common directories for X headers.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 ac_x_header_dirs='
3194 /usr/X11/include
3195 /usr/X11R6/include
3196 /usr/X11R5/include
3197 /usr/X11R4/include
3199 /usr/include/X11
3200 /usr/include/X11R6
3201 /usr/include/X11R5
3202 /usr/include/X11R4
3204 /usr/local/X11/include
3205 /usr/local/X11R6/include
3206 /usr/local/X11R5/include
3207 /usr/local/X11R4/include
3209 /usr/local/include/X11
3210 /usr/local/include/X11R6
3211 /usr/local/include/X11R5
3212 /usr/local/include/X11R4
3214 /usr/X386/include
3215 /usr/x386/include
3216 /usr/XFree86/include/X11
3218 /usr/include
3219 /usr/local/include
3220 /usr/unsupported/include
3221 /usr/athena/include
3222 /usr/local/x11r5/include
3223 /usr/lpp/Xamples/include
3225 /usr/openwin/include
3226 /usr/openwin/share/include'
3228 if test "$ac_x_includes" = no; then
3229 # Guess where to find include files, by looking for a specified header file.
3230 # First, try using that file with no special directory specified.
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <X11/Xlib.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3253 else
3254 ac_cpp_err=yes
3256 if test -z "$ac_cpp_err"; then
3257 # We can compile using X headers with no special include directory.
3258 ac_x_includes=
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 for ac_dir in $ac_x_header_dirs; do
3264 if test -r "$ac_dir/X11/Xlib.h"; then
3265 ac_x_includes=$ac_dir
3266 break
3268 done
3270 rm -f conftest.err conftest.$ac_ext
3271 fi # $ac_x_includes = no
3273 if test "$ac_x_libraries" = no; then
3274 # Check for the libraries.
3275 # See if we find them without any special options.
3276 # Don't add to $LIBS permanently.
3277 ac_save_LIBS=$LIBS
3278 LIBS="-lX11 $LIBS"
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <X11/Xlib.h>
3287 main ()
3289 XrmInitialize ()
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 LIBS=$ac_save_LIBS
3316 # We can link X programs with no special library path.
3317 ac_x_libraries=
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 LIBS=$ac_save_LIBS
3323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3325 # Don't even attempt the hair of trying to link an X program!
3326 for ac_extension in a so sl; do
3327 if test -r $ac_dir/libX11.$ac_extension; then
3328 ac_x_libraries=$ac_dir
3329 break 2
3331 done
3332 done
3334 rm -f conftest.err conftest.$ac_objext \
3335 conftest$ac_exeext conftest.$ac_ext
3336 fi # $ac_x_libraries = no
3338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3339 # Didn't find X anywhere. Cache the known absence of X.
3340 ac_cv_have_x="have_x=no"
3341 else
3342 # Record where we found X for the cache.
3343 ac_cv_have_x="have_x=yes \
3344 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3349 eval "$ac_cv_have_x"
3350 fi # $with_x != no
3352 if test "$have_x" != yes; then
3353 echo "$as_me:$LINENO: result: $have_x" >&5
3354 echo "${ECHO_T}$have_x" >&6
3355 no_x=yes
3356 else
3357 # If each of the values was on the command line, it overrides each guess.
3358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3360 # Update the cache value to reflect the command line values.
3361 ac_cv_have_x="have_x=yes \
3362 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3363 # It might be that x_includes is empty (headers are found in the
3364 # standard search path. Then output the corresponding message
3365 ac_out_x_includes=$x_includes
3366 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3372 if test "$no_x" = yes; then
3373 # Not all programs may use this symbol, but it does not hurt to define it.
3375 cat >>confdefs.h <<\_ACEOF
3376 #define X_DISPLAY_MISSING 1
3377 _ACEOF
3379 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3380 else
3381 if test -n "$x_includes"; then
3382 X_CFLAGS="$X_CFLAGS -I$x_includes"
3385 # It would also be nice to do this for all -L options, not just this one.
3386 if test -n "$x_libraries"; then
3387 X_LIBS="$X_LIBS -L$x_libraries"
3388 # For Solaris; some versions of Sun CC require a space after -R and
3389 # others require no space. Words are not sufficient . . . .
3390 case `(uname -sr) 2>/dev/null` in
3391 "SunOS 5"*)
3392 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3393 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_R_nospace=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_R_nospace=no
3438 rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
3440 if test $ac_R_nospace = yes; then
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 X_LIBS="$X_LIBS -R$x_libraries"
3444 else
3445 LIBS="$ac_xsave_LIBS -R $x_libraries"
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3454 main ()
3458 return 0;
3460 _ACEOF
3461 rm -f conftest.$ac_objext conftest$ac_exeext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463 (eval $ac_link) 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest$ac_exeext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_R_space=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_R_space=no
3489 rm -f conftest.err conftest.$ac_objext \
3490 conftest$ac_exeext conftest.$ac_ext
3491 if test $ac_R_space = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493 echo "${ECHO_T}yes" >&6
3494 X_LIBS="$X_LIBS -R $x_libraries"
3495 else
3496 echo "$as_me:$LINENO: result: neither works" >&5
3497 echo "${ECHO_T}neither works" >&6
3500 LIBS=$ac_xsave_LIBS
3501 esac
3504 # Check for system-dependent libraries X programs must link with.
3505 # Do this before checking for the system-independent R6 libraries
3506 # (-lICE), since we may need -lsocket or whatever for X linking.
3508 if test "$ISC" = yes; then
3509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510 else
3511 # Martyn Johnson says this is needed for Ultrix, if the X
3512 # libraries were built with DECnet support. And Karl Berry says
3513 # the Alpha needs dnet_stub (dnet does not exist).
3514 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3522 /* Override any gcc2 internal prototype to avoid an error. */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528 char XOpenDisplay ();
3530 main ()
3532 XOpenDisplay ();
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest$ac_exeext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3564 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-ldnet $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char dnet_ntoa ();
3585 main ()
3587 dnet_ntoa ();
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_lib_dnet_dnet_ntoa=yes
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 ac_cv_lib_dnet_dnet_ntoa=no
3620 rm -f conftest.err conftest.$ac_objext \
3621 conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3625 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3627 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3630 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3631 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3632 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ldnet_stub $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651 char dnet_ntoa ();
3653 main ()
3655 dnet_ntoa ();
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_cv_lib_dnet_stub_dnet_ntoa=no
3688 rm -f conftest.err conftest.$ac_objext \
3689 conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3693 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3695 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3700 rm -f conftest.err conftest.$ac_objext \
3701 conftest$ac_exeext conftest.$ac_ext
3702 LIBS="$ac_xsave_LIBS"
3704 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705 # to get the SysV transport functions.
3706 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3707 # needs -lnsl.
3708 # The nsl library prevents programs from opening the X display
3709 # on Irix 5.2, according to T.E. Dickey.
3710 # The functions gethostbyname, getservbyname, and inet_addr are
3711 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714 if test "${ac_cv_func_gethostbyname+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3725 #define gethostbyname innocuous_gethostbyname
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char gethostbyname (); below.
3729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 <limits.h> exists even on freestanding compilers. */
3732 #ifdef __STDC__
3733 # include <limits.h>
3734 #else
3735 # include <assert.h>
3736 #endif
3738 #undef gethostbyname
3740 /* Override any gcc2 internal prototype to avoid an error. */
3741 #ifdef __cplusplus
3742 extern "C"
3744 #endif
3745 /* We use char because int might match the return type of a gcc2
3746 builtin and then its argument prototype would still apply. */
3747 char gethostbyname ();
3748 /* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752 choke me
3753 #else
3754 char (*f) () = gethostbyname;
3755 #endif
3756 #ifdef __cplusplus
3758 #endif
3761 main ()
3763 return f != gethostbyname;
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 (eval $ac_link) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest$ac_exeext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_func_gethostbyname=yes
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 ac_cv_func_gethostbyname=no
3796 rm -f conftest.err conftest.$ac_objext \
3797 conftest$ac_exeext conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3802 if test $ac_cv_func_gethostbyname = no; then
3803 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3804 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 ac_check_lib_save_LIBS=$LIBS
3809 LIBS="-lnsl $LIBS"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3823 char gethostbyname ();
3825 main ()
3827 gethostbyname ();
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest$ac_exeext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 ac_cv_lib_nsl_gethostbyname=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 ac_cv_lib_nsl_gethostbyname=no
3860 rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3870 if test $ac_cv_lib_nsl_gethostbyname = no; then
3871 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lbsd $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3891 char gethostbyname ();
3893 main ()
3895 gethostbyname ();
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_bsd_gethostbyname=yes
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_lib_bsd_gethostbyname=no
3928 rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3941 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3942 # socket/setsockopt and other routines are undefined under SCO ODT
3943 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3944 # on later versions), says Simon Leinen: it contains gethostby*
3945 # variants that don't use the name server (or something). -lsocket
3946 # must be given before -lnsl if both are needed. We assume that
3947 # if connect needs -lnsl, so does gethostbyname.
3948 echo "$as_me:$LINENO: checking for connect" >&5
3949 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950 if test "${ac_cv_func_connect+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3961 #define connect innocuous_connect
3963 /* System header to define __stub macros and hopefully few prototypes,
3964 which can conflict with char connect (); below.
3965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 <limits.h> exists even on freestanding compilers. */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3974 #undef connect
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 #ifdef __cplusplus
3978 extern "C"
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983 char connect ();
3984 /* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987 #if defined (__stub_connect) || defined (__stub___connect)
3988 choke me
3989 #else
3990 char (*f) () = connect;
3991 #endif
3992 #ifdef __cplusplus
3994 #endif
3997 main ()
3999 return f != connect;
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_func_connect=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_cv_func_connect=no
4032 rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4036 echo "${ECHO_T}$ac_cv_func_connect" >&6
4038 if test $ac_cv_func_connect = no; then
4039 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041 if test "${ac_cv_lib_socket_connect+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 ac_check_lib_save_LIBS=$LIBS
4045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 /* Override any gcc2 internal prototype to avoid an error. */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4059 char connect ();
4061 main ()
4063 connect ();
4065 return 0;
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_lib_socket_connect=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_cv_lib_socket_connect=no
4096 rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4100 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4101 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102 if test $ac_cv_lib_socket_connect = yes; then
4103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4108 # Guillermo Gomez says -lposix is necessary on A/UX.
4109 echo "$as_me:$LINENO: checking for remove" >&5
4110 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111 if test "${ac_cv_func_remove+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4122 #define remove innocuous_remove
4124 /* System header to define __stub macros and hopefully few prototypes,
4125 which can conflict with char remove (); below.
4126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 <limits.h> exists even on freestanding compilers. */
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4135 #undef remove
4137 /* Override any gcc2 internal prototype to avoid an error. */
4138 #ifdef __cplusplus
4139 extern "C"
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144 char remove ();
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_remove) || defined (__stub___remove)
4149 choke me
4150 #else
4151 char (*f) () = remove;
4152 #endif
4153 #ifdef __cplusplus
4155 #endif
4158 main ()
4160 return f != remove;
4162 return 0;
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest$ac_exeext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_func_remove=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_cv_func_remove=no
4193 rm -f conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4197 echo "${ECHO_T}$ac_cv_func_remove" >&6
4199 if test $ac_cv_func_remove = no; then
4200 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4201 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202 if test "${ac_cv_lib_posix_remove+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lposix $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char remove ();
4222 main ()
4224 remove ();
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_lib_posix_remove=yes
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_lib_posix_remove=no
4257 rm -f conftest.err conftest.$ac_objext \
4258 conftest$ac_exeext conftest.$ac_ext
4259 LIBS=$ac_check_lib_save_LIBS
4261 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4262 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263 if test $ac_cv_lib_posix_remove = yes; then
4264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4269 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4270 echo "$as_me:$LINENO: checking for shmat" >&5
4271 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272 if test "${ac_cv_func_shmat+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4283 #define shmat innocuous_shmat
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char shmat (); below.
4287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 <limits.h> exists even on freestanding compilers. */
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4296 #undef shmat
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 #ifdef __cplusplus
4300 extern "C"
4302 #endif
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char shmat ();
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_shmat) || defined (__stub___shmat)
4310 choke me
4311 #else
4312 char (*f) () = shmat;
4313 #endif
4314 #ifdef __cplusplus
4316 #endif
4319 main ()
4321 return f != shmat;
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_func_shmat=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_func_shmat=no
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4358 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4360 if test $ac_cv_func_shmat = no; then
4361 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4362 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lipc $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char shmat ();
4383 main ()
4385 shmat ();
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest$ac_exeext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_cv_lib_ipc_shmat=yes
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_cv_lib_ipc_shmat=no
4418 rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
4420 LIBS=$ac_check_lib_save_LIBS
4422 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4423 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424 if test $ac_cv_lib_ipc_shmat = yes; then
4425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4431 # Check for libraries that X11R6 Xt/Xaw programs need.
4432 ac_save_LDFLAGS=$LDFLAGS
4433 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435 # check for ICE first), but we must link in the order -lSM -lICE or
4436 # we get undefined symbols. So assume we have SM if we have ICE.
4437 # These have to be linked with before -lX11, unlike the other
4438 # libraries we check for below, so use a different variable.
4439 # John Interrante, Karl Berry
4440 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4441 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 ac_check_lib_save_LIBS=$LIBS
4446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char IceConnectionNumber ();
4462 main ()
4464 IceConnectionNumber ();
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471 (eval $ac_link) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_lib_ICE_IceConnectionNumber=yes
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_cv_lib_ICE_IceConnectionNumber=no
4497 rm -f conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4504 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4507 LDFLAGS=$ac_save_LDFLAGS
4511 for ac_prog in flex lex
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_LEX+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$LEX"; then
4521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_LEX="$ac_prog"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4539 LEX=$ac_cv_prog_LEX
4540 if test -n "$LEX"; then
4541 echo "$as_me:$LINENO: result: $LEX" >&5
4542 echo "${ECHO_T}$LEX" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 test -n "$LEX" && break
4549 done
4550 test -n "$LEX" || LEX=":"
4552 if test -z "$LEXLIB"
4553 then
4554 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lfl $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4574 char yywrap ();
4576 main ()
4578 yywrap ();
4580 return 0;
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_lib_fl_yywrap=yes
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 ac_cv_lib_fl_yywrap=no
4611 rm -f conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4615 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4616 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617 if test $ac_cv_lib_fl_yywrap = yes; then
4618 LEXLIB="-lfl"
4619 else
4620 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4621 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ll $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char yywrap ();
4642 main ()
4644 yywrap ();
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_lib_l_yywrap=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_cv_lib_l_yywrap=no
4677 rm -f conftest.err conftest.$ac_objext \
4678 conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4682 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683 if test $ac_cv_lib_l_yywrap = yes; then
4684 LEXLIB="-ll"
4691 if test "x$LEX" != "x:"; then
4692 echo "$as_me:$LINENO: checking lex output file root" >&5
4693 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694 if test "${ac_cv_prog_lex_root+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 # The minimal lex program is just a single line: %%. But some broken lexes
4698 # (Solaris, I think it was) want two %% lines, so accommodate them.
4699 cat >conftest.l <<_ACEOF
4702 _ACEOF
4703 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704 (eval $LEX conftest.l) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
4708 if test -f lex.yy.c; then
4709 ac_cv_prog_lex_root=lex.yy
4710 elif test -f lexyy.c; then
4711 ac_cv_prog_lex_root=lexyy
4712 else
4713 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4714 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715 { (exit 1); exit 1; }; }
4718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4719 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4720 rm -f conftest.l
4721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4723 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4724 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 # POSIX says lex can declare yytext either as a pointer or an array; the
4729 # default is implementation-dependent. Figure out which it is, since
4730 # not all implementations provide the %pointer and %array declarations.
4731 ac_cv_prog_lex_yytext_pointer=no
4732 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733 ac_save_LIBS=$LIBS
4734 LIBS="$LIBS $LEXLIB"
4735 cat >conftest.$ac_ext <<_ACEOF
4736 `cat $LEX_OUTPUT_ROOT.c`
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_prog_lex_yytext_pointer=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 rm -f conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_save_LIBS
4768 rm -f "${LEX_OUTPUT_ROOT}.c"
4771 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4772 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4775 cat >>confdefs.h <<\_ACEOF
4776 #define YYTEXT_POINTER 1
4777 _ACEOF
4783 for ac_prog in $LEX flex lex
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_XLEX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 if test -n "$XLEX"; then
4793 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_XLEX="$ac_prog"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4811 XLEX=$ac_cv_prog_XLEX
4812 if test -n "$XLEX"; then
4813 echo "$as_me:$LINENO: result: $XLEX" >&5
4814 echo "${ECHO_T}$XLEX" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$XLEX" && break
4821 done
4822 test -n "$XLEX" || XLEX="none"
4824 if test "$XLEX" = "none"
4825 then
4826 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4827 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828 { (exit 1); exit 1; }; }
4831 for ac_prog in bison
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 if test -n "$BISON"; then
4841 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_BISON="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4859 BISON=$ac_cv_prog_BISON
4860 if test -n "$BISON"; then
4861 echo "$as_me:$LINENO: result: $BISON" >&5
4862 echo "${ECHO_T}$BISON" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 test -n "$BISON" && break
4869 done
4870 test -n "$BISON" || BISON="none"
4872 if test "$BISON" = "none"
4873 then
4874 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876 { (exit 1); exit 1; }; }
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in gas as
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AS+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 if test -n "$AS"; then
4890 ac_cv_prog_AS="$AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4908 AS=$ac_cv_prog_AS
4909 if test -n "$AS"; then
4910 echo "$as_me:$LINENO: result: $AS" >&5
4911 echo "${ECHO_T}$AS" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4917 test -n "$AS" && break
4918 done
4920 if test -z "$AS"; then
4921 ac_ct_AS=$AS
4922 for ac_prog in gas as
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 if test -n "$ac_ct_AS"; then
4932 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_AS="$ac_prog"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4950 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951 if test -n "$ac_ct_AS"; then
4952 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953 echo "${ECHO_T}$ac_ct_AS" >&6
4954 else
4955 echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4959 test -n "$ac_ct_AS" && break
4960 done
4961 test -n "$ac_ct_AS" || ac_ct_AS="as"
4963 AS=$ac_ct_AS
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ld; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LD+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 if test -n "$LD"; then
4975 ac_cv_prog_LD="$LD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_LD="${ac_tool_prefix}ld"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4993 LD=$ac_cv_prog_LD
4994 if test -n "$LD"; then
4995 echo "$as_me:$LINENO: result: $LD" >&5
4996 echo "${ECHO_T}$LD" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5003 if test -z "$ac_cv_prog_LD"; then
5004 ac_ct_LD=$LD
5005 # Extract the first word of "ld", so it can be a program name with args.
5006 set dummy ld; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test -n "$ac_ct_LD"; then
5013 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_LD="ld"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5029 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5032 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033 if test -n "$ac_ct_LD"; then
5034 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035 echo "${ECHO_T}$ac_ct_LD" >&6
5036 else
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5041 LD=$ac_ct_LD
5042 else
5043 LD="$ac_cv_prog_LD"
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ar; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_AR+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 if test -n "$AR"; then
5055 ac_cv_prog_AR="$AR" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_AR="${ac_tool_prefix}ar"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5073 AR=$ac_cv_prog_AR
5074 if test -n "$AR"; then
5075 echo "$as_me:$LINENO: result: $AR" >&5
5076 echo "${ECHO_T}$AR" >&6
5077 else
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5083 if test -z "$ac_cv_prog_AR"; then
5084 ac_ct_AR=$AR
5085 # Extract the first word of "ar", so it can be a program name with args.
5086 set dummy ar; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 if test -n "$ac_ct_AR"; then
5093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_AR="ar"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5109 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113 if test -n "$ac_ct_AR"; then
5114 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115 echo "${ECHO_T}$ac_ct_AR" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5121 AR=$ac_ct_AR
5122 else
5123 AR="$ac_cv_prog_AR"
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_RANLIB+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 if test -n "$RANLIB"; then
5135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5153 RANLIB=$ac_cv_prog_RANLIB
5154 if test -n "$RANLIB"; then
5155 echo "$as_me:$LINENO: result: $RANLIB" >&5
5156 echo "${ECHO_T}$RANLIB" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164 ac_ct_RANLIB=$RANLIB
5165 # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -n "$ac_ct_RANLIB"; then
5173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_ac_ct_RANLIB="ranlib"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5189 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5201 RANLIB=$ac_ct_RANLIB
5202 else
5203 RANLIB="$ac_cv_prog_RANLIB"
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}strip; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_STRIP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 if test -n "$STRIP"; then
5215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5233 STRIP=$ac_cv_prog_STRIP
5234 if test -n "$STRIP"; then
5235 echo "$as_me:$LINENO: result: $STRIP" >&5
5236 echo "${ECHO_T}$STRIP" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5243 if test -z "$ac_cv_prog_STRIP"; then
5244 ac_ct_STRIP=$STRIP
5245 # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -n "$ac_ct_STRIP"; then
5253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_ac_ct_STRIP="strip"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5269 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273 if test -n "$ac_ct_STRIP"; then
5274 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275 echo "${ECHO_T}$ac_ct_STRIP" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 STRIP=$ac_ct_STRIP
5282 else
5283 STRIP="$ac_cv_prog_STRIP"
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}windres; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_prog_WINDRES+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 if test -n "$WINDRES"; then
5295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5313 WINDRES=$ac_cv_prog_WINDRES
5314 if test -n "$WINDRES"; then
5315 echo "$as_me:$LINENO: result: $WINDRES" >&5
5316 echo "${ECHO_T}$WINDRES" >&6
5317 else
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5323 if test -z "$ac_cv_prog_WINDRES"; then
5324 ac_ct_WINDRES=$WINDRES
5325 # Extract the first word of "windres", so it can be a program name with args.
5326 set dummy windres; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 if test -n "$ac_ct_WINDRES"; then
5333 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_WINDRES="windres"
5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5349 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5352 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353 if test -n "$ac_ct_WINDRES"; then
5354 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356 else
5357 echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5361 WINDRES=$ac_ct_WINDRES
5362 else
5363 WINDRES="$ac_cv_prog_WINDRES"
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5377 echo "$as_me:$LINENO: checking whether ln works" >&5
5378 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379 rm -f conf$$ conf$$.file
5380 echo >conf$$.file
5381 if ln conf$$.file conf$$ 2>/dev/null; then
5382 LN=ln
5384 echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387 LN="cp -p"
5389 echo "$as_me:$LINENO: result: no, using $LN" >&5
5390 echo "${ECHO_T}no, using $LN" >&6
5392 rm -f conf$$ conf$$.file
5393 echo "$as_me:$LINENO: checking for egrep" >&5
5394 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5395 if test "${ac_cv_prog_egrep+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5399 then ac_cv_prog_egrep='grep -E'
5400 else ac_cv_prog_egrep='egrep'
5403 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5404 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5405 EGREP=$ac_cv_prog_egrep
5408 # Extract the first word of "ldconfig", so it can be a program name with args.
5409 set dummy ldconfig; ac_word=$2
5410 echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 case $LDCONFIG in
5416 [\\/]* | ?:[\\/]*)
5417 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in /sbin /usr/sbin $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5434 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5436 esac
5438 LDCONFIG=$ac_cv_path_LDCONFIG
5440 if test -n "$LDCONFIG"; then
5441 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5442 echo "${ECHO_T}$LDCONFIG" >&6
5443 else
5444 echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5448 # Find a good install program. We prefer a C program (faster),
5449 # so one script is as good as another. But avoid the broken or
5450 # incompatible versions:
5451 # SysV /etc/install, /usr/sbin/install
5452 # SunOS /usr/etc/install
5453 # IRIX /sbin/install
5454 # AIX /bin/install
5455 # AmigaOS /C/install, which installs bootblocks on floppy discs
5456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5459 # OS/2's system install, which has a completely different semantic
5460 # ./install, which can be erroneously created by make from ./install.sh.
5461 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5462 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5463 if test -z "$INSTALL"; then
5464 if test "${ac_cv_path_install+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 # Account for people who put trailing slashes in PATH elements.
5473 case $as_dir/ in
5474 ./ | .// | /cC/* | \
5475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5476 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5477 /usr/ucb/* ) ;;
5479 # OSF1 and SCO ODT 3.0 have their own names for install.
5480 # Don't use installbsd from OSF since it installs stuff as root
5481 # by default.
5482 for ac_prog in ginstall scoinst install; do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5485 if test $ac_prog = install &&
5486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5487 # AIX install. It has an incompatible calling convention.
5489 elif test $ac_prog = install &&
5490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5491 # program-specific install script used by HP pwplus--don't use.
5493 else
5494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5495 break 3
5498 done
5499 done
5501 esac
5502 done
5506 if test "${ac_cv_path_install+set}" = set; then
5507 INSTALL=$ac_cv_path_install
5508 else
5509 # As a last resort, use the slow shell script. We don't cache a
5510 # path for INSTALL within a source directory, because that will
5511 # break other packages using the cache if that directory is
5512 # removed, or if the path is relative.
5513 INSTALL=$ac_install_sh
5516 echo "$as_me:$LINENO: result: $INSTALL" >&5
5517 echo "${ECHO_T}$INSTALL" >&6
5519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5520 # It thinks the first close brace ends the variable substitution.
5521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5527 case "$INSTALL" in
5528 [\\/$]* | ?:[\\/]* ) ;;
5529 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5530 esac
5532 for ac_prog in lclint lint
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_LINT+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 if test -n "$LINT"; then
5542 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_LINT="$ac_prog"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5560 LINT=$ac_cv_prog_LINT
5561 if test -n "$LINT"; then
5562 echo "$as_me:$LINENO: result: $LINT" >&5
5563 echo "${ECHO_T}$LINT" >&6
5564 else
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5569 test -n "$LINT" && break
5570 done
5572 if test "$LINT" = "lint"
5573 then
5574 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5579 for ac_prog in fontforge
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 if test -n "$FONTFORGE"; then
5589 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_FONTFORGE="$ac_prog"
5599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5607 FONTFORGE=$ac_cv_prog_FONTFORGE
5608 if test -n "$FONTFORGE"; then
5609 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5610 echo "${ECHO_T}$FONTFORGE" >&6
5611 else
5612 echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5616 test -n "$FONTFORGE" && break
5617 done
5618 test -n "$FONTFORGE" || FONTFORGE="false"
5620 for ac_prog in pkg-config
5622 # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629 if test -n "$PKG_CONFIG"; then
5630 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_PKG_CONFIG="$ac_prog"
5640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5643 done
5644 done
5648 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5649 if test -n "$PKG_CONFIG"; then
5650 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5651 echo "${ECHO_T}$PKG_CONFIG" >&6
5652 else
5653 echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5657 test -n "$PKG_CONFIG" && break
5658 done
5659 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5662 case $host_cpu in
5663 *i[3456789]86*)
5664 for ac_prog in prelink
5666 # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_PRELINK+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 if test -n "$PRELINK"; then
5674 ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in /sbin /usr/sbin $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_PRELINK="$ac_prog"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5692 PRELINK=$ac_cv_prog_PRELINK
5693 if test -n "$PRELINK"; then
5694 echo "$as_me:$LINENO: result: $PRELINK" >&5
5695 echo "${ECHO_T}$PRELINK" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5701 test -n "$PRELINK" && break
5702 done
5703 test -n "$PRELINK" || PRELINK="false"
5706 esac
5710 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5711 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5712 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 ac_check_lib_save_LIBS=$LIBS
5716 LIBS="-li386 $LIBS"
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5724 /* Override any gcc2 internal prototype to avoid an error. */
5725 #ifdef __cplusplus
5726 extern "C"
5727 #endif
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5730 char i386_set_ldt ();
5732 main ()
5734 i386_set_ldt ();
5736 return 0;
5738 _ACEOF
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest$ac_exeext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_cv_lib_i386_i386_set_ldt=yes
5761 else
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ac_cv_lib_i386_i386_set_ldt=no
5767 rm -f conftest.err conftest.$ac_objext \
5768 conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5771 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5772 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5773 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5774 cat >>confdefs.h <<_ACEOF
5775 #define HAVE_LIBI386 1
5776 _ACEOF
5778 LIBS="-li386 $LIBS"
5783 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5784 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5785 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788 ac_check_lib_save_LIBS=$LIBS
5789 LIBS="-lossaudio $LIBS"
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5797 /* Override any gcc2 internal prototype to avoid an error. */
5798 #ifdef __cplusplus
5799 extern "C"
5800 #endif
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5803 char _oss_ioctl ();
5805 main ()
5807 _oss_ioctl ();
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814 (eval $ac_link) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest$ac_exeext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_lib_ossaudio__oss_ioctl=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_cv_lib_ossaudio__oss_ioctl=no
5840 rm -f conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
5842 LIBS=$ac_check_lib_save_LIBS
5844 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5845 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5846 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5847 cat >>confdefs.h <<_ACEOF
5848 #define HAVE_LIBOSSAUDIO 1
5849 _ACEOF
5851 LIBS="-lossaudio $LIBS"
5856 for ac_func in gethostbyname
5858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5859 echo "$as_me:$LINENO: checking for $ac_func" >&5
5860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5861 if eval "test \"\${$as_ac_var+set}\" = set"; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5872 #define $ac_func innocuous_$ac_func
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func (); below.
5876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877 <limits.h> exists even on freestanding compilers. */
5879 #ifdef __STDC__
5880 # include <limits.h>
5881 #else
5882 # include <assert.h>
5883 #endif
5885 #undef $ac_func
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 #ifdef __cplusplus
5889 extern "C"
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894 char $ac_func ();
5895 /* The GNU C library defines this for functions which it implements
5896 to always fail with ENOSYS. Some functions are actually named
5897 something starting with __ and the normal name is an alias. */
5898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5899 choke me
5900 #else
5901 char (*f) () = $ac_func;
5902 #endif
5903 #ifdef __cplusplus
5905 #endif
5908 main ()
5910 return f != $ac_func;
5912 return 0;
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 eval "$as_ac_var=yes"
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 eval "$as_ac_var=no"
5943 rm -f conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5948 if test `eval echo '${'$as_ac_var'}'` = yes; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5951 _ACEOF
5953 else
5955 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5956 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5957 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lnsl $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 /* Override any gcc2 internal prototype to avoid an error. */
5970 #ifdef __cplusplus
5971 extern "C"
5972 #endif
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5975 char gethostbyname ();
5977 main ()
5979 gethostbyname ();
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986 (eval $ac_link) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_lib_nsl_gethostbyname=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_lib_nsl_gethostbyname=no
6012 rm -f conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6014 LIBS=$ac_check_lib_save_LIBS
6016 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6017 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6018 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6019 cat >>confdefs.h <<_ACEOF
6020 #define HAVE_LIBNSL 1
6021 _ACEOF
6023 LIBS="-lnsl $LIBS"
6028 done
6031 for ac_func in connect
6033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6034 echo "$as_me:$LINENO: checking for $ac_func" >&5
6035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_var+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6047 #define $ac_func innocuous_$ac_func
6049 /* System header to define __stub macros and hopefully few prototypes,
6050 which can conflict with char $ac_func (); below.
6051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052 <limits.h> exists even on freestanding compilers. */
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6060 #undef $ac_func
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 #ifdef __cplusplus
6064 extern "C"
6066 #endif
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6069 char $ac_func ();
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6074 choke me
6075 #else
6076 char (*f) () = $ac_func;
6077 #endif
6078 #ifdef __cplusplus
6080 #endif
6083 main ()
6085 return f != $ac_func;
6087 return 0;
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; } &&
6105 { ac_try='test -s conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 eval "$as_ac_var=yes"
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 eval "$as_ac_var=no"
6118 rm -f conftest.err conftest.$ac_objext \
6119 conftest$ac_exeext conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6123 if test `eval echo '${'$as_ac_var'}'` = yes; then
6124 cat >>confdefs.h <<_ACEOF
6125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6126 _ACEOF
6128 else
6130 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6131 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6132 if test "${ac_cv_lib_socket_connect+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lsocket $LIBS"
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6144 /* Override any gcc2 internal prototype to avoid an error. */
6145 #ifdef __cplusplus
6146 extern "C"
6147 #endif
6148 /* We use char because int might match the return type of a gcc2
6149 builtin and then its argument prototype would still apply. */
6150 char connect ();
6152 main ()
6154 connect ();
6156 return 0;
6158 _ACEOF
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161 (eval $ac_link) 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; } &&
6174 { ac_try='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_lib_socket_connect=yes
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_cv_lib_socket_connect=no
6187 rm -f conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6191 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6192 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6193 if test $ac_cv_lib_socket_connect = yes; then
6194 cat >>confdefs.h <<_ACEOF
6195 #define HAVE_LIBSOCKET 1
6196 _ACEOF
6198 LIBS="-lsocket $LIBS"
6203 done
6206 for ac_func in inet_aton
6208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6209 echo "$as_me:$LINENO: checking for $ac_func" >&5
6210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6211 if eval "test \"\${$as_ac_var+set}\" = set"; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6222 #define $ac_func innocuous_$ac_func
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func (); below.
6226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227 <limits.h> exists even on freestanding compilers. */
6229 #ifdef __STDC__
6230 # include <limits.h>
6231 #else
6232 # include <assert.h>
6233 #endif
6235 #undef $ac_func
6237 /* Override any gcc2 internal prototype to avoid an error. */
6238 #ifdef __cplusplus
6239 extern "C"
6241 #endif
6242 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6244 char $ac_func ();
6245 /* The GNU C library defines this for functions which it implements
6246 to always fail with ENOSYS. Some functions are actually named
6247 something starting with __ and the normal name is an alias. */
6248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 choke me
6250 #else
6251 char (*f) () = $ac_func;
6252 #endif
6253 #ifdef __cplusplus
6255 #endif
6258 main ()
6260 return f != $ac_func;
6262 return 0;
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest$ac_exeext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 eval "$as_ac_var=yes"
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 eval "$as_ac_var=no"
6293 rm -f conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6298 if test `eval echo '${'$as_ac_var'}'` = yes; then
6299 cat >>confdefs.h <<_ACEOF
6300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6301 _ACEOF
6303 else
6305 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6306 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6307 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-lresolv $LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6325 char inet_aton ();
6327 main ()
6329 inet_aton ();
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_lib_resolv_inet_aton=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ac_cv_lib_resolv_inet_aton=no
6362 rm -f conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 LIBS=$ac_check_lib_save_LIBS
6366 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6367 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6368 if test $ac_cv_lib_resolv_inet_aton = yes; then
6369 cat >>confdefs.h <<_ACEOF
6370 #define HAVE_LIBRESOLV 1
6371 _ACEOF
6373 LIBS="-lresolv $LIBS"
6378 done
6381 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6382 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6383 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 ac_check_lib_save_LIBS=$LIBS
6387 LIBS="-lxpg4 $LIBS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6401 char _xpg4_setrunelocale ();
6403 main ()
6405 _xpg4_setrunelocale ();
6407 return 0;
6409 _ACEOF
6410 rm -f conftest.$ac_objext conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412 (eval $ac_link) 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try='test -s conftest$ac_exeext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6438 rm -f conftest.err conftest.$ac_objext \
6439 conftest$ac_exeext conftest.$ac_ext
6440 LIBS=$ac_check_lib_save_LIBS
6442 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6443 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6444 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define HAVE_LIBXPG4 1
6447 _ACEOF
6449 LIBS="-lxpg4 $LIBS"
6454 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6455 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6456 if test "${ac_cv_lib_poll_poll+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 ac_check_lib_save_LIBS=$LIBS
6460 LIBS="-lpoll $LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6468 /* Override any gcc2 internal prototype to avoid an error. */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6474 char poll ();
6476 main ()
6478 poll ();
6480 return 0;
6482 _ACEOF
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485 (eval $ac_link) 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_lib_poll_poll=yes
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_cv_lib_poll_poll=no
6511 rm -f conftest.err conftest.$ac_objext \
6512 conftest$ac_exeext conftest.$ac_ext
6513 LIBS=$ac_check_lib_save_LIBS
6515 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6516 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6517 if test $ac_cv_lib_poll_poll = yes; then
6518 cat >>confdefs.h <<_ACEOF
6519 #define HAVE_LIBPOLL 1
6520 _ACEOF
6522 LIBS="-lpoll $LIBS"
6527 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6528 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6529 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 ac_check_lib_save_LIBS=$LIBS
6533 LIBS="-lresolv $LIBS"
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 #ifdef __cplusplus
6543 extern "C"
6544 #endif
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6547 char res_9_init ();
6549 main ()
6551 res_9_init ();
6553 return 0;
6555 _ACEOF
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558 (eval $ac_link) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest$ac_exeext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_cv_lib_resolv_res_9_init=yes
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_lib_resolv_res_9_init=no
6584 rm -f conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6588 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6589 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6590 if test $ac_cv_lib_resolv_res_9_init = yes; then
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBRESOLV 1
6593 _ACEOF
6595 LIBS="-lresolv $LIBS"
6599 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lpthread $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h. */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6613 /* Override any gcc2 internal prototype to avoid an error. */
6614 #ifdef __cplusplus
6615 extern "C"
6616 #endif
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char pthread_create ();
6621 main ()
6623 pthread_create ();
6625 return 0;
6627 _ACEOF
6628 rm -f conftest.$ac_objext conftest$ac_exeext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6630 (eval $ac_link) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest$ac_exeext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_cv_lib_pthread_pthread_create=yes
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_cv_lib_pthread_pthread_create=no
6656 rm -f conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 LIBS=$ac_check_lib_save_LIBS
6660 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6661 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6662 if test $ac_cv_lib_pthread_pthread_create = yes; then
6663 LIBPTHREAD="-lpthread"
6668 XLIB=""
6670 XFILES=""
6672 OPENGLFILES=""
6674 GLU32FILES=""
6676 OPENGL_LIBS=""
6680 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6681 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6682 if test "${ac_cv_header_stdc+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <stdlib.h>
6692 #include <stdarg.h>
6693 #include <string.h>
6694 #include <float.h>
6697 main ()
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_header_stdc=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 ac_cv_header_stdc=no
6732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734 if test $ac_cv_header_stdc = yes; then
6735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <string.h>
6744 _ACEOF
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 $EGREP "memchr" >/dev/null 2>&1; then
6748 else
6749 ac_cv_header_stdc=no
6751 rm -f conftest*
6755 if test $ac_cv_header_stdc = yes; then
6756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 #include <stdlib.h>
6765 _ACEOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 $EGREP "free" >/dev/null 2>&1; then
6769 else
6770 ac_cv_header_stdc=no
6772 rm -f conftest*
6776 if test $ac_cv_header_stdc = yes; then
6777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6778 if test "$cross_compiling" = yes; then
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <ctype.h>
6788 #if ((' ' & 0x0FF) == 0x020)
6789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6791 #else
6792 # define ISLOWER(c) \
6793 (('a' <= (c) && (c) <= 'i') \
6794 || ('j' <= (c) && (c) <= 'r') \
6795 || ('s' <= (c) && (c) <= 'z'))
6796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6797 #endif
6799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6801 main ()
6803 int i;
6804 for (i = 0; i < 256; i++)
6805 if (XOR (islower (i), ISLOWER (i))
6806 || toupper (i) != TOUPPER (i))
6807 exit(2);
6808 exit (0);
6810 _ACEOF
6811 rm -f conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6823 else
6824 echo "$as_me: program exited with status $ac_status" >&5
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 ( exit $ac_status )
6829 ac_cv_header_stdc=no
6831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6837 if test $ac_cv_header_stdc = yes; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define STDC_HEADERS 1
6841 _ACEOF
6845 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6855 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6856 inttypes.h stdint.h unistd.h
6858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6859 echo "$as_me:$LINENO: checking for $ac_header" >&5
6860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6872 #include <$ac_header>
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 eval "$as_ac_Header=yes"
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 eval "$as_ac_Header=no"
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6909 _ACEOF
6913 done
7020 for ac_header in \
7021 IOKit/IOKitLib.h \
7022 alsa/asoundlib.h \
7023 arpa/inet.h \
7024 arpa/nameser.h \
7025 asm/types.h \
7026 capi20.h \
7027 cups/cups.h \
7028 curses.h \
7029 direct.h \
7030 dlfcn.h \
7031 elf.h \
7032 float.h \
7033 fontconfig/fontconfig.h \
7034 getopt.h \
7035 gif_lib.h \
7036 ieeefp.h \
7037 io.h \
7038 jack/jack.h \
7039 jpeglib.h \
7040 lber.h \
7041 lcms.h \
7042 lcms/lcms.h \
7043 ldap.h \
7044 libaudioio.h \
7045 link.h \
7046 linux/cdrom.h \
7047 linux/compiler.h \
7048 linux/hdreg.h \
7049 linux/input.h \
7050 linux/ioctl.h \
7051 linux/joystick.h \
7052 linux/major.h \
7053 linux/param.h \
7054 linux/serial.h \
7055 linux/ucdrom.h \
7056 mach/machine.h \
7057 machine/cpu.h \
7058 machine/limits.h \
7059 machine/soundcard.h \
7060 mntent.h \
7061 ncurses.h \
7062 netdb.h \
7063 netinet/in.h \
7064 netinet/in_systm.h \
7065 netinet/tcp.h \
7066 netinet/tcp_fsm.h \
7067 openssl/err.h \
7068 openssl/ssl.h \
7069 poll.h \
7070 process.h \
7071 pthread.h \
7072 pwd.h \
7073 regex.h \
7074 sched.h \
7075 scsi/scsi.h \
7076 scsi/scsi_ioctl.h \
7077 scsi/sg.h \
7078 soundcard.h \
7079 stdint.h \
7080 strings.h \
7081 sys/asoundlib.h \
7082 sys/cdio.h \
7083 sys/elf32.h \
7084 sys/epoll.h \
7085 sys/errno.h \
7086 sys/exec_elf.h \
7087 sys/filio.h \
7088 sys/ioctl.h \
7089 sys/ipc.h \
7090 sys/limits.h \
7091 sys/link.h \
7092 sys/lwp.h \
7093 sys/mman.h \
7094 sys/modem.h \
7095 sys/msg.h \
7096 sys/mtio.h \
7097 sys/param.h \
7098 sys/poll.h \
7099 sys/prctl.h \
7100 sys/ptrace.h \
7101 sys/reg.h \
7102 sys/resource.h \
7103 sys/scsiio.h \
7104 sys/shm.h \
7105 sys/signal.h \
7106 sys/socket.h \
7107 sys/sockio.h \
7108 sys/soundcard.h \
7109 sys/statvfs.h \
7110 sys/strtio.h \
7111 sys/syscall.h \
7112 sys/sysctl.h \
7113 sys/time.h \
7114 sys/times.h \
7115 sys/uio.h \
7116 sys/un.h \
7117 sys/vm86.h \
7118 sys/wait.h \
7119 syscall.h \
7120 termios.h \
7121 unicode/ubidi.h \
7122 unistd.h \
7123 utime.h \
7124 valgrind/memcheck.h
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129 echo "$as_me:$LINENO: checking for $ac_header" >&5
7130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7136 else
7137 # Is the header compilable?
7138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 #include <$ac_header>
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_header_compiler=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_header_compiler=no
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6
7181 # Is the header present?
7182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <$ac_header>
7191 _ACEOF
7192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } >/dev/null; then
7200 if test -s conftest.err; then
7201 ac_cpp_err=$ac_c_preproc_warn_flag
7202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7203 else
7204 ac_cpp_err=
7206 else
7207 ac_cpp_err=yes
7209 if test -z "$ac_cpp_err"; then
7210 ac_header_preproc=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_header_preproc=no
7217 rm -f conftest.err conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7219 echo "${ECHO_T}$ac_header_preproc" >&6
7221 # So? What about this header?
7222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223 yes:no: )
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7228 ac_header_preproc=yes
7230 no:yes:* )
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7244 cat <<\_ASBOX
7245 ## ------------------------------------ ##
7246 ## Report this to wine-devel@winehq.org ##
7247 ## ------------------------------------ ##
7248 _ASBOX
7250 sed "s/^/$as_me: WARNING: /" >&2
7252 esac
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 eval "$as_ac_Header=\$ac_header_preproc"
7260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7265 cat >>confdefs.h <<_ACEOF
7266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7271 done
7273 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7274 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7275 if test "${ac_cv_header_stat_broken+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/types.h>
7285 #include <sys/stat.h>
7287 #if defined(S_ISBLK) && defined(S_IFDIR)
7288 # if S_ISBLK (S_IFDIR)
7289 You lose.
7290 # endif
7291 #endif
7293 #if defined(S_ISBLK) && defined(S_IFCHR)
7294 # if S_ISBLK (S_IFCHR)
7295 You lose.
7296 # endif
7297 #endif
7299 #if defined(S_ISLNK) && defined(S_IFREG)
7300 # if S_ISLNK (S_IFREG)
7301 You lose.
7302 # endif
7303 #endif
7305 #if defined(S_ISSOCK) && defined(S_IFREG)
7306 # if S_ISSOCK (S_IFREG)
7307 You lose.
7308 # endif
7309 #endif
7311 _ACEOF
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313 $EGREP "You lose" >/dev/null 2>&1; then
7314 ac_cv_header_stat_broken=yes
7315 else
7316 ac_cv_header_stat_broken=no
7318 rm -f conftest*
7321 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7322 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7323 if test $ac_cv_header_stat_broken = yes; then
7325 cat >>confdefs.h <<\_ACEOF
7326 #define STAT_MACROS_BROKEN 1
7327 _ACEOF
7337 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h. */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7351 #include <sys/types.h>
7352 #if HAVE_SYS_PARAM_H
7353 # include <sys/param.h>
7354 #endif
7356 #include <$ac_header>
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360 (eval $ac_compile) 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } &&
7367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 eval "$as_ac_Header=yes"
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 eval "$as_ac_Header=no"
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7391 cat >>confdefs.h <<_ACEOF
7392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 _ACEOF
7397 done
7406 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #include <sys/types.h>
7421 #if HAVE_SYS_SOCKET_H
7422 # include <sys/socket.h>
7423 #endif
7425 #include <$ac_header>
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429 (eval $ac_compile) 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } &&
7436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest.$ac_objext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 eval "$as_ac_Header=yes"
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 eval "$as_ac_Header=no"
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7460 cat >>confdefs.h <<_ACEOF
7461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 _ACEOF
7466 done
7470 for ac_header in resolv.h
7472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #if HAVE_SYS_SOCKET_H
7486 # include <sys/socket.h>
7487 #endif
7488 #if HAVE_NETINET_IN_H
7489 # include <netinet/in.h>
7490 #endif
7491 #if HAVE_ARPA_NAMESER_H
7492 # include <arpa/nameser.h>
7493 #endif
7495 #include <$ac_header>
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499 (eval $ac_compile) 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 (eval $ac_try) 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest.$ac_objext'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 (eval $ac_try) 2>&5
7515 ac_status=$?
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7518 eval "$as_ac_Header=yes"
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 eval "$as_ac_Header=no"
7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7530 cat >>confdefs.h <<_ACEOF
7531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532 _ACEOF
7536 done
7540 for ac_header in ucontext.h
7542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <signal.h>
7556 #include <$ac_header>
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560 (eval $ac_compile) 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest.$ac_objext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 eval "$as_ac_Header=yes"
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 eval "$as_ac_Header=no"
7586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7591 cat >>confdefs.h <<_ACEOF
7592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 _ACEOF
7597 done
7602 for ac_header in linux/ipx.h linux/videodev.h
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #ifdef HAVE_SYS_TIME_H
7617 #include <sys/time.h>
7618 #endif
7619 #include <sys/types.h>
7620 #ifdef HAVE_ASM_TYPES_H
7621 #include <asm/types.h>
7622 #endif
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 eval "$as_ac_Header=yes"
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 eval "$as_ac_Header=no"
7654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7659 cat >>confdefs.h <<_ACEOF
7660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7661 _ACEOF
7665 done
7669 for ac_header in linux/capi.h
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 #define __user
7685 #include <$ac_header>
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689 (eval $ac_compile) 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest.$ac_objext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 eval "$as_ac_Header=yes"
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 eval "$as_ac_Header=no"
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720 cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7722 _ACEOF
7726 done
7730 if test "$have_x" = "yes"
7731 then
7732 XLIB="-lXext -lX11"
7733 ac_save_CPPFLAGS="$CPPFLAGS"
7734 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7746 for ac_header in X11/Xlib.h \
7747 X11/XKBlib.h \
7748 X11/Xutil.h \
7749 X11/extensions/shape.h \
7750 X11/extensions/XInput.h \
7751 X11/extensions/XShm.h \
7752 X11/extensions/Xrandr.h \
7753 X11/extensions/Xrender.h \
7754 X11/extensions/xf86dga.h \
7755 X11/extensions/xf86vmode.h
7757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7769 #ifdef HAVE_X11_XLIB_H
7770 # include <X11/Xlib.h>
7771 #endif
7772 #ifdef HAVE_X11_XUTIL_H
7773 # include <X11/Xutil.h>
7774 #endif
7776 #include <$ac_header>
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780 (eval $ac_compile) 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 eval "$as_ac_Header=yes"
7800 else
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 eval "$as_ac_Header=no"
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811 cat >>confdefs.h <<_ACEOF
7812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813 _ACEOF
7817 done
7820 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7821 then
7822 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7823 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7824 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827 ac_check_lib_save_LIBS=$LIBS
7828 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7836 /* Override any gcc2 internal prototype to avoid an error. */
7837 #ifdef __cplusplus
7838 extern "C"
7839 #endif
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842 char XkbQueryExtension ();
7844 main ()
7846 XkbQueryExtension ();
7848 return 0;
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853 (eval $ac_link) 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_lib_X11_XkbQueryExtension=yes
7873 else
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_cv_lib_X11_XkbQueryExtension=no
7879 rm -f conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7884 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7885 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_XKB 1
7889 _ACEOF
7895 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7896 then
7897 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7898 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7899 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902 ac_check_lib_save_LIBS=$LIBS
7903 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7911 /* Override any gcc2 internal prototype to avoid an error. */
7912 #ifdef __cplusplus
7913 extern "C"
7914 #endif
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7917 char XShmQueryExtension ();
7919 main ()
7921 XShmQueryExtension ();
7923 return 0;
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928 (eval $ac_link) 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_cv_lib_Xext_XShmQueryExtension=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_lib_Xext_XShmQueryExtension=no
7954 rm -f conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7959 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7960 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_LIBXXSHM 1
7964 _ACEOF
7970 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7971 then
7972 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7973 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7974 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char XShapeQueryExtension ();
7994 main ()
7996 XShapeQueryExtension ();
7998 return 0;
8000 _ACEOF
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003 (eval $ac_link) 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_lib_Xext_XShapeQueryExtension=yes
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_cv_lib_Xext_XShapeQueryExtension=no
8029 rm -f conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031 LIBS=$ac_check_lib_save_LIBS
8033 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8034 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8035 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8037 cat >>confdefs.h <<\_ACEOF
8038 #define HAVE_LIBXSHAPE 1
8039 _ACEOF
8045 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8046 then
8047 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8048 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8049 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8061 /* Override any gcc2 internal prototype to avoid an error. */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067 char XDGAQueryExtension ();
8069 main ()
8071 XDGAQueryExtension ();
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8098 else
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8104 rm -f conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_check_lib_save_LIBS
8108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8109 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8110 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_LIBXXF86DGA2 1
8114 _ACEOF
8116 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8122 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8123 then
8124 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8125 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8126 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8138 /* Override any gcc2 internal prototype to avoid an error. */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144 char XF86VidModeQueryExtension ();
8146 main ()
8148 XF86VidModeQueryExtension ();
8150 return 0;
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8175 else
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8181 rm -f conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8183 LIBS=$ac_check_lib_save_LIBS
8185 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8186 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8187 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8189 cat >>confdefs.h <<\_ACEOF
8190 #define HAVE_LIBXXF86VM 1
8191 _ACEOF
8193 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8199 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8200 then
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h. */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 #include <X11/Xlib.h>
8208 #include <X11/extensions/Xrandr.h>
8210 main ()
8212 static typeof(XRRSetScreenConfigAndRate) * func;
8214 return 0;
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest.$ac_objext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8239 cat >>confdefs.h <<\_ACEOF
8240 #define HAVE_LIBXRANDR 1
8241 _ACEOF
8243 else
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8252 then
8253 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8254 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8255 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258 ac_check_lib_save_LIBS=$LIBS
8259 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273 char XRenderSetPictureTransform ();
8275 main ()
8277 XRenderSetPictureTransform ();
8279 return 0;
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8310 rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8315 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8316 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8320 _ACEOF
8326 if test "x$with_opengl" != "xno"
8327 then
8332 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
8334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 #ifdef HAVE_GL_GLX_H
8347 # include <GL/glx.h>
8348 #endif
8350 #include <$ac_header>
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354 (eval $ac_compile) 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 eval "$as_ac_Header=yes"
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 eval "$as_ac_Header=no"
8380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8391 done
8393 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8394 then
8395 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8396 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8397 if test "${wine_cv_opengl_version_OK+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <GL/gl.h>
8408 main ()
8410 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8412 return 0;
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417 (eval $ac_compile) 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 wine_cv_opengl_version_OK="yes"
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 wine_cv_opengl_version_OK="no"
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8448 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8450 if test "$wine_cv_opengl_version_OK" = "yes"
8451 then
8452 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8453 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8454 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457 ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h. */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8466 /* Override any gcc2 internal prototype to avoid an error. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char glXCreateContext ();
8474 main ()
8476 glXCreateContext ();
8478 return 0;
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_lib_GL_glXCreateContext=yes
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_cv_lib_GL_glXCreateContext=no
8509 rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8513 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8514 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8515 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8516 OPENGL_LIBS="-lGL"
8521 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8522 then
8523 OPENGLFILES='$(OPENGLFILES)'
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_OPENGL 1
8527 _ACEOF
8529 else
8530 if test -f /usr/X11R6/lib/libGL.a
8531 then
8532 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8533 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8534 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8535 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8536 { (exit 1); exit 1; }; }
8540 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8541 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8542 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 ac_check_lib_save_LIBS=$LIBS
8546 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8547 $LIBS"
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561 char gluLookAt ();
8563 main ()
8565 gluLookAt ();
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572 (eval $ac_link) 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; } &&
8585 { ac_try='test -s conftest$ac_exeext'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
8591 ac_cv_lib_GLU_gluLookAt=yes
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ac_cv_lib_GLU_gluLookAt=no
8598 rm -f conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8600 LIBS=$ac_check_lib_save_LIBS
8602 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8603 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8604 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8605 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8606 GLU32FILES='$(GLU32FILES)'
8612 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8613 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8614 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8626 /* Override any gcc2 internal prototype to avoid an error. */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 /* We use char because int might match the return type of a gcc2
8631 builtin and then its argument prototype would still apply. */
8632 char glutMainLoop ();
8634 main ()
8636 glutMainLoop ();
8638 return 0;
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643 (eval $ac_link) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest$ac_exeext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_lib_glut_glutMainLoop=yes
8663 else
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_cv_lib_glut_glutMainLoop=no
8669 rm -f conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
8671 LIBS=$ac_check_lib_save_LIBS
8673 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8674 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8675 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8676 GLUT_LIBS="-lglut -lXmu -lXi"
8678 GLUT32FILES='$(GLUT32FILES)'
8685 NASLIBS=""
8688 for ac_header in audio/audiolib.h
8690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8699 else
8700 # Is the header compilable?
8701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 #include <$ac_header>
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_header_compiler=yes
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_header_compiler=no
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6
8744 # Is the header present?
8745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 #include <$ac_header>
8754 _ACEOF
8755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } >/dev/null; then
8763 if test -s conftest.err; then
8764 ac_cpp_err=$ac_c_preproc_warn_flag
8765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8766 else
8767 ac_cpp_err=
8769 else
8770 ac_cpp_err=yes
8772 if test -z "$ac_cpp_err"; then
8773 ac_header_preproc=yes
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_header_preproc=no
8780 rm -f conftest.err conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8782 echo "${ECHO_T}$ac_header_preproc" >&6
8784 # So? What about this header?
8785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8786 yes:no: )
8787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8791 ac_header_preproc=yes
8793 no:yes:* )
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8807 cat <<\_ASBOX
8808 ## ------------------------------------ ##
8809 ## Report this to wine-devel@winehq.org ##
8810 ## ------------------------------------ ##
8811 _ASBOX
8813 sed "s/^/$as_me: WARNING: /" >&2
8815 esac
8816 echo "$as_me:$LINENO: checking for $ac_header" >&5
8817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 eval "$as_ac_Header=\$ac_header_preproc"
8823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8828 cat >>confdefs.h <<_ACEOF
8829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8830 _ACEOF
8832 for ac_header in audio/soundlib.h
8834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8835 echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <audio/audiolib.h>
8848 #include <$ac_header>
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 eval "$as_ac_Header=yes"
8872 else
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 eval "$as_ac_Header=no"
8878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883 cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 _ACEOF
8889 done
8891 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8892 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8893 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8905 /* Override any gcc2 internal prototype to avoid an error. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8911 char AuCreateFlow ();
8913 main ()
8915 AuCreateFlow ();
8917 return 0;
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_lib_audio_AuCreateFlow=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_lib_audio_AuCreateFlow=no
8948 rm -f conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8952 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8953 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8954 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_NAS 1
8958 _ACEOF
8960 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8965 done
8968 CPPFLAGS="$ac_save_CPPFLAGS"
8969 XFILES='$(XFILES)'
8970 else
8971 XLIB=""
8972 X_CFLAGS=""
8973 X_LIBS=""
8977 XML2LIBS=""
8979 XML2INCL=""
8981 XSLTLIBS=""
8983 XSLTINCL=""
8985 if test "$PKG_CONFIG" != "false"
8986 then
8987 ac_save_CPPFLAGS="$CPPFLAGS"
8988 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`"
8989 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
8990 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8992 for ac_header in libxml/parser.h
8994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996 echo "$as_me:$LINENO: checking for $ac_header" >&5
8997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9003 else
9004 # Is the header compilable?
9005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9014 #include <$ac_header>
9015 _ACEOF
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018 (eval $ac_compile) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try='test -s conftest.$ac_objext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_header_compiler=yes
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9042 ac_header_compiler=no
9044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046 echo "${ECHO_T}$ac_header_compiler" >&6
9048 # Is the header present?
9049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h. */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 #include <$ac_header>
9058 _ACEOF
9059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9061 ac_status=$?
9062 grep -v '^ *+' conftest.er1 >conftest.err
9063 rm -f conftest.er1
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } >/dev/null; then
9067 if test -s conftest.err; then
9068 ac_cpp_err=$ac_c_preproc_warn_flag
9069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9070 else
9071 ac_cpp_err=
9073 else
9074 ac_cpp_err=yes
9076 if test -z "$ac_cpp_err"; then
9077 ac_header_preproc=yes
9078 else
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_header_preproc=no
9084 rm -f conftest.err conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6
9088 # So? What about this header?
9089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9090 yes:no: )
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095 ac_header_preproc=yes
9097 no:yes:* )
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9111 cat <<\_ASBOX
9112 ## ------------------------------------ ##
9113 ## Report this to wine-devel@winehq.org ##
9114 ## ------------------------------------ ##
9115 _ASBOX
9117 sed "s/^/$as_me: WARNING: /" >&2
9119 esac
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125 eval "$as_ac_Header=\$ac_header_preproc"
9127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9132 cat >>confdefs.h <<_ACEOF
9133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9134 _ACEOF
9135 echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9136 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6
9137 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140 ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lxml2 $ac_xml_libs $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h. */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9149 /* Override any gcc2 internal prototype to avoid an error. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 /* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155 char xmlParseMemory ();
9157 main ()
9159 xmlParseMemory ();
9161 return 0;
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_xml2_xmlParseMemory=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_cv_lib_xml2_xmlParseMemory=no
9192 rm -f conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_check_lib_save_LIBS
9196 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9197 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6
9198 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_LIBXML2 1
9202 _ACEOF
9204 XML2LIBS="$ac_xml_libs"
9205 XML2INCL="$ac_xml_cflags"
9208 echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
9209 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6
9210 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213 ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lxml2 $ac_xml_libs $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 /* Override any gcc2 internal prototype to avoid an error. */
9223 #ifdef __cplusplus
9224 extern "C"
9225 #endif
9226 /* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9228 char xmlReadMemory ();
9230 main ()
9232 xmlReadMemory ();
9234 return 0;
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 (eval $ac_try) 2>&5
9249 ac_status=$?
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; } &&
9252 { ac_try='test -s conftest$ac_exeext'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; }; then
9258 ac_cv_lib_xml2_xmlReadMemory=yes
9259 else
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_cv_lib_xml2_xmlReadMemory=no
9265 rm -f conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9269 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9270 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6
9271 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_XMLREADMEMORY 1
9275 _ACEOF
9282 done
9284 CPPFLAGS="$ac_save_CPPFLAGS"
9285 ac_xslt_libs="`$PKG_CONFIG --libs libxslt`"
9286 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`"
9287 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9290 for ac_header in libxslt/pattern.h libxslt/transform.h
9292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #ifdef HAVE_LIBXSLT_PATTERN_H
9305 # include <libxslt/pattern.h>
9306 #endif
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 eval "$as_ac_Header=yes"
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 eval "$as_ac_Header=no"
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9343 cat >>confdefs.h <<_ACEOF
9344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 _ACEOF
9346 echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
9347 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6
9348 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-lxslt $ac_xslt_libs $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9360 /* Override any gcc2 internal prototype to avoid an error. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9366 char xsltCompilePattern ();
9368 main ()
9370 xsltCompilePattern ();
9372 return 0;
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_lib_xslt_xsltCompilePattern=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_cv_lib_xslt_xsltCompilePattern=no
9403 rm -f conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9407 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
9408 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6
9409 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_LIBXSLT 1
9413 _ACEOF
9415 XSLTLIBS="$ac_xslt_libs"
9416 XSLTINCL="$ac_xslt_cflags"
9422 done
9424 CPPFLAGS="$ac_save_CPPFLAGS"
9427 HALINCL=""
9429 if test "$PKG_CONFIG" != "false"
9430 then
9431 ac_save_CPPFLAGS="$CPPFLAGS"
9432 ac_hal_libs="`$PKG_CONFIG --libs hal`"
9433 ac_hal_cflags="`$PKG_CONFIG --cflags hal`"
9434 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9437 for ac_header in dbus/dbus.h hal/libhal.h
9439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9441 echo "$as_me:$LINENO: checking for $ac_header" >&5
9442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9448 else
9449 # Is the header compilable?
9450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 $ac_includes_default
9459 #include <$ac_header>
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>conftest.er1
9464 ac_status=$?
9465 grep -v '^ *+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_header_compiler=yes
9483 else
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ac_header_compiler=no
9489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9491 echo "${ECHO_T}$ac_header_compiler" >&6
9493 # Is the header present?
9494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 #include <$ac_header>
9503 _ACEOF
9504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } >/dev/null; then
9512 if test -s conftest.err; then
9513 ac_cpp_err=$ac_c_preproc_warn_flag
9514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9515 else
9516 ac_cpp_err=
9518 else
9519 ac_cpp_err=yes
9521 if test -z "$ac_cpp_err"; then
9522 ac_header_preproc=yes
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_header_preproc=no
9529 rm -f conftest.err conftest.$ac_ext
9530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9531 echo "${ECHO_T}$ac_header_preproc" >&6
9533 # So? What about this header?
9534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9535 yes:no: )
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9540 ac_header_preproc=yes
9542 no:yes:* )
9543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9556 cat <<\_ASBOX
9557 ## ------------------------------------ ##
9558 ## Report this to wine-devel@winehq.org ##
9559 ## ------------------------------------ ##
9560 _ASBOX
9562 sed "s/^/$as_me: WARNING: /" >&2
9564 esac
9565 echo "$as_me:$LINENO: checking for $ac_header" >&5
9566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570 eval "$as_ac_Header=\$ac_header_preproc"
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9579 _ACEOF
9583 done
9585 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9586 then
9587 echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
9588 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6
9589 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-lhal $LIBS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any gcc2 internal prototype to avoid an error. */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607 char libhal_ctx_new ();
9609 main ()
9611 libhal_ctx_new ();
9613 return 0;
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_cv_lib_hal_libhal_ctx_new=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 ac_cv_lib_hal_libhal_ctx_new=no
9644 rm -f conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9648 echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
9649 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6
9650 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
9651 echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
9652 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6
9653 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9665 /* Override any gcc2 internal prototype to avoid an error. */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9671 char dbus_connection_close ();
9673 main ()
9675 dbus_connection_close ();
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 (eval $ac_try) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_lib_dbus_1_dbus_connection_close=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_lib_dbus_1_dbus_connection_close=no
9708 rm -f conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9712 echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9713 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6
9714 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_LIBHAL 1
9718 _ACEOF
9720 HALINCL="$ac_hal_cflags"
9726 CPPFLAGS="$ac_save_CPPFLAGS"
9729 CURSESLIBS=""
9730 if test "x$with_curses" != "xno"
9731 then
9732 if test "$ac_cv_header_ncurses_h" = "yes"
9733 then
9734 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9735 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9736 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 ac_check_lib_save_LIBS=$LIBS
9740 LIBS="-lncurses $LIBS"
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char waddch ();
9756 main ()
9758 waddch ();
9760 return 0;
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_ncurses_waddch=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_ncurses_waddch=no
9791 rm -f conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS=$ac_check_lib_save_LIBS
9795 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9796 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9797 if test $ac_cv_lib_ncurses_waddch = yes; then
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_LIBNCURSES 1
9801 _ACEOF
9803 CURSESLIBS="-lncurses"
9806 elif test "$ac_cv_header_curses_h" = "yes"
9807 then
9808 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9809 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9810 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lcurses $LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828 char waddch ();
9830 main ()
9832 waddch ();
9834 return 0;
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 ac_cv_lib_curses_waddch=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_cv_lib_curses_waddch=no
9865 rm -f conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9869 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9870 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9871 if test $ac_cv_lib_curses_waddch = yes; then
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_LIBCURSES 1
9875 _ACEOF
9877 CURSESLIBS="-lcurses"
9884 # Extract the first word of "sane-config", so it can be a program name with args.
9885 set dummy sane-config; ac_word=$2
9886 echo "$as_me:$LINENO: checking for $ac_word" >&5
9887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9888 if test "${ac_cv_prog_sane_devel+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 if test -n "$sane_devel"; then
9892 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_sane_devel="sane-config"
9902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9905 done
9906 done
9908 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9911 sane_devel=$ac_cv_prog_sane_devel
9912 if test -n "$sane_devel"; then
9913 echo "$as_me:$LINENO: result: $sane_devel" >&5
9914 echo "${ECHO_T}$sane_devel" >&6
9915 else
9916 echo "$as_me:$LINENO: result: no" >&5
9917 echo "${ECHO_T}no" >&6
9920 SANELIBS=""
9922 SANEINCL=""
9924 if test "$sane_devel" != "no"
9925 then
9926 SANELIBS="`$sane_devel --libs`"
9927 SANEINCL="`$sane_devel --cflags`"
9928 ac_save_CPPFLAGS="$CPPFLAGS"
9929 ac_save_LIBS="$LIBS"
9930 CPPFLAGS="$CPPFLAGS $SANEINCL"
9931 LIBS="$LIBS $SANELIBS"
9932 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9933 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9934 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9935 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9939 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9940 else
9941 # Is the header compilable?
9942 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9943 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 $ac_includes_default
9951 #include <sane/sane.h>
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest.$ac_objext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_header_compiler=yes
9975 else
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_header_compiler=no
9981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9987 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <sane/sane.h>
9995 _ACEOF
9996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } >/dev/null; then
10004 if test -s conftest.err; then
10005 ac_cpp_err=$ac_c_preproc_warn_flag
10006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10007 else
10008 ac_cpp_err=
10010 else
10011 ac_cpp_err=yes
10013 if test -z "$ac_cpp_err"; then
10014 ac_header_preproc=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_header_preproc=no
10021 rm -f conftest.err conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10023 echo "${ECHO_T}$ac_header_preproc" >&6
10025 # So? What about this header?
10026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10027 yes:no: )
10028 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10029 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10031 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10032 ac_header_preproc=yes
10034 no:yes:* )
10035 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10036 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10038 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10040 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10042 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10044 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10046 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10048 cat <<\_ASBOX
10049 ## ------------------------------------ ##
10050 ## Report this to wine-devel@winehq.org ##
10051 ## ------------------------------------ ##
10052 _ASBOX
10054 sed "s/^/$as_me: WARNING: /" >&2
10056 esac
10057 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10058 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10059 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 ac_cv_header_sane_sane_h=$ac_header_preproc
10064 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10065 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10068 if test $ac_cv_header_sane_sane_h = yes; then
10069 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10070 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10071 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-lsane $LIBS"
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any gcc2 internal prototype to avoid an error. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 /* We use char because int might match the return type of a gcc2
10088 builtin and then its argument prototype would still apply. */
10089 char sane_open ();
10091 main ()
10093 sane_open ();
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_lib_sane_sane_open=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_cv_lib_sane_sane_open=no
10126 rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10131 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10132 if test $ac_cv_lib_sane_sane_open = yes; then
10134 cat >>confdefs.h <<\_ACEOF
10135 #define HAVE_SANE 1
10136 _ACEOF
10138 else
10139 SANELIBS=""
10140 SANEINCL=""
10143 else
10144 SANELIBS=""
10145 SANEINCL=""
10149 LIBS="$ac_save_LIBS"
10150 CPPFLAGS="$ac_save_CPPFLAGS"
10153 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10154 then
10155 saved_libs="$LIBS"
10156 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10157 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10158 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10159 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10160 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10161 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <unicode/ubidi.h>
10170 main ()
10172 ubidi_open()
10174 return 0;
10176 _ACEOF
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10179 (eval $ac_link) 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest$ac_exeext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_ICU 1
10201 _ACEOF
10203 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10205 echo "$as_me:$LINENO: result: yes" >&5
10206 echo "${ECHO_T}yes" >&6
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 echo "$as_me:$LINENO: result: no" >&5
10212 echo "${ECHO_T}no" >&6
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LIBS="$saved_libs"
10219 RESOLVLIBS=""
10221 if test "$ac_cv_header_resolv_h" = "yes"
10222 then
10223 echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
10224 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6
10225 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228 ac_check_lib_save_LIBS=$LIBS
10229 LIBS="-lresolv $LIBS"
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10237 /* Override any gcc2 internal prototype to avoid an error. */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 /* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10243 char res_query ();
10245 main ()
10247 res_query ();
10249 return 0;
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254 (eval $ac_link) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_lib_resolv_res_query=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_cv_lib_resolv_res_query=no
10280 rm -f conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10284 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
10285 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6
10286 if test $ac_cv_lib_resolv_res_query = yes; then
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_RESOLV 1
10290 _ACEOF
10292 RESOLVLIBS="-lresolv"
10297 LCMSLIBS=""
10299 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10300 then
10301 echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
10302 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
10303 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-llcms $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10315 /* Override any gcc2 internal prototype to avoid an error. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 /* We use char because int might match the return type of a gcc2
10320 builtin and then its argument prototype would still apply. */
10321 char cmsOpenProfileFromFile ();
10323 main ()
10325 cmsOpenProfileFromFile ();
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10358 rm -f conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 LIBS=$ac_check_lib_save_LIBS
10362 echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10363 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
10364 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_LCMS 1
10368 _ACEOF
10370 LCMSLIBS="-llcms"
10375 LDAPLIBS=""
10377 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
10378 then
10379 echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
10380 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6
10381 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384 ac_check_lib_save_LIBS=$LIBS
10385 LIBS="-lldap_r $LIBPTHREAD $LIBS"
10386 cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h. */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10393 /* Override any gcc2 internal prototype to avoid an error. */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 /* We use char because int might match the return type of a gcc2
10398 builtin and then its argument prototype would still apply. */
10399 char ldap_initialize ();
10401 main ()
10403 ldap_initialize ();
10405 return 0;
10407 _ACEOF
10408 rm -f conftest.$ac_objext conftest$ac_exeext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10429 ac_cv_lib_ldap_r_ldap_initialize=yes
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_cv_lib_ldap_r_ldap_initialize=no
10436 rm -f conftest.err conftest.$ac_objext \
10437 conftest$ac_exeext conftest.$ac_ext
10438 LIBS=$ac_check_lib_save_LIBS
10440 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
10441 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6
10442 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
10443 echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10444 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6
10445 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-llber $LIBPTHREAD $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10457 /* Override any gcc2 internal prototype to avoid an error. */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 /* We use char because int might match the return type of a gcc2
10462 builtin and then its argument prototype would still apply. */
10463 char ber_init ();
10465 main ()
10467 ber_init ();
10469 return 0;
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; } &&
10487 { ac_try='test -s conftest$ac_exeext'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10493 ac_cv_lib_lber_ber_init=yes
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_cv_lib_lber_ber_init=no
10500 rm -f conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LIBS=$ac_check_lib_save_LIBS
10504 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10505 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6
10506 if test $ac_cv_lib_lber_ber_init = yes; then
10508 cat >>confdefs.h <<\_ACEOF
10509 #define HAVE_LDAP 1
10510 _ACEOF
10512 LDAPLIBS="-lldap_r -llber"
10517 ac_wine_check_funcs_save_LIBS="$LIBS"
10518 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
10523 for ac_func in \
10524 ldap_count_references \
10525 ldap_first_reference \
10526 ldap_next_reference \
10527 ldap_parse_reference
10529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10530 echo "$as_me:$LINENO: checking for $ac_func" >&5
10531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10532 if eval "test \"\${$as_ac_var+set}\" = set"; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10543 #define $ac_func innocuous_$ac_func
10545 /* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char $ac_func (); below.
10547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548 <limits.h> exists even on freestanding compilers. */
10550 #ifdef __STDC__
10551 # include <limits.h>
10552 #else
10553 # include <assert.h>
10554 #endif
10556 #undef $ac_func
10558 /* Override any gcc2 internal prototype to avoid an error. */
10559 #ifdef __cplusplus
10560 extern "C"
10562 #endif
10563 /* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10565 char $ac_func ();
10566 /* The GNU C library defines this for functions which it implements
10567 to always fail with ENOSYS. Some functions are actually named
10568 something starting with __ and the normal name is an alias. */
10569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10570 choke me
10571 #else
10572 char (*f) () = $ac_func;
10573 #endif
10574 #ifdef __cplusplus
10576 #endif
10579 main ()
10581 return f != $ac_func;
10583 return 0;
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 (eval $ac_link) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; } &&
10601 { ac_try='test -s conftest$ac_exeext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 eval "$as_ac_var=yes"
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 eval "$as_ac_var=no"
10614 rm -f conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10619 if test `eval echo '${'$as_ac_var'}'` = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10622 _ACEOF
10625 done
10627 LIBS="$ac_wine_check_funcs_save_LIBS"
10630 FREETYPELIBS=""
10632 FREETYPEINCL=""
10634 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10635 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10636 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-lfreetype $X_LIBS $LIBS"
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any gcc2 internal prototype to avoid an error. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char FT_Init_FreeType ();
10656 main ()
10658 FT_Init_FreeType ();
10660 return 0;
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_freetype_FT_Init_FreeType=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ac_cv_lib_freetype_FT_Init_FreeType=no
10691 rm -f conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10696 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10697 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10698 ft_lib=yes
10699 else
10700 ft_lib=no
10703 if test "$ft_lib" = "no"
10704 then
10705 wine_cv_msg_freetype=no
10706 else
10707 # Extract the first word of "freetype-config", so it can be a program name with args.
10708 set dummy freetype-config; ac_word=$2
10709 echo "$as_me:$LINENO: checking for $ac_word" >&5
10710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10711 if test "${ac_cv_prog_ft_devel+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 if test -n "$ft_devel"; then
10715 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10716 else
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_prog_ft_devel="freetype-config"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10731 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10734 ft_devel=$ac_cv_prog_ft_devel
10735 if test -n "$ft_devel"; then
10736 echo "$as_me:$LINENO: result: $ft_devel" >&5
10737 echo "${ECHO_T}$ft_devel" >&6
10738 else
10739 echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6
10743 if test "$ft_devel" = "no"
10744 then
10745 # Extract the first word of "freetype2-config", so it can be a program name with args.
10746 set dummy freetype2-config; ac_word=$2
10747 echo "$as_me:$LINENO: checking for $ac_word" >&5
10748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10749 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752 if test -n "$ft_devel2"; then
10753 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10754 else
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_ft_devel2="freetype2-config"
10763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10766 done
10767 done
10769 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10772 ft_devel2=$ac_cv_prog_ft_devel2
10773 if test -n "$ft_devel2"; then
10774 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10775 echo "${ECHO_T}$ft_devel2" >&6
10776 else
10777 echo "$as_me:$LINENO: result: no" >&5
10778 echo "${ECHO_T}no" >&6
10781 if test "$ft_devel2" = "freetype2-config"
10782 then
10783 ft_devel=$ft_devel2
10786 if test "$ft_devel" = "no"
10787 then
10788 wine_cv_msg_freetype=yes
10789 else
10790 FREETYPELIBS=`$ft_devel --libs`
10791 FREETYPEINCL=`$ft_devel --cflags`
10792 ac_save_CPPFLAGS="$CPPFLAGS"
10793 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10805 for ac_header in ft2build.h \
10806 freetype/freetype.h \
10807 freetype/ftglyph.h \
10808 freetype/tttables.h \
10809 freetype/ftnames.h \
10810 freetype/ftsnames.h \
10811 freetype/ttnameid.h \
10812 freetype/ftoutln.h \
10813 freetype/ftwinfnt.h \
10814 freetype/ftmodapi.h \
10815 freetype/internal/sfnt.h
10817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10818 echo "$as_me:$LINENO: checking for $ac_header" >&5
10819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h. */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 #if HAVE_FT2BUILD_H
10830 #include <ft2build.h>
10831 #endif
10833 #include <$ac_header>
10834 _ACEOF
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 eval "$as_ac_Header=yes"
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 eval "$as_ac_Header=no"
10863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10868 cat >>confdefs.h <<_ACEOF
10869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10870 _ACEOF
10874 done
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <ft2build.h>
10883 #include <freetype/fttrigon.h>
10884 _ACEOF
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } >/dev/null; then
10893 if test -s conftest.err; then
10894 ac_cpp_err=$ac_c_preproc_warn_flag
10895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10896 else
10897 ac_cpp_err=
10899 else
10900 ac_cpp_err=yes
10902 if test -z "$ac_cpp_err"; then
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_FREETYPE_FTTRIGON_H 1
10906 _ACEOF
10908 wine_cv_fttrigon=yes
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 wine_cv_fttrigon=no
10915 rm -f conftest.err conftest.$ac_ext
10916 echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
10917 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6
10918 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <freetype/ftmodapi.h>
10930 main ()
10932 if ((FT_TrueTypeEngineType *) 0)
10933 return 0;
10934 if (sizeof (FT_TrueTypeEngineType))
10935 return 0;
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_type_FT_TrueTypeEngineType=yes
10962 else
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_cv_type_FT_TrueTypeEngineType=no
10968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970 echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
10971 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6
10972 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_FT_TRUETYPEENGINETYPE 1
10976 _ACEOF
10981 ac_save_CFLAGS="$CFLAGS"
10982 CFLAGS="$CFLAGS $FREETYPELIBS"
10984 for ac_func in FT_Load_Sfnt_Table
10986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987 echo "$as_me:$LINENO: checking for $ac_func" >&5
10988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10989 if eval "test \"\${$as_ac_var+set}\" = set"; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11000 #define $ac_func innocuous_$ac_func
11002 /* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below.
11004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 <limits.h> exists even on freestanding compilers. */
11007 #ifdef __STDC__
11008 # include <limits.h>
11009 #else
11010 # include <assert.h>
11011 #endif
11013 #undef $ac_func
11015 /* Override any gcc2 internal prototype to avoid an error. */
11016 #ifdef __cplusplus
11017 extern "C"
11019 #endif
11020 /* We use char because int might match the return type of a gcc2
11021 builtin and then its argument prototype would still apply. */
11022 char $ac_func ();
11023 /* The GNU C library defines this for functions which it implements
11024 to always fail with ENOSYS. Some functions are actually named
11025 something starting with __ and the normal name is an alias. */
11026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11027 choke me
11028 #else
11029 char (*f) () = $ac_func;
11030 #endif
11031 #ifdef __cplusplus
11033 #endif
11036 main ()
11038 return f != $ac_func;
11040 return 0;
11042 _ACEOF
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045 (eval $ac_link) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest$ac_exeext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 eval "$as_ac_var=yes"
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 eval "$as_ac_var=no"
11071 rm -f conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11076 if test `eval echo '${'$as_ac_var'}'` = yes; then
11077 cat >>confdefs.h <<_ACEOF
11078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11079 _ACEOF
11082 done
11084 CFLAGS="$ac_save_CFLAGS"
11085 CPPFLAGS="$ac_save_CPPFLAGS"
11086 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11087 then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_FREETYPE 1
11091 _ACEOF
11093 wine_cv_msg_freetype=no
11094 else
11095 FREETYPELIBS=""
11096 FREETYPEINCL=""
11097 wine_cv_msg_freetype=yes
11102 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
11103 then
11104 FONTSSUBDIRS="fonts"
11106 wine_cv_msg_fonts=no
11107 else
11108 wine_cv_msg_fonts=yes
11111 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
11112 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
11113 if test "${ac_cv_c_ppdev+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 #include <linux/ppdev.h>
11124 main ()
11126 ioctl (1,PPCLAIM,0)
11128 return 0;
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 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_objext'
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 ac_cv_c_ppdev="yes"
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_c_ppdev="no"
11159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11162 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
11163 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
11164 if test "$ac_cv_c_ppdev" = "yes"
11165 then
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_PPDEV 1
11169 _ACEOF
11173 echo "$as_me:$LINENO: checking for va_copy" >&5
11174 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
11175 if test "${ac_cv_c_va_copy+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 #include <stdarg.h>
11186 main ()
11188 va_list ap1, ap2;
11189 va_copy(ap1,ap2);
11192 return 0;
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197 (eval $ac_link) 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } &&
11204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11216 ac_cv_c_va_copy="yes"
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 ac_cv_c_va_copy="no"
11223 rm -f conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11227 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
11228 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
11229 if test "$ac_cv_c_va_copy" = "yes"
11230 then
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_VA_COPY 1
11234 _ACEOF
11237 echo "$as_me:$LINENO: checking for __va_copy" >&5
11238 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
11239 if test "${ac_cv_c___va_copy+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h. */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 #include <stdarg.h>
11250 main ()
11252 va_list ap1, ap2;
11253 __va_copy(ap1,ap2);
11256 return 0;
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261 (eval $ac_link) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest$ac_exeext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_c___va_copy="yes"
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_cv_c___va_copy="no"
11287 rm -f conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
11292 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
11293 if test "$ac_cv_c___va_copy" = "yes"
11294 then
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE___VA_COPY 1
11298 _ACEOF
11302 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11303 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11304 if test "${ac_cv_c_sigsetjmp+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #include <setjmp.h>
11315 main ()
11317 sigjmp_buf buf;
11318 sigsetjmp( buf, 1 );
11319 siglongjmp( buf, 1 );
11321 return 0;
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_c_sigsetjmp="yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_cv_c_sigsetjmp="no"
11352 rm -f conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11356 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11357 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11358 if test "$ac_cv_c_sigsetjmp" = "yes"
11359 then
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_SIGSETJMP 1
11363 _ACEOF
11367 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11368 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11369 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #define _GNU_SOURCE
11379 #include <pthread.h>
11382 main ()
11384 if ((pthread_rwlock_t *) 0)
11385 return 0;
11386 if (sizeof (pthread_rwlock_t))
11387 return 0;
11389 return 0;
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394 (eval $ac_compile) 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_type_pthread_rwlock_t=yes
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_cv_type_pthread_rwlock_t=no
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11423 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11424 if test $ac_cv_type_pthread_rwlock_t = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_PTHREAD_RWLOCK_T 1
11428 _ACEOF
11432 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11433 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11434 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #define _GNU_SOURCE
11444 #include <pthread.h>
11447 main ()
11449 if ((pthread_rwlockattr_t *) 0)
11450 return 0;
11451 if (sizeof (pthread_rwlockattr_t))
11452 return 0;
11454 return 0;
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_cv_type_pthread_rwlockattr_t=yes
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_cv_type_pthread_rwlockattr_t=no
11485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11487 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11488 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11489 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11493 _ACEOF
11499 ac_wine_check_funcs_save_LIBS="$LIBS"
11500 LIBS="$LIBS $LIBPTHREAD"
11504 for ac_func in \
11505 pthread_getattr_np \
11506 pthread_get_stackaddr_np \
11507 pthread_get_stacksize_np
11509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510 echo "$as_me:$LINENO: checking for $ac_func" >&5
11511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11512 if eval "test \"\${$as_ac_var+set}\" = set"; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523 #define $ac_func innocuous_$ac_func
11525 /* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char $ac_func (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11530 #ifdef __STDC__
11531 # include <limits.h>
11532 #else
11533 # include <assert.h>
11534 #endif
11536 #undef $ac_func
11538 /* Override any gcc2 internal prototype to avoid an error. */
11539 #ifdef __cplusplus
11540 extern "C"
11542 #endif
11543 /* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11545 char $ac_func ();
11546 /* The GNU C library defines this for functions which it implements
11547 to always fail with ENOSYS. Some functions are actually named
11548 something starting with __ and the normal name is an alias. */
11549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11550 choke me
11551 #else
11552 char (*f) () = $ac_func;
11553 #endif
11554 #ifdef __cplusplus
11556 #endif
11559 main ()
11561 return f != $ac_func;
11563 return 0;
11565 _ACEOF
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568 (eval $ac_link) 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "$as_ac_var=yes"
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 eval "$as_ac_var=no"
11594 rm -f conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11599 if test `eval echo '${'$as_ac_var'}'` = yes; then
11600 cat >>confdefs.h <<_ACEOF
11601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11602 _ACEOF
11605 done
11607 LIBS="$ac_wine_check_funcs_save_LIBS"
11609 # Extract the first word of "artsc-config", so it can be a program name with args.
11610 set dummy artsc-config; ac_word=$2
11611 echo "$as_me:$LINENO: checking for $ac_word" >&5
11612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 case $ARTSCCONFIG in
11617 [\\/]* | ?:[\\/]*)
11618 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11632 done
11633 done
11636 esac
11638 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11640 if test -n "$ARTSCCONFIG"; then
11641 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11642 echo "${ECHO_T}$ARTSCCONFIG" >&6
11643 else
11644 echo "$as_me:$LINENO: result: no" >&5
11645 echo "${ECHO_T}no" >&6
11648 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11649 then
11650 ARTSC_CFLAGS=""
11651 for i in `$ARTSCCONFIG --cflags`
11653 case "$i" in
11654 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11655 esac
11656 done
11657 ARTSC_LIBS=""
11658 for i in `$ARTSCCONFIG --libs`
11660 case "$i" in
11661 -L/usr/lib|-L/usr/lib64) ;;
11662 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
11663 esac
11664 done
11665 save_CFLAGS="$CFLAGS"
11666 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11667 echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11668 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11669 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 ac_check_lib_save_LIBS=$LIBS
11673 LIBS="-lartsc $ARTSC_LIBS $LIBS"
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h. */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11681 /* Override any gcc2 internal prototype to avoid an error. */
11682 #ifdef __cplusplus
11683 extern "C"
11684 #endif
11685 /* We use char because int might match the return type of a gcc2
11686 builtin and then its argument prototype would still apply. */
11687 char arts_init ();
11689 main ()
11691 arts_init ();
11693 return 0;
11695 _ACEOF
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11698 (eval $ac_link) 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest$ac_exeext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 ac_cv_lib_artsc_arts_init=yes
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 ac_cv_lib_artsc_arts_init=no
11724 rm -f conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11728 echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11729 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11730 if test $ac_cv_lib_artsc_arts_init = yes; then
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 #include <artsc.h>
11739 main ()
11741 arts_stream_t stream;
11743 return 0;
11745 _ACEOF
11746 rm -f conftest.$ac_objext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11748 (eval $ac_compile) 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ARTSLIBS=$ARTSC_LIBS
11769 ARTSINCL=$ARTSC_CFLAGS
11772 cat >>confdefs.h <<\_ACEOF
11773 #define HAVE_ARTS 1
11774 _ACEOF
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784 CFLAGS="$save_CFLAGS"
11787 # Extract the first word of "esd-config", so it can be a program name with args.
11788 set dummy esd-config; ac_word=$2
11789 echo "$as_me:$LINENO: checking for $ac_word" >&5
11790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11791 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794 case $ESDCONFIG in
11795 [\\/]* | ?:[\\/]*)
11796 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11810 done
11811 done
11814 esac
11816 ESDCONFIG=$ac_cv_path_ESDCONFIG
11818 if test -n "$ESDCONFIG"; then
11819 echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
11820 echo "${ECHO_T}$ESDCONFIG" >&6
11821 else
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11826 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
11827 then
11828 ESD_CFLAGS=""
11829 for i in `$ESDCONFIG --cflags`
11831 case "$i" in
11832 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
11833 esac
11834 done
11835 ESD_LIBS=`$ESDCONFIG --libs`
11836 save_CFLAGS="$CFLAGS"
11837 CFLAGS="$CFLAGS $ESD_CFLAGS"
11838 echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
11839 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6
11840 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843 ac_check_lib_save_LIBS=$LIBS
11844 LIBS="-lesd $LIBS"
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 /* Override any gcc2 internal prototype to avoid an error. */
11853 #ifdef __cplusplus
11854 extern "C"
11855 #endif
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11858 char esd_open_sound ();
11860 main ()
11862 esd_open_sound ();
11864 return 0;
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869 (eval $ac_link) 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_lib_esd_esd_open_sound=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_cv_lib_esd_esd_open_sound=no
11895 rm -f conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11899 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
11900 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6
11901 if test $ac_cv_lib_esd_esd_open_sound = yes; then
11902 ESDLIBS=$ESD_LIBS
11904 ESDINCL=$ESD_CFLAGS
11907 cat >>confdefs.h <<\_ACEOF
11908 #define HAVE_ESD 1
11909 _ACEOF
11913 CFLAGS="$save_CFLAGS"
11916 ALSALIBS=""
11918 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11919 then
11920 echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11921 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11922 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925 ac_check_lib_save_LIBS=$LIBS
11926 LIBS="-lasound $LIBS"
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11934 /* Override any gcc2 internal prototype to avoid an error. */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 /* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940 char snd_pcm_hw_params_get_access ();
11942 main ()
11944 snd_pcm_hw_params_get_access ();
11946 return 0;
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11982 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11983 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #ifdef HAVE_ALSA_ASOUNDLIB_H
11991 #include <alsa/asoundlib.h>
11992 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11993 #include <sys/asoundlib.h>
11994 #endif
11996 main ()
11998 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
12000 return 0;
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005 (eval $ac_compile) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_ALSA 1
12027 _ACEOF
12029 ALSALIBS="-lasound"
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12041 AUDIOIOLIBS=""
12043 if test "$ac_cv_header_libaudioio_h" = "yes"
12044 then
12045 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12046 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12047 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-laudioio $LIBS"
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. */
12059 /* Override any gcc2 internal prototype to avoid an error. */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065 char AudioIOGetVersion ();
12067 main ()
12069 AudioIOGetVersion ();
12071 return 0;
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076 (eval $ac_link) 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_lib_audioio_AudioIOGetVersion=yes
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_lib_audioio_AudioIOGetVersion=no
12102 rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12106 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12107 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12108 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12109 AUDIOIOLIBS="-laudioio"
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_LIBAUDIOIO 1
12113 _ACEOF
12120 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12121 then
12122 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12123 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12124 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-lcapi20 $LIBS"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12136 /* Override any gcc2 internal prototype to avoid an error. */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 /* We use char because int might match the return type of a gcc2
12141 builtin and then its argument prototype would still apply. */
12142 char capi20_register ();
12144 main ()
12146 capi20_register ();
12148 return 0;
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153 (eval $ac_link) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_lib_capi20_capi20_register=yes
12173 else
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_cv_lib_capi20_capi20_register=no
12179 rm -f conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12184 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12185 if test $ac_cv_lib_capi20_capi20_register = yes; then
12187 cat >>confdefs.h <<\_ACEOF
12188 #define HAVE_CAPI4LINUX 1
12189 _ACEOF
12196 EXTRACFLAGS=""
12198 if test "x${GCC}" = "xyes"
12199 then
12200 EXTRACFLAGS="-Wall -pipe"
12202 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12203 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12204 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 if test "$cross_compiling" = yes; then
12208 ac_cv_c_gcc_strength_bug="yes"
12209 else
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12217 int L[4] = {0,1,2,3};
12218 int main(void) {
12219 static int Array[3];
12220 unsigned int B = 3;
12221 int i;
12222 for(i=0; i<B; i++) Array[i] = i - 3;
12223 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12224 L[i] = 4;
12226 exit( Array[1] != -2 || L[2] != 3);
12228 _ACEOF
12229 rm -f conftest$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_c_gcc_strength_bug="no"
12241 else
12242 echo "$as_me: program exited with status $ac_status" >&5
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ( exit $ac_status )
12247 ac_cv_c_gcc_strength_bug="yes"
12249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12252 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12253 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12254 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12255 then
12256 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12259 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12260 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12261 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 ac_wine_try_cflags_saved=$CFLAGS
12265 CFLAGS="$CFLAGS -fshort-wchar"
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12274 main ()
12278 return 0;
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12283 (eval $ac_link) 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_cv_c_gcc_fshort_wchar="yes"
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 ac_cv_c_gcc_fshort_wchar="no"
12309 rm -f conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311 CFLAGS=$ac_wine_try_cflags_saved
12313 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12314 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12315 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12316 then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12320 _ACEOF
12324 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12325 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12326 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 ac_wine_try_cflags_saved=$CFLAGS
12330 CFLAGS="$CFLAGS -fno-strict-aliasing"
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12339 main ()
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; } &&
12361 { ac_try='test -s conftest$ac_exeext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 ac_cv_c_gcc_no_strict_aliasing="yes"
12368 else
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12372 ac_cv_c_gcc_no_strict_aliasing="no"
12374 rm -f conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 CFLAGS=$ac_wine_try_cflags_saved
12378 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12379 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12380 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12381 then
12382 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12385 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12386 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12387 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390 ac_wine_try_cflags_saved=$CFLAGS
12391 CFLAGS="$CFLAGS -gstabs+"
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12400 main ()
12404 return 0;
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_c_gcc_gstabs="yes"
12429 else
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_cv_c_gcc_gstabs="no"
12435 rm -f conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 CFLAGS=$ac_wine_try_cflags_saved
12439 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12440 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12441 if test "$ac_cv_c_gcc_gstabs" = "yes"
12442 then
12443 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12446 echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
12447 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6
12448 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451 ac_wine_try_cflags_saved=$CFLAGS
12452 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12453 cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h. */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12461 main ()
12465 return 0;
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_c_gcc_decl_after_statement="yes"
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_cv_c_gcc_decl_after_statement="no"
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 CFLAGS=$ac_wine_try_cflags_saved
12500 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
12501 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6
12502 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
12503 then
12504 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12507 saved_CFLAGS="$CFLAGS"
12508 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12509 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12510 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12511 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h. */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 #include <string.h>
12522 main ()
12526 return 0;
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_c_string_h_warnings=no
12551 else
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_cv_c_string_h_warnings=yes
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12559 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12560 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12561 CFLAGS="$saved_CFLAGS"
12562 if test "$ac_cv_c_string_h_warnings" = "no"
12563 then
12564 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12567 BUILTINFLAG=""
12569 saved_CFLAGS="$CFLAGS"
12570 CFLAGS="$CFLAGS -Werror"
12571 echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
12572 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6
12573 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12584 main ()
12586 int iswlower(unsigned short);
12588 return 0;
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_cv_c_builtin_wchar_ctype=no
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_cv_c_builtin_wchar_ctype=yes
12619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621 echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
12622 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6
12623 CFLAGS="$saved_CFLAGS"
12624 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
12625 then
12626 BUILTINFLAG=""
12627 for builtin in \
12628 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
12629 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
12631 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
12632 done
12637 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12638 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12639 if test "${ac_cv_asm_func_def+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 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"); }
12651 main ()
12655 return 0;
12657 _ACEOF
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660 (eval $ac_link) 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_cv_asm_func_def=".def"
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12693 main ()
12697 return 0;
12699 _ACEOF
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702 (eval $ac_link) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest$ac_exeext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_asm_func_def=".type @function"
12722 else
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12735 main ()
12739 return 0;
12741 _ACEOF
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12744 (eval $ac_link) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 ac_cv_asm_func_def=".type 2"
12764 else
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_cv_asm_func_def="unknown"
12770 rm -f conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12773 rm -f conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12776 rm -f conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12780 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12784 case "$ac_cv_asm_func_def" in
12785 ".def")
12786 cat >>confdefs.h <<\_ACEOF
12787 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12788 _ACEOF
12790 ".type @function")
12791 cat >>confdefs.h <<\_ACEOF
12792 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12793 _ACEOF
12795 ".type 2")
12796 cat >>confdefs.h <<\_ACEOF
12797 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12798 _ACEOF
12801 cat >>confdefs.h <<\_ACEOF
12802 #define __ASM_FUNC(name) ""
12803 _ACEOF
12805 esac
12808 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12809 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12810 if test "${ac_cv_c_extern_prefix+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813 cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12820 extern int ac_test;
12822 main ()
12824 if (ac_test) return 1
12826 return 0;
12828 _ACEOF
12829 rm -f conftest.$ac_objext conftest$ac_exeext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12831 (eval $ac_link) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest$ac_exeext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_cv_c_extern_prefix="yes"
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ac_cv_c_extern_prefix="no"
12857 rm -f conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12860 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12861 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12865 if test "$ac_cv_c_extern_prefix" = "yes"
12866 then
12867 cat >>confdefs.h <<\_ACEOF
12868 #define __ASM_NAME(name) "_" name
12869 _ACEOF
12871 else
12872 cat >>confdefs.h <<\_ACEOF
12873 #define __ASM_NAME(name) name
12874 _ACEOF
12879 DLLEXT=""
12881 DLLFLAGS="-D_REENTRANT"
12883 DLLIBS=""
12885 LDSHARED=""
12887 LDDLLFLAGS=""
12889 LIBEXT="so"
12891 IMPLIBEXT="def"
12894 case $host_os in
12895 cygwin*|mingw32*)
12896 if test -n "$ac_tool_prefix"; then
12897 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12898 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12899 echo "$as_me:$LINENO: checking for $ac_word" >&5
12900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12901 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 if test -n "$DLLTOOL"; then
12905 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12906 else
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12914 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12918 done
12919 done
12923 DLLTOOL=$ac_cv_prog_DLLTOOL
12924 if test -n "$DLLTOOL"; then
12925 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12926 echo "${ECHO_T}$DLLTOOL" >&6
12927 else
12928 echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6
12933 if test -z "$ac_cv_prog_DLLTOOL"; then
12934 ac_ct_DLLTOOL=$DLLTOOL
12935 # Extract the first word of "dlltool", so it can be a program name with args.
12936 set dummy dlltool; ac_word=$2
12937 echo "$as_me:$LINENO: checking for $ac_word" >&5
12938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12939 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 if test -n "$ac_ct_DLLTOOL"; then
12943 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12956 done
12957 done
12959 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
12962 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12963 if test -n "$ac_ct_DLLTOOL"; then
12964 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12965 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
12966 else
12967 echo "$as_me:$LINENO: result: no" >&5
12968 echo "${ECHO_T}no" >&6
12971 DLLTOOL=$ac_ct_DLLTOOL
12972 else
12973 DLLTOOL="$ac_cv_prog_DLLTOOL"
12976 if test -n "$ac_tool_prefix"; then
12977 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
12978 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
12979 echo "$as_me:$LINENO: checking for $ac_word" >&5
12980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12981 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984 if test -n "$DLLWRAP"; then
12985 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
12986 else
12987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988 for as_dir in $PATH
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
12992 for ac_exec_ext in '' $ac_executable_extensions; do
12993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12994 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
12995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 break 2
12998 done
12999 done
13003 DLLWRAP=$ac_cv_prog_DLLWRAP
13004 if test -n "$DLLWRAP"; then
13005 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13006 echo "${ECHO_T}$DLLWRAP" >&6
13007 else
13008 echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6
13013 if test -z "$ac_cv_prog_DLLWRAP"; then
13014 ac_ct_DLLWRAP=$DLLWRAP
13015 # Extract the first word of "dllwrap", so it can be a program name with args.
13016 set dummy dllwrap; ac_word=$2
13017 echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13019 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 if test -n "$ac_ct_DLLWRAP"; then
13023 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13032 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13036 done
13037 done
13039 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13042 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13043 if test -n "$ac_ct_DLLWRAP"; then
13044 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13045 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13046 else
13047 echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6
13051 DLLWRAP=$ac_ct_DLLWRAP
13052 else
13053 DLLWRAP="$ac_cv_prog_DLLWRAP"
13056 if test "$DLLWRAP" = "false"; then
13057 LIBEXT="a"
13058 else
13059 LIBEXT="dll"
13061 IMPLIBEXT="a"
13062 WIN16_FILES=""
13063 WIN16_INSTALL=""
13066 if test "$ac_cv_header_dlfcn_h" = "yes"
13067 then
13069 for ac_func in dlopen
13071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13072 echo "$as_me:$LINENO: checking for $ac_func" >&5
13073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13074 if eval "test \"\${$as_ac_var+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13085 #define $ac_func innocuous_$ac_func
13087 /* System header to define __stub macros and hopefully few prototypes,
13088 which can conflict with char $ac_func (); below.
13089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090 <limits.h> exists even on freestanding compilers. */
13092 #ifdef __STDC__
13093 # include <limits.h>
13094 #else
13095 # include <assert.h>
13096 #endif
13098 #undef $ac_func
13100 /* Override any gcc2 internal prototype to avoid an error. */
13101 #ifdef __cplusplus
13102 extern "C"
13104 #endif
13105 /* We use char because int might match the return type of a gcc2
13106 builtin and then its argument prototype would still apply. */
13107 char $ac_func ();
13108 /* The GNU C library defines this for functions which it implements
13109 to always fail with ENOSYS. Some functions are actually named
13110 something starting with __ and the normal name is an alias. */
13111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13112 choke me
13113 #else
13114 char (*f) () = $ac_func;
13115 #endif
13116 #ifdef __cplusplus
13118 #endif
13121 main ()
13123 return f != $ac_func;
13125 return 0;
13127 _ACEOF
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13130 (eval $ac_link) 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 eval "$as_ac_var=yes"
13150 else
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13154 eval "$as_ac_var=no"
13156 rm -f conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13161 if test `eval echo '${'$as_ac_var'}'` = yes; then
13162 cat >>confdefs.h <<_ACEOF
13163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13164 _ACEOF
13166 else
13167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13168 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-ldl $LIBS"
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h. */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 /* Override any gcc2 internal prototype to avoid an error. */
13182 #ifdef __cplusplus
13183 extern "C"
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13187 char dlopen ();
13189 main ()
13191 dlopen ();
13193 return 0;
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_cv_lib_dl_dlopen=yes
13218 else
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_cv_lib_dl_dlopen=no
13224 rm -f conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13230 if test $ac_cv_lib_dl_dlopen = yes; then
13232 cat >>confdefs.h <<\_ACEOF
13233 #define HAVE_DLOPEN 1
13234 _ACEOF
13236 DLLIBS="-ldl"
13237 else
13238 LIBEXT="a"
13242 done
13244 ac_wine_check_funcs_save_LIBS="$LIBS"
13245 LIBS="$LIBS $DLLIBS"
13247 for ac_func in dladdr
13249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13250 echo "$as_me:$LINENO: checking for $ac_func" >&5
13251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13252 if eval "test \"\${$as_ac_var+set}\" = set"; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255 cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h. */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13263 #define $ac_func innocuous_$ac_func
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func (); below.
13267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268 <limits.h> exists even on freestanding compilers. */
13270 #ifdef __STDC__
13271 # include <limits.h>
13272 #else
13273 # include <assert.h>
13274 #endif
13276 #undef $ac_func
13278 /* Override any gcc2 internal prototype to avoid an error. */
13279 #ifdef __cplusplus
13280 extern "C"
13282 #endif
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285 char $ac_func ();
13286 /* The GNU C library defines this for functions which it implements
13287 to always fail with ENOSYS. Some functions are actually named
13288 something starting with __ and the normal name is an alias. */
13289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13290 choke me
13291 #else
13292 char (*f) () = $ac_func;
13293 #endif
13294 #ifdef __cplusplus
13296 #endif
13299 main ()
13301 return f != $ac_func;
13303 return 0;
13305 _ACEOF
13306 rm -f conftest.$ac_objext conftest$ac_exeext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13308 (eval $ac_link) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } &&
13321 { ac_try='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 eval "$as_ac_var=yes"
13328 else
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 eval "$as_ac_var=no"
13334 rm -f conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13339 if test `eval echo '${'$as_ac_var'}'` = yes; then
13340 cat >>confdefs.h <<_ACEOF
13341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13342 _ACEOF
13345 done
13347 LIBS="$ac_wine_check_funcs_save_LIBS"
13348 else
13349 LIBEXT="a"
13352 if test "$LIBEXT" = "so"
13353 then
13354 DLLFLAGS="$DLLFLAGS -fPIC"
13355 DLLEXT=".so"
13356 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13357 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13358 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361 ac_wine_try_cflags_saved=$CFLAGS
13362 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13363 cat >conftest.$ac_ext <<_ACEOF
13364 void myfunc() {}
13365 _ACEOF
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368 (eval $ac_link) 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest$ac_exeext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_c_dll_gnuelf="yes"
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_cv_c_dll_gnuelf="no"
13394 rm -f conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13396 CFLAGS=$ac_wine_try_cflags_saved
13398 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13399 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13400 if test "$ac_cv_c_dll_gnuelf" = "yes"
13401 then
13402 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13403 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13404 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13405 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13406 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 ac_wine_try_cflags_saved=$CFLAGS
13410 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13419 main ()
13423 return 0;
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_c_dll_zdefs="yes"
13448 else
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_cv_c_dll_zdefs="no"
13454 rm -f conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 CFLAGS=$ac_wine_try_cflags_saved
13458 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13459 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13460 if test "$ac_cv_c_dll_zdefs" = "yes"
13461 then
13462 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13465 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13466 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13467 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470 ac_wine_try_cflags_saved=$CFLAGS
13471 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h. */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13480 main ()
13484 return 0;
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest$ac_exeext'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_c_dll_init_fini="yes"
13509 else
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_c_dll_init_fini="no"
13515 rm -f conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 CFLAGS=$ac_wine_try_cflags_saved
13519 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13520 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13521 if test "$ac_cv_c_dll_init_fini" = "yes"
13522 then
13523 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13526 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13527 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13528 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 echo '{ global: *; };' >conftest.map
13532 ac_wine_try_cflags_saved=$CFLAGS
13533 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13542 main ()
13546 return 0;
13548 _ACEOF
13549 rm -f conftest.$ac_objext conftest$ac_exeext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13551 (eval $ac_link) 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest$ac_exeext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 ac_cv_c_ld_version_scripts="yes"
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_cv_c_ld_version_scripts="no"
13577 rm -f conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 CFLAGS=$ac_wine_try_cflags_saved
13580 rm -f conftest.map
13582 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13583 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13584 if test "$ac_cv_c_ld_version_scripts" = "yes"
13585 then
13586 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13589 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13590 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13591 if test "${ac_cv_c_export_dynamic+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594 ac_wine_try_cflags_saved=$CFLAGS
13595 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13604 main ()
13608 return 0;
13610 _ACEOF
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_cv_c_export_dynamic="yes"
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_cv_c_export_dynamic="no"
13639 rm -f conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 CFLAGS=$ac_wine_try_cflags_saved
13643 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13644 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13645 if test "$ac_cv_c_export_dynamic" = "yes"
13646 then
13647 LDEXECFLAGS="-Wl,--export-dynamic"
13651 echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
13652 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6
13653 if test "${ac_cv_ld_rpath+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656 ac_wine_try_cflags_saved=$CFLAGS
13657 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13666 main ()
13670 return 0;
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675 (eval $ac_link) 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest$ac_exeext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 ac_cv_ld_rpath="yes"
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_cv_ld_rpath="no"
13701 rm -f conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13703 CFLAGS=$ac_wine_try_cflags_saved
13705 echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
13706 echo "${ECHO_T}$ac_cv_ld_rpath" >&6
13707 if test "$ac_cv_ld_rpath" = "yes"
13708 then
13709 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
13711 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
13715 case $host_cpu in
13716 *i[3456789]86*)
13717 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
13718 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
13719 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 ac_wine_try_cflags_saved=$CFLAGS
13723 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h. */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13732 main ()
13736 return 0;
13738 _ACEOF
13739 rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13741 (eval $ac_link) 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_ld_reloc_exec="yes"
13761 else
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13765 ac_cv_ld_reloc_exec="no"
13767 rm -f conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13769 CFLAGS=$ac_wine_try_cflags_saved
13771 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13772 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13773 if test "$ac_cv_ld_reloc_exec" = "yes"
13774 then
13775 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
13778 esac
13780 else
13781 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13782 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13783 if test "${ac_cv_c_dll_unixware+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786 ac_wine_try_cflags_saved=$CFLAGS
13787 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13788 cat >conftest.$ac_ext <<_ACEOF
13789 void myfunc() {}
13790 _ACEOF
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793 (eval $ac_link) 2>conftest.er1
13794 ac_status=$?
13795 grep -v '^ *+' conftest.er1 >conftest.err
13796 rm -f conftest.er1
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; } &&
13806 { ac_try='test -s conftest$ac_exeext'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13812 ac_cv_c_dll_unixware="yes"
13813 else
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_cv_c_dll_unixware="no"
13819 rm -f conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext conftest.$ac_ext
13821 CFLAGS=$ac_wine_try_cflags_saved
13823 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13824 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13825 if test "$ac_cv_c_dll_unixware" = "yes"
13826 then
13827 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13828 LDDLLFLAGS="-Wl,-G,-B,symbolic"
13830 else
13831 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13832 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13833 if test "${ac_cv_c_dll_macho+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836 ac_wine_try_cflags_saved=$CFLAGS
13837 CFLAGS="$CFLAGS -bundle"
13838 cat >conftest.$ac_ext <<_ACEOF
13839 void myfunc() {}
13840 _ACEOF
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_cv_c_dll_macho="yes"
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 ac_cv_c_dll_macho="no"
13869 rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 CFLAGS=$ac_wine_try_cflags_saved
13873 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13874 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13875 if test "$ac_cv_c_dll_macho" = "yes"
13876 then
13877 LIBEXT="dylib"
13878 LDDLLFLAGS="-bundle"
13879 LDSHARED="\$(CC) -dynamiclib"
13880 STRIP="$STRIP -u -r"
13881 COREFOUNDATIONLIB="-framework CoreFoundation"
13883 IOKITLIB="-framework IOKit -framework CoreFoundation"
13885 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
13887 case $host_cpu in
13888 *powerpc*)
13889 CFLAGS="$CFLAGS -ffixed-r13"
13890 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
13892 esac
13894 else
13895 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13896 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
13897 if test "${ac_cv_c_dll_hpux+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900 ac_wine_try_cflags_saved=$CFLAGS
13901 CFLAGS="$CFLAGS -shared"
13902 cat >conftest.$ac_ext <<_ACEOF
13903 void myfunc() {}
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_c_dll_hpux="yes"
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 ac_cv_c_dll_hpux="no"
13933 rm -f conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 CFLAGS=$ac_wine_try_cflags_saved
13937 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13938 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
13939 if test "$ac_cv_c_dll_hpux" = "yes"
13940 then
13941 LIBEXT="sl"
13942 DLLEXT=".sl"
13943 LDDLLFLAGS="-shared -fPIC"
13944 LDSHARED="\$(CC) -shared"
13951 CROSSTEST=""
13953 if test "$cross_compiling" = "no"
13954 then
13955 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13957 # Extract the first word of "$ac_prog", so it can be a program name with args.
13958 set dummy $ac_prog; ac_word=$2
13959 echo "$as_me:$LINENO: checking for $ac_word" >&5
13960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13961 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 if test -n "$CROSSCC"; then
13965 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13966 else
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13974 ac_cv_prog_CROSSCC="$ac_prog"
13975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 break 2
13978 done
13979 done
13983 CROSSCC=$ac_cv_prog_CROSSCC
13984 if test -n "$CROSSCC"; then
13985 echo "$as_me:$LINENO: result: $CROSSCC" >&5
13986 echo "${ECHO_T}$CROSSCC" >&6
13987 else
13988 echo "$as_me:$LINENO: result: no" >&5
13989 echo "${ECHO_T}no" >&6
13992 test -n "$CROSSCC" && break
13993 done
13994 test -n "$CROSSCC" || CROSSCC="false"
13996 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
13998 # Extract the first word of "$ac_prog", so it can be a program name with args.
13999 set dummy $ac_prog; ac_word=$2
14000 echo "$as_me:$LINENO: checking for $ac_word" >&5
14001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14002 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 if test -n "$DLLTOOL"; then
14006 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14007 else
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14011 IFS=$as_save_IFS
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14015 ac_cv_prog_DLLTOOL="$ac_prog"
14016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 break 2
14019 done
14020 done
14024 DLLTOOL=$ac_cv_prog_DLLTOOL
14025 if test -n "$DLLTOOL"; then
14026 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14027 echo "${ECHO_T}$DLLTOOL" >&6
14028 else
14029 echo "$as_me:$LINENO: result: no" >&5
14030 echo "${ECHO_T}no" >&6
14033 test -n "$DLLTOOL" && break
14034 done
14035 test -n "$DLLTOOL" || DLLTOOL="false"
14037 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14039 # Extract the first word of "$ac_prog", so it can be a program name with args.
14040 set dummy $ac_prog; ac_word=$2
14041 echo "$as_me:$LINENO: checking for $ac_word" >&5
14042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14043 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046 if test -n "$CROSSWINDRES"; then
14047 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14048 else
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14056 ac_cv_prog_CROSSWINDRES="$ac_prog"
14057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14060 done
14061 done
14065 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14066 if test -n "$CROSSWINDRES"; then
14067 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14068 echo "${ECHO_T}$CROSSWINDRES" >&6
14069 else
14070 echo "$as_me:$LINENO: result: no" >&5
14071 echo "${ECHO_T}no" >&6
14074 test -n "$CROSSWINDRES" && break
14075 done
14076 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14078 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14081 esac
14083 if test "$LIBEXT" = "a"; then
14084 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14085 It is currently not possible to build Wine without shared library
14086 (.so) support to allow transparent switch between .so and .dll files.
14087 If you are using Linux, you will need a newer binutils.
14088 " >&5
14089 echo "$as_me: error: could not find a way to build shared libraries.
14090 It is currently not possible to build Wine without shared library
14091 (.so) support to allow transparent switch between .so and .dll files.
14092 If you are using Linux, you will need a newer binutils.
14093 " >&2;}
14094 { (exit 1); exit 1; }; }
14097 case $build_os in
14098 cygwin*|mingw32*)
14099 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14101 darwin*|macosx*)
14102 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14105 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14107 esac
14109 case $host_os in
14110 mingw32*)
14111 CRTLIBS="-lmsvcrt"
14113 SOCKETLIBS="-lws2_32"
14116 esac
14118 case $host_cpu in
14119 *i[3456789]86*)
14120 case $host_os in
14121 linux* | k*bsd*-gnu)
14122 MAIN_BINARY="wine-glibc"
14124 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
14126 darwin*|freebsd*)
14127 MAIN_BINARY="wine-pthread"
14130 MAIN_BINARY="wine-kthread"
14132 esac
14134 *) MAIN_BINARY="wine-pthread"
14136 esac
14139 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14140 then
14141 # Extract the first word of "ldd", so it can be a program name with args.
14142 set dummy ldd; ac_word=$2
14143 echo "$as_me:$LINENO: checking for $ac_word" >&5
14144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14145 if test "${ac_cv_path_LDD+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148 case $LDD in
14149 [\\/]* | ?:[\\/]*)
14150 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 as_dummy="/sbin:/usr/sbin:$PATH"
14155 for as_dir in $as_dummy
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 break 2
14165 done
14166 done
14168 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14170 esac
14172 LDD=$ac_cv_path_LDD
14174 if test -n "$LDD"; then
14175 echo "$as_me:$LINENO: result: $LDD" >&5
14176 echo "${ECHO_T}$LDD" >&6
14177 else
14178 echo "$as_me:$LINENO: result: no" >&5
14179 echo "${ECHO_T}no" >&6
14182 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14183 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14184 if test "${ac_cv_lib_soname_X11+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 ac_get_soname_save_LIBS=$LIBS
14188 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14196 /* Override any gcc2 internal prototype to avoid an error. */
14197 #ifdef __cplusplus
14198 extern "C"
14199 #endif
14200 /* We use char because int might match the return type of a gcc2
14201 builtin and then its argument prototype would still apply. */
14202 char XCreateWindow ();
14204 main ()
14206 XCreateWindow ();
14208 return 0;
14210 _ACEOF
14211 rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14213 (eval $ac_link) 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14233 if test "x$ac_cv_lib_soname_X11" = "x"
14234 then
14235 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14243 rm -f conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_get_soname_save_LIBS
14247 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14248 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14249 if test "${ac_cv_lib_soname_X11+set}" = set; then
14251 cat >>confdefs.h <<_ACEOF
14252 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14253 _ACEOF
14257 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14258 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14259 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 ac_get_soname_save_LIBS=$LIBS
14263 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14271 /* Override any gcc2 internal prototype to avoid an error. */
14272 #ifdef __cplusplus
14273 extern "C"
14274 #endif
14275 /* We use char because int might match the return type of a gcc2
14276 builtin and then its argument prototype would still apply. */
14277 char XextCreateExtension ();
14279 main ()
14281 XextCreateExtension ();
14283 return 0;
14285 _ACEOF
14286 rm -f conftest.$ac_objext conftest$ac_exeext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288 (eval $ac_link) 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest$ac_exeext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14308 if test "x$ac_cv_lib_soname_Xext" = "x"
14309 then
14310 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14312 else
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14318 rm -f conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14320 LIBS=$ac_get_soname_save_LIBS
14322 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14323 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14324 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14326 cat >>confdefs.h <<_ACEOF
14327 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14328 _ACEOF
14332 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14333 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14334 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337 ac_get_soname_save_LIBS=$LIBS
14338 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14346 /* Override any gcc2 internal prototype to avoid an error. */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 /* We use char because int might match the return type of a gcc2
14351 builtin and then its argument prototype would still apply. */
14352 char XOpenDevice ();
14354 main ()
14356 XOpenDevice ();
14358 return 0;
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14383 if test "x$ac_cv_lib_soname_Xi" = "x"
14384 then
14385 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14393 rm -f conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_get_soname_save_LIBS
14397 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14398 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14399 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14401 cat >>confdefs.h <<_ACEOF
14402 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14403 _ACEOF
14407 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14408 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14409 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412 ac_get_soname_save_LIBS=$LIBS
14413 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h. */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427 char XRenderQueryExtension ();
14429 main ()
14431 XRenderQueryExtension ();
14433 return 0;
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>conftest.er1
14439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest$ac_exeext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14458 if test "x$ac_cv_lib_soname_Xrender" = "x"
14459 then
14460 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14462 else
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14468 rm -f conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_get_soname_save_LIBS
14472 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14473 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14474 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14476 cat >>confdefs.h <<_ACEOF
14477 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14478 _ACEOF
14482 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14483 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14484 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487 ac_get_soname_save_LIBS=$LIBS
14488 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 /* Override any gcc2 internal prototype to avoid an error. */
14497 #ifdef __cplusplus
14498 extern "C"
14499 #endif
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14502 char XRRQueryExtension ();
14504 main ()
14506 XRRQueryExtension ();
14508 return 0;
14510 _ACEOF
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513 (eval $ac_link) 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try='test -s conftest$ac_exeext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14533 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14534 then
14535 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14537 else
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14543 rm -f conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_get_soname_save_LIBS
14547 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14548 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14549 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14553 _ACEOF
14557 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14558 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14559 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 ac_get_soname_save_LIBS=$LIBS
14563 LIBS="-lfreetype $X_LIBS $LIBS"
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14571 /* Override any gcc2 internal prototype to avoid an error. */
14572 #ifdef __cplusplus
14573 extern "C"
14574 #endif
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14577 char FT_Init_FreeType ();
14579 main ()
14581 FT_Init_FreeType ();
14583 return 0;
14585 _ACEOF
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14588 (eval $ac_link) 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest$ac_exeext'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14608 if test "x$ac_cv_lib_soname_freetype" = "x"
14609 then
14610 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14618 rm -f conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext conftest.$ac_ext
14620 LIBS=$ac_get_soname_save_LIBS
14622 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14623 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14624 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14628 _ACEOF
14632 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14633 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14634 if test "${ac_cv_lib_soname_GL+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637 ac_get_soname_save_LIBS=$LIBS
14638 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h. */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14646 /* Override any gcc2 internal prototype to avoid an error. */
14647 #ifdef __cplusplus
14648 extern "C"
14649 #endif
14650 /* We use char because int might match the return type of a gcc2
14651 builtin and then its argument prototype would still apply. */
14652 char glXQueryExtension ();
14654 main ()
14656 glXQueryExtension ();
14658 return 0;
14660 _ACEOF
14661 rm -f conftest.$ac_objext conftest$ac_exeext
14662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14663 (eval $ac_link) 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14683 if test "x$ac_cv_lib_soname_GL" = "x"
14684 then
14685 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14687 else
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14693 rm -f conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695 LIBS=$ac_get_soname_save_LIBS
14697 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14698 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14699 if test "${ac_cv_lib_soname_GL+set}" = set; then
14701 cat >>confdefs.h <<_ACEOF
14702 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14703 _ACEOF
14707 echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
14708 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6
14709 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 else
14712 ac_get_soname_save_LIBS=$LIBS
14713 LIBS="-ldbus-1 $LIBS"
14714 cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h. */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h. */
14721 /* Override any gcc2 internal prototype to avoid an error. */
14722 #ifdef __cplusplus
14723 extern "C"
14724 #endif
14725 /* We use char because int might match the return type of a gcc2
14726 builtin and then its argument prototype would still apply. */
14727 char dbus_error_init ();
14729 main ()
14731 dbus_error_init ();
14733 return 0;
14735 _ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738 (eval $ac_link) 2>conftest.er1
14739 ac_status=$?
14740 grep -v '^ *+' conftest.er1 >conftest.err
14741 rm -f conftest.er1
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest$ac_exeext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14758 if test "x$ac_cv_lib_soname_dbus_1" = "x"
14759 then
14760 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
14768 rm -f conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14770 LIBS=$ac_get_soname_save_LIBS
14772 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
14773 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6
14774 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
14778 _ACEOF
14782 echo "$as_me:$LINENO: checking for -lhal soname" >&5
14783 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6
14784 if test "${ac_cv_lib_soname_hal+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 ac_get_soname_save_LIBS=$LIBS
14788 LIBS="-lhal $LIBS"
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14796 /* Override any gcc2 internal prototype to avoid an error. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14802 char libhal_ctx_new ();
14804 main ()
14806 libhal_ctx_new ();
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14833 if test "x$ac_cv_lib_soname_hal" = "x"
14834 then
14835 ac_cv_lib_soname_hal="libhal.$LIBEXT"
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_cv_lib_soname_hal="libhal.$LIBEXT"
14843 rm -f conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LIBS=$ac_get_soname_save_LIBS
14847 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
14848 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6
14849 if test "${ac_cv_lib_soname_hal+set}" = set; then
14851 cat >>confdefs.h <<_ACEOF
14852 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
14853 _ACEOF
14857 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14858 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14859 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 ac_get_soname_save_LIBS=$LIBS
14863 LIBS="-ltxc_dxtn $LIBS"
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any gcc2 internal prototype to avoid an error. */
14872 #ifdef __cplusplus
14873 extern "C"
14874 #endif
14875 /* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14877 char fetch_2d_texel_rgba_dxt1 ();
14879 main ()
14881 fetch_2d_texel_rgba_dxt1 ();
14883 return 0;
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14908 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14909 then
14910 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14912 else
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14918 rm -f conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_get_soname_save_LIBS
14922 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14923 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14924 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14926 cat >>confdefs.h <<_ACEOF
14927 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14928 _ACEOF
14932 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14933 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14934 if test "${ac_cv_lib_soname_cups+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937 ac_get_soname_save_LIBS=$LIBS
14938 LIBS="-lcups $LIBS"
14939 cat >conftest.$ac_ext <<_ACEOF
14940 /* confdefs.h. */
14941 _ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14946 /* Override any gcc2 internal prototype to avoid an error. */
14947 #ifdef __cplusplus
14948 extern "C"
14949 #endif
14950 /* We use char because int might match the return type of a gcc2
14951 builtin and then its argument prototype would still apply. */
14952 char cupsGetDefault ();
14954 main ()
14956 cupsGetDefault ();
14958 return 0;
14960 _ACEOF
14961 rm -f conftest.$ac_objext conftest$ac_exeext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14963 (eval $ac_link) 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
14983 if test "x$ac_cv_lib_soname_cups" = "x"
14984 then
14985 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14987 else
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14993 rm -f conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_get_soname_save_LIBS
14997 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14998 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14999 if test "${ac_cv_lib_soname_cups+set}" = set; then
15001 cat >>confdefs.h <<_ACEOF
15002 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15003 _ACEOF
15007 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15008 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15009 if test "${ac_cv_lib_soname_jack+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 ac_get_soname_save_LIBS=$LIBS
15013 LIBS="-ljack $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h. */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any gcc2 internal prototype to avoid an error. */
15022 #ifdef __cplusplus
15023 extern "C"
15024 #endif
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15027 char jack_client_new ();
15029 main ()
15031 jack_client_new ();
15033 return 0;
15035 _ACEOF
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; } &&
15051 { ac_try='test -s conftest$ac_exeext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15058 if test "x$ac_cv_lib_soname_jack" = "x"
15059 then
15060 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15068 rm -f conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_get_soname_save_LIBS
15072 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15073 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15074 if test "${ac_cv_lib_soname_jack+set}" = set; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15078 _ACEOF
15082 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15083 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15084 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087 ac_get_soname_save_LIBS=$LIBS
15088 LIBS="-lfontconfig $LIBS"
15089 cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h. */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15096 /* Override any gcc2 internal prototype to avoid an error. */
15097 #ifdef __cplusplus
15098 extern "C"
15099 #endif
15100 /* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15102 char FcInit ();
15104 main ()
15106 FcInit ();
15108 return 0;
15110 _ACEOF
15111 rm -f conftest.$ac_objext conftest$ac_exeext
15112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15113 (eval $ac_link) 2>conftest.er1
15114 ac_status=$?
15115 grep -v '^ *+' conftest.er1 >conftest.err
15116 rm -f conftest.er1
15117 cat conftest.err >&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; } &&
15126 { ac_try='test -s conftest$ac_exeext'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15133 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15134 then
15135 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15137 else
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15143 rm -f conftest.err conftest.$ac_objext \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_get_soname_save_LIBS
15147 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15148 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15149 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15151 cat >>confdefs.h <<_ACEOF
15152 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15153 _ACEOF
15157 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15158 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15159 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162 ac_get_soname_save_LIBS=$LIBS
15163 LIBS="-lssl $LIBS"
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15171 /* Override any gcc2 internal prototype to avoid an error. */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177 char SSL_library_init ();
15179 main ()
15181 SSL_library_init ();
15183 return 0;
15185 _ACEOF
15186 rm -f conftest.$ac_objext conftest$ac_exeext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15188 (eval $ac_link) 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; } &&
15201 { ac_try='test -s conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15208 if test "x$ac_cv_lib_soname_ssl" = "x"
15209 then
15210 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15218 rm -f conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15220 LIBS=$ac_get_soname_save_LIBS
15222 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15223 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15224 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15226 cat >>confdefs.h <<_ACEOF
15227 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15228 _ACEOF
15232 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15233 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15234 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237 ac_get_soname_save_LIBS=$LIBS
15238 LIBS="-lcrypto $LIBS"
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h. */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 /* We use char because int might match the return type of a gcc2
15251 builtin and then its argument prototype would still apply. */
15252 char BIO_new_socket ();
15254 main ()
15256 BIO_new_socket ();
15258 return 0;
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15263 (eval $ac_link) 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } &&
15270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest$ac_exeext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15283 if test "x$ac_cv_lib_soname_crypto" = "x"
15284 then
15285 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15287 else
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15293 rm -f conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_get_soname_save_LIBS
15297 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15298 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15299 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15301 cat >>confdefs.h <<_ACEOF
15302 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15303 _ACEOF
15307 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15308 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15309 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312 ac_get_soname_save_LIBS=$LIBS
15313 LIBS="-lncurses $LIBS"
15314 cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h. */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15321 /* Override any gcc2 internal prototype to avoid an error. */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 /* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15327 char waddch ();
15329 main ()
15331 waddch ();
15333 return 0;
15335 _ACEOF
15336 rm -f conftest.$ac_objext conftest$ac_exeext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338 (eval $ac_link) 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest$ac_exeext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15358 if test "x$ac_cv_lib_soname_ncurses" = "x"
15359 then
15360 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15368 rm -f conftest.err conftest.$ac_objext \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_get_soname_save_LIBS
15372 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15373 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15374 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15378 _ACEOF
15382 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15383 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15384 if test "${ac_cv_lib_soname_curses+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 ac_get_soname_save_LIBS=$LIBS
15388 LIBS="-lcurses $LIBS"
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h. */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15396 /* Override any gcc2 internal prototype to avoid an error. */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15402 char waddch ();
15404 main ()
15406 waddch ();
15408 return 0;
15410 _ACEOF
15411 rm -f conftest.$ac_objext conftest$ac_exeext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15413 (eval $ac_link) 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15433 if test "x$ac_cv_lib_soname_curses" = "x"
15434 then
15435 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15437 else
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15443 rm -f conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445 LIBS=$ac_get_soname_save_LIBS
15447 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15448 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15449 if test "${ac_cv_lib_soname_curses+set}" = set; then
15451 cat >>confdefs.h <<_ACEOF
15452 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15453 _ACEOF
15457 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15458 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15459 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462 ac_get_soname_save_LIBS=$LIBS
15463 LIBS="-ljpeg $LIBS"
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15471 /* Override any gcc2 internal prototype to avoid an error. */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char jpeg_start_decompress ();
15479 main ()
15481 jpeg_start_decompress ();
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15508 if test "x$ac_cv_lib_soname_jpeg" = "x"
15509 then
15510 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15512 else
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15518 rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520 LIBS=$ac_get_soname_save_LIBS
15522 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15523 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15524 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15528 _ACEOF
15532 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15533 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15534 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 ac_get_soname_save_LIBS=$LIBS
15538 LIBS="-lungif $LIBS"
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 /* Override any gcc2 internal prototype to avoid an error. */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 /* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15552 char DGifOpen ();
15554 main ()
15556 DGifOpen ();
15558 return 0;
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; } &&
15576 { ac_try='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15583 if test "x$ac_cv_lib_soname_ungif" = "x"
15584 then
15585 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15587 else
15588 echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15591 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15593 rm -f conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595 LIBS=$ac_get_soname_save_LIBS
15597 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15598 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15599 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15603 _ACEOF
15607 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15608 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15609 if test "${ac_cv_lib_soname_gif+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612 ac_get_soname_save_LIBS=$LIBS
15613 LIBS="-lgif $LIBS"
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h. */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15621 /* Override any gcc2 internal prototype to avoid an error. */
15622 #ifdef __cplusplus
15623 extern "C"
15624 #endif
15625 /* We use char because int might match the return type of a gcc2
15626 builtin and then its argument prototype would still apply. */
15627 char DGifOpen ();
15629 main ()
15631 DGifOpen ();
15633 return 0;
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>conftest.er1
15639 ac_status=$?
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
15645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest$ac_exeext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15658 if test "x$ac_cv_lib_soname_gif" = "x"
15659 then
15660 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15662 else
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15668 rm -f conftest.err conftest.$ac_objext \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_get_soname_save_LIBS
15672 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15673 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15674 if test "${ac_cv_lib_soname_gif+set}" = set; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15678 _ACEOF
15682 echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15683 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15684 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 else
15687 ac_get_soname_save_LIBS=$LIBS
15688 LIBS="-lcapi20 $LIBS"
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h. */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15696 /* Override any gcc2 internal prototype to avoid an error. */
15697 #ifdef __cplusplus
15698 extern "C"
15699 #endif
15700 /* We use char because int might match the return type of a gcc2
15701 builtin and then its argument prototype would still apply. */
15702 char capi20_isinstalled ();
15704 main ()
15706 capi20_isinstalled ();
15708 return 0;
15710 _ACEOF
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15713 (eval $ac_link) 2>conftest.er1
15714 ac_status=$?
15715 grep -v '^ *+' conftest.er1 >conftest.err
15716 rm -f conftest.er1
15717 cat conftest.err >&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; } &&
15726 { ac_try='test -s conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15733 if test "x$ac_cv_lib_soname_capi20" = "x"
15734 then
15735 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15737 else
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15743 rm -f conftest.err conftest.$ac_objext \
15744 conftest$ac_exeext conftest.$ac_ext
15745 LIBS=$ac_get_soname_save_LIBS
15747 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15748 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15749 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15751 cat >>confdefs.h <<_ACEOF
15752 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15753 _ACEOF
15825 for ac_func in \
15826 _lwp_create \
15827 _lwp_self \
15828 _pclose \
15829 _popen \
15830 _snprintf \
15831 _spawnvp \
15832 _stricmp \
15833 _strnicmp \
15834 _vsnprintf \
15835 asctime_r \
15836 chsize \
15837 clone \
15838 epoll_create \
15839 ffs \
15840 finite \
15841 fork \
15842 fpclass \
15843 fstatfs \
15844 fstatvfs \
15845 ftruncate \
15846 futimes \
15847 futimesat \
15848 getaddrinfo \
15849 getnameinfo \
15850 getnetbyname \
15851 getopt_long \
15852 getpagesize \
15853 getprotobyname \
15854 getprotobynumber \
15855 getpwuid \
15856 getservbyport \
15857 gettid \
15858 gettimeofday \
15859 getuid \
15860 inet_network \
15861 lstat \
15862 memmove \
15863 mmap \
15864 pclose \
15865 popen \
15866 prctl \
15867 pread \
15868 pwrite \
15869 readlink \
15870 rfork \
15871 sched_yield \
15872 select \
15873 sendmsg \
15874 settimeofday \
15875 sigaltstack \
15876 sigprocmask \
15877 snprintf \
15878 spawnvp \
15879 statfs \
15880 statvfs \
15881 strcasecmp \
15882 strerror \
15883 strncasecmp \
15884 tcgetattr \
15885 timegm \
15886 usleep \
15887 vsnprintf \
15888 wait4 \
15889 waitpid \
15892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15893 echo "$as_me:$LINENO: checking for $ac_func" >&5
15894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15895 if eval "test \"\${$as_ac_var+set}\" = set"; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 else
15898 cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h. */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15906 #define $ac_func innocuous_$ac_func
15908 /* System header to define __stub macros and hopefully few prototypes,
15909 which can conflict with char $ac_func (); below.
15910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15911 <limits.h> exists even on freestanding compilers. */
15913 #ifdef __STDC__
15914 # include <limits.h>
15915 #else
15916 # include <assert.h>
15917 #endif
15919 #undef $ac_func
15921 /* Override any gcc2 internal prototype to avoid an error. */
15922 #ifdef __cplusplus
15923 extern "C"
15925 #endif
15926 /* We use char because int might match the return type of a gcc2
15927 builtin and then its argument prototype would still apply. */
15928 char $ac_func ();
15929 /* The GNU C library defines this for functions which it implements
15930 to always fail with ENOSYS. Some functions are actually named
15931 something starting with __ and the normal name is an alias. */
15932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15933 choke me
15934 #else
15935 char (*f) () = $ac_func;
15936 #endif
15937 #ifdef __cplusplus
15939 #endif
15942 main ()
15944 return f != $ac_func;
15946 return 0;
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; } &&
15964 { ac_try='test -s conftest$ac_exeext'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 eval "$as_ac_var=yes"
15971 else
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 eval "$as_ac_var=no"
15977 rm -f conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15982 if test `eval echo '${'$as_ac_var'}'` = yes; then
15983 cat >>confdefs.h <<_ACEOF
15984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15985 _ACEOF
15988 done
15993 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15994 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15995 if test "${ac_cv_c_const+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h. */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16006 main ()
16008 /* FIXME: Include the comments suggested by Paul. */
16009 #ifndef __cplusplus
16010 /* Ultrix mips cc rejects this. */
16011 typedef int charset[2];
16012 const charset x;
16013 /* SunOS 4.1.1 cc rejects this. */
16014 char const *const *ccp;
16015 char **p;
16016 /* NEC SVR4.0.2 mips cc rejects this. */
16017 struct point {int x, y;};
16018 static struct point const zero = {0,0};
16019 /* AIX XL C 1.02.0.0 rejects this.
16020 It does not let you subtract one const X* pointer from another in
16021 an arm of an if-expression whose if-part is not a constant
16022 expression */
16023 const char *g = "string";
16024 ccp = &g + (g ? g-g : 0);
16025 /* HPUX 7.0 cc rejects these. */
16026 ++ccp;
16027 p = (char**) ccp;
16028 ccp = (char const *const *) p;
16029 { /* SCO 3.2v4 cc rejects this. */
16030 char *t;
16031 char const *s = 0 ? (char *) 0 : (char const *) 0;
16033 *t++ = 0;
16035 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16036 int x[] = {25, 17};
16037 const int *foo = &x[0];
16038 ++foo;
16040 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16041 typedef const int *iptr;
16042 iptr p = 0;
16043 ++p;
16045 { /* AIX XL C 1.02.0.0 rejects this saying
16046 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16047 struct s { int j; const int *ap[3]; };
16048 struct s *b; b->j = 5;
16050 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16051 const int foo = 10;
16053 #endif
16056 return 0;
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>conftest.er1
16062 ac_status=$?
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
16068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_cv_c_const=yes
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_cv_c_const=no
16087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16089 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16090 echo "${ECHO_T}$ac_cv_c_const" >&6
16091 if test $ac_cv_c_const = no; then
16093 cat >>confdefs.h <<\_ACEOF
16094 #define const
16095 _ACEOF
16099 echo "$as_me:$LINENO: checking for inline" >&5
16100 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16101 if test "${ac_cv_c_inline+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104 ac_cv_c_inline=no
16105 for ac_kw in inline __inline__ __inline; do
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #ifndef __cplusplus
16113 typedef int foo_t;
16114 static $ac_kw foo_t static_foo () {return 0; }
16115 $ac_kw foo_t foo () {return 0; }
16116 #endif
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest.$ac_objext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_cv_c_inline=$ac_kw; break
16141 else
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16147 done
16150 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16151 echo "${ECHO_T}$ac_cv_c_inline" >&6
16154 case $ac_cv_c_inline in
16155 inline | yes) ;;
16157 case $ac_cv_c_inline in
16158 no) ac_val=;;
16159 *) ac_val=$ac_cv_c_inline;;
16160 esac
16161 cat >>confdefs.h <<_ACEOF
16162 #ifndef __cplusplus
16163 #define inline $ac_val
16164 #endif
16165 _ACEOF
16167 esac
16169 echo "$as_me:$LINENO: checking for mode_t" >&5
16170 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16171 if test "${ac_cv_type_mode_t+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h. */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 $ac_includes_default
16182 main ()
16184 if ((mode_t *) 0)
16185 return 0;
16186 if (sizeof (mode_t))
16187 return 0;
16189 return 0;
16191 _ACEOF
16192 rm -f conftest.$ac_objext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest.$ac_objext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_type_mode_t=yes
16214 else
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_cv_type_mode_t=no
16220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16223 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16224 if test $ac_cv_type_mode_t = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_MODE_T 1
16228 _ACEOF
16232 echo "$as_me:$LINENO: checking for off_t" >&5
16233 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16234 if test "${ac_cv_type_off_t+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16245 main ()
16247 if ((off_t *) 0)
16248 return 0;
16249 if (sizeof (off_t))
16250 return 0;
16252 return 0;
16254 _ACEOF
16255 rm -f conftest.$ac_objext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16257 (eval $ac_compile) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; } &&
16270 { ac_try='test -s conftest.$ac_objext'
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_cv_type_off_t=yes
16277 else
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_cv_type_off_t=no
16283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16286 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16287 if test $ac_cv_type_off_t = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_OFF_T 1
16291 _ACEOF
16295 echo "$as_me:$LINENO: checking for pid_t" >&5
16296 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16297 if test "${ac_cv_type_pid_t+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300 cat >conftest.$ac_ext <<_ACEOF
16301 /* confdefs.h. */
16302 _ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 $ac_includes_default
16308 main ()
16310 if ((pid_t *) 0)
16311 return 0;
16312 if (sizeof (pid_t))
16313 return 0;
16315 return 0;
16317 _ACEOF
16318 rm -f conftest.$ac_objext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16320 (eval $ac_compile) 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 ac_cv_type_pid_t=yes
16340 else
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 ac_cv_type_pid_t=no
16346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16349 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16350 if test $ac_cv_type_pid_t = yes; then
16352 cat >>confdefs.h <<_ACEOF
16353 #define HAVE_PID_T 1
16354 _ACEOF
16358 echo "$as_me:$LINENO: checking for size_t" >&5
16359 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16360 if test "${ac_cv_type_size_t+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16371 main ()
16373 if ((size_t *) 0)
16374 return 0;
16375 if (sizeof (size_t))
16376 return 0;
16378 return 0;
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_type_size_t=yes
16403 else
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_cv_type_size_t=no
16409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16411 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16412 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16413 if test $ac_cv_type_size_t = yes; then
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_SIZE_T 1
16417 _ACEOF
16421 echo "$as_me:$LINENO: checking for ssize_t" >&5
16422 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16423 if test "${ac_cv_type_ssize_t+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 $ac_includes_default
16434 main ()
16436 if ((ssize_t *) 0)
16437 return 0;
16438 if (sizeof (ssize_t))
16439 return 0;
16441 return 0;
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 ac_cv_type_ssize_t=yes
16466 else
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 ac_cv_type_ssize_t=no
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16475 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16476 if test $ac_cv_type_ssize_t = yes; then
16478 cat >>confdefs.h <<_ACEOF
16479 #define HAVE_SSIZE_T 1
16480 _ACEOF
16484 echo "$as_me:$LINENO: checking for long long" >&5
16485 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16486 if test "${ac_cv_type_long_long+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 $ac_includes_default
16497 main ()
16499 if ((long long *) 0)
16500 return 0;
16501 if (sizeof (long long))
16502 return 0;
16504 return 0;
16506 _ACEOF
16507 rm -f conftest.$ac_objext
16508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16509 (eval $ac_compile) 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_type_long_long=yes
16529 else
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_type_long_long=no
16535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16537 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16538 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16539 if test $ac_cv_type_long_long = yes; then
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_LONG_LONG 1
16543 _ACEOF
16547 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
16548 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
16549 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16560 main ()
16562 if ((fsblkcnt_t *) 0)
16563 return 0;
16564 if (sizeof (fsblkcnt_t))
16565 return 0;
16567 return 0;
16569 _ACEOF
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572 (eval $ac_compile) 2>conftest.er1
16573 ac_status=$?
16574 grep -v '^ *+' conftest.er1 >conftest.err
16575 rm -f conftest.er1
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_type_fsblkcnt_t=yes
16592 else
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_cv_type_fsblkcnt_t=no
16598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16600 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
16601 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
16602 if test $ac_cv_type_fsblkcnt_t = yes; then
16604 cat >>confdefs.h <<_ACEOF
16605 #define HAVE_FSBLKCNT_T 1
16606 _ACEOF
16610 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
16611 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
16612 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $ac_includes_default
16623 main ()
16625 if ((fsfilcnt_t *) 0)
16626 return 0;
16627 if (sizeof (fsfilcnt_t))
16628 return 0;
16630 return 0;
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>conftest.er1
16636 ac_status=$?
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_type_fsfilcnt_t=yes
16655 else
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_cv_type_fsfilcnt_t=no
16661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
16664 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
16665 if test $ac_cv_type_fsfilcnt_t = yes; then
16667 cat >>confdefs.h <<_ACEOF
16668 #define HAVE_FSFILCNT_T 1
16669 _ACEOF
16674 echo "$as_me:$LINENO: checking for sigset_t" >&5
16675 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
16676 if test "${ac_cv_type_sigset_t+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 #include <signal.h>
16688 main ()
16690 if ((sigset_t *) 0)
16691 return 0;
16692 if (sizeof (sigset_t))
16693 return 0;
16695 return 0;
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16701 ac_status=$?
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_cv_type_sigset_t=yes
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_cv_type_sigset_t=no
16726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16728 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
16729 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
16730 if test $ac_cv_type_sigset_t = yes; then
16732 cat >>confdefs.h <<_ACEOF
16733 #define HAVE_SIGSET_T 1
16734 _ACEOF
16739 echo "$as_me:$LINENO: checking for request_sense" >&5
16740 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6
16741 if test "${ac_cv_type_request_sense+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h. */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <linux/cdrom.h>
16753 main ()
16755 if ((request_sense *) 0)
16756 return 0;
16757 if (sizeof (request_sense))
16758 return 0;
16760 return 0;
16762 _ACEOF
16763 rm -f conftest.$ac_objext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16765 (eval $ac_compile) 2>conftest.er1
16766 ac_status=$?
16767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest.$ac_objext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_type_request_sense=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_cv_type_request_sense=no
16791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
16794 echo "${ECHO_T}$ac_cv_type_request_sense" >&6
16795 if test $ac_cv_type_request_sense = yes; then
16797 cat >>confdefs.h <<_ACEOF
16798 #define HAVE_REQUEST_SENSE 1
16799 _ACEOF
16805 echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
16806 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6
16807 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 #ifdef HAVE_LINUX_INPUT_H
16817 #include <linux/input.h>
16818 #endif
16821 main ()
16823 static struct ff_effect ac_aggr;
16824 if (ac_aggr.direction)
16825 return 0;
16827 return 0;
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest.$ac_objext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_member_struct_ff_effect_direction=yes
16852 else
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #ifdef HAVE_LINUX_INPUT_H
16863 #include <linux/input.h>
16864 #endif
16867 main ()
16869 static struct ff_effect ac_aggr;
16870 if (sizeof ac_aggr.direction)
16871 return 0;
16873 return 0;
16875 _ACEOF
16876 rm -f conftest.$ac_objext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16878 (eval $ac_compile) 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } &&
16891 { ac_try='test -s conftest.$ac_objext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_member_struct_ff_effect_direction=yes
16898 else
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_cv_member_struct_ff_effect_direction=no
16904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16908 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
16909 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6
16910 if test $ac_cv_member_struct_ff_effect_direction = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
16914 _ACEOF
16920 echo "$as_me:$LINENO: checking for sigaddset" >&5
16921 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
16922 if test "${wine_cv_have_sigaddset+set}" = set; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 else
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h. */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 #include <signal.h>
16933 main ()
16935 sigset_t set; sigaddset(&set,SIGTERM);
16937 return 0;
16939 _ACEOF
16940 rm -f conftest.$ac_objext conftest$ac_exeext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942 (eval $ac_link) 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 wine_cv_have_sigaddset=yes
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 wine_cv_have_sigaddset=no
16968 rm -f conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
16972 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
16973 if test "$wine_cv_have_sigaddset" = "yes"
16974 then
16976 cat >>confdefs.h <<\_ACEOF
16977 #define HAVE_SIGADDSET 1
16978 _ACEOF
16983 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
16984 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
16985 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988 cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h. */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16995 #include <netdb.h>
16998 main ()
17001 char *name=NULL;
17002 struct hostent he;
17003 struct hostent *result;
17004 char *buf=NULL;
17005 int bufsize=0;
17006 int res,errnr;
17007 char *addr=NULL;
17008 int addrlen=0;
17009 int addrtype=0;
17010 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17011 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17014 return 0;
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 wine_cv_linux_gethostbyname_r_6=yes
17039 else
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 wine_cv_linux_gethostbyname_r_6=no
17046 rm -f conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17050 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17051 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17052 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17053 then
17055 cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17057 _ACEOF
17061 if test "$ac_cv_header_linux_joystick_h" = "yes"
17062 then
17063 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17064 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17065 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 #include <sys/ioctl.h>
17076 #include <linux/joystick.h>
17078 struct js_event blub;
17079 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17080 #error "no 2.2 header"
17081 #endif
17084 main ()
17086 /*empty*/
17088 return 0;
17090 _ACEOF
17091 rm -f conftest.$ac_objext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17093 (eval $ac_compile) 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest.$ac_objext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 wine_cv_linux_joystick_22_api=yes
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 wine_cv_linux_joystick_22_api=no
17119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17122 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17123 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17124 if test "$wine_cv_linux_joystick_22_api" = "yes"
17125 then
17127 cat >>confdefs.h <<\_ACEOF
17128 #define HAVE_LINUX_22_JOYSTICK_API 1
17129 _ACEOF
17135 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17136 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17137 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <sys/types.h>
17147 #ifdef HAVE_SYS_PARAM_H
17148 # include <sys/param.h>
17149 #endif
17150 #ifdef HAVE_SYS_MOUNT_H
17151 # include <sys/mount.h>
17152 #endif
17153 #ifdef HAVE_SYS_VFS_H
17154 # include <sys/vfs.h>
17155 #endif
17156 #ifdef HAVE_SYS_STATFS_H
17157 # include <sys/statfs.h>
17158 #endif
17161 main ()
17163 static struct statfs ac_aggr;
17164 if (ac_aggr.f_bfree)
17165 return 0;
17167 return 0;
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest.$ac_objext'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_cv_member_struct_statfs_f_bfree=yes
17192 else
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 #include <sys/types.h>
17203 #ifdef HAVE_SYS_PARAM_H
17204 # include <sys/param.h>
17205 #endif
17206 #ifdef HAVE_SYS_MOUNT_H
17207 # include <sys/mount.h>
17208 #endif
17209 #ifdef HAVE_SYS_VFS_H
17210 # include <sys/vfs.h>
17211 #endif
17212 #ifdef HAVE_SYS_STATFS_H
17213 # include <sys/statfs.h>
17214 #endif
17217 main ()
17219 static struct statfs ac_aggr;
17220 if (sizeof ac_aggr.f_bfree)
17221 return 0;
17223 return 0;
17225 _ACEOF
17226 rm -f conftest.$ac_objext
17227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17228 (eval $ac_compile) 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest.$ac_objext'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 ac_cv_member_struct_statfs_f_bfree=yes
17248 else
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_cv_member_struct_statfs_f_bfree=no
17254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17259 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
17260 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
17262 cat >>confdefs.h <<_ACEOF
17263 #define HAVE_STRUCT_STATFS_F_BFREE 1
17264 _ACEOF
17268 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17269 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
17270 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h. */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 #include <sys/types.h>
17280 #ifdef HAVE_SYS_PARAM_H
17281 # include <sys/param.h>
17282 #endif
17283 #ifdef HAVE_SYS_MOUNT_H
17284 # include <sys/mount.h>
17285 #endif
17286 #ifdef HAVE_SYS_VFS_H
17287 # include <sys/vfs.h>
17288 #endif
17289 #ifdef HAVE_SYS_STATFS_H
17290 # include <sys/statfs.h>
17291 #endif
17294 main ()
17296 static struct statfs ac_aggr;
17297 if (ac_aggr.f_bavail)
17298 return 0;
17300 return 0;
17302 _ACEOF
17303 rm -f conftest.$ac_objext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17305 (eval $ac_compile) 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest.$ac_objext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 ac_cv_member_struct_statfs_f_bavail=yes
17325 else
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h. */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 #include <sys/types.h>
17336 #ifdef HAVE_SYS_PARAM_H
17337 # include <sys/param.h>
17338 #endif
17339 #ifdef HAVE_SYS_MOUNT_H
17340 # include <sys/mount.h>
17341 #endif
17342 #ifdef HAVE_SYS_VFS_H
17343 # include <sys/vfs.h>
17344 #endif
17345 #ifdef HAVE_SYS_STATFS_H
17346 # include <sys/statfs.h>
17347 #endif
17350 main ()
17352 static struct statfs ac_aggr;
17353 if (sizeof ac_aggr.f_bavail)
17354 return 0;
17356 return 0;
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361 (eval $ac_compile) 2>conftest.er1
17362 ac_status=$?
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_member_struct_statfs_f_bavail=yes
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 ac_cv_member_struct_statfs_f_bavail=no
17387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17391 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17392 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
17393 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
17397 _ACEOF
17401 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17402 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
17403 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 #include <sys/types.h>
17413 #ifdef HAVE_SYS_PARAM_H
17414 # include <sys/param.h>
17415 #endif
17416 #ifdef HAVE_SYS_MOUNT_H
17417 # include <sys/mount.h>
17418 #endif
17419 #ifdef HAVE_SYS_VFS_H
17420 # include <sys/vfs.h>
17421 #endif
17422 #ifdef HAVE_SYS_STATFS_H
17423 # include <sys/statfs.h>
17424 #endif
17427 main ()
17429 static struct statfs ac_aggr;
17430 if (ac_aggr.f_frsize)
17431 return 0;
17433 return 0;
17435 _ACEOF
17436 rm -f conftest.$ac_objext
17437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17438 (eval $ac_compile) 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest.$ac_objext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_member_struct_statfs_f_frsize=yes
17458 else
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h. */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17468 #include <sys/types.h>
17469 #ifdef HAVE_SYS_PARAM_H
17470 # include <sys/param.h>
17471 #endif
17472 #ifdef HAVE_SYS_MOUNT_H
17473 # include <sys/mount.h>
17474 #endif
17475 #ifdef HAVE_SYS_VFS_H
17476 # include <sys/vfs.h>
17477 #endif
17478 #ifdef HAVE_SYS_STATFS_H
17479 # include <sys/statfs.h>
17480 #endif
17483 main ()
17485 static struct statfs ac_aggr;
17486 if (sizeof ac_aggr.f_frsize)
17487 return 0;
17489 return 0;
17491 _ACEOF
17492 rm -f conftest.$ac_objext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17494 (eval $ac_compile) 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_cv_member_struct_statfs_f_frsize=yes
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_member_struct_statfs_f_frsize=no
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17524 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17525 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
17526 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
17530 _ACEOF
17534 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17535 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
17536 if test "${ac_cv_member_struct_statfs_f_ffree+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 #include <sys/types.h>
17546 #ifdef HAVE_SYS_PARAM_H
17547 # include <sys/param.h>
17548 #endif
17549 #ifdef HAVE_SYS_MOUNT_H
17550 # include <sys/mount.h>
17551 #endif
17552 #ifdef HAVE_SYS_VFS_H
17553 # include <sys/vfs.h>
17554 #endif
17555 #ifdef HAVE_SYS_STATFS_H
17556 # include <sys/statfs.h>
17557 #endif
17560 main ()
17562 static struct statfs ac_aggr;
17563 if (ac_aggr.f_ffree)
17564 return 0;
17566 return 0;
17568 _ACEOF
17569 rm -f conftest.$ac_objext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17571 (eval $ac_compile) 2>conftest.er1
17572 ac_status=$?
17573 grep -v '^ *+' conftest.er1 >conftest.err
17574 rm -f conftest.er1
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } &&
17584 { ac_try='test -s conftest.$ac_objext'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17590 ac_cv_member_struct_statfs_f_ffree=yes
17591 else
17592 echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 #include <sys/types.h>
17602 #ifdef HAVE_SYS_PARAM_H
17603 # include <sys/param.h>
17604 #endif
17605 #ifdef HAVE_SYS_MOUNT_H
17606 # include <sys/mount.h>
17607 #endif
17608 #ifdef HAVE_SYS_VFS_H
17609 # include <sys/vfs.h>
17610 #endif
17611 #ifdef HAVE_SYS_STATFS_H
17612 # include <sys/statfs.h>
17613 #endif
17616 main ()
17618 static struct statfs ac_aggr;
17619 if (sizeof ac_aggr.f_ffree)
17620 return 0;
17622 return 0;
17624 _ACEOF
17625 rm -f conftest.$ac_objext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17627 (eval $ac_compile) 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_member_struct_statfs_f_ffree=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_member_struct_statfs_f_ffree=no
17653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
17658 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
17659 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
17661 cat >>confdefs.h <<_ACEOF
17662 #define HAVE_STRUCT_STATFS_F_FFREE 1
17663 _ACEOF
17667 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
17668 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
17669 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h. */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 #include <sys/types.h>
17679 #ifdef HAVE_SYS_PARAM_H
17680 # include <sys/param.h>
17681 #endif
17682 #ifdef HAVE_SYS_MOUNT_H
17683 # include <sys/mount.h>
17684 #endif
17685 #ifdef HAVE_SYS_VFS_H
17686 # include <sys/vfs.h>
17687 #endif
17688 #ifdef HAVE_SYS_STATFS_H
17689 # include <sys/statfs.h>
17690 #endif
17693 main ()
17695 static struct statfs ac_aggr;
17696 if (ac_aggr.f_favail)
17697 return 0;
17699 return 0;
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest.$ac_objext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_member_struct_statfs_f_favail=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h. */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 #include <sys/types.h>
17735 #ifdef HAVE_SYS_PARAM_H
17736 # include <sys/param.h>
17737 #endif
17738 #ifdef HAVE_SYS_MOUNT_H
17739 # include <sys/mount.h>
17740 #endif
17741 #ifdef HAVE_SYS_VFS_H
17742 # include <sys/vfs.h>
17743 #endif
17744 #ifdef HAVE_SYS_STATFS_H
17745 # include <sys/statfs.h>
17746 #endif
17749 main ()
17751 static struct statfs ac_aggr;
17752 if (sizeof ac_aggr.f_favail)
17753 return 0;
17755 return 0;
17757 _ACEOF
17758 rm -f conftest.$ac_objext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760 (eval $ac_compile) 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest.$ac_objext'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_cv_member_struct_statfs_f_favail=yes
17780 else
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_member_struct_statfs_f_favail=no
17786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
17791 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
17792 if test $ac_cv_member_struct_statfs_f_favail = yes; then
17794 cat >>confdefs.h <<_ACEOF
17795 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
17796 _ACEOF
17800 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17801 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17802 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 else
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 #include <sys/types.h>
17812 #ifdef HAVE_SYS_PARAM_H
17813 # include <sys/param.h>
17814 #endif
17815 #ifdef HAVE_SYS_MOUNT_H
17816 # include <sys/mount.h>
17817 #endif
17818 #ifdef HAVE_SYS_VFS_H
17819 # include <sys/vfs.h>
17820 #endif
17821 #ifdef HAVE_SYS_STATFS_H
17822 # include <sys/statfs.h>
17823 #endif
17826 main ()
17828 static struct statfs ac_aggr;
17829 if (ac_aggr.f_namelen)
17830 return 0;
17832 return 0;
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest.$ac_objext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_cv_member_struct_statfs_f_namelen=yes
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 cat >conftest.$ac_ext <<_ACEOF
17862 /* confdefs.h. */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17867 #include <sys/types.h>
17868 #ifdef HAVE_SYS_PARAM_H
17869 # include <sys/param.h>
17870 #endif
17871 #ifdef HAVE_SYS_MOUNT_H
17872 # include <sys/mount.h>
17873 #endif
17874 #ifdef HAVE_SYS_VFS_H
17875 # include <sys/vfs.h>
17876 #endif
17877 #ifdef HAVE_SYS_STATFS_H
17878 # include <sys/statfs.h>
17879 #endif
17882 main ()
17884 static struct statfs ac_aggr;
17885 if (sizeof ac_aggr.f_namelen)
17886 return 0;
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893 (eval $ac_compile) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest.$ac_objext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_member_struct_statfs_f_namelen=yes
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_cv_member_struct_statfs_f_namelen=no
17919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17923 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17924 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17925 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17929 _ACEOF
17935 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
17936 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
17937 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940 cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h. */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946 #ifdef HAVE_SYS_STATVFS_H
17947 #include <sys/statvfs.h>
17948 #endif
17951 main ()
17953 static struct statvfs ac_aggr;
17954 if (ac_aggr.f_blocks)
17955 return 0;
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17962 (eval $ac_compile) 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_cv_member_struct_statvfs_f_blocks=yes
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 #ifdef HAVE_SYS_STATVFS_H
17993 #include <sys/statvfs.h>
17994 #endif
17997 main ()
17999 static struct statvfs ac_aggr;
18000 if (sizeof ac_aggr.f_blocks)
18001 return 0;
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18008 (eval $ac_compile) 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_cv_member_struct_statvfs_f_blocks=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_cv_member_struct_statvfs_f_blocks=no
18034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18039 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
18040 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18042 cat >>confdefs.h <<_ACEOF
18043 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18044 _ACEOF
18050 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18051 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18052 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055 cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h. */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 #include <sys/types.h>
18062 #ifdef HAVE_SYS_SOCKET_H
18063 # include <sys/socket.h>
18064 #endif
18065 #ifdef HAVE_SYS_UN_H
18066 # include <sys/un.h>
18067 #endif
18070 main ()
18072 static struct msghdr ac_aggr;
18073 if (ac_aggr.msg_accrights)
18074 return 0;
18076 return 0;
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_member_struct_msghdr_msg_accrights=yes
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 #include <sys/types.h>
18112 #ifdef HAVE_SYS_SOCKET_H
18113 # include <sys/socket.h>
18114 #endif
18115 #ifdef HAVE_SYS_UN_H
18116 # include <sys/un.h>
18117 #endif
18120 main ()
18122 static struct msghdr ac_aggr;
18123 if (sizeof ac_aggr.msg_accrights)
18124 return 0;
18126 return 0;
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest.$ac_objext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18150 ac_cv_member_struct_msghdr_msg_accrights=yes
18151 else
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 ac_cv_member_struct_msghdr_msg_accrights=no
18157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18161 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18162 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18163 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18165 cat >>confdefs.h <<_ACEOF
18166 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18167 _ACEOF
18171 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18172 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18173 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176 cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h. */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18182 #include <sys/types.h>
18183 #ifdef HAVE_SYS_SOCKET_H
18184 # include <sys/socket.h>
18185 #endif
18186 #ifdef HAVE_SYS_UN_H
18187 # include <sys/un.h>
18188 #endif
18191 main ()
18193 static struct sockaddr ac_aggr;
18194 if (ac_aggr.sa_len)
18195 return 0;
18197 return 0;
18199 _ACEOF
18200 rm -f conftest.$ac_objext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202 (eval $ac_compile) 2>conftest.er1
18203 ac_status=$?
18204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_member_struct_sockaddr_sa_len=yes
18222 else
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include <sys/types.h>
18233 #ifdef HAVE_SYS_SOCKET_H
18234 # include <sys/socket.h>
18235 #endif
18236 #ifdef HAVE_SYS_UN_H
18237 # include <sys/un.h>
18238 #endif
18241 main ()
18243 static struct sockaddr ac_aggr;
18244 if (sizeof ac_aggr.sa_len)
18245 return 0;
18247 return 0;
18249 _ACEOF
18250 rm -f conftest.$ac_objext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18252 (eval $ac_compile) 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
18259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest.$ac_objext'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_cv_member_struct_sockaddr_sa_len=yes
18272 else
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18276 ac_cv_member_struct_sockaddr_sa_len=no
18278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18282 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18283 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18284 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18288 _ACEOF
18292 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18293 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18294 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297 cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 #include <sys/types.h>
18304 #ifdef HAVE_SYS_SOCKET_H
18305 # include <sys/socket.h>
18306 #endif
18307 #ifdef HAVE_SYS_UN_H
18308 # include <sys/un.h>
18309 #endif
18312 main ()
18314 static struct sockaddr_un ac_aggr;
18315 if (ac_aggr.sun_len)
18316 return 0;
18318 return 0;
18320 _ACEOF
18321 rm -f conftest.$ac_objext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } &&
18336 { ac_try='test -s conftest.$ac_objext'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_member_struct_sockaddr_un_sun_len=yes
18343 else
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h. */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 #include <sys/types.h>
18354 #ifdef HAVE_SYS_SOCKET_H
18355 # include <sys/socket.h>
18356 #endif
18357 #ifdef HAVE_SYS_UN_H
18358 # include <sys/un.h>
18359 #endif
18362 main ()
18364 static struct sockaddr_un ac_aggr;
18365 if (sizeof ac_aggr.sun_len)
18366 return 0;
18368 return 0;
18370 _ACEOF
18371 rm -f conftest.$ac_objext
18372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18373 (eval $ac_compile) 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_member_struct_sockaddr_un_sun_len=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_cv_member_struct_sockaddr_un_sun_len=no
18399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18403 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18404 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18405 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18407 cat >>confdefs.h <<_ACEOF
18408 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18409 _ACEOF
18415 echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18416 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6
18417 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 #include <sys/types.h>
18427 #ifdef HAVE_SCSI_SG_H
18428 #include <scsi/sg.h>
18429 #endif
18432 main ()
18434 static scsireq_t ac_aggr;
18435 if (ac_aggr.cmd)
18436 return 0;
18438 return 0;
18440 _ACEOF
18441 rm -f conftest.$ac_objext
18442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18443 (eval $ac_compile) 2>conftest.er1
18444 ac_status=$?
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest.$ac_objext'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 ac_cv_member_scsireq_t_cmd=yes
18463 else
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h. */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 #include <sys/types.h>
18474 #ifdef HAVE_SCSI_SG_H
18475 #include <scsi/sg.h>
18476 #endif
18479 main ()
18481 static scsireq_t ac_aggr;
18482 if (sizeof ac_aggr.cmd)
18483 return 0;
18485 return 0;
18487 _ACEOF
18488 rm -f conftest.$ac_objext
18489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18490 (eval $ac_compile) 2>conftest.er1
18491 ac_status=$?
18492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try='test -s conftest.$ac_objext'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 ac_cv_member_scsireq_t_cmd=yes
18510 else
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 ac_cv_member_scsireq_t_cmd=no
18516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18520 echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18521 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6
18522 if test $ac_cv_member_scsireq_t_cmd = yes; then
18524 cat >>confdefs.h <<_ACEOF
18525 #define HAVE_SCSIREQ_T_CMD 1
18526 _ACEOF
18530 echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18531 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6
18532 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h. */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 #include <sys/types.h>
18542 #ifdef HAVE_SCSI_SG_H
18543 #include <scsi/sg.h>
18544 #endif
18547 main ()
18549 static sg_io_hdr_t ac_aggr;
18550 if (ac_aggr.interface_id)
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_sg_io_hdr_t_interface_id=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_SCSI_SG_H
18590 #include <scsi/sg.h>
18591 #endif
18594 main ()
18596 static sg_io_hdr_t ac_aggr;
18597 if (sizeof ac_aggr.interface_id)
18598 return 0;
18600 return 0;
18602 _ACEOF
18603 rm -f conftest.$ac_objext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18605 (eval $ac_compile) 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_member_sg_io_hdr_t_interface_id=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_cv_member_sg_io_hdr_t_interface_id=no
18631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18635 echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
18636 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6
18637 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
18639 cat >>confdefs.h <<_ACEOF
18640 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
18641 _ACEOF
18647 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18648 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18649 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h. */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18658 #include <signal.h>
18661 main ()
18663 static siginfo_t ac_aggr;
18664 if (ac_aggr.si_fd)
18665 return 0;
18667 return 0;
18669 _ACEOF
18670 rm -f conftest.$ac_objext
18671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18672 (eval $ac_compile) 2>conftest.er1
18673 ac_status=$?
18674 grep -v '^ *+' conftest.er1 >conftest.err
18675 rm -f conftest.er1
18676 cat conftest.err >&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest.$ac_objext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_member_siginfo_t_si_fd=yes
18692 else
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <signal.h>
18705 main ()
18707 static siginfo_t ac_aggr;
18708 if (sizeof ac_aggr.si_fd)
18709 return 0;
18711 return 0;
18713 _ACEOF
18714 rm -f conftest.$ac_objext
18715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716 (eval $ac_compile) 2>conftest.er1
18717 ac_status=$?
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
18723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest.$ac_objext'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_member_siginfo_t_si_fd=yes
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_member_siginfo_t_si_fd=no
18742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18746 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18747 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18748 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_SIGINFO_T_SI_FD 1
18752 _ACEOF
18758 echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
18759 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6
18760 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 #include <sys/types.h>
18770 #ifdef HAVE_SYS_MTIO_H
18771 #include <sys/mtio.h>
18772 #endif
18775 main ()
18777 static struct mtget ac_aggr;
18778 if (ac_aggr.mt_blksiz)
18779 return 0;
18781 return 0;
18783 _ACEOF
18784 rm -f conftest.$ac_objext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18786 (eval $ac_compile) 2>conftest.er1
18787 ac_status=$?
18788 grep -v '^ *+' conftest.er1 >conftest.err
18789 rm -f conftest.er1
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest.$ac_objext'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_cv_member_struct_mtget_mt_blksiz=yes
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h. */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 #include <sys/types.h>
18817 #ifdef HAVE_SYS_MTIO_H
18818 #include <sys/mtio.h>
18819 #endif
18822 main ()
18824 static struct mtget ac_aggr;
18825 if (sizeof ac_aggr.mt_blksiz)
18826 return 0;
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest.$ac_objext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_member_struct_mtget_mt_blksiz=yes
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 ac_cv_member_struct_mtget_mt_blksiz=no
18859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
18864 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6
18865 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
18867 cat >>confdefs.h <<_ACEOF
18868 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
18869 _ACEOF
18873 echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
18874 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6
18875 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 #include <sys/types.h>
18885 #ifdef HAVE_SYS_MTIO_H
18886 #include <sys/mtio.h>
18887 #endif
18890 main ()
18892 static struct mtget ac_aggr;
18893 if (ac_aggr.mt_gstat)
18894 return 0;
18896 return 0;
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>conftest.er1
18902 ac_status=$?
18903 grep -v '^ *+' conftest.er1 >conftest.err
18904 rm -f conftest.er1
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 ac_cv_member_struct_mtget_mt_gstat=yes
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h. */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 #include <sys/types.h>
18932 #ifdef HAVE_SYS_MTIO_H
18933 #include <sys/mtio.h>
18934 #endif
18937 main ()
18939 static struct mtget ac_aggr;
18940 if (sizeof ac_aggr.mt_gstat)
18941 return 0;
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest.$ac_objext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_member_struct_mtget_mt_gstat=yes
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_member_struct_mtget_mt_gstat=no
18974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
18979 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6
18980 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
18984 _ACEOF
18988 echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
18989 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6
18990 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 #include <sys/types.h>
19000 #ifdef HAVE_SYS_MTIO_H
19001 #include <sys/mtio.h>
19002 #endif
19005 main ()
19007 static struct mtget ac_aggr;
19008 if (ac_aggr.mt_blkno)
19009 return 0;
19011 return 0;
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19016 (eval $ac_compile) 2>conftest.er1
19017 ac_status=$?
19018 grep -v '^ *+' conftest.er1 >conftest.err
19019 rm -f conftest.er1
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } &&
19023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 ac_cv_member_struct_mtget_mt_blkno=yes
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 cat >conftest.$ac_ext <<_ACEOF
19041 /* confdefs.h. */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 #include <sys/types.h>
19047 #ifdef HAVE_SYS_MTIO_H
19048 #include <sys/mtio.h>
19049 #endif
19052 main ()
19054 static struct mtget ac_aggr;
19055 if (sizeof ac_aggr.mt_blkno)
19056 return 0;
19058 return 0;
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_member_struct_mtget_mt_blkno=yes
19083 else
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_member_struct_mtget_mt_blkno=no
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19093 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19094 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6
19095 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
19099 _ACEOF
19105 echo "$as_me:$LINENO: checking for struct option.name" >&5
19106 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19107 if test "${ac_cv_member_struct_option_name+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 #ifdef HAVE_GETOPT_H
19117 #include <getopt.h>
19118 #endif
19121 main ()
19123 static struct option ac_aggr;
19124 if (ac_aggr.name)
19125 return 0;
19127 return 0;
19129 _ACEOF
19130 rm -f conftest.$ac_objext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19132 (eval $ac_compile) 2>conftest.er1
19133 ac_status=$?
19134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest.$ac_objext'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; }; then
19151 ac_cv_member_struct_option_name=yes
19152 else
19153 echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #ifdef HAVE_GETOPT_H
19163 #include <getopt.h>
19164 #endif
19167 main ()
19169 static struct option ac_aggr;
19170 if (sizeof ac_aggr.name)
19171 return 0;
19173 return 0;
19175 _ACEOF
19176 rm -f conftest.$ac_objext
19177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19178 (eval $ac_compile) 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_member_struct_option_name=yes
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_member_struct_option_name=no
19204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19208 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19209 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19210 if test $ac_cv_member_struct_option_name = yes; then
19212 cat >>confdefs.h <<_ACEOF
19213 #define HAVE_STRUCT_OPTION_NAME 1
19214 _ACEOF
19220 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19221 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19222 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225 cat >conftest.$ac_ext <<_ACEOF
19226 /* confdefs.h. */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19231 $ac_includes_default
19233 main ()
19235 static struct stat ac_aggr;
19236 if (ac_aggr.st_blocks)
19237 return 0;
19239 return 0;
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19244 (eval $ac_compile) 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest.$ac_objext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_member_struct_stat_st_blocks=yes
19264 else
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h. */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 $ac_includes_default
19276 main ()
19278 static struct stat ac_aggr;
19279 if (sizeof ac_aggr.st_blocks)
19280 return 0;
19282 return 0;
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_member_struct_stat_st_blocks=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_cv_member_struct_stat_st_blocks=no
19313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19317 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19318 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19319 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19321 cat >>confdefs.h <<_ACEOF
19322 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19323 _ACEOF
19329 echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19330 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
19331 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 #ifdef HAVE_SYS_TYPES_H
19341 #include <sys/types.h>
19342 #endif
19343 #ifdef HAVE_NETINET_IN_H
19344 #include <netinet/in.h>
19345 #endif
19348 main ()
19350 static struct sockaddr_in6 ac_aggr;
19351 if (ac_aggr.sin6_scope_id)
19352 return 0;
19354 return 0;
19356 _ACEOF
19357 rm -f conftest.$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19379 else
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h. */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 #ifdef HAVE_SYS_TYPES_H
19390 #include <sys/types.h>
19391 #endif
19392 #ifdef HAVE_NETINET_IN_H
19393 #include <netinet/in.h>
19394 #endif
19397 main ()
19399 static struct sockaddr_in6 ac_aggr;
19400 if (sizeof ac_aggr.sin6_scope_id)
19401 return 0;
19403 return 0;
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408 (eval $ac_compile) 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; } &&
19421 { ac_try='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
19434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19438 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19439 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
19440 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19442 cat >>confdefs.h <<_ACEOF
19443 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19444 _ACEOF
19450 echo "$as_me:$LINENO: checking for timezone variable" >&5
19451 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
19452 if test "${ac_cv_have_timezone+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 #include <time.h>
19463 main ()
19465 timezone;
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest$ac_exeext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_have_timezone="yes"
19492 else
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19496 ac_cv_have_timezone="no"
19498 rm -f conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19501 echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19502 echo "${ECHO_T}$ac_cv_have_timezone" >&6
19503 if test "$ac_cv_have_timezone" = "yes"
19504 then
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_TIMEZONE 1
19508 _ACEOF
19511 echo "$as_me:$LINENO: checking for daylight variable" >&5
19512 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
19513 if test "${ac_cv_have_daylight+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <time.h>
19524 main ()
19526 daylight;
19528 return 0;
19530 _ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest$ac_exeext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_have_daylight="yes"
19553 else
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_cv_have_daylight="no"
19559 rm -f conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
19563 echo "${ECHO_T}$ac_cv_have_daylight" >&6
19564 if test "$ac_cv_have_daylight" = "yes"
19565 then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_DAYLIGHT 1
19569 _ACEOF
19574 case $host_cpu in
19575 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19576 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19577 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #ifndef __i386__
19588 #endif
19589 _ACEOF
19590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19591 $EGREP "yes" >/dev/null 2>&1; then
19592 ac_cv_cpp_def___i386__=yes
19593 else
19594 ac_cv_cpp_def___i386__=no
19596 rm -f conftest*
19599 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19600 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19601 if test $ac_cv_cpp_def___i386__ = yes; then
19602 CFLAGS="$CFLAGS -D__i386__"
19603 LINTFLAGS="$LINTFLAGS -D__i386__"
19606 *x86_64*) echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
19607 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6
19608 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h. */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 #ifndef __x86_64__
19619 #endif
19620 _ACEOF
19621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19622 $EGREP "yes" >/dev/null 2>&1; then
19623 ac_cv_cpp_def___x86_64__=yes
19624 else
19625 ac_cv_cpp_def___x86_64__=no
19627 rm -f conftest*
19630 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
19631 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6
19632 if test $ac_cv_cpp_def___x86_64__ = yes; then
19633 CFLAGS="$CFLAGS -D__x86_64__"
19634 LINTFLAGS="$LINTFLAGS -D__x86_64__"
19637 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19638 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19639 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 else
19642 cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h. */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19648 #ifndef __ALPHA__
19650 #endif
19651 _ACEOF
19652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19653 $EGREP "yes" >/dev/null 2>&1; then
19654 ac_cv_cpp_def___ALPHA__=yes
19655 else
19656 ac_cv_cpp_def___ALPHA__=no
19658 rm -f conftest*
19661 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19662 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19663 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19664 CFLAGS="$CFLAGS -D__ALPHA__"
19665 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19668 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19669 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19670 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h. */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679 #ifndef __sparc__
19681 #endif
19682 _ACEOF
19683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19684 $EGREP "yes" >/dev/null 2>&1; then
19685 ac_cv_cpp_def___sparc__=yes
19686 else
19687 ac_cv_cpp_def___sparc__=no
19689 rm -f conftest*
19692 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19693 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19694 if test $ac_cv_cpp_def___sparc__ = yes; then
19695 CFLAGS="$CFLAGS -D__sparc__"
19696 LINTFLAGS="$LINTFLAGS -D__sparc__"
19699 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19700 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19701 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704 cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h. */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19710 #ifndef __powerpc__
19712 #endif
19713 _ACEOF
19714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19715 $EGREP "yes" >/dev/null 2>&1; then
19716 ac_cv_cpp_def___powerpc__=yes
19717 else
19718 ac_cv_cpp_def___powerpc__=no
19720 rm -f conftest*
19723 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19724 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19725 if test $ac_cv_cpp_def___powerpc__ = yes; then
19726 CFLAGS="$CFLAGS -D__powerpc__"
19727 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19730 esac
19732 case $host_vendor in
19733 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19734 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19735 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h. */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 #ifndef __sun__
19746 #endif
19747 _ACEOF
19748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19749 $EGREP "yes" >/dev/null 2>&1; then
19750 ac_cv_cpp_def___sun__=yes
19751 else
19752 ac_cv_cpp_def___sun__=no
19754 rm -f conftest*
19757 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19758 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19759 if test $ac_cv_cpp_def___sun__ = yes; then
19760 CFLAGS="$CFLAGS -D__sun__"
19761 LINTFLAGS="$LINTFLAGS -D__sun__"
19764 esac
19770 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19772 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19774 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19776 ac_config_commands="$ac_config_commands dlls/user/resources"
19778 ac_config_commands="$ac_config_commands dlls/wineps/data"
19780 ac_config_commands="$ac_config_commands include/wine"
19783 MAKE_RULES=Make.rules
19786 MAKE_DLL_RULES=dlls/Makedll.rules
19789 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
19792 MAKE_TEST_RULES=dlls/Maketest.rules
19795 MAKE_LIB_RULES=libs/Makelib.rules
19798 MAKE_PROG_RULES=programs/Makeprog.rules
19801 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/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/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/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/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/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 programs/wordpad/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"
19804 cat >confcache <<\_ACEOF
19805 # This file is a shell script that caches the results of configure
19806 # tests run on this system so they can be shared between configure
19807 # scripts and configure runs, see configure's option --config-cache.
19808 # It is not useful on other systems. If it contains results you don't
19809 # want to keep, you may remove or edit it.
19811 # config.status only pays attention to the cache file if you give it
19812 # the --recheck option to rerun configure.
19814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19816 # following values.
19818 _ACEOF
19820 # The following way of writing the cache mishandles newlines in values,
19821 # but we know of no workaround that is simple, portable, and efficient.
19822 # So, don't put newlines in cache variables' values.
19823 # Ultrix sh set writes to stderr and can't be redirected directly,
19824 # and sets the high bit in the cache file unless we assign to the vars.
19826 (set) 2>&1 |
19827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19828 *ac_space=\ *)
19829 # `set' does not quote correctly, so add quotes (double-quote
19830 # substitution turns \\\\ into \\, and sed turns \\ into \).
19831 sed -n \
19832 "s/'/'\\\\''/g;
19833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19836 # `set' quotes correctly as required by POSIX, so do not add quotes.
19837 sed -n \
19838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19840 esac;
19842 sed '
19843 t clear
19844 : clear
19845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19846 t end
19847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19848 : end' >>confcache
19849 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19850 if test -w $cache_file; then
19851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19852 cat confcache >$cache_file
19853 else
19854 echo "not updating unwritable cache $cache_file"
19857 rm -f confcache
19859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19860 # Let make expand exec_prefix.
19861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19865 # trailing colons and then remove the whole line if VPATH becomes empty
19866 # (actually we leave an empty line to preserve line numbers).
19867 if test "x$srcdir" = x.; then
19868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19869 s/:*\$(srcdir):*/:/;
19870 s/:*\${srcdir}:*/:/;
19871 s/:*@srcdir@:*/:/;
19872 s/^\([^=]*=[ ]*\):*/\1/;
19873 s/:*$//;
19874 s/^[^=]*=[ ]*$//;
19878 DEFS=-DHAVE_CONFIG_H
19880 ac_libobjs=
19881 ac_ltlibobjs=
19882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19883 # 1. Remove the extension, and $U if already installed.
19884 ac_i=`echo "$ac_i" |
19885 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19886 # 2. Add them.
19887 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19888 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19889 done
19890 LIBOBJS=$ac_libobjs
19892 LTLIBOBJS=$ac_ltlibobjs
19896 : ${CONFIG_STATUS=./config.status}
19897 ac_clean_files_save=$ac_clean_files
19898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19901 cat >$CONFIG_STATUS <<_ACEOF
19902 #! $SHELL
19903 # Generated by $as_me.
19904 # Run this file to recreate the current configuration.
19905 # Compiler output produced by configure, useful for debugging
19906 # configure, is in config.log if it exists.
19908 debug=false
19909 ac_cs_recheck=false
19910 ac_cs_silent=false
19911 SHELL=\${CONFIG_SHELL-$SHELL}
19912 _ACEOF
19914 cat >>$CONFIG_STATUS <<\_ACEOF
19915 ## --------------------- ##
19916 ## M4sh Initialization. ##
19917 ## --------------------- ##
19919 # Be Bourne compatible
19920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19921 emulate sh
19922 NULLCMD=:
19923 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19924 # is contrary to our usage. Disable this feature.
19925 alias -g '${1+"$@"}'='"$@"'
19926 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19927 set -o posix
19929 DUALCASE=1; export DUALCASE # for MKS sh
19931 # Support unset when possible.
19932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19933 as_unset=unset
19934 else
19935 as_unset=false
19939 # Work around bugs in pre-3.0 UWIN ksh.
19940 $as_unset ENV MAIL MAILPATH
19941 PS1='$ '
19942 PS2='> '
19943 PS4='+ '
19945 # NLS nuisances.
19946 for as_var in \
19947 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19948 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19949 LC_TELEPHONE LC_TIME
19951 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19952 eval $as_var=C; export $as_var
19953 else
19954 $as_unset $as_var
19956 done
19958 # Required to use basename.
19959 if expr a : '\(a\)' >/dev/null 2>&1; then
19960 as_expr=expr
19961 else
19962 as_expr=false
19965 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19966 as_basename=basename
19967 else
19968 as_basename=false
19972 # Name of the executable.
19973 as_me=`$as_basename "$0" ||
19974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19975 X"$0" : 'X\(//\)$' \| \
19976 X"$0" : 'X\(/\)$' \| \
19977 . : '\(.\)' 2>/dev/null ||
19978 echo X/"$0" |
19979 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19980 /^X\/\(\/\/\)$/{ s//\1/; q; }
19981 /^X\/\(\/\).*/{ s//\1/; q; }
19982 s/.*/./; q'`
19985 # PATH needs CR, and LINENO needs CR and PATH.
19986 # Avoid depending upon Character Ranges.
19987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19990 as_cr_digits='0123456789'
19991 as_cr_alnum=$as_cr_Letters$as_cr_digits
19993 # The user is always right.
19994 if test "${PATH_SEPARATOR+set}" != set; then
19995 echo "#! /bin/sh" >conf$$.sh
19996 echo "exit 0" >>conf$$.sh
19997 chmod +x conf$$.sh
19998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19999 PATH_SEPARATOR=';'
20000 else
20001 PATH_SEPARATOR=:
20003 rm -f conf$$.sh
20007 as_lineno_1=$LINENO
20008 as_lineno_2=$LINENO
20009 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20010 test "x$as_lineno_1" != "x$as_lineno_2" &&
20011 test "x$as_lineno_3" = "x$as_lineno_2" || {
20012 # Find who we are. Look in the path if we contain no path at all
20013 # relative or not.
20014 case $0 in
20015 *[\\/]* ) as_myself=$0 ;;
20016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20017 for as_dir in $PATH
20019 IFS=$as_save_IFS
20020 test -z "$as_dir" && as_dir=.
20021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20022 done
20025 esac
20026 # We did not find ourselves, most probably we were run as `sh COMMAND'
20027 # in which case we are not to be found in the path.
20028 if test "x$as_myself" = x; then
20029 as_myself=$0
20031 if test ! -f "$as_myself"; then
20032 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20033 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20034 { (exit 1); exit 1; }; }
20036 case $CONFIG_SHELL in
20038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20041 IFS=$as_save_IFS
20042 test -z "$as_dir" && as_dir=.
20043 for as_base in sh bash ksh sh5; do
20044 case $as_dir in
20046 if ("$as_dir/$as_base" -c '
20047 as_lineno_1=$LINENO
20048 as_lineno_2=$LINENO
20049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20050 test "x$as_lineno_1" != "x$as_lineno_2" &&
20051 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20052 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20053 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20054 CONFIG_SHELL=$as_dir/$as_base
20055 export CONFIG_SHELL
20056 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20057 fi;;
20058 esac
20059 done
20060 done
20062 esac
20064 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20065 # uniformly replaced by the line number. The first 'sed' inserts a
20066 # line-number line before each line; the second 'sed' does the real
20067 # work. The second script uses 'N' to pair each line-number line
20068 # with the numbered line, and appends trailing '-' during
20069 # substitution so that $LINENO is not a special case at line end.
20070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20071 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20072 sed '=' <$as_myself |
20073 sed '
20075 s,$,-,
20076 : loop
20077 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20078 t loop
20079 s,-$,,
20080 s,^['$as_cr_digits']*\n,,
20081 ' >$as_me.lineno &&
20082 chmod +x $as_me.lineno ||
20083 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20084 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20085 { (exit 1); exit 1; }; }
20087 # Don't try to exec as it changes $[0], causing all sort of problems
20088 # (the dirname of $[0] is not the place where we might find the
20089 # original and so on. Autoconf is especially sensible to this).
20090 . ./$as_me.lineno
20091 # Exit status is that of the last command.
20092 exit
20096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20097 *c*,-n*) ECHO_N= ECHO_C='
20098 ' ECHO_T=' ' ;;
20099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20101 esac
20103 if expr a : '\(a\)' >/dev/null 2>&1; then
20104 as_expr=expr
20105 else
20106 as_expr=false
20109 rm -f conf$$ conf$$.exe conf$$.file
20110 echo >conf$$.file
20111 if ln -s conf$$.file conf$$ 2>/dev/null; then
20112 # We could just check for DJGPP; but this test a) works b) is more generic
20113 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20114 if test -f conf$$.exe; then
20115 # Don't use ln at all; we don't have any links
20116 as_ln_s='cp -p'
20117 else
20118 as_ln_s='ln -s'
20120 elif ln conf$$.file conf$$ 2>/dev/null; then
20121 as_ln_s=ln
20122 else
20123 as_ln_s='cp -p'
20125 rm -f conf$$ conf$$.exe conf$$.file
20127 if mkdir -p . 2>/dev/null; then
20128 as_mkdir_p=:
20129 else
20130 test -d ./-p && rmdir ./-p
20131 as_mkdir_p=false
20134 as_executable_p="test -f"
20136 # Sed expression to map a string onto a valid CPP name.
20137 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20139 # Sed expression to map a string onto a valid variable name.
20140 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20143 # IFS
20144 # We need space, tab and new line, in precisely that order.
20145 as_nl='
20147 IFS=" $as_nl"
20149 # CDPATH.
20150 $as_unset CDPATH
20152 exec 6>&1
20154 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20155 # report actual input values of CONFIG_FILES etc. instead of their
20156 # values after options handling. Logging --version etc. is OK.
20157 exec 5>>config.log
20159 echo
20160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20161 ## Running $as_me. ##
20162 _ASBOX
20163 } >&5
20164 cat >&5 <<_CSEOF
20166 This file was extended by Wine $as_me 0.9.12, which was
20167 generated by GNU Autoconf 2.59. Invocation command line was
20169 CONFIG_FILES = $CONFIG_FILES
20170 CONFIG_HEADERS = $CONFIG_HEADERS
20171 CONFIG_LINKS = $CONFIG_LINKS
20172 CONFIG_COMMANDS = $CONFIG_COMMANDS
20173 $ $0 $@
20175 _CSEOF
20176 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20177 echo >&5
20178 _ACEOF
20180 # Files that config.status was made for.
20181 if test -n "$ac_config_files"; then
20182 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20185 if test -n "$ac_config_headers"; then
20186 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20189 if test -n "$ac_config_links"; then
20190 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20193 if test -n "$ac_config_commands"; then
20194 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20197 cat >>$CONFIG_STATUS <<\_ACEOF
20199 ac_cs_usage="\
20200 \`$as_me' instantiates files from templates according to the
20201 current configuration.
20203 Usage: $0 [OPTIONS] [FILE]...
20205 -h, --help print this help, then exit
20206 -V, --version print version number, then exit
20207 -q, --quiet do not print progress messages
20208 -d, --debug don't remove temporary files
20209 --recheck update $as_me by reconfiguring in the same conditions
20210 --file=FILE[:TEMPLATE]
20211 instantiate the configuration file FILE
20212 --header=FILE[:TEMPLATE]
20213 instantiate the configuration header FILE
20215 Configuration files:
20216 $config_files
20218 Configuration headers:
20219 $config_headers
20221 Configuration commands:
20222 $config_commands
20224 Report bugs to <bug-autoconf@gnu.org>."
20225 _ACEOF
20227 cat >>$CONFIG_STATUS <<_ACEOF
20228 ac_cs_version="\\
20229 Wine config.status 0.9.12
20230 configured by $0, generated by GNU Autoconf 2.59,
20231 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20233 Copyright (C) 2003 Free Software Foundation, Inc.
20234 This config.status script is free software; the Free Software Foundation
20235 gives unlimited permission to copy, distribute and modify it."
20236 srcdir=$srcdir
20237 INSTALL="$INSTALL"
20238 _ACEOF
20240 cat >>$CONFIG_STATUS <<\_ACEOF
20241 # If no file are specified by the user, then we need to provide default
20242 # value. By we need to know if files were specified by the user.
20243 ac_need_defaults=:
20244 while test $# != 0
20246 case $1 in
20247 --*=*)
20248 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20249 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20250 ac_shift=:
20253 ac_option=$1
20254 ac_optarg=$2
20255 ac_shift=shift
20257 *) # This is not an option, so the user has probably given explicit
20258 # arguments.
20259 ac_option=$1
20260 ac_need_defaults=false;;
20261 esac
20263 case $ac_option in
20264 # Handling of the options.
20265 _ACEOF
20266 cat >>$CONFIG_STATUS <<\_ACEOF
20267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20268 ac_cs_recheck=: ;;
20269 --version | --vers* | -V )
20270 echo "$ac_cs_version"; exit 0 ;;
20271 --he | --h)
20272 # Conflict between --help and --header
20273 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20274 Try \`$0 --help' for more information." >&5
20275 echo "$as_me: error: ambiguous option: $1
20276 Try \`$0 --help' for more information." >&2;}
20277 { (exit 1); exit 1; }; };;
20278 --help | --hel | -h )
20279 echo "$ac_cs_usage"; exit 0 ;;
20280 --debug | --d* | -d )
20281 debug=: ;;
20282 --file | --fil | --fi | --f )
20283 $ac_shift
20284 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20285 ac_need_defaults=false;;
20286 --header | --heade | --head | --hea )
20287 $ac_shift
20288 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20289 ac_need_defaults=false;;
20290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20292 ac_cs_silent=: ;;
20294 # This is an error.
20295 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20296 Try \`$0 --help' for more information." >&5
20297 echo "$as_me: error: unrecognized option: $1
20298 Try \`$0 --help' for more information." >&2;}
20299 { (exit 1); exit 1; }; } ;;
20301 *) ac_config_targets="$ac_config_targets $1" ;;
20303 esac
20304 shift
20305 done
20307 ac_configure_extra_args=
20309 if $ac_cs_silent; then
20310 exec 6>/dev/null
20311 ac_configure_extra_args="$ac_configure_extra_args --silent"
20314 _ACEOF
20315 cat >>$CONFIG_STATUS <<_ACEOF
20316 if \$ac_cs_recheck; then
20317 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20318 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20321 _ACEOF
20327 cat >>$CONFIG_STATUS <<\_ACEOF
20328 for ac_config_target in $ac_config_targets
20330 case "$ac_config_target" in
20331 # Handling of arguments.
20332 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20333 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20334 "dlls/Makeimplib.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
20335 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20336 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20337 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20338 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20339 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20340 "dlls/activeds/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
20341 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20342 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20343 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20344 "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20345 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20346 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20347 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20348 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20349 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20350 "dlls/cabinet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
20351 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20352 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20353 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20354 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20355 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20356 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20357 "dlls/comdlg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
20358 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20359 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20360 "dlls/crypt32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
20361 "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20362 "dlls/ctl3d32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
20363 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20364 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20365 "dlls/d3d9/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
20366 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20367 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20368 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20369 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20370 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20371 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20372 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20373 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20374 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20375 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20376 "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
20377 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20378 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20379 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20380 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20381 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20382 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20383 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20384 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20385 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20386 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20387 "dlls/dnsapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
20388 "dlls/dnsapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
20389 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20390 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20391 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20392 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20393 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20394 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20395 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20396 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20397 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20398 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20399 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20400 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20401 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20402 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20403 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20404 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20405 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20406 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20407 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20408 "dlls/imaadp32.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
20409 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20410 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20411 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20412 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20413 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20414 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20415 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20416 "dlls/lz32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
20417 "dlls/lz32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
20418 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20419 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20420 "dlls/mciavi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
20421 "dlls/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
20422 "dlls/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
20423 "dlls/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
20424 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20425 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20426 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20427 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20428 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20429 "dlls/msacm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
20430 "dlls/msacm32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
20431 "dlls/msadp32.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
20432 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20433 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20434 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20435 "dlls/msftedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
20436 "dlls/msg711.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
20437 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20438 "dlls/mshtml/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
20439 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20440 "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20441 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20442 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20443 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20444 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20445 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20446 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20447 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20448 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20449 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20450 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20451 "dlls/msvfw32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
20452 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20453 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20454 "dlls/msxml3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
20455 "dlls/msxml3/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
20456 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20457 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20458 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20459 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20460 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20461 "dlls/objsel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
20462 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20463 "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
20464 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20465 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20466 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20467 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20468 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20469 "dlls/olecli32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
20470 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20471 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20472 "dlls/olesvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
20473 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20474 "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
20475 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20476 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20477 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20478 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20479 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20480 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20481 "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
20482 "dlls/riched20/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
20483 "dlls/riched32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
20484 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20485 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20486 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20487 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20488 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20489 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20490 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20491 "dlls/secur32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
20492 "dlls/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
20493 "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
20494 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20495 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20496 "dlls/setupapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
20497 "dlls/sfc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
20498 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20499 "dlls/shdocvw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
20500 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20501 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20502 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20503 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20504 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20505 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20506 "dlls/spoolss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
20507 "dlls/stdole2.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
20508 "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
20509 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20510 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20511 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20512 "dlls/twain_32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
20513 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20514 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20515 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20516 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20517 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20518 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20519 "dlls/usp10/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
20520 "dlls/usp10/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
20521 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20522 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20523 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20524 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20525 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20526 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20527 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20528 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20529 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20530 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20531 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20532 "dlls/w32skrnl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
20533 "dlls/winecrt0/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
20534 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20535 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20536 "dlls/winemp3.acm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
20537 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20538 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20539 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20540 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20541 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20542 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20543 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20544 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20545 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20546 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20547 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20548 "dlls/winmm/wineesd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
20549 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20550 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20551 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20552 "dlls/winnls32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
20553 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20554 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20555 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20556 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20557 "dlls/wldap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
20558 "dlls/wnaspi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
20559 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20560 "dlls/ws2_32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
20561 "dlls/ws2_32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
20562 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20563 "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
20564 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20565 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20566 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20567 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20568 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20569 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20570 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20571 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20572 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20573 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20574 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20575 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20576 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20577 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20578 "programs/eject/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
20579 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20580 "programs/explorer/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
20581 "programs/hh/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
20582 "programs/icinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
20583 "programs/iexplore/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
20584 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20585 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20586 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20587 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20588 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20589 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20590 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20591 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20592 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20593 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20594 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20595 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20596 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20597 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20598 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20599 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20600 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20601 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20602 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20603 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20604 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20605 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20606 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20607 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20608 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20609 "programs/wordpad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
20610 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20611 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20612 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20613 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20614 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20615 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20616 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20617 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20618 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20619 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20620 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20621 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20622 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20623 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20624 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20625 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20626 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20628 { (exit 1); exit 1; }; };;
20629 esac
20630 done
20632 # If the user did not use the arguments to specify the items to instantiate,
20633 # then the envvar interface is used. Set only those that are not.
20634 # We use the long form for the default assignment because of an extremely
20635 # bizarre bug on SunOS 4.1.3.
20636 if $ac_need_defaults; then
20637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20642 # Have a temporary directory for convenience. Make it in the build tree
20643 # simply because there is no reason to put it here, and in addition,
20644 # creating and moving files from /tmp can sometimes cause problems.
20645 # Create a temporary directory, and hook for its removal unless debugging.
20646 $debug ||
20648 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20649 trap '{ (exit 1); exit 1; }' 1 2 13 15
20652 # Create a (secure) tmp directory for tmp files.
20655 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20656 test -n "$tmp" && test -d "$tmp"
20657 } ||
20659 tmp=./confstat$$-$RANDOM
20660 (umask 077 && mkdir $tmp)
20661 } ||
20663 echo "$me: cannot create a temporary directory in ." >&2
20664 { (exit 1); exit 1; }
20667 _ACEOF
20669 cat >>$CONFIG_STATUS <<_ACEOF
20672 # CONFIG_FILES section.
20675 # No need to generate the scripts if there are no CONFIG_FILES.
20676 # This happens for instance when ./config.status config.h
20677 if test -n "\$CONFIG_FILES"; then
20678 # Protect against being on the right side of a sed subst in config.status.
20679 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20680 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20681 s,@SHELL@,$SHELL,;t t
20682 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20683 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20684 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20685 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20686 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20687 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20688 s,@exec_prefix@,$exec_prefix,;t t
20689 s,@prefix@,$prefix,;t t
20690 s,@program_transform_name@,$program_transform_name,;t t
20691 s,@bindir@,$bindir,;t t
20692 s,@sbindir@,$sbindir,;t t
20693 s,@libexecdir@,$libexecdir,;t t
20694 s,@datadir@,$datadir,;t t
20695 s,@sysconfdir@,$sysconfdir,;t t
20696 s,@sharedstatedir@,$sharedstatedir,;t t
20697 s,@localstatedir@,$localstatedir,;t t
20698 s,@libdir@,$libdir,;t t
20699 s,@includedir@,$includedir,;t t
20700 s,@oldincludedir@,$oldincludedir,;t t
20701 s,@infodir@,$infodir,;t t
20702 s,@mandir@,$mandir,;t t
20703 s,@build_alias@,$build_alias,;t t
20704 s,@host_alias@,$host_alias,;t t
20705 s,@target_alias@,$target_alias,;t t
20706 s,@DEFS@,$DEFS,;t t
20707 s,@ECHO_C@,$ECHO_C,;t t
20708 s,@ECHO_N@,$ECHO_N,;t t
20709 s,@ECHO_T@,$ECHO_T,;t t
20710 s,@LIBS@,$LIBS,;t t
20711 s,@build@,$build,;t t
20712 s,@build_cpu@,$build_cpu,;t t
20713 s,@build_vendor@,$build_vendor,;t t
20714 s,@build_os@,$build_os,;t t
20715 s,@host@,$host,;t t
20716 s,@host_cpu@,$host_cpu,;t t
20717 s,@host_vendor@,$host_vendor,;t t
20718 s,@host_os@,$host_os,;t t
20719 s,@WIN16_FILES@,$WIN16_FILES,;t t
20720 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20721 s,@SET_MAKE@,$SET_MAKE,;t t
20722 s,@CC@,$CC,;t t
20723 s,@CFLAGS@,$CFLAGS,;t t
20724 s,@LDFLAGS@,$LDFLAGS,;t t
20725 s,@CPPFLAGS@,$CPPFLAGS,;t t
20726 s,@ac_ct_CC@,$ac_ct_CC,;t t
20727 s,@EXEEXT@,$EXEEXT,;t t
20728 s,@OBJEXT@,$OBJEXT,;t t
20729 s,@CXX@,$CXX,;t t
20730 s,@CXXFLAGS@,$CXXFLAGS,;t t
20731 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20732 s,@CPPBIN@,$CPPBIN,;t t
20733 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20734 s,@TOOLSDIR@,$TOOLSDIR,;t t
20735 s,@CPP@,$CPP,;t t
20736 s,@X_CFLAGS@,$X_CFLAGS,;t t
20737 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20738 s,@X_LIBS@,$X_LIBS,;t t
20739 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20740 s,@LEX@,$LEX,;t t
20741 s,@LEXLIB@,$LEXLIB,;t t
20742 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20743 s,@XLEX@,$XLEX,;t t
20744 s,@BISON@,$BISON,;t t
20745 s,@AS@,$AS,;t t
20746 s,@ac_ct_AS@,$ac_ct_AS,;t t
20747 s,@LD@,$LD,;t t
20748 s,@ac_ct_LD@,$ac_ct_LD,;t t
20749 s,@AR@,$AR,;t t
20750 s,@ac_ct_AR@,$ac_ct_AR,;t t
20751 s,@RANLIB@,$RANLIB,;t t
20752 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20753 s,@STRIP@,$STRIP,;t t
20754 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20755 s,@WINDRES@,$WINDRES,;t t
20756 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20757 s,@LN_S@,$LN_S,;t t
20758 s,@LN@,$LN,;t t
20759 s,@EGREP@,$EGREP,;t t
20760 s,@LDCONFIG@,$LDCONFIG,;t t
20761 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20762 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20763 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20764 s,@LINT@,$LINT,;t t
20765 s,@LINTFLAGS@,$LINTFLAGS,;t t
20766 s,@FONTFORGE@,$FONTFORGE,;t t
20767 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20768 s,@PRELINK@,$PRELINK,;t t
20769 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20770 s,@XLIB@,$XLIB,;t t
20771 s,@XFILES@,$XFILES,;t t
20772 s,@OPENGLFILES@,$OPENGLFILES,;t t
20773 s,@GLU32FILES@,$GLU32FILES,;t t
20774 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20775 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20776 s,@GLUT32FILES@,$GLUT32FILES,;t t
20777 s,@NASLIBS@,$NASLIBS,;t t
20778 s,@XML2LIBS@,$XML2LIBS,;t t
20779 s,@XML2INCL@,$XML2INCL,;t t
20780 s,@XSLTLIBS@,$XSLTLIBS,;t t
20781 s,@XSLTINCL@,$XSLTINCL,;t t
20782 s,@HALINCL@,$HALINCL,;t t
20783 s,@CURSESLIBS@,$CURSESLIBS,;t t
20784 s,@sane_devel@,$sane_devel,;t t
20785 s,@SANELIBS@,$SANELIBS,;t t
20786 s,@SANEINCL@,$SANEINCL,;t t
20787 s,@ICULIBS@,$ICULIBS,;t t
20788 s,@RESOLVLIBS@,$RESOLVLIBS,;t t
20789 s,@LCMSLIBS@,$LCMSLIBS,;t t
20790 s,@LDAPLIBS@,$LDAPLIBS,;t t
20791 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
20792 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20793 s,@ft_devel@,$ft_devel,;t t
20794 s,@ft_devel2@,$ft_devel2,;t t
20795 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
20796 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20797 s,@ARTSLIBS@,$ARTSLIBS,;t t
20798 s,@ARTSINCL@,$ARTSINCL,;t t
20799 s,@ESDCONFIG@,$ESDCONFIG,;t t
20800 s,@ESDLIBS@,$ESDLIBS,;t t
20801 s,@ESDINCL@,$ESDINCL,;t t
20802 s,@ALSALIBS@,$ALSALIBS,;t t
20803 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20804 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20805 s,@BUILTINFLAG@,$BUILTINFLAG,;t t
20806 s,@DLLEXT@,$DLLEXT,;t t
20807 s,@DLLFLAGS@,$DLLFLAGS,;t t
20808 s,@DLLIBS@,$DLLIBS,;t t
20809 s,@LDSHARED@,$LDSHARED,;t t
20810 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20811 s,@LIBEXT@,$LIBEXT,;t t
20812 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20813 s,@DLLTOOL@,$DLLTOOL,;t t
20814 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20815 s,@DLLWRAP@,$DLLWRAP,;t t
20816 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20817 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20818 s,@LDEXERPATH@,$LDEXERPATH,;t t
20819 s,@LDDLLRPATH@,$LDDLLRPATH,;t t
20820 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20821 s,@IOKITLIB@,$IOKITLIB,;t t
20822 s,@CROSSTEST@,$CROSSTEST,;t t
20823 s,@CROSSCC@,$CROSSCC,;t t
20824 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20825 s,@LDPATH@,$LDPATH,;t t
20826 s,@CRTLIBS@,$CRTLIBS,;t t
20827 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
20828 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20829 s,@EXTRA_BINARIES@,$EXTRA_BINARIES,;t t
20830 s,@LDD@,$LDD,;t t
20831 s,@LIBOBJS@,$LIBOBJS,;t t
20832 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20833 /@MAKE_RULES@/r $MAKE_RULES
20834 s,@MAKE_RULES@,,;t t
20835 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20836 s,@MAKE_DLL_RULES@,,;t t
20837 /@MAKE_IMPLIB_RULES@/r $MAKE_IMPLIB_RULES
20838 s,@MAKE_IMPLIB_RULES@,,;t t
20839 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20840 s,@MAKE_TEST_RULES@,,;t t
20841 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20842 s,@MAKE_LIB_RULES@,,;t t
20843 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20844 s,@MAKE_PROG_RULES@,,;t t
20845 CEOF
20847 _ACEOF
20849 cat >>$CONFIG_STATUS <<\_ACEOF
20850 # Split the substitutions into bite-sized pieces for seds with
20851 # small command number limits, like on Digital OSF/1 and HP-UX.
20852 ac_max_sed_lines=48
20853 ac_sed_frag=1 # Number of current file.
20854 ac_beg=1 # First line for current file.
20855 ac_end=$ac_max_sed_lines # Line after last line for current file.
20856 ac_more_lines=:
20857 ac_sed_cmds=
20858 while $ac_more_lines; do
20859 if test $ac_beg -gt 1; then
20860 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20861 else
20862 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20864 if test ! -s $tmp/subs.frag; then
20865 ac_more_lines=false
20866 else
20867 # The purpose of the label and of the branching condition is to
20868 # speed up the sed processing (if there are no `@' at all, there
20869 # is no need to browse any of the substitutions).
20870 # These are the two extra sed commands mentioned above.
20871 (echo ':t
20872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20873 if test -z "$ac_sed_cmds"; then
20874 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20875 else
20876 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20878 ac_sed_frag=`expr $ac_sed_frag + 1`
20879 ac_beg=$ac_end
20880 ac_end=`expr $ac_end + $ac_max_sed_lines`
20882 done
20883 if test -z "$ac_sed_cmds"; then
20884 ac_sed_cmds=cat
20886 fi # test -n "$CONFIG_FILES"
20888 _ACEOF
20889 cat >>$CONFIG_STATUS <<\_ACEOF
20890 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20891 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20892 case $ac_file in
20893 - | *:- | *:-:* ) # input from stdin
20894 cat >$tmp/stdin
20895 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20897 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20899 * ) ac_file_in=$ac_file.in ;;
20900 esac
20902 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20903 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905 X"$ac_file" : 'X\(//\)[^/]' \| \
20906 X"$ac_file" : 'X\(//\)$' \| \
20907 X"$ac_file" : 'X\(/\)' \| \
20908 . : '\(.\)' 2>/dev/null ||
20909 echo X"$ac_file" |
20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20912 /^X\(\/\/\)$/{ s//\1/; q; }
20913 /^X\(\/\).*/{ s//\1/; q; }
20914 s/.*/./; q'`
20915 { if $as_mkdir_p; then
20916 mkdir -p "$ac_dir"
20917 else
20918 as_dir="$ac_dir"
20919 as_dirs=
20920 while test ! -d "$as_dir"; do
20921 as_dirs="$as_dir $as_dirs"
20922 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20924 X"$as_dir" : 'X\(//\)[^/]' \| \
20925 X"$as_dir" : 'X\(//\)$' \| \
20926 X"$as_dir" : 'X\(/\)' \| \
20927 . : '\(.\)' 2>/dev/null ||
20928 echo X"$as_dir" |
20929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20931 /^X\(\/\/\)$/{ s//\1/; q; }
20932 /^X\(\/\).*/{ s//\1/; q; }
20933 s/.*/./; q'`
20934 done
20935 test ! -n "$as_dirs" || mkdir $as_dirs
20936 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20937 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20938 { (exit 1); exit 1; }; }; }
20940 ac_builddir=.
20942 if test "$ac_dir" != .; then
20943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20944 # A "../" for each directory in $ac_dir_suffix.
20945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20946 else
20947 ac_dir_suffix= ac_top_builddir=
20950 case $srcdir in
20951 .) # No --srcdir option. We are building in place.
20952 ac_srcdir=.
20953 if test -z "$ac_top_builddir"; then
20954 ac_top_srcdir=.
20955 else
20956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20957 fi ;;
20958 [\\/]* | ?:[\\/]* ) # Absolute path.
20959 ac_srcdir=$srcdir$ac_dir_suffix;
20960 ac_top_srcdir=$srcdir ;;
20961 *) # Relative path.
20962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20964 esac
20966 # Do not use `cd foo && pwd` to compute absolute paths, because
20967 # the directories may not exist.
20968 case `pwd` in
20969 .) ac_abs_builddir="$ac_dir";;
20971 case "$ac_dir" in
20972 .) ac_abs_builddir=`pwd`;;
20973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20975 esac;;
20976 esac
20977 case $ac_abs_builddir in
20978 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20980 case ${ac_top_builddir}. in
20981 .) ac_abs_top_builddir=$ac_abs_builddir;;
20982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20984 esac;;
20985 esac
20986 case $ac_abs_builddir in
20987 .) ac_abs_srcdir=$ac_srcdir;;
20989 case $ac_srcdir in
20990 .) ac_abs_srcdir=$ac_abs_builddir;;
20991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20993 esac;;
20994 esac
20995 case $ac_abs_builddir in
20996 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20998 case $ac_top_srcdir in
20999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21002 esac;;
21003 esac
21006 case $INSTALL in
21007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21008 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21009 esac
21011 # Let's still pretend it is `configure' which instantiates (i.e., don't
21012 # use $as_me), people would be surprised to read:
21013 # /* config.h. Generated by config.status. */
21014 if test x"$ac_file" = x-; then
21015 configure_input=
21016 else
21017 configure_input="$ac_file. "
21019 configure_input=$configure_input"Generated from `echo $ac_file_in |
21020 sed 's,.*/,,'` by configure."
21022 # First look for the input files in the build tree, otherwise in the
21023 # src tree.
21024 ac_file_inputs=`IFS=:
21025 for f in $ac_file_in; do
21026 case $f in
21027 -) echo $tmp/stdin ;;
21028 [\\/$]*)
21029 # Absolute (can't be DOS-style, as IFS=:)
21030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21031 echo "$as_me: error: cannot find input file: $f" >&2;}
21032 { (exit 1); exit 1; }; }
21033 echo "$f";;
21034 *) # Relative
21035 if test -f "$f"; then
21036 # Build tree
21037 echo "$f"
21038 elif test -f "$srcdir/$f"; then
21039 # Source tree
21040 echo "$srcdir/$f"
21041 else
21042 # /dev/null tree
21043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21044 echo "$as_me: error: cannot find input file: $f" >&2;}
21045 { (exit 1); exit 1; }; }
21046 fi;;
21047 esac
21048 done` || { (exit 1); exit 1; }
21050 if test x"$ac_file" != x-; then
21051 { echo "$as_me:$LINENO: creating $ac_file" >&5
21052 echo "$as_me: creating $ac_file" >&6;}
21053 rm -f "$ac_file"
21055 _ACEOF
21056 cat >>$CONFIG_STATUS <<_ACEOF
21057 sed "$ac_vpsub
21058 $extrasub
21059 _ACEOF
21060 cat >>$CONFIG_STATUS <<\_ACEOF
21062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21063 s,@configure_input@,$configure_input,;t t
21064 s,@srcdir@,$ac_srcdir,;t t
21065 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21066 s,@top_srcdir@,$ac_top_srcdir,;t t
21067 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21068 s,@builddir@,$ac_builddir,;t t
21069 s,@abs_builddir@,$ac_abs_builddir,;t t
21070 s,@top_builddir@,$ac_top_builddir,;t t
21071 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21072 s,@INSTALL@,$ac_INSTALL,;t t
21073 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21074 rm -f $tmp/stdin
21075 if test x"$ac_file" != x-; then
21076 mv $tmp/out $ac_file
21077 else
21078 cat $tmp/out
21079 rm -f $tmp/out
21082 done
21083 _ACEOF
21084 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # CONFIG_HEADER section.
21090 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21091 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21093 # ac_d sets the value in "#define NAME VALUE" lines.
21094 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21095 ac_dB='[ ].*$,\1#\2'
21096 ac_dC=' '
21097 ac_dD=',;t'
21098 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21099 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21100 ac_uB='$,\1#\2define\3'
21101 ac_uC=' '
21102 ac_uD=',;t'
21104 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21106 case $ac_file in
21107 - | *:- | *:-:* ) # input from stdin
21108 cat >$tmp/stdin
21109 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21111 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21112 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21113 * ) ac_file_in=$ac_file.in ;;
21114 esac
21116 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21117 echo "$as_me: creating $ac_file" >&6;}
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 # Do quote $f, to prevent DOS paths from being IFS'd.
21131 echo "$f";;
21132 *) # Relative
21133 if test -f "$f"; then
21134 # Build tree
21135 echo "$f"
21136 elif test -f "$srcdir/$f"; then
21137 # Source tree
21138 echo "$srcdir/$f"
21139 else
21140 # /dev/null tree
21141 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21142 echo "$as_me: error: cannot find input file: $f" >&2;}
21143 { (exit 1); exit 1; }; }
21144 fi;;
21145 esac
21146 done` || { (exit 1); exit 1; }
21147 # Remove the trailing spaces.
21148 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21150 _ACEOF
21152 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21153 # `conftest.undefs', that substitutes the proper values into
21154 # config.h.in to produce config.h. The first handles `#define'
21155 # templates, and the second `#undef' templates.
21156 # And first: Protect against being on the right side of a sed subst in
21157 # config.status. Protect against being in an unquoted here document
21158 # in config.status.
21159 rm -f conftest.defines conftest.undefs
21160 # Using a here document instead of a string reduces the quoting nightmare.
21161 # Putting comments in sed scripts is not portable.
21163 # `end' is used to avoid that the second main sed command (meant for
21164 # 0-ary CPP macros) applies to n-ary macro definitions.
21165 # See the Autoconf documentation for `clear'.
21166 cat >confdef2sed.sed <<\_ACEOF
21167 s/[\\&,]/\\&/g
21168 s,[\\$`],\\&,g
21169 t clear
21170 : clear
21171 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21172 t end
21173 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21174 : end
21175 _ACEOF
21176 # If some macros were called several times there might be several times
21177 # the same #defines, which is useless. Nevertheless, we may not want to
21178 # sort them, since we want the *last* AC-DEFINE to be honored.
21179 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21180 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21181 rm -f confdef2sed.sed
21183 # This sed command replaces #undef with comments. This is necessary, for
21184 # example, in the case of _POSIX_SOURCE, which is predefined and required
21185 # on some systems where configure will not decide to define it.
21186 cat >>conftest.undefs <<\_ACEOF
21187 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21188 _ACEOF
21190 # Break up conftest.defines because some shells have a limit on the size
21191 # of here documents, and old seds have small limits too (100 cmds).
21192 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21193 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21194 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21195 echo ' :' >>$CONFIG_STATUS
21196 rm -f conftest.tail
21197 while grep . conftest.defines >/dev/null
21199 # Write a limited-size here document to $tmp/defines.sed.
21200 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21201 # Speed up: don't consider the non `#define' lines.
21202 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21203 # Work around the forget-to-reset-the-flag bug.
21204 echo 't clr' >>$CONFIG_STATUS
21205 echo ': clr' >>$CONFIG_STATUS
21206 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21207 echo 'CEOF
21208 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21209 rm -f $tmp/in
21210 mv $tmp/out $tmp/in
21211 ' >>$CONFIG_STATUS
21212 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21213 rm -f conftest.defines
21214 mv conftest.tail conftest.defines
21215 done
21216 rm -f conftest.defines
21217 echo ' fi # grep' >>$CONFIG_STATUS
21218 echo >>$CONFIG_STATUS
21220 # Break up conftest.undefs because some shells have a limit on the size
21221 # of here documents, and old seds have small limits too (100 cmds).
21222 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21223 rm -f conftest.tail
21224 while grep . conftest.undefs >/dev/null
21226 # Write a limited-size here document to $tmp/undefs.sed.
21227 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21228 # Speed up: don't consider the non `#undef'
21229 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21230 # Work around the forget-to-reset-the-flag bug.
21231 echo 't clr' >>$CONFIG_STATUS
21232 echo ': clr' >>$CONFIG_STATUS
21233 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21234 echo 'CEOF
21235 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21236 rm -f $tmp/in
21237 mv $tmp/out $tmp/in
21238 ' >>$CONFIG_STATUS
21239 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21240 rm -f conftest.undefs
21241 mv conftest.tail conftest.undefs
21242 done
21243 rm -f conftest.undefs
21245 cat >>$CONFIG_STATUS <<\_ACEOF
21246 # Let's still pretend it is `configure' which instantiates (i.e., don't
21247 # use $as_me), people would be surprised to read:
21248 # /* config.h. Generated by config.status. */
21249 if test x"$ac_file" = x-; then
21250 echo "/* Generated by configure. */" >$tmp/config.h
21251 else
21252 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21254 cat $tmp/in >>$tmp/config.h
21255 rm -f $tmp/in
21256 if test x"$ac_file" != x-; then
21257 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21258 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21259 echo "$as_me: $ac_file is unchanged" >&6;}
21260 else
21261 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21263 X"$ac_file" : 'X\(//\)[^/]' \| \
21264 X"$ac_file" : 'X\(//\)$' \| \
21265 X"$ac_file" : 'X\(/\)' \| \
21266 . : '\(.\)' 2>/dev/null ||
21267 echo X"$ac_file" |
21268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21270 /^X\(\/\/\)$/{ s//\1/; q; }
21271 /^X\(\/\).*/{ s//\1/; q; }
21272 s/.*/./; q'`
21273 { if $as_mkdir_p; then
21274 mkdir -p "$ac_dir"
21275 else
21276 as_dir="$ac_dir"
21277 as_dirs=
21278 while test ! -d "$as_dir"; do
21279 as_dirs="$as_dir $as_dirs"
21280 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21282 X"$as_dir" : 'X\(//\)[^/]' \| \
21283 X"$as_dir" : 'X\(//\)$' \| \
21284 X"$as_dir" : 'X\(/\)' \| \
21285 . : '\(.\)' 2>/dev/null ||
21286 echo X"$as_dir" |
21287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21289 /^X\(\/\/\)$/{ s//\1/; q; }
21290 /^X\(\/\).*/{ s//\1/; q; }
21291 s/.*/./; q'`
21292 done
21293 test ! -n "$as_dirs" || mkdir $as_dirs
21294 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21295 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21296 { (exit 1); exit 1; }; }; }
21298 rm -f $ac_file
21299 mv $tmp/config.h $ac_file
21301 else
21302 cat $tmp/config.h
21303 rm -f $tmp/config.h
21305 done
21306 _ACEOF
21307 cat >>$CONFIG_STATUS <<\_ACEOF
21310 # CONFIG_COMMANDS section.
21312 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21313 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21314 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21315 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21316 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21317 X"$ac_dest" : 'X\(//\)[^/]' \| \
21318 X"$ac_dest" : 'X\(//\)$' \| \
21319 X"$ac_dest" : 'X\(/\)' \| \
21320 . : '\(.\)' 2>/dev/null ||
21321 echo X"$ac_dest" |
21322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21324 /^X\(\/\/\)$/{ s//\1/; q; }
21325 /^X\(\/\).*/{ s//\1/; q; }
21326 s/.*/./; q'`
21327 { if $as_mkdir_p; then
21328 mkdir -p "$ac_dir"
21329 else
21330 as_dir="$ac_dir"
21331 as_dirs=
21332 while test ! -d "$as_dir"; do
21333 as_dirs="$as_dir $as_dirs"
21334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21336 X"$as_dir" : 'X\(//\)[^/]' \| \
21337 X"$as_dir" : 'X\(//\)$' \| \
21338 X"$as_dir" : 'X\(/\)' \| \
21339 . : '\(.\)' 2>/dev/null ||
21340 echo X"$as_dir" |
21341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21343 /^X\(\/\/\)$/{ s//\1/; q; }
21344 /^X\(\/\).*/{ s//\1/; q; }
21345 s/.*/./; q'`
21346 done
21347 test ! -n "$as_dirs" || mkdir $as_dirs
21348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21349 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21350 { (exit 1); exit 1; }; }; }
21352 ac_builddir=.
21354 if test "$ac_dir" != .; then
21355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21356 # A "../" for each directory in $ac_dir_suffix.
21357 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21358 else
21359 ac_dir_suffix= ac_top_builddir=
21362 case $srcdir in
21363 .) # No --srcdir option. We are building in place.
21364 ac_srcdir=.
21365 if test -z "$ac_top_builddir"; then
21366 ac_top_srcdir=.
21367 else
21368 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21369 fi ;;
21370 [\\/]* | ?:[\\/]* ) # Absolute path.
21371 ac_srcdir=$srcdir$ac_dir_suffix;
21372 ac_top_srcdir=$srcdir ;;
21373 *) # Relative path.
21374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21375 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21376 esac
21378 # Do not use `cd foo && pwd` to compute absolute paths, because
21379 # the directories may not exist.
21380 case `pwd` in
21381 .) ac_abs_builddir="$ac_dir";;
21383 case "$ac_dir" in
21384 .) ac_abs_builddir=`pwd`;;
21385 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21386 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21387 esac;;
21388 esac
21389 case $ac_abs_builddir in
21390 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21392 case ${ac_top_builddir}. in
21393 .) ac_abs_top_builddir=$ac_abs_builddir;;
21394 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21395 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21396 esac;;
21397 esac
21398 case $ac_abs_builddir in
21399 .) ac_abs_srcdir=$ac_srcdir;;
21401 case $ac_srcdir in
21402 .) ac_abs_srcdir=$ac_abs_builddir;;
21403 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21404 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21405 esac;;
21406 esac
21407 case $ac_abs_builddir in
21408 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21410 case $ac_top_srcdir in
21411 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21412 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21413 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21414 esac;;
21415 esac
21418 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21419 echo "$as_me: executing $ac_dest commands" >&6;}
21420 case $ac_dest in
21421 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21422 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21423 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21424 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21425 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21426 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21427 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21428 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21429 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21430 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21431 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21432 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21433 esac
21434 done
21435 _ACEOF
21437 cat >>$CONFIG_STATUS <<\_ACEOF
21439 { (exit 0); exit 0; }
21440 _ACEOF
21441 chmod +x $CONFIG_STATUS
21442 ac_clean_files=$ac_clean_files_save
21445 # configure is writing to config.log, and then calls config.status.
21446 # config.status does its own redirection, appending to config.log.
21447 # Unfortunately, on DOS this fails, as config.log is still kept open
21448 # by configure, so config.status won't be able to write to it; its
21449 # output is simply discarded. So we exec the FD to /dev/null,
21450 # effectively closing config.log, so it can be properly (re)opened and
21451 # appended to by config.status. When coming back to configure, we
21452 # need to make the FD available again.
21453 if test "$no_create" != yes; then
21454 ac_cs_success=:
21455 ac_config_status_args=
21456 test "$silent" = yes &&
21457 ac_config_status_args="$ac_config_status_args --quiet"
21458 exec 5>/dev/null
21459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21460 exec 5>>config.log
21461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21462 # would make configure fail if this is the last instruction.
21463 $ac_cs_success || { (exit 1); exit 1; }
21467 exitcode=0
21468 if test "$have_x" = "no"
21469 then
21470 echo
21471 echo "*** Warning: X development files not found. Wine will be built without"
21472 echo "*** X support, which currently does not work, and would probably not be"
21473 echo "*** what you want anyway. You will need to install devel packages of"
21474 echo "*** Xlib/Xfree86 at the very least."
21475 exitcode=1
21478 if test "$wine_cv_opengl_version_OK" = "no"
21479 then
21480 echo
21481 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21482 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21483 exitcode=1
21486 if test "$wine_cv_msg_freetype" = "yes"
21487 then
21488 echo
21489 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21490 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21491 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21492 echo "*** enable Wine to use TrueType fonts."
21493 exitcode=1
21496 if test "$wine_cv_msg_fonts" = "yes"
21497 then
21498 echo
21499 echo "*** Warning: Freetype or Fontforge is missing."
21500 echo "*** Fonts will not be built. Dialog text may be invisible or unaligned."
21501 exitcode=1
21504 if test -z "$ALSALIBS" -a \
21505 -z "$ARTSC_LIBS" -a \
21506 -z "$AUDIOIOLIBS" -a \
21507 -z "$NASLIBS" -a \
21508 -z "$ESD_LIBS" -a \
21509 -z "$ac_cv_lib_soname_jack" -a \
21510 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
21511 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
21512 "$ac_cv_header_soundcard_h" != "yes"
21513 then
21514 echo "*** No sound system was found. Windows applications will be silent."
21515 echo "*** The currently supported sound systems are:"
21516 echo "*** ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS"
21517 exitcode=1
21520 echo
21521 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21522 echo
21524 exit $exitcode