Version resources cleanup.
[wine/multimedia.git] / configure
blob3b6277cefe9b397b3f39b9a59c1197d05e2d8c7b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20041019.
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='20041019'
273 PACKAGE_STRING='Wine 20041019'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20041019 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 20041019:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
866 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
867 binaries)
869 Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --without-opengl do not use OpenGL
873 --without-curses do not use curses
874 --with-wine-tools=<dir> use Wine tools from directory <dir>
875 --with-x use the X Window System
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 cd "$ac_popdir"
981 done
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
987 Wine configure 20041019
988 generated by GNU Autoconf 2.59
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994 exit 0
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by Wine $as_me 20041019, which was
1002 generated by GNU Autoconf 2.59. Invocation command line was
1004 $ $0 $@
1006 _ACEOF
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 _ASUNAME
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038 done
1040 } >&5
1042 cat >&5 <<_ACEOF
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1049 _ACEOF
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1064 for ac_arg
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1080 else
1081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1090 -* ) ac_must_keep_next=true ;;
1091 esac
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1097 esac
1098 done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1111 echo
1113 cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 sed -n \
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 esac;
1134 echo
1136 cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170 echo
1171 sed "/^$/d" confdefs.h | sort
1172 echo
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 exit $exit_status
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1233 . "$ac_site_file"
1235 done
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1248 else
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1282 fi;;
1283 esac
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 esac
1296 done
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers include/config.h"
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369 enableval="$enable_win16"
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379 enableval="$enable_trace"
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384 enableval="$enable_win64"
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391 withval="$with_opengl"
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397 withval="$with_curses"
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403 withval="$with_wine_tools"
1407 WIN16_FILES="\$(WIN16_FILES)"
1409 WIN16_INSTALL="\$(WIN16_INSTALL)"
1411 if test "x$enable_win16" = "xno"
1412 then
1413 WIN16_FILES=""
1414 WIN16_INSTALL=""
1417 DLLDEFS=""
1419 if test "x$enable_debug" = "xno"
1420 then
1421 DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1423 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1424 then
1425 DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1429 # Make sure we can run config.sub.
1430 $ac_config_sub sun4 >/dev/null 2>&1 ||
1431 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433 { (exit 1); exit 1; }; }
1435 echo "$as_me:$LINENO: checking build system type" >&5
1436 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437 if test "${ac_cv_build+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 ac_cv_build_alias=$build_alias
1441 test -z "$ac_cv_build_alias" &&
1442 ac_cv_build_alias=`$ac_config_guess`
1443 test -z "$ac_cv_build_alias" &&
1444 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446 { (exit 1); exit 1; }; }
1447 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450 { (exit 1); exit 1; }; }
1453 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454 echo "${ECHO_T}$ac_cv_build" >&6
1455 build=$ac_cv_build
1456 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1461 echo "$as_me:$LINENO: checking host system type" >&5
1462 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463 if test "${ac_cv_host+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 ac_cv_host_alias=$host_alias
1467 test -z "$ac_cv_host_alias" &&
1468 ac_cv_host_alias=$ac_cv_build_alias
1469 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1471 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472 { (exit 1); exit 1; }; }
1475 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1476 echo "${ECHO_T}$ac_cv_host" >&6
1477 host=$ac_cv_host
1478 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1483 case $host in
1484 x86_64*linux*)
1485 if test "x$enable_win64" != "xyes"
1486 then
1487 test -n "$CC" || CC="gcc -m32"
1488 test -n "$LD" || LD="ld -m elf_i386"
1489 test -n "$AS" || AS="as --32"
1492 esac
1494 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1495 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 cat >conftest.make <<\_ACEOF
1501 all:
1502 @echo 'ac_maketemp="$(MAKE)"'
1503 _ACEOF
1504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1506 if test -n "$ac_maketemp"; then
1507 eval ac_cv_prog_make_${ac_make}_set=yes
1508 else
1509 eval ac_cv_prog_make_${ac_make}_set=no
1511 rm -f conftest.make
1513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 SET_MAKE=
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 SET_MAKE="MAKE=${MAKE-make}"
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1542 IFS=$as_save_IFS
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 break 2
1550 done
1551 done
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1566 ac_ct_CC=$CC
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1588 done
1589 done
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1602 CC=$ac_ct_CC
1603 else
1604 CC="$ac_cv_prog_CC"
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1630 done
1631 done
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1646 ac_ct_CC=$CC
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1668 done
1669 done
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 CC=$ac_ct_CC
1683 else
1684 CC="$ac_cv_prog_CC"
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1709 continue
1711 ac_cv_prog_CC="cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1721 shift
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1726 shift
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1744 for ac_prog in cl
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1782 done
1784 if test -z "$CC"; then
1785 ac_ct_CC=$CC
1786 for ac_prog in cl
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1809 done
1810 done
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1824 done
1826 CC=$ac_ct_CC
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1866 main ()
1870 return 0;
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1900 conftest.$ac_ext )
1901 # This is the source file.
1903 [ab].out )
1904 # We found the default executable, but exeext='' is most
1905 # certainly right.
1906 break;;
1907 *.* )
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1912 export ac_cv_exeext
1913 break;;
1915 break;;
1916 esac
1917 done
1918 else
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 (eval $ac_try) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1946 cross_compiling=no
1947 else
1948 if test "$cross_compiling" = maybe; then
1949 cross_compiling=yes
1950 else
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1986 case $ac_file in
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 export ac_cv_exeext
1990 break;;
1991 * ) break;;
1992 esac
1993 done
1994 else
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h. */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 main ()
2026 return 0;
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 break;;
2040 esac
2041 done
2042 else
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h. */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2072 main ()
2074 #ifndef __GNUC__
2075 choke me
2076 #endif
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2085 ac_status=$?
2086 grep -v '^ *+' conftest.er1 >conftest.err
2087 rm -f conftest.er1
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_compiler_gnu=yes
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_compiler_gnu=no
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116 GCC=`test $ac_compiler_gnu = yes && echo yes`
2117 ac_test_CFLAGS=${CFLAGS+set}
2118 ac_save_CFLAGS=$CFLAGS
2119 CFLAGS="-g"
2120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122 if test "${ac_cv_prog_cc_g+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 main ()
2137 return 0;
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2143 ac_status=$?
2144 grep -v '^ *+' conftest.er1 >conftest.err
2145 rm -f conftest.er1
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_g=yes
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_cv_prog_cc_g=no
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173 CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175 if test "$GCC" = yes; then
2176 CFLAGS="-g -O2"
2177 else
2178 CFLAGS="-g"
2180 else
2181 if test "$GCC" = yes; then
2182 CFLAGS="-O2"
2183 else
2184 CFLAGS=
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208 char **p;
2209 int i;
2211 return p[i];
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2215 char *s;
2216 va_list v;
2217 va_start (v,p);
2218 s = g (p, va_arg (v,int));
2219 va_end (v);
2220 return s;
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224 function prototypes and stuff, but not '\xHH' hex character constants.
2225 These don't provoke an error unfortunately, instead are silently treated
2226 as 'x'. The following induces an error, until -std1 is added to get
2227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228 array size at least. It's necessary to write '\x00'==0 to get something
2229 that's true only with -std1. */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2239 main ()
2241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2243 return 0;
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX -qlanglvl=ansi
2249 # Ultrix and OSF/1 -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions -Aa -D_HPUX_SOURCE
2252 # SVR4 -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255 CC="$ac_save_CC $ac_arg"
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2259 ac_status=$?
2260 grep -v '^ *+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2291 case "x$ac_cv_prog_cc_stdc" in
2292 x|xno)
2293 echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298 CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2301 # Some people use a C++ compiler to compile C. Since we use `exit',
2302 # in C++ we need to declare it. In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307 choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2332 '' \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2337 'void exit (int);'
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2345 $ac_declaration
2346 #include <stdlib.h>
2348 main ()
2350 exit (42);
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 continue
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2390 $ac_declaration
2392 main ()
2394 exit (42);
2396 return 0;
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 break
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 rm -f conftest*
2429 if test -n "$ac_declaration"; then
2430 echo '#ifdef __cplusplus' >>confdefs.h
2431 echo $ac_declaration >>confdefs.h
2432 echo '#endif' >>confdefs.h
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 ac_ext=cc
2448 ac_cpp='$CXXCPP $CPPFLAGS'
2449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2452 if test -n "$ac_tool_prefix"; then
2453 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_CXX+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 if test -n "$CXX"; then
2463 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2476 done
2477 done
2481 CXX=$ac_cv_prog_CXX
2482 if test -n "$CXX"; then
2483 echo "$as_me:$LINENO: result: $CXX" >&5
2484 echo "${ECHO_T}$CXX" >&6
2485 else
2486 echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2490 test -n "$CXX" && break
2491 done
2493 if test -z "$CXX"; then
2494 ac_ct_CXX=$CXX
2495 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$ac_ct_CXX"; then
2505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_ac_ct_CXX="$ac_prog"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2524 if test -n "$ac_ct_CXX"; then
2525 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2526 echo "${ECHO_T}$ac_ct_CXX" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2532 test -n "$ac_ct_CXX" && break
2533 done
2534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2536 CXX=$ac_ct_CXX
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO:" \
2542 "checking for C++ compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2545 (eval $ac_compiler --version </dev/null >&5) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2550 (eval $ac_compiler -v </dev/null >&5) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2555 (eval $ac_compiler -V </dev/null >&5) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h. */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2573 main ()
2575 #ifndef __GNUC__
2576 choke me
2577 #endif
2580 return 0;
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_compiler_gnu=yes
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2609 ac_compiler_gnu=no
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617 GXX=`test $ac_compiler_gnu = yes && echo yes`
2618 ac_test_CXXFLAGS=${CXXFLAGS+set}
2619 ac_save_CXXFLAGS=$CXXFLAGS
2620 CXXFLAGS="-g"
2621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cxx_g+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_cv_prog_cxx_g=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_cv_prog_cxx_g=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674 CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676 if test "$GXX" = yes; then
2677 CXXFLAGS="-g -O2"
2678 else
2679 CXXFLAGS="-g"
2681 else
2682 if test "$GXX" = yes; then
2683 CXXFLAGS="-O2"
2684 else
2685 CXXFLAGS=
2688 for ac_declaration in \
2689 '' \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2694 'void exit (int);'
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2703 #include <stdlib.h>
2705 main ()
2707 exit (42);
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 continue
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 $ac_declaration
2749 main ()
2751 exit (42);
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 break
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 rm -f conftest*
2786 if test -n "$ac_declaration"; then
2787 echo '#ifdef __cplusplus' >>confdefs.h
2788 echo $ac_declaration >>confdefs.h
2789 echo '#endif' >>confdefs.h
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CPPBIN"; then
2807 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2825 CPPBIN=$ac_cv_prog_CPPBIN
2826 if test -n "$CPPBIN"; then
2827 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2828 echo "${ECHO_T}$CPPBIN" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_CPPBIN"; then
2836 ac_ct_CPPBIN=$CPPBIN
2837 # Extract the first word of "cpp", so it can be a program name with args.
2838 set dummy cpp; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CPPBIN"; then
2845 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CPPBIN="cpp"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2861 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2864 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2865 if test -n "$ac_ct_CPPBIN"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2867 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 CPPBIN=$ac_ct_CPPBIN
2874 else
2875 CPPBIN="$ac_cv_prog_CPPBIN"
2879 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2880 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2881 if test "${wine_cv_toolsdir+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -z "$with_wine_tools"; then
2885 if test "$cross_compiling" = "yes"; then
2886 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2887 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2888 { (exit 1); exit 1; }; }
2889 else
2890 wine_cv_toolsdir="\$(TOPOBJDIR)"
2892 elif test -d "$with_wine_tools/tools/winebuild"; then
2893 case $with_wine_tools in
2894 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2895 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2896 esac
2897 else
2898 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2899 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2900 { (exit 1); exit 1; }; }
2903 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2904 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2905 TOOLSDIR=$wine_cv_toolsdir
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918 CPP=
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927 ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947 Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 else
2961 ac_cpp_err=
2963 else
2964 ac_cpp_err=yes
2966 if test -z "$ac_cpp_err"; then
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Broken: fails on valid input.
2973 continue
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998 else
2999 ac_cpp_err=
3001 else
3002 ac_cpp_err=yes
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3006 continue
3007 else
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3015 rm -f conftest.err conftest.$ac_ext
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021 break
3024 done
3025 ac_cv_prog_CPP=$CPP
3028 CPP=$ac_cv_prog_CPP
3029 else
3030 ac_cv_prog_CPP=$CPP
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054 Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 else
3068 ac_cpp_err=
3070 else
3071 ac_cpp_err=yes
3073 if test -z "$ac_cpp_err"; then
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Broken: fails on valid input.
3080 continue
3082 rm -f conftest.err conftest.$ac_ext
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105 else
3106 ac_cpp_err=
3108 else
3109 ac_cpp_err=yes
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3113 continue
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3122 rm -f conftest.err conftest.$ac_ext
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3129 else
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 if test "x$ac_path_x_has_been_run" != xyes; then
3146 echo "$as_me:$LINENO: checking for X" >&5
3147 echo $ECHO_N "checking for X... $ECHO_C" >&6
3149 ac_path_x_has_been_run=yes
3151 # Check whether --with-x or --without-x was given.
3152 if test "${with_x+set}" = set; then
3153 withval="$with_x"
3156 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3157 if test "x$with_x" = xno; then
3158 # The user explicitly disabled X.
3159 have_x=disabled
3160 else
3161 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3162 # Both variables are already set.
3163 have_x=yes
3164 else
3165 if test "${ac_cv_have_x+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 # One or both of the vars are not set, and there is no cached value.
3169 ac_x_includes=no ac_x_libraries=no
3170 rm -fr conftest.dir
3171 if mkdir conftest.dir; then
3172 cd conftest.dir
3173 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3174 cat >Imakefile <<'_ACEOF'
3175 acfindx:
3176 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3177 _ACEOF
3178 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3181 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3182 for ac_extension in a so sl; do
3183 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3184 test -f $ac_im_libdir/libX11.$ac_extension; then
3185 ac_im_usrlibdir=$ac_im_libdir; break
3187 done
3188 # Screen out bogus values from the imake configuration. They are
3189 # bogus both because they are the default anyway, and because
3190 # using them would break gcc on systems where it needs fixed includes.
3191 case $ac_im_incroot in
3192 /usr/include) ;;
3193 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3194 esac
3195 case $ac_im_usrlibdir in
3196 /usr/lib | /lib) ;;
3197 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3198 esac
3200 cd ..
3201 rm -fr conftest.dir
3204 # Standard set of common directories for X headers.
3205 # Check X11 before X11Rn because it is often a symlink to the current release.
3206 ac_x_header_dirs='
3207 /usr/X11/include
3208 /usr/X11R6/include
3209 /usr/X11R5/include
3210 /usr/X11R4/include
3212 /usr/include/X11
3213 /usr/include/X11R6
3214 /usr/include/X11R5
3215 /usr/include/X11R4
3217 /usr/local/X11/include
3218 /usr/local/X11R6/include
3219 /usr/local/X11R5/include
3220 /usr/local/X11R4/include
3222 /usr/local/include/X11
3223 /usr/local/include/X11R6
3224 /usr/local/include/X11R5
3225 /usr/local/include/X11R4
3227 /usr/X386/include
3228 /usr/x386/include
3229 /usr/XFree86/include/X11
3231 /usr/include
3232 /usr/local/include
3233 /usr/unsupported/include
3234 /usr/athena/include
3235 /usr/local/x11r5/include
3236 /usr/lpp/Xamples/include
3238 /usr/openwin/include
3239 /usr/openwin/share/include'
3241 if test "$ac_x_includes" = no; then
3242 # Guess where to find include files, by looking for a specified header file.
3243 # First, try using that file with no special directory specified.
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <X11/Intrinsic.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 else
3264 ac_cpp_err=
3266 else
3267 ac_cpp_err=yes
3269 if test -z "$ac_cpp_err"; then
3270 # We can compile using X headers with no special include directory.
3271 ac_x_includes=
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 for ac_dir in $ac_x_header_dirs; do
3277 if test -r "$ac_dir/X11/Intrinsic.h"; then
3278 ac_x_includes=$ac_dir
3279 break
3281 done
3283 rm -f conftest.err conftest.$ac_ext
3284 fi # $ac_x_includes = no
3286 if test "$ac_x_libraries" = no; then
3287 # Check for the libraries.
3288 # See if we find them without any special options.
3289 # Don't add to $LIBS permanently.
3290 ac_save_LIBS=$LIBS
3291 LIBS="-lXt $LIBS"
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #include <X11/Intrinsic.h>
3300 main ()
3302 XtMalloc (0)
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest$ac_exeext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 LIBS=$ac_save_LIBS
3329 # We can link X programs with no special library path.
3330 ac_x_libraries=
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 LIBS=$ac_save_LIBS
3336 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3338 # Don't even attempt the hair of trying to link an X program!
3339 for ac_extension in a so sl; do
3340 if test -r $ac_dir/libXt.$ac_extension; then
3341 ac_x_libraries=$ac_dir
3342 break 2
3344 done
3345 done
3347 rm -f conftest.err conftest.$ac_objext \
3348 conftest$ac_exeext conftest.$ac_ext
3349 fi # $ac_x_libraries = no
3351 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3352 # Didn't find X anywhere. Cache the known absence of X.
3353 ac_cv_have_x="have_x=no"
3354 else
3355 # Record where we found X for the cache.
3356 ac_cv_have_x="have_x=yes \
3357 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3362 eval "$ac_cv_have_x"
3363 fi # $with_x != no
3365 if test "$have_x" != yes; then
3366 echo "$as_me:$LINENO: result: $have_x" >&5
3367 echo "${ECHO_T}$have_x" >&6
3368 no_x=yes
3369 else
3370 # If each of the values was on the command line, it overrides each guess.
3371 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3372 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3373 # Update the cache value to reflect the command line values.
3374 ac_cv_have_x="have_x=yes \
3375 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3376 # It might be that x_includes is empty (headers are found in the
3377 # standard search path. Then output the corresponding message
3378 ac_out_x_includes=$x_includes
3379 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3380 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3381 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3385 if test "$no_x" = yes; then
3386 # Not all programs may use this symbol, but it does not hurt to define it.
3388 cat >>confdefs.h <<\_ACEOF
3389 #define X_DISPLAY_MISSING 1
3390 _ACEOF
3392 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3393 else
3394 if test -n "$x_includes"; then
3395 X_CFLAGS="$X_CFLAGS -I$x_includes"
3398 # It would also be nice to do this for all -L options, not just this one.
3399 if test -n "$x_libraries"; then
3400 X_LIBS="$X_LIBS -L$x_libraries"
3401 # For Solaris; some versions of Sun CC require a space after -R and
3402 # others require no space. Words are not sufficient . . . .
3403 case `(uname -sr) 2>/dev/null` in
3404 "SunOS 5"*)
3405 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3406 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3407 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425 (eval $ac_link) 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest$ac_exeext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_R_nospace=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 ac_R_nospace=no
3451 rm -f conftest.err conftest.$ac_objext \
3452 conftest$ac_exeext conftest.$ac_ext
3453 if test $ac_R_nospace = yes; then
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 X_LIBS="$X_LIBS -R$x_libraries"
3457 else
3458 LIBS="$ac_xsave_LIBS -R $x_libraries"
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext conftest$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476 (eval $ac_link) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_R_space=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_R_space=no
3502 rm -f conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504 if test $ac_R_space = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507 X_LIBS="$X_LIBS -R $x_libraries"
3508 else
3509 echo "$as_me:$LINENO: result: neither works" >&5
3510 echo "${ECHO_T}neither works" >&6
3513 LIBS=$ac_xsave_LIBS
3514 esac
3517 # Check for system-dependent libraries X programs must link with.
3518 # Do this before checking for the system-independent R6 libraries
3519 # (-lICE), since we may need -lsocket or whatever for X linking.
3521 if test "$ISC" = yes; then
3522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3523 else
3524 # Martyn Johnson says this is needed for Ultrix, if the X
3525 # libraries were built with DECnet support. And Karl Berry says
3526 # the Alpha needs dnet_stub (dnet does not exist).
3527 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 #ifdef __cplusplus
3537 extern "C"
3538 #endif
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3541 char XOpenDisplay ();
3543 main ()
3545 XOpenDisplay ();
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552 (eval $ac_link) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest$ac_exeext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-ldnet $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char dnet_ntoa ();
3598 main ()
3600 dnet_ntoa ();
3602 return 0;
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest$ac_exeext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_lib_dnet_dnet_ntoa=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ac_cv_lib_dnet_dnet_ntoa=no
3633 rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3638 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3639 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3643 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3644 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3645 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 ac_check_lib_save_LIBS=$LIBS
3650 LIBS="-ldnet_stub $LIBS"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3664 char dnet_ntoa ();
3666 main ()
3668 dnet_ntoa ();
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_cv_lib_dnet_stub_dnet_ntoa=no
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3706 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3707 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3708 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3713 rm -f conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
3715 LIBS="$ac_xsave_LIBS"
3717 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3718 # to get the SysV transport functions.
3719 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3720 # needs -lnsl.
3721 # The nsl library prevents programs from opening the X display
3722 # on Irix 5.2, according to T.E. Dickey.
3723 # The functions gethostbyname, getservbyname, and inet_addr are
3724 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3725 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3726 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3727 if test "${ac_cv_func_gethostbyname+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3738 #define gethostbyname innocuous_gethostbyname
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char gethostbyname (); below.
3742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743 <limits.h> exists even on freestanding compilers. */
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3751 #undef gethostbyname
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 #ifdef __cplusplus
3755 extern "C"
3757 #endif
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3760 char gethostbyname ();
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3765 choke me
3766 #else
3767 char (*f) () = gethostbyname;
3768 #endif
3769 #ifdef __cplusplus
3771 #endif
3774 main ()
3776 return f != gethostbyname;
3778 return 0;
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_func_gethostbyname=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_cv_func_gethostbyname=no
3809 rm -f conftest.err conftest.$ac_objext \
3810 conftest$ac_exeext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3813 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3815 if test $ac_cv_func_gethostbyname = no; then
3816 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3817 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3818 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 ac_check_lib_save_LIBS=$LIBS
3822 LIBS="-lnsl $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char gethostbyname ();
3838 main ()
3840 gethostbyname ();
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_nsl_gethostbyname=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_lib_nsl_gethostbyname=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875 LIBS=$ac_check_lib_save_LIBS
3877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3879 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3880 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3883 if test $ac_cv_lib_nsl_gethostbyname = no; then
3884 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3885 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3886 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lbsd $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char gethostbyname ();
3906 main ()
3908 gethostbyname ();
3910 return 0;
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_lib_bsd_gethostbyname=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_lib_bsd_gethostbyname=no
3941 rm -f conftest.err conftest.$ac_objext \
3942 conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3945 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3954 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3955 # socket/setsockopt and other routines are undefined under SCO ODT
3956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3957 # on later versions), says Simon Leinen: it contains gethostby*
3958 # variants that don't use the name server (or something). -lsocket
3959 # must be given before -lnsl if both are needed. We assume that
3960 # if connect needs -lnsl, so does gethostbyname.
3961 echo "$as_me:$LINENO: checking for connect" >&5
3962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3963 if test "${ac_cv_func_connect+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3974 #define connect innocuous_connect
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char connect (); below.
3978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 <limits.h> exists even on freestanding compilers. */
3981 #ifdef __STDC__
3982 # include <limits.h>
3983 #else
3984 # include <assert.h>
3985 #endif
3987 #undef connect
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 #ifdef __cplusplus
3991 extern "C"
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char connect ();
3997 /* The GNU C library defines this for functions which it implements
3998 to always fail with ENOSYS. Some functions are actually named
3999 something starting with __ and the normal name is an alias. */
4000 #if defined (__stub_connect) || defined (__stub___connect)
4001 choke me
4002 #else
4003 char (*f) () = connect;
4004 #endif
4005 #ifdef __cplusplus
4007 #endif
4010 main ()
4012 return f != connect;
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest$ac_exeext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_func_connect=yes
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_cv_func_connect=no
4045 rm -f conftest.err conftest.$ac_objext \
4046 conftest$ac_exeext conftest.$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4049 echo "${ECHO_T}$ac_cv_func_connect" >&6
4051 if test $ac_cv_func_connect = no; then
4052 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4054 if test "${ac_cv_lib_socket_connect+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 ac_check_lib_save_LIBS=$LIBS
4058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 #ifdef __cplusplus
4068 extern "C"
4069 #endif
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4072 char connect ();
4074 main ()
4076 connect ();
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083 (eval $ac_link) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_lib_socket_connect=yes
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_lib_socket_connect=no
4109 rm -f conftest.err conftest.$ac_objext \
4110 conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4114 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4115 if test $ac_cv_lib_socket_connect = yes; then
4116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4121 # Guillermo Gomez says -lposix is necessary on A/UX.
4122 echo "$as_me:$LINENO: checking for remove" >&5
4123 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4124 if test "${ac_cv_func_remove+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4135 #define remove innocuous_remove
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char remove (); below.
4139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 <limits.h> exists even on freestanding compilers. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4148 #undef remove
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 #ifdef __cplusplus
4152 extern "C"
4154 #endif
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4157 char remove ();
4158 /* The GNU C library defines this for functions which it implements
4159 to always fail with ENOSYS. Some functions are actually named
4160 something starting with __ and the normal name is an alias. */
4161 #if defined (__stub_remove) || defined (__stub___remove)
4162 choke me
4163 #else
4164 char (*f) () = remove;
4165 #endif
4166 #ifdef __cplusplus
4168 #endif
4171 main ()
4173 return f != remove;
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest$ac_exeext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_func_remove=yes
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_cv_func_remove=no
4206 rm -f conftest.err conftest.$ac_objext \
4207 conftest$ac_exeext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4210 echo "${ECHO_T}$ac_cv_func_remove" >&6
4212 if test $ac_cv_func_remove = no; then
4213 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4214 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4215 if test "${ac_cv_lib_posix_remove+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_check_lib_save_LIBS=$LIBS
4219 LIBS="-lposix $LIBS"
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233 char remove ();
4235 main ()
4237 remove ();
4239 return 0;
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_lib_posix_remove=yes
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_lib_posix_remove=no
4270 rm -f conftest.err conftest.$ac_objext \
4271 conftest$ac_exeext conftest.$ac_ext
4272 LIBS=$ac_check_lib_save_LIBS
4274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4276 if test $ac_cv_lib_posix_remove = yes; then
4277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4282 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4283 echo "$as_me:$LINENO: checking for shmat" >&5
4284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4285 if test "${ac_cv_func_shmat+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4296 #define shmat innocuous_shmat
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char shmat (); below.
4300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4301 <limits.h> exists even on freestanding compilers. */
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4309 #undef shmat
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 #ifdef __cplusplus
4313 extern "C"
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char shmat ();
4319 /* The GNU C library defines this for functions which it implements
4320 to always fail with ENOSYS. Some functions are actually named
4321 something starting with __ and the normal name is an alias. */
4322 #if defined (__stub_shmat) || defined (__stub___shmat)
4323 choke me
4324 #else
4325 char (*f) () = shmat;
4326 #endif
4327 #ifdef __cplusplus
4329 #endif
4332 main ()
4334 return f != shmat;
4336 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_func_shmat=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_func_shmat=no
4367 rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
4370 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4371 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4373 if test $ac_cv_func_shmat = no; then
4374 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4375 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4376 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 ac_check_lib_save_LIBS=$LIBS
4380 LIBS="-lipc $LIBS"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394 char shmat ();
4396 main ()
4398 shmat ();
4400 return 0;
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest$ac_exeext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_lib_ipc_shmat=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_lib_ipc_shmat=no
4431 rm -f conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433 LIBS=$ac_check_lib_save_LIBS
4435 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4436 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4437 if test $ac_cv_lib_ipc_shmat = yes; then
4438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4444 # Check for libraries that X11R6 Xt/Xaw programs need.
4445 ac_save_LDFLAGS=$LDFLAGS
4446 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4447 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4448 # check for ICE first), but we must link in the order -lSM -lICE or
4449 # we get undefined symbols. So assume we have SM if we have ICE.
4450 # These have to be linked with before -lX11, unlike the other
4451 # libraries we check for below, so use a different variable.
4452 # John Interrante, Karl Berry
4453 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4454 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4455 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 ac_check_lib_save_LIBS=$LIBS
4459 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 #ifdef __cplusplus
4469 extern "C"
4470 #endif
4471 /* We use char because int might match the return type of a gcc2
4472 builtin and then its argument prototype would still apply. */
4473 char IceConnectionNumber ();
4475 main ()
4477 IceConnectionNumber ();
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484 (eval $ac_link) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest$ac_exeext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_lib_ICE_IceConnectionNumber=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_lib_ICE_IceConnectionNumber=no
4510 rm -f conftest.err conftest.$ac_objext \
4511 conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4515 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4516 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4517 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4520 LDFLAGS=$ac_save_LDFLAGS
4524 for ac_prog in flex lex
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_LEX+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$LEX"; then
4534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_LEX="$ac_prog"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4552 LEX=$ac_cv_prog_LEX
4553 if test -n "$LEX"; then
4554 echo "$as_me:$LINENO: result: $LEX" >&5
4555 echo "${ECHO_T}$LEX" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4561 test -n "$LEX" && break
4562 done
4563 test -n "$LEX" || LEX=":"
4565 if test -z "$LEXLIB"
4566 then
4567 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4568 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4569 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfl $LIBS"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4587 char yywrap ();
4589 main ()
4591 yywrap ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_fl_yywrap=yes
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_lib_fl_yywrap=no
4624 rm -f conftest.err conftest.$ac_objext \
4625 conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4629 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4630 if test $ac_cv_lib_fl_yywrap = yes; then
4631 LEXLIB="-lfl"
4632 else
4633 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4634 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4635 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-ll $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4647 /* Override any gcc2 internal prototype to avoid an error. */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4653 char yywrap ();
4655 main ()
4657 yywrap ();
4659 return 0;
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_lib_l_yywrap=yes
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_cv_lib_l_yywrap=no
4690 rm -f conftest.err conftest.$ac_objext \
4691 conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4696 if test $ac_cv_lib_l_yywrap = yes; then
4697 LEXLIB="-ll"
4704 if test "x$LEX" != "x:"; then
4705 echo "$as_me:$LINENO: checking lex output file root" >&5
4706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4707 if test "${ac_cv_prog_lex_root+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 # The minimal lex program is just a single line: %%. But some broken lexes
4711 # (Solaris, I think it was) want two %% lines, so accommodate them.
4712 cat >conftest.l <<_ACEOF
4715 _ACEOF
4716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4717 (eval $LEX conftest.l) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 if test -f lex.yy.c; then
4722 ac_cv_prog_lex_root=lex.yy
4723 elif test -f lexyy.c; then
4724 ac_cv_prog_lex_root=lexyy
4725 else
4726 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4728 { (exit 1); exit 1; }; }
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4733 rm -f conftest.l
4734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 # POSIX says lex can declare yytext either as a pointer or an array; the
4742 # default is implementation-dependent. Figure out which it is, since
4743 # not all implementations provide the %pointer and %array declarations.
4744 ac_cv_prog_lex_yytext_pointer=no
4745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4746 ac_save_LIBS=$LIBS
4747 LIBS="$LIBS $LEXLIB"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 `cat $LEX_OUTPUT_ROOT.c`
4750 _ACEOF
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4753 (eval $ac_link) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_prog_lex_yytext_pointer=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f conftest.err conftest.$ac_objext \
4779 conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_save_LIBS
4781 rm -f "${LEX_OUTPUT_ROOT}.c"
4784 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4785 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4786 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define YYTEXT_POINTER 1
4790 _ACEOF
4796 for ac_prog in $LEX flex lex
4798 # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_XLEX+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$XLEX"; then
4806 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_XLEX="$ac_prog"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4824 XLEX=$ac_cv_prog_XLEX
4825 if test -n "$XLEX"; then
4826 echo "$as_me:$LINENO: result: $XLEX" >&5
4827 echo "${ECHO_T}$XLEX" >&6
4828 else
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4833 test -n "$XLEX" && break
4834 done
4835 test -n "$XLEX" || XLEX="none"
4837 if test "$XLEX" = "none"
4838 then
4839 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4840 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4841 { (exit 1); exit 1; }; }
4844 for ac_prog in bison
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_BISON+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 if test -n "$BISON"; then
4854 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_BISON="$ac_prog"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4872 BISON=$ac_cv_prog_BISON
4873 if test -n "$BISON"; then
4874 echo "$as_me:$LINENO: result: $BISON" >&5
4875 echo "${ECHO_T}$BISON" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4881 test -n "$BISON" && break
4882 done
4883 test -n "$BISON" || BISON="none"
4885 if test "$BISON" = "none"
4886 then
4887 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4888 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4889 { (exit 1); exit 1; }; }
4892 if test -n "$ac_tool_prefix"; then
4893 for ac_prog in gas as
4895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_AS+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 if test -n "$AS"; then
4903 ac_cv_prog_AS="$AS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4921 AS=$ac_cv_prog_AS
4922 if test -n "$AS"; then
4923 echo "$as_me:$LINENO: result: $AS" >&5
4924 echo "${ECHO_T}$AS" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$AS" && break
4931 done
4933 if test -z "$AS"; then
4934 ac_ct_AS=$AS
4935 for ac_prog in gas as
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 if test -n "$ac_ct_AS"; then
4945 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_ac_ct_AS="$ac_prog"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6
4967 else
4968 echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4972 test -n "$ac_ct_AS" && break
4973 done
4974 test -n "$ac_ct_AS" || ac_ct_AS="as"
4976 AS=$ac_ct_AS
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ld; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_LD+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test -n "$LD"; then
4988 ac_cv_prog_LD="$LD" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_LD="${ac_tool_prefix}ld"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5006 LD=$ac_cv_prog_LD
5007 if test -n "$LD"; then
5008 echo "$as_me:$LINENO: result: $LD" >&5
5009 echo "${ECHO_T}$LD" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5016 if test -z "$ac_cv_prog_LD"; then
5017 ac_ct_LD=$LD
5018 # Extract the first word of "ld", so it can be a program name with args.
5019 set dummy ld; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 if test -n "$ac_ct_LD"; then
5026 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_LD="ld"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5042 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5045 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5046 if test -n "$ac_ct_LD"; then
5047 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5048 echo "${ECHO_T}$ac_ct_LD" >&6
5049 else
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5054 LD=$ac_ct_LD
5055 else
5056 LD="$ac_cv_prog_LD"
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}ar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_prog_AR+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 if test -n "$AR"; then
5068 ac_cv_prog_AR="$AR" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_AR="${ac_tool_prefix}ar"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5086 AR=$ac_cv_prog_AR
5087 if test -n "$AR"; then
5088 echo "$as_me:$LINENO: result: $AR" >&5
5089 echo "${ECHO_T}$AR" >&6
5090 else
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5096 if test -z "$ac_cv_prog_AR"; then
5097 ac_ct_AR=$AR
5098 # Extract the first word of "ar", so it can be a program name with args.
5099 set dummy ar; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$ac_ct_AR"; then
5106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_AR="ar"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5122 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5126 if test -n "$ac_ct_AR"; then
5127 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5128 echo "${ECHO_T}$ac_ct_AR" >&6
5129 else
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5134 AR=$ac_ct_AR
5135 else
5136 AR="$ac_cv_prog_AR"
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_RANLIB+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if test -n "$RANLIB"; then
5148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5166 RANLIB=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168 echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 echo "${ECHO_T}$RANLIB" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5176 if test -z "$ac_cv_prog_RANLIB"; then
5177 ac_ct_RANLIB=$RANLIB
5178 # Extract the first word of "ranlib", so it can be a program name with args.
5179 set dummy ranlib; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 if test -n "$ac_ct_RANLIB"; then
5186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_RANLIB="ranlib"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206 if test -n "$ac_ct_RANLIB"; then
5207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5214 RANLIB=$ac_ct_RANLIB
5215 else
5216 RANLIB="$ac_cv_prog_RANLIB"
5219 if test -n "$ac_tool_prefix"; then
5220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}strip; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_STRIP+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$STRIP"; then
5228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5246 STRIP=$ac_cv_prog_STRIP
5247 if test -n "$STRIP"; then
5248 echo "$as_me:$LINENO: result: $STRIP" >&5
5249 echo "${ECHO_T}$STRIP" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5256 if test -z "$ac_cv_prog_STRIP"; then
5257 ac_ct_STRIP=$STRIP
5258 # Extract the first word of "strip", so it can be a program name with args.
5259 set dummy strip; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test -n "$ac_ct_STRIP"; then
5266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_ac_ct_STRIP="strip"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5279 done
5280 done
5282 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5286 if test -n "$ac_ct_STRIP"; then
5287 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5288 echo "${ECHO_T}$ac_ct_STRIP" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5294 STRIP=$ac_ct_STRIP
5295 else
5296 STRIP="$ac_cv_prog_STRIP"
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}windres; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_WINDRES+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$WINDRES"; then
5308 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5326 WINDRES=$ac_cv_prog_WINDRES
5327 if test -n "$WINDRES"; then
5328 echo "$as_me:$LINENO: result: $WINDRES" >&5
5329 echo "${ECHO_T}$WINDRES" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5336 if test -z "$ac_cv_prog_WINDRES"; then
5337 ac_ct_WINDRES=$WINDRES
5338 # Extract the first word of "windres", so it can be a program name with args.
5339 set dummy windres; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 if test -n "$ac_ct_WINDRES"; then
5346 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_WINDRES="windres"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5362 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5365 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5366 if test -n "$ac_ct_WINDRES"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5368 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 WINDRES=$ac_ct_WINDRES
5375 else
5376 WINDRES="$ac_cv_prog_WINDRES"
5379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5381 LN_S=$as_ln_s
5382 if test "$LN_S" = "ln -s"; then
5383 echo "$as_me:$LINENO: result: yes" >&5
5384 echo "${ECHO_T}yes" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5387 echo "${ECHO_T}no, using $LN_S" >&6
5390 echo "$as_me:$LINENO: checking whether ln works" >&5
5391 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5392 rm -f conf$$ conf$$.file
5393 echo >conf$$.file
5394 if ln conf$$.file conf$$ 2>/dev/null; then
5395 LN=ln
5397 echo "$as_me:$LINENO: result: yes" >&5
5398 echo "${ECHO_T}yes" >&6
5399 else
5400 LN="cp -p"
5402 echo "$as_me:$LINENO: result: no, using $LN" >&5
5403 echo "${ECHO_T}no, using $LN" >&6
5405 rm -f conf$$ conf$$.file
5406 echo "$as_me:$LINENO: checking for egrep" >&5
5407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5408 if test "${ac_cv_prog_egrep+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5412 then ac_cv_prog_egrep='grep -E'
5413 else ac_cv_prog_egrep='egrep'
5416 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5417 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5418 EGREP=$ac_cv_prog_egrep
5421 # Extract the first word of "ldconfig", so it can be a program name with args.
5422 set dummy ldconfig; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 case $LDCONFIG in
5429 [\\/]* | ?:[\\/]*)
5430 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in /sbin /usr/sbin $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5447 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5449 esac
5451 LDCONFIG=$ac_cv_path_LDCONFIG
5453 if test -n "$LDCONFIG"; then
5454 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5455 echo "${ECHO_T}$LDCONFIG" >&6
5456 else
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5461 # Find a good install program. We prefer a C program (faster),
5462 # so one script is as good as another. But avoid the broken or
5463 # incompatible versions:
5464 # SysV /etc/install, /usr/sbin/install
5465 # SunOS /usr/etc/install
5466 # IRIX /sbin/install
5467 # AIX /bin/install
5468 # AmigaOS /C/install, which installs bootblocks on floppy discs
5469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5472 # OS/2's system install, which has a completely different semantic
5473 # ./install, which can be erroneously created by make from ./install.sh.
5474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5476 if test -z "$INSTALL"; then
5477 if test "${ac_cv_path_install+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 # Account for people who put trailing slashes in PATH elements.
5486 case $as_dir/ in
5487 ./ | .// | /cC/* | \
5488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5490 /usr/ucb/* ) ;;
5492 # OSF1 and SCO ODT 3.0 have their own names for install.
5493 # Don't use installbsd from OSF since it installs stuff as root
5494 # by default.
5495 for ac_prog in ginstall scoinst install; do
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5498 if test $ac_prog = install &&
5499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500 # AIX install. It has an incompatible calling convention.
5502 elif test $ac_prog = install &&
5503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504 # program-specific install script used by HP pwplus--don't use.
5506 else
5507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5508 break 3
5511 done
5512 done
5514 esac
5515 done
5519 if test "${ac_cv_path_install+set}" = set; then
5520 INSTALL=$ac_cv_path_install
5521 else
5522 # As a last resort, use the slow shell script. We don't cache a
5523 # path for INSTALL within a source directory, because that will
5524 # break other packages using the cache if that directory is
5525 # removed, or if the path is relative.
5526 INSTALL=$ac_install_sh
5529 echo "$as_me:$LINENO: result: $INSTALL" >&5
5530 echo "${ECHO_T}$INSTALL" >&6
5532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5533 # It thinks the first close brace ends the variable substitution.
5534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5540 case "$INSTALL" in
5541 [\\/$]* | ?:[\\/]* ) ;;
5542 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5543 esac
5545 for ac_prog in lclint lint
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_LINT+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 if test -n "$LINT"; then
5555 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_LINT="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5573 LINT=$ac_cv_prog_LINT
5574 if test -n "$LINT"; then
5575 echo "$as_me:$LINENO: result: $LINT" >&5
5576 echo "${ECHO_T}$LINT" >&6
5577 else
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5582 test -n "$LINT" && break
5583 done
5585 if test "$LINT" = "lint"
5586 then
5587 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5592 for ac_prog in docbook2html db2html
5594 # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 if test -n "$DB2HTML"; then
5602 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_DB2HTML="$ac_prog"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5615 done
5616 done
5620 DB2HTML=$ac_cv_prog_DB2HTML
5621 if test -n "$DB2HTML"; then
5622 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5623 echo "${ECHO_T}$DB2HTML" >&6
5624 else
5625 echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5629 test -n "$DB2HTML" && break
5630 done
5631 test -n "$DB2HTML" || DB2HTML="false"
5633 for ac_prog in docbook2pdf db2pdf
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if test -n "$DB2PDF"; then
5643 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_DB2PDF="$ac_prog"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5656 done
5657 done
5661 DB2PDF=$ac_cv_prog_DB2PDF
5662 if test -n "$DB2PDF"; then
5663 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5664 echo "${ECHO_T}$DB2PDF" >&6
5665 else
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5670 test -n "$DB2PDF" && break
5671 done
5672 test -n "$DB2PDF" || DB2PDF="false"
5674 for ac_prog in docbook2ps db2ps
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_DB2PS+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -n "$DB2PS"; then
5684 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_DB2PS="$ac_prog"
5694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5702 DB2PS=$ac_cv_prog_DB2PS
5703 if test -n "$DB2PS"; then
5704 echo "$as_me:$LINENO: result: $DB2PS" >&5
5705 echo "${ECHO_T}$DB2PS" >&6
5706 else
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5711 test -n "$DB2PS" && break
5712 done
5713 test -n "$DB2PS" || DB2PS="false"
5715 for ac_prog in docbook2txt db2txt
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 if test -n "$DB2TXT"; then
5725 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_DB2TXT="$ac_prog"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5743 DB2TXT=$ac_cv_prog_DB2TXT
5744 if test -n "$DB2TXT"; then
5745 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5746 echo "${ECHO_T}$DB2TXT" >&6
5747 else
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5752 test -n "$DB2TXT" && break
5753 done
5754 test -n "$DB2TXT" || DB2TXT="false"
5756 for ac_prog in fontforge
5758 # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 if test -n "$FONTFORGE"; then
5766 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_FONTFORGE="$ac_prog"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5784 FONTFORGE=$ac_cv_prog_FONTFORGE
5785 if test -n "$FONTFORGE"; then
5786 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5787 echo "${ECHO_T}$FONTFORGE" >&6
5788 else
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5793 test -n "$FONTFORGE" && break
5794 done
5795 test -n "$FONTFORGE" || FONTFORGE="false"
5800 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5801 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5802 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-li386 $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 /* Override any gcc2 internal prototype to avoid an error. */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5820 char i386_set_ldt ();
5822 main ()
5824 i386_set_ldt ();
5826 return 0;
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_i386_i386_set_ldt=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_lib_i386_i386_set_ldt=no
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5862 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5863 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBI386 1
5866 _ACEOF
5868 LIBS="-li386 $LIBS"
5873 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5874 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5875 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lossaudio $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char _oss_ioctl ();
5895 main ()
5897 _oss_ioctl ();
5899 return 0;
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest$ac_exeext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_lib_ossaudio__oss_ioctl=yes
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_cv_lib_ossaudio__oss_ioctl=no
5930 rm -f conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5934 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5935 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5936 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBOSSAUDIO 1
5939 _ACEOF
5941 LIBS="-lossaudio $LIBS"
5946 for ac_func in iswalnum
5948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_func" >&5
5950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_var+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5962 #define $ac_func innocuous_$ac_func
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char $ac_func (); below.
5966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967 <limits.h> exists even on freestanding compilers. */
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5975 #undef $ac_func
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 #ifdef __cplusplus
5979 extern "C"
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char $ac_func ();
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 char (*f) () = $ac_func;
5992 #endif
5993 #ifdef __cplusplus
5995 #endif
5998 main ()
6000 return f != $ac_func;
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 eval "$as_ac_var=yes"
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 eval "$as_ac_var=no"
6033 rm -f conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6043 else
6045 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6046 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6047 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lw $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char iswalnum ();
6067 main ()
6069 iswalnum ();
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_lib_w_iswalnum=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_lib_w_iswalnum=no
6102 rm -f conftest.err conftest.$ac_objext \
6103 conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6107 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6108 if test $ac_cv_lib_w_iswalnum = yes; then
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_LIBW 1
6111 _ACEOF
6113 LIBS="-lw $LIBS"
6118 done
6121 for ac_func in gethostbyname
6123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_var+set}\" = set"; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6137 #define $ac_func innocuous_$ac_func
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func (); below.
6141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 <limits.h> exists even on freestanding compilers. */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6150 #undef $ac_func
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 #ifdef __cplusplus
6154 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char $ac_func ();
6160 /* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 choke me
6165 #else
6166 char (*f) () = $ac_func;
6167 #endif
6168 #ifdef __cplusplus
6170 #endif
6173 main ()
6175 return f != $ac_func;
6177 return 0;
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 eval "$as_ac_var=yes"
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6208 rm -f conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6216 _ACEOF
6218 else
6220 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6221 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6222 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lnsl $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240 char gethostbyname ();
6242 main ()
6244 gethostbyname ();
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_lib_nsl_gethostbyname=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_lib_nsl_gethostbyname=no
6277 rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 LIBS=$ac_check_lib_save_LIBS
6281 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6282 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6283 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_LIBNSL 1
6286 _ACEOF
6288 LIBS="-lnsl $LIBS"
6293 done
6296 for ac_func in connect
6298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_var+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6312 #define $ac_func innocuous_$ac_func
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func (); below.
6316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317 <limits.h> exists even on freestanding compilers. */
6319 #ifdef __STDC__
6320 # include <limits.h>
6321 #else
6322 # include <assert.h>
6323 #endif
6325 #undef $ac_func
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 #ifdef __cplusplus
6329 extern "C"
6331 #endif
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6334 char $ac_func ();
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 choke me
6340 #else
6341 char (*f) () = $ac_func;
6342 #endif
6343 #ifdef __cplusplus
6345 #endif
6348 main ()
6350 return f != $ac_func;
6352 return 0;
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 eval "$as_ac_var=yes"
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 eval "$as_ac_var=no"
6383 rm -f conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6388 if test `eval echo '${'$as_ac_var'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 _ACEOF
6393 else
6395 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6396 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6397 if test "${ac_cv_lib_socket_connect+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lsocket $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char connect ();
6417 main ()
6419 connect ();
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_lib_socket_connect=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_cv_lib_socket_connect=no
6452 rm -f conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6457 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6458 if test $ac_cv_lib_socket_connect = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBSOCKET 1
6461 _ACEOF
6463 LIBS="-lsocket $LIBS"
6468 done
6471 for ac_func in inet_aton
6473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6474 echo "$as_me:$LINENO: checking for $ac_func" >&5
6475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_var+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6487 #define $ac_func innocuous_$ac_func
6489 /* System header to define __stub macros and hopefully few prototypes,
6490 which can conflict with char $ac_func (); below.
6491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6492 <limits.h> exists even on freestanding compilers. */
6494 #ifdef __STDC__
6495 # include <limits.h>
6496 #else
6497 # include <assert.h>
6498 #endif
6500 #undef $ac_func
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char $ac_func ();
6510 /* The GNU C library defines this for functions which it implements
6511 to always fail with ENOSYS. Some functions are actually named
6512 something starting with __ and the normal name is an alias. */
6513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 choke me
6515 #else
6516 char (*f) () = $ac_func;
6517 #endif
6518 #ifdef __cplusplus
6520 #endif
6523 main ()
6525 return f != $ac_func;
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532 (eval $ac_link) 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_var=yes"
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 eval "$as_ac_var=no"
6558 rm -f conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6568 else
6570 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6571 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6572 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 ac_check_lib_save_LIBS=$LIBS
6576 LIBS="-lresolv $LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 #ifdef __cplusplus
6586 extern "C"
6587 #endif
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char inet_aton ();
6592 main ()
6594 inet_aton ();
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601 (eval $ac_link) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_resolv_inet_aton=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_lib_resolv_inet_aton=no
6627 rm -f conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
6629 LIBS=$ac_check_lib_save_LIBS
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6632 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6633 if test $ac_cv_lib_resolv_inet_aton = yes; then
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_LIBRESOLV 1
6636 _ACEOF
6638 LIBS="-lresolv $LIBS"
6643 done
6646 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6647 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6648 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 ac_check_lib_save_LIBS=$LIBS
6652 LIBS="-lxpg4 $LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char _xpg4_setrunelocale ();
6668 main ()
6670 _xpg4_setrunelocale ();
6672 return 0;
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest$ac_exeext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6703 rm -f conftest.err conftest.$ac_objext \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6708 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6709 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBXPG4 1
6712 _ACEOF
6714 LIBS="-lxpg4 $LIBS"
6719 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6720 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6721 if test "${ac_cv_lib_poll_poll+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lpoll $LIBS"
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char poll ();
6741 main ()
6743 poll ();
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_lib_poll_poll=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_lib_poll_poll=no
6776 rm -f conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_check_lib_save_LIBS
6780 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6781 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6782 if test $ac_cv_lib_poll_poll = yes; then
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_LIBPOLL 1
6785 _ACEOF
6787 LIBS="-lpoll $LIBS"
6792 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6793 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6794 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-lresolv $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char res_9_init ();
6814 main ()
6816 res_9_init ();
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_lib_resolv_res_9_init=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_lib_resolv_res_9_init=no
6849 rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6853 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6854 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6855 if test $ac_cv_lib_resolv_res_9_init = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBRESOLV 1
6858 _ACEOF
6860 LIBS="-lresolv $LIBS"
6864 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6865 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6866 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lpthread $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884 char pthread_create ();
6886 main ()
6888 pthread_create ();
6890 return 0;
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_lib_pthread_pthread_create=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_lib_pthread_pthread_create=no
6921 rm -f conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6926 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6927 if test $ac_cv_lib_pthread_pthread_create = yes; then
6928 LIBPTHREAD="-lpthread"
6935 XFILES=""
6937 OPENGLFILES=""
6939 GLU32FILES=""
6941 OPENGL_LIBS=""
6944 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6946 if test "${ac_cv_header_stdc+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <stdlib.h>
6956 #include <stdarg.h>
6957 #include <string.h>
6958 #include <float.h>
6961 main ()
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 ac_cv_header_stdc=yes
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_header_stdc=no
6996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998 if test $ac_cv_header_stdc = yes; then
6999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <string.h>
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "memchr" >/dev/null 2>&1; then
7012 else
7013 ac_cv_header_stdc=no
7015 rm -f conftest*
7019 if test $ac_cv_header_stdc = yes; then
7020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <stdlib.h>
7029 _ACEOF
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031 $EGREP "free" >/dev/null 2>&1; then
7033 else
7034 ac_cv_header_stdc=no
7036 rm -f conftest*
7040 if test $ac_cv_header_stdc = yes; then
7041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7042 if test "$cross_compiling" = yes; then
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <ctype.h>
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7055 #else
7056 # define ISLOWER(c) \
7057 (('a' <= (c) && (c) <= 'i') \
7058 || ('j' <= (c) && (c) <= 'r') \
7059 || ('s' <= (c) && (c) <= 'z'))
7060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7061 #endif
7063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7065 main ()
7067 int i;
7068 for (i = 0; i < 256; i++)
7069 if (XOR (islower (i), ISLOWER (i))
7070 || toupper (i) != TOUPPER (i))
7071 exit(2);
7072 exit (0);
7074 _ACEOF
7075 rm -f conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7087 else
7088 echo "$as_me: program exited with status $ac_status" >&5
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ( exit $ac_status )
7093 ac_cv_header_stdc=no
7095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7101 if test $ac_cv_header_stdc = yes; then
7103 cat >>confdefs.h <<\_ACEOF
7104 #define STDC_HEADERS 1
7105 _ACEOF
7109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7120 inttypes.h stdint.h unistd.h
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 eval "$as_ac_Header=yes"
7160 else
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 eval "$as_ac_Header=no"
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7171 cat >>confdefs.h <<_ACEOF
7172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 _ACEOF
7177 done
7275 for ac_header in \
7276 arpa/inet.h \
7277 arpa/nameser.h \
7278 cups/cups.h \
7279 direct.h \
7280 elf.h \
7281 float.h \
7282 fontconfig/fontconfig.h \
7283 getopt.h \
7284 gif_lib.h \
7285 ieeefp.h \
7286 io.h \
7287 jack/jack.h \
7288 jpeglib.h \
7289 lcms.h \
7290 libio.h \
7291 libutil.h \
7292 link.h \
7293 linux/cdrom.h \
7294 linux/compiler.h \
7295 linux/hdreg.h \
7296 linux/input.h \
7297 linux/ioctl.h \
7298 linux/joystick.h \
7299 linux/major.h \
7300 linux/param.h \
7301 linux/serial.h \
7302 linux/ucdrom.h \
7303 machine/cpu.h \
7304 mntent.h \
7305 netdb.h \
7306 netinet/in.h \
7307 netinet/in_systm.h \
7308 netinet/tcp.h \
7309 netinet/tcp_fsm.h \
7310 openssl/des.h \
7311 openssl/md2.h \
7312 openssl/rc2.h \
7313 openssl/rc4.h \
7314 openssl/rsa.h \
7315 openssl/ssl.h \
7316 process.h \
7317 pthread.h \
7318 pty.h \
7319 pwd.h \
7320 regex.h \
7321 sched.h \
7322 scsi/sg.h \
7323 scsi/scsi.h \
7324 scsi/scsi_ioctl.h \
7325 socket.h \
7326 stdint.h \
7327 strings.h \
7328 sys/cdio.h \
7329 sys/elf32.h \
7330 sys/errno.h \
7331 sys/epoll.h \
7332 sys/exec_elf.h \
7333 sys/file.h \
7334 sys/filio.h \
7335 sys/inttypes.h \
7336 sys/ioctl.h \
7337 sys/ipc.h \
7338 sys/link.h \
7339 sys/lwp.h \
7340 sys/mman.h \
7341 sys/modem.h \
7342 sys/msg.h \
7343 sys/param.h \
7344 sys/poll.h \
7345 sys/ptrace.h \
7346 sys/reg.h \
7347 sys/scsiio.h \
7348 sys/shm.h \
7349 sys/signal.h \
7350 sys/socket.h \
7351 sys/sockio.h \
7352 sys/statfs.h \
7353 sys/statvfs.h \
7354 sys/strtio.h \
7355 sys/syscall.h \
7356 sys/sysctl.h \
7357 sys/time.h \
7358 sys/times.h \
7359 sys/uio.h \
7360 sys/un.h \
7361 sys/v86.h \
7362 sys/v86intr.h \
7363 sys/vfs.h \
7364 sys/vm86.h \
7365 sys/wait.h \
7366 syscall.h \
7367 termios.h \
7368 unistd.h \
7369 utime.h \
7370 valgrind/memcheck.h
7373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7375 echo "$as_me:$LINENO: checking for $ac_header" >&5
7376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7382 else
7383 # Is the header compilable?
7384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 (eval $ac_compile) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_header_compiler=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_header_compiler=no
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7425 echo "${ECHO_T}$ac_header_compiler" >&6
7427 # Is the header present?
7428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <$ac_header>
7437 _ACEOF
7438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null; then
7446 if test -s conftest.err; then
7447 ac_cpp_err=$ac_c_preproc_warn_flag
7448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 else
7450 ac_cpp_err=
7452 else
7453 ac_cpp_err=yes
7455 if test -z "$ac_cpp_err"; then
7456 ac_header_preproc=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ac_header_preproc=no
7463 rm -f conftest.err conftest.$ac_ext
7464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7465 echo "${ECHO_T}$ac_header_preproc" >&6
7467 # So? What about this header?
7468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7469 yes:no: )
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7474 ac_header_preproc=yes
7476 no:yes:* )
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7490 cat <<\_ASBOX
7491 ## ------------------------------------ ##
7492 ## Report this to wine-devel@winehq.org ##
7493 ## ------------------------------------ ##
7494 _ASBOX
7496 sed "s/^/$as_me: WARNING: /" >&2
7498 esac
7499 echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 eval "$as_ac_Header=\$ac_header_preproc"
7506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7513 _ACEOF
7517 done
7519 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7520 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7521 if test "${ac_cv_header_stat_broken+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 #include <sys/types.h>
7531 #include <sys/stat.h>
7533 #if defined(S_ISBLK) && defined(S_IFDIR)
7534 # if S_ISBLK (S_IFDIR)
7535 You lose.
7536 # endif
7537 #endif
7539 #if defined(S_ISBLK) && defined(S_IFCHR)
7540 # if S_ISBLK (S_IFCHR)
7541 You lose.
7542 # endif
7543 #endif
7545 #if defined(S_ISLNK) && defined(S_IFREG)
7546 # if S_ISLNK (S_IFREG)
7547 You lose.
7548 # endif
7549 #endif
7551 #if defined(S_ISSOCK) && defined(S_IFREG)
7552 # if S_ISSOCK (S_IFREG)
7553 You lose.
7554 # endif
7555 #endif
7557 _ACEOF
7558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7559 $EGREP "You lose" >/dev/null 2>&1; then
7560 ac_cv_header_stat_broken=yes
7561 else
7562 ac_cv_header_stat_broken=no
7564 rm -f conftest*
7567 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7568 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7569 if test $ac_cv_header_stat_broken = yes; then
7571 cat >>confdefs.h <<\_ACEOF
7572 #define STAT_MACROS_BROKEN 1
7573 _ACEOF
7579 if test "$have_x" = "yes"
7580 then
7581 XLIB="-lXext -lX11"
7582 ac_save_CPPFLAGS="$CPPFLAGS"
7583 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7586 for ac_header in X11/Xlib.h
7588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590 echo "$as_me:$LINENO: checking for $ac_header" >&5
7591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7597 else
7598 # Is the header compilable?
7599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 #include <$ac_header>
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest.$ac_objext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_header_compiler=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_header_compiler=no
7638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7640 echo "${ECHO_T}$ac_header_compiler" >&6
7642 # Is the header present?
7643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7651 #include <$ac_header>
7652 _ACEOF
7653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } >/dev/null; then
7661 if test -s conftest.err; then
7662 ac_cpp_err=$ac_c_preproc_warn_flag
7663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7664 else
7665 ac_cpp_err=
7667 else
7668 ac_cpp_err=yes
7670 if test -z "$ac_cpp_err"; then
7671 ac_header_preproc=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_header_preproc=no
7678 rm -f conftest.err conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680 echo "${ECHO_T}$ac_header_preproc" >&6
7682 # So? What about this header?
7683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7684 yes:no: )
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7689 ac_header_preproc=yes
7691 no:yes:* )
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7705 cat <<\_ASBOX
7706 ## ------------------------------------ ##
7707 ## Report this to wine-devel@winehq.org ##
7708 ## ------------------------------------ ##
7709 _ASBOX
7711 sed "s/^/$as_me: WARNING: /" >&2
7713 esac
7714 echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 eval "$as_ac_Header=\$ac_header_preproc"
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 _ACEOF
7740 for ac_header in X11/XKBlib.h \
7741 X11/Xutil.h \
7742 X11/extensions/shape.h \
7743 X11/extensions/XInput.h \
7744 X11/extensions/XShm.h \
7745 X11/extensions/Xrandr.h \
7746 X11/extensions/Xrender.h \
7747 X11/extensions/Xvlib.h \
7748 X11/extensions/xf86dga.h \
7749 X11/extensions/xf86vmode.h
7751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7752 echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <X11/Xlib.h>
7764 #ifdef HAVE_X11_XUTIL_H
7765 # include <X11/Xutil.h>
7766 #endif
7768 #include <$ac_header>
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 eval "$as_ac_Header=yes"
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 eval "$as_ac_Header=no"
7798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 _ACEOF
7809 done
7812 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7813 then
7814 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7815 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7816 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 ac_check_lib_save_LIBS=$LIBS
7820 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 #ifdef __cplusplus
7830 extern "C"
7831 #endif
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char XkbQueryExtension ();
7836 main ()
7838 XkbQueryExtension ();
7840 return 0;
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_lib_X11_XkbQueryExtension=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_cv_lib_X11_XkbQueryExtension=no
7871 rm -f conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 LIBS=$ac_check_lib_save_LIBS
7875 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7876 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7877 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_XKB 1
7881 _ACEOF
7887 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7888 then
7889 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7890 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7891 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 ac_check_lib_save_LIBS=$LIBS
7895 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7909 char XShmQueryExtension ();
7911 main ()
7913 XShmQueryExtension ();
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_lib_Xext_XShmQueryExtension=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 ac_cv_lib_Xext_XShmQueryExtension=no
7946 rm -f conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 LIBS=$ac_check_lib_save_LIBS
7950 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7951 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7952 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7954 cat >>confdefs.h <<\_ACEOF
7955 #define HAVE_LIBXXSHM 1
7956 _ACEOF
7962 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7963 then
7964 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7965 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7966 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 ac_check_lib_save_LIBS=$LIBS
7970 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h. */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7978 /* Override any gcc2 internal prototype to avoid an error. */
7979 #ifdef __cplusplus
7980 extern "C"
7981 #endif
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7984 char XShapeQueryExtension ();
7986 main ()
7988 XShapeQueryExtension ();
7990 return 0;
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995 (eval $ac_link) 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_lib_Xext_XShapeQueryExtension=yes
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_cv_lib_Xext_XShapeQueryExtension=no
8021 rm -f conftest.err conftest.$ac_objext \
8022 conftest$ac_exeext conftest.$ac_ext
8023 LIBS=$ac_check_lib_save_LIBS
8025 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8026 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8027 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8029 cat >>confdefs.h <<\_ACEOF
8030 #define HAVE_LIBXSHAPE 1
8031 _ACEOF
8037 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8038 then
8039 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8040 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8041 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 ac_check_lib_save_LIBS=$LIBS
8045 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8053 /* Override any gcc2 internal prototype to avoid an error. */
8054 #ifdef __cplusplus
8055 extern "C"
8056 #endif
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8059 char XDGAQueryExtension ();
8061 main ()
8063 XDGAQueryExtension ();
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8096 rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
8098 LIBS=$ac_check_lib_save_LIBS
8100 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8101 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8102 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8104 cat >>confdefs.h <<\_ACEOF
8105 #define HAVE_LIBXXF86DGA2 1
8106 _ACEOF
8108 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8114 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8115 then
8116 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8117 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8118 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 ac_check_lib_save_LIBS=$LIBS
8122 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 #ifdef __cplusplus
8132 extern "C"
8133 #endif
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char XF86VidModeQueryExtension ();
8138 main ()
8140 XF86VidModeQueryExtension ();
8142 return 0;
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8173 rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 LIBS=$ac_check_lib_save_LIBS
8177 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8178 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8179 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8181 cat >>confdefs.h <<\_ACEOF
8182 #define HAVE_LIBXXF86VM 1
8183 _ACEOF
8185 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8191 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8192 then
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <X11/Xlib.h>
8200 #include <X11/extensions/Xrandr.h>
8202 main ()
8204 static typeof(XRRSetScreenConfigAndRate) * func;
8206 return 0;
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8231 cat >>confdefs.h <<\_ACEOF
8232 #define HAVE_LIBXRANDR 1
8233 _ACEOF
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8243 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8244 then
8245 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8246 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8247 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 ac_check_lib_save_LIBS=$LIBS
8251 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8259 /* Override any gcc2 internal prototype to avoid an error. */
8260 #ifdef __cplusplus
8261 extern "C"
8262 #endif
8263 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */
8265 char XvShmCreateImage ();
8267 main ()
8269 XvShmCreateImage ();
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_cv_lib_Xv_XvShmCreateImage=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 ac_cv_lib_Xv_XvShmCreateImage=no
8302 rm -f conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8304 LIBS=$ac_check_lib_save_LIBS
8306 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8307 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8308 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8310 cat >>confdefs.h <<\_ACEOF
8311 #define HAVE_XVIDEO 1
8312 _ACEOF
8314 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8320 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8321 then
8322 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8323 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8324 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8329 cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h. */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8336 /* Override any gcc2 internal prototype to avoid an error. */
8337 #ifdef __cplusplus
8338 extern "C"
8339 #endif
8340 /* We use char because int might match the return type of a gcc2
8341 builtin and then its argument prototype would still apply. */
8342 char XRenderSetPictureTransform ();
8344 main ()
8346 XRenderSetPictureTransform ();
8348 return 0;
8350 _ACEOF
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353 (eval $ac_link) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 (eval $ac_try) 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; } &&
8366 { ac_try='test -s conftest$ac_exeext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8373 else
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8379 rm -f conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 LIBS=$ac_check_lib_save_LIBS
8383 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8384 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8385 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8387 cat >>confdefs.h <<\_ACEOF
8388 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8389 _ACEOF
8398 done
8400 if test "x$with_opengl" != "xno"
8401 then
8402 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8403 then
8404 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8405 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8406 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8407 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8408 { (exit 1); exit 1; }; }
8413 for ac_header in GL/gl.h GL/glx.h
8415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8417 echo "$as_me:$LINENO: checking for $ac_header" >&5
8418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424 else
8425 # Is the header compilable?
8426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 #include <$ac_header>
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_header_compiler=yes
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_header_compiler=no
8465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467 echo "${ECHO_T}$ac_header_compiler" >&6
8469 # Is the header present?
8470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 #include <$ac_header>
8479 _ACEOF
8480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
8490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491 else
8492 ac_cpp_err=
8494 else
8495 ac_cpp_err=yes
8497 if test -z "$ac_cpp_err"; then
8498 ac_header_preproc=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_preproc=no
8505 rm -f conftest.err conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507 echo "${ECHO_T}$ac_header_preproc" >&6
8509 # So? What about this header?
8510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8511 yes:no: )
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8516 ac_header_preproc=yes
8518 no:yes:* )
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532 cat <<\_ASBOX
8533 ## ------------------------------------ ##
8534 ## Report this to wine-devel@winehq.org ##
8535 ## ------------------------------------ ##
8536 _ASBOX
8538 sed "s/^/$as_me: WARNING: /" >&2
8540 esac
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 eval "$as_ac_Header=\$ac_header_preproc"
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8559 done
8561 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8562 then
8564 for ac_header in GL/glext.h
8566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8567 echo "$as_me:$LINENO: checking for $ac_header" >&5
8568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 #include <GL/glx.h>
8580 #include <$ac_header>
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 eval "$as_ac_Header=yes"
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 eval "$as_ac_Header=no"
8610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8615 cat >>confdefs.h <<_ACEOF
8616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 _ACEOF
8621 done
8623 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8624 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8625 if test "${wine_cv_opengl_version_OK+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 #include <GL/gl.h>
8636 main ()
8638 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645 (eval $ac_compile) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 wine_cv_opengl_version_OK="yes"
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 wine_cv_opengl_version_OK="no"
8672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8676 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8678 if test "$wine_cv_opengl_version_OK" = "yes"
8679 then
8680 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8681 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8682 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8700 char glXCreateContext ();
8702 main ()
8704 glXCreateContext ();
8706 return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest$ac_exeext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_cv_lib_GL_glXCreateContext=yes
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ac_cv_lib_GL_glXCreateContext=no
8737 rm -f conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8741 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8742 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8743 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8744 OPENGL_LIBS="-lGL"
8749 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8750 then
8751 OPENGLFILES='$(OPENGLFILES)'
8753 cat >>confdefs.h <<\_ACEOF
8754 #define HAVE_OPENGL 1
8755 _ACEOF
8758 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8759 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8760 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 ac_check_lib_save_LIBS=$LIBS
8764 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 /* Override any gcc2 internal prototype to avoid an error. */
8773 #ifdef __cplusplus
8774 extern "C"
8775 #endif
8776 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8778 char glXGetProcAddressARB ();
8780 main ()
8782 glXGetProcAddressARB ();
8784 return 0;
8786 _ACEOF
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_lib_GL_glXGetProcAddressARB=yes
8809 else
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_cv_lib_GL_glXGetProcAddressARB=no
8815 rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8820 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8821 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8823 cat >>confdefs.h <<\_ACEOF
8824 #define HAVE_GLX_GETPROCADDRESS 1
8825 _ACEOF
8830 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8831 then
8832 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8833 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8834 if test "${wine_cv_extension_prototypes+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837 cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h. */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 #include <GL/gl.h>
8844 #ifdef HAVE_GL_GLEXT_H
8845 # include <GL/glext.h>
8846 #endif
8849 main ()
8851 PFNGLCOLORTABLEEXTPROC test_proc;
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 wine_cv_extension_prototypes="yes"
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 wine_cv_extension_prototypes="no"
8885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8889 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8890 if test "$wine_cv_extension_prototypes" = "yes"
8891 then
8893 cat >>confdefs.h <<\_ACEOF
8894 #define HAVE_GLEXT_PROTOTYPES 1
8895 _ACEOF
8901 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8902 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8903 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906 ac_check_lib_save_LIBS=$LIBS
8907 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8908 $LIBS"
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8922 char gluLookAt ();
8924 main ()
8926 gluLookAt ();
8928 return 0;
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_lib_GLU_gluLookAt=yes
8953 else
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957 ac_cv_lib_GLU_gluLookAt=no
8959 rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 LIBS=$ac_check_lib_save_LIBS
8963 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8964 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8965 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8966 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8967 GLU32FILES='$(GLU32FILES)'
8973 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8974 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8975 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978 ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993 char glutMainLoop ();
8995 main ()
8997 glutMainLoop ();
8999 return 0;
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_cv_lib_glut_glutMainLoop=yes
9024 else
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_cv_lib_glut_glutMainLoop=no
9030 rm -f conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9034 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9035 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9036 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9037 GLUT_LIBS="-lglut -lXmu -lXi"
9039 GLUT32FILES='$(GLUT32FILES)'
9046 NASLIBS=""
9049 for ac_header in audio/audiolib.h
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9053 echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060 else
9061 # Is the header compilable?
9062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 #include <$ac_header>
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler=yes
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_header_compiler=no
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <$ac_header>
9115 _ACEOF
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } >/dev/null; then
9124 if test -s conftest.err; then
9125 ac_cpp_err=$ac_c_preproc_warn_flag
9126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9127 else
9128 ac_cpp_err=
9130 else
9131 ac_cpp_err=yes
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_header_preproc=no
9141 rm -f conftest.err conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9147 yes:no: )
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152 ac_header_preproc=yes
9154 no:yes:* )
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9168 cat <<\_ASBOX
9169 ## ------------------------------------ ##
9170 ## Report this to wine-devel@winehq.org ##
9171 ## ------------------------------------ ##
9172 _ASBOX
9174 sed "s/^/$as_me: WARNING: /" >&2
9176 esac
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 eval "$as_ac_Header=\$ac_header_preproc"
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 _ACEOF
9193 for ac_header in audio/soundlib.h
9195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 #include <audio/audiolib.h>
9209 #include <$ac_header>
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 eval "$as_ac_Header=yes"
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 eval "$as_ac_Header=no"
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9244 cat >>confdefs.h <<_ACEOF
9245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246 _ACEOF
9250 done
9252 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9253 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9254 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257 ac_check_lib_save_LIBS=$LIBS
9258 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9266 /* Override any gcc2 internal prototype to avoid an error. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 /* We use char because int might match the return type of a gcc2
9271 builtin and then its argument prototype would still apply. */
9272 char AuCreateFlow ();
9274 main ()
9276 AuCreateFlow ();
9278 return 0;
9280 _ACEOF
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283 (eval $ac_link) 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_lib_audio_AuCreateFlow=yes
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 ac_cv_lib_audio_AuCreateFlow=no
9309 rm -f conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9314 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9315 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_NAS 1
9319 _ACEOF
9321 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9326 done
9329 CPPFLAGS="$ac_save_CPPFLAGS"
9330 XFILES='$(XFILES)'
9331 else
9332 XLIB=""
9333 X_CFLAGS=""
9334 X_LIBS=""
9337 CURSESLIBS=""
9338 if test "x$with_curses" != "xno"
9339 then
9341 for ac_header in ncurses.h
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 else
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 (eval $ac_try) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; } &&
9380 { ac_try='test -s conftest.$ac_objext'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 (eval $ac_try) 2>&5
9383 ac_status=$?
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9386 ac_header_compiler=yes
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_compiler=no
9393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9395 echo "${ECHO_T}$ac_header_compiler" >&6
9397 # Is the header present?
9398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 #include <$ac_header>
9407 _ACEOF
9408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } >/dev/null; then
9416 if test -s conftest.err; then
9417 ac_cpp_err=$ac_c_preproc_warn_flag
9418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9419 else
9420 ac_cpp_err=
9422 else
9423 ac_cpp_err=yes
9425 if test -z "$ac_cpp_err"; then
9426 ac_header_preproc=yes
9427 else
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_header_preproc=no
9433 rm -f conftest.err conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9435 echo "${ECHO_T}$ac_header_preproc" >&6
9437 # So? What about this header?
9438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9439 yes:no: )
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9444 ac_header_preproc=yes
9446 no:yes:* )
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9460 cat <<\_ASBOX
9461 ## ------------------------------------ ##
9462 ## Report this to wine-devel@winehq.org ##
9463 ## ------------------------------------ ##
9464 _ASBOX
9466 sed "s/^/$as_me: WARNING: /" >&2
9468 esac
9469 echo "$as_me:$LINENO: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 eval "$as_ac_Header=\$ac_header_preproc"
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9483 _ACEOF
9484 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9485 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9486 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-lncurses $LIBS"
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9498 /* Override any gcc2 internal prototype to avoid an error. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 /* We use char because int might match the return type of a gcc2
9503 builtin and then its argument prototype would still apply. */
9504 char waddch ();
9506 main ()
9508 waddch ();
9510 return 0;
9512 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_lib_ncurses_waddch=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_cv_lib_ncurses_waddch=no
9541 rm -f conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 LIBS=$ac_check_lib_save_LIBS
9545 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9546 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9547 if test $ac_cv_lib_ncurses_waddch = yes; then
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_LIBNCURSES 1
9551 _ACEOF
9553 CURSESLIBS="-lncurses"
9554 else
9556 for ac_header in curses.h
9558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9560 echo "$as_me:$LINENO: checking for $ac_header" >&5
9561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9567 else
9568 # Is the header compilable?
9569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 $ac_includes_default
9578 #include <$ac_header>
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_header_compiler=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_header_compiler=no
9608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9610 echo "${ECHO_T}$ac_header_compiler" >&6
9612 # Is the header present?
9613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <$ac_header>
9622 _ACEOF
9623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } >/dev/null; then
9631 if test -s conftest.err; then
9632 ac_cpp_err=$ac_c_preproc_warn_flag
9633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9634 else
9635 ac_cpp_err=
9637 else
9638 ac_cpp_err=yes
9640 if test -z "$ac_cpp_err"; then
9641 ac_header_preproc=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_header_preproc=no
9648 rm -f conftest.err conftest.$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9650 echo "${ECHO_T}$ac_header_preproc" >&6
9652 # So? What about this header?
9653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9654 yes:no: )
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9659 ac_header_preproc=yes
9661 no:yes:* )
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9675 cat <<\_ASBOX
9676 ## ------------------------------------ ##
9677 ## Report this to wine-devel@winehq.org ##
9678 ## ------------------------------------ ##
9679 _ASBOX
9681 sed "s/^/$as_me: WARNING: /" >&2
9683 esac
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 eval "$as_ac_Header=\$ac_header_preproc"
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9696 cat >>confdefs.h <<_ACEOF
9697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9698 _ACEOF
9699 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9700 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9701 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-lcurses $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any gcc2 internal prototype to avoid an error. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 /* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9719 char waddch ();
9721 main ()
9723 waddch ();
9725 return 0;
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest$ac_exeext'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9749 ac_cv_lib_curses_waddch=yes
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_cv_lib_curses_waddch=no
9756 rm -f conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9760 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9761 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9762 if test $ac_cv_lib_curses_waddch = yes; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_LIBCURSES 1
9766 _ACEOF
9768 CURSESLIBS="-lcurses"
9773 done
9779 done
9781 saved_libs="$LIBS"
9782 LIBS="$CURSESLIBS $LIBS"
9785 for ac_func in getbkgd resizeterm
9787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9788 echo "$as_me:$LINENO: checking for $ac_func" >&5
9789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9790 if eval "test \"\${$as_ac_var+set}\" = set"; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9801 #define $ac_func innocuous_$ac_func
9803 /* System header to define __stub macros and hopefully few prototypes,
9804 which can conflict with char $ac_func (); below.
9805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9806 <limits.h> exists even on freestanding compilers. */
9808 #ifdef __STDC__
9809 # include <limits.h>
9810 #else
9811 # include <assert.h>
9812 #endif
9814 #undef $ac_func
9816 /* Override any gcc2 internal prototype to avoid an error. */
9817 #ifdef __cplusplus
9818 extern "C"
9820 #endif
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char $ac_func ();
9824 /* The GNU C library defines this for functions which it implements
9825 to always fail with ENOSYS. Some functions are actually named
9826 something starting with __ and the normal name is an alias. */
9827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9828 choke me
9829 #else
9830 char (*f) () = $ac_func;
9831 #endif
9832 #ifdef __cplusplus
9834 #endif
9837 main ()
9839 return f != $ac_func;
9841 return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 eval "$as_ac_var=yes"
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 eval "$as_ac_var=no"
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9877 if test `eval echo '${'$as_ac_var'}'` = yes; then
9878 cat >>confdefs.h <<_ACEOF
9879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9880 _ACEOF
9883 done
9885 LIBS="$saved_libs"
9889 # Extract the first word of "sane-config", so it can be a program name with args.
9890 set dummy sane-config; ac_word=$2
9891 echo "$as_me:$LINENO: checking for $ac_word" >&5
9892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9893 if test "${ac_cv_prog_sane_devel+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 if test -n "$sane_devel"; then
9897 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9898 else
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 ac_cv_prog_sane_devel="sane-config"
9907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9910 done
9911 done
9913 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9916 sane_devel=$ac_cv_prog_sane_devel
9917 if test -n "$sane_devel"; then
9918 echo "$as_me:$LINENO: result: $sane_devel" >&5
9919 echo "${ECHO_T}$sane_devel" >&6
9920 else
9921 echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6
9925 if test "$sane_devel" = "no"
9926 then
9927 SANELIBS=""
9928 SANEINCL=""
9929 else
9930 SANELIBS="`$sane_devel --libs`"
9931 SANEINCL="`$sane_devel --cflags`"
9932 ac_save_CPPFLAGS="$CPPFLAGS"
9933 ac_save_LIBS="$LIBS"
9934 CPPFLAGS="$CPPFLAGS $SANEINCL"
9935 LIBS="$LIBS $SANELIBS"
9936 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9937 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9938 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9939 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9943 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9944 else
9945 # Is the header compilable?
9946 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9947 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 #include <sane/sane.h>
9956 _ACEOF
9957 rm -f conftest.$ac_objext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959 (eval $ac_compile) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_header_compiler=yes
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_header_compiler=no
9985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9987 echo "${ECHO_T}$ac_header_compiler" >&6
9989 # Is the header present?
9990 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9991 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 #include <sane/sane.h>
9999 _ACEOF
10000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } >/dev/null; then
10008 if test -s conftest.err; then
10009 ac_cpp_err=$ac_c_preproc_warn_flag
10010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10011 else
10012 ac_cpp_err=
10014 else
10015 ac_cpp_err=yes
10017 if test -z "$ac_cpp_err"; then
10018 ac_header_preproc=yes
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_preproc=no
10025 rm -f conftest.err conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10027 echo "${ECHO_T}$ac_header_preproc" >&6
10029 # So? What about this header?
10030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10031 yes:no: )
10032 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10033 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10035 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10036 ac_header_preproc=yes
10038 no:yes:* )
10039 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10040 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10042 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10044 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10046 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10048 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10050 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10052 cat <<\_ASBOX
10053 ## ------------------------------------ ##
10054 ## Report this to wine-devel@winehq.org ##
10055 ## ------------------------------------ ##
10056 _ASBOX
10058 sed "s/^/$as_me: WARNING: /" >&2
10060 esac
10061 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10062 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10063 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 ac_cv_header_sane_sane_h=$ac_header_preproc
10068 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10069 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10072 if test $ac_cv_header_sane_sane_h = yes; then
10073 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10074 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10075 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 ac_check_lib_save_LIBS=$LIBS
10079 LIBS="-lsane $LIBS"
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char sane_open ();
10095 main ()
10097 sane_open ();
10099 return 0;
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_lib_sane_sane_open=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_sane_sane_open=no
10130 rm -f conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10134 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10135 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10136 if test $ac_cv_lib_sane_sane_open = yes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_SANE 1
10140 _ACEOF
10142 else
10143 SANELIBS=""
10144 SANEINCL=""
10147 else
10148 SANELIBS=""
10149 SANEINCL=""
10153 LIBS="$ac_save_LIBS"
10154 CPPFLAGS="$ac_save_CPPFLAGS"
10160 for ac_header in unicode/ubidi.h
10162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10164 echo "$as_me:$LINENO: checking for $ac_header" >&5
10165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10171 else
10172 # Is the header compilable?
10173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 $ac_includes_default
10182 #include <$ac_header>
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_header_compiler=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_header_compiler=no
10212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10214 echo "${ECHO_T}$ac_header_compiler" >&6
10216 # Is the header present?
10217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <$ac_header>
10226 _ACEOF
10227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } >/dev/null; then
10235 if test -s conftest.err; then
10236 ac_cpp_err=$ac_c_preproc_warn_flag
10237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238 else
10239 ac_cpp_err=
10241 else
10242 ac_cpp_err=yes
10244 if test -z "$ac_cpp_err"; then
10245 ac_header_preproc=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_header_preproc=no
10252 rm -f conftest.err conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10254 echo "${ECHO_T}$ac_header_preproc" >&6
10256 # So? What about this header?
10257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10258 yes:no: )
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10263 ac_header_preproc=yes
10265 no:yes:* )
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10279 cat <<\_ASBOX
10280 ## ------------------------------------ ##
10281 ## Report this to wine-devel@winehq.org ##
10282 ## ------------------------------------ ##
10283 _ASBOX
10285 sed "s/^/$as_me: WARNING: /" >&2
10287 esac
10288 echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 eval "$as_ac_Header=\$ac_header_preproc"
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10302 _ACEOF
10306 done
10308 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10309 then
10310 saved_libs="$LIBS"
10311 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10312 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10313 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10314 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10315 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10316 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 #include <unicode/ubidi.h>
10325 main ()
10327 ubidi_open()
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_ICU 1
10356 _ACEOF
10358 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10360 echo "$as_me:$LINENO: result: yes" >&5
10361 echo "${ECHO_T}yes" >&6
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6
10369 rm -f conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 LIBS="$saved_libs"
10374 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10375 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10376 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-lfreetype $X_LIBS $LIBS"
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10388 /* Override any gcc2 internal prototype to avoid an error. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */
10394 char FT_Init_FreeType ();
10396 main ()
10398 FT_Init_FreeType ();
10400 return 0;
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; } &&
10418 { ac_try='test -s conftest$ac_exeext'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10424 ac_cv_lib_freetype_FT_Init_FreeType=yes
10425 else
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_lib_freetype_FT_Init_FreeType=no
10431 rm -f conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LIBS=$ac_check_lib_save_LIBS
10435 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10436 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10437 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10438 ft_lib=yes
10439 else
10440 ft_lib=no
10443 if test "$ft_lib" = "no"
10444 then
10445 FREETYPELIBS=""
10446 FREETYPEINCL=""
10447 wine_cv_msg_freetype=no
10448 else
10449 # Extract the first word of "freetype-config", so it can be a program name with args.
10450 set dummy freetype-config; ac_word=$2
10451 echo "$as_me:$LINENO: checking for $ac_word" >&5
10452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10453 if test "${ac_cv_prog_ft_devel+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456 if test -n "$ft_devel"; then
10457 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10458 else
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466 ac_cv_prog_ft_devel="freetype-config"
10467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10470 done
10471 done
10473 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10476 ft_devel=$ac_cv_prog_ft_devel
10477 if test -n "$ft_devel"; then
10478 echo "$as_me:$LINENO: result: $ft_devel" >&5
10479 echo "${ECHO_T}$ft_devel" >&6
10480 else
10481 echo "$as_me:$LINENO: result: no" >&5
10482 echo "${ECHO_T}no" >&6
10485 if test "$ft_devel" = "no"
10486 then
10487 # Extract the first word of "freetype2-config", so it can be a program name with args.
10488 set dummy freetype2-config; ac_word=$2
10489 echo "$as_me:$LINENO: checking for $ac_word" >&5
10490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494 if test -n "$ft_devel2"; then
10495 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10496 else
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504 ac_cv_prog_ft_devel2="freetype2-config"
10505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10508 done
10509 done
10511 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10514 ft_devel2=$ac_cv_prog_ft_devel2
10515 if test -n "$ft_devel2"; then
10516 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10517 echo "${ECHO_T}$ft_devel2" >&6
10518 else
10519 echo "$as_me:$LINENO: result: no" >&5
10520 echo "${ECHO_T}no" >&6
10523 if test "$ft_devel2" = "freetype2-config"
10524 then
10525 ft_devel=$ft_devel2
10528 if test "$ft_devel" = "no"
10529 then
10530 FREETYPELIBS=""
10531 FREETYPEINCL=""
10532 wine_cv_msg_freetype=yes
10533 else
10534 FREETYPELIBS=`$ft_devel --libs`
10535 FREETYPEINCL=`$ft_devel --cflags`
10536 ac_save_CPPFLAGS="$CPPFLAGS"
10537 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10548 for ac_header in ft2build.h \
10549 freetype/freetype.h \
10550 freetype/ftglyph.h \
10551 freetype/tttables.h \
10552 freetype/ftnames.h \
10553 freetype/ftsnames.h \
10554 freetype/ttnameid.h \
10555 freetype/ftoutln.h \
10556 freetype/ftwinfnt.h \
10557 freetype/internal/sfnt.h
10559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10560 echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 #if HAVE_FT2BUILD_H
10572 #include <ft2build.h>
10573 #endif
10575 #include <$ac_header>
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 eval "$as_ac_Header=yes"
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 eval "$as_ac_Header=no"
10605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10610 cat >>confdefs.h <<_ACEOF
10611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10612 _ACEOF
10616 done
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <ft2build.h>
10625 #include <freetype/fttrigon.h>
10626 _ACEOF
10627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } >/dev/null; then
10635 if test -s conftest.err; then
10636 ac_cpp_err=$ac_c_preproc_warn_flag
10637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10638 else
10639 ac_cpp_err=
10641 else
10642 ac_cpp_err=yes
10644 if test -z "$ac_cpp_err"; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_FREETYPE_FTTRIGON_H 1
10648 _ACEOF
10650 wine_cv_fttrigon=yes
10651 else
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 wine_cv_fttrigon=no
10657 rm -f conftest.err conftest.$ac_ext
10658 CPPFLAGS="$ac_save_CPPFLAGS"
10659 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10660 then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_FREETYPE 1
10664 _ACEOF
10666 wine_cv_msg_freetype=no
10667 else
10668 FREETYPELIBS=""
10669 FREETYPEINCL=""
10670 wine_cv_msg_freetype=yes
10677 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10678 then
10679 FONTSSUBDIRS="fonts"
10683 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10684 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10685 if test "${ac_cv_c_ppdev+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <linux/ppdev.h>
10696 main ()
10698 ioctl (1,PPCLAIM,0)
10700 return 0;
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; } &&
10718 { ac_try='test -s conftest.$ac_objext'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_cv_c_ppdev="yes"
10725 else
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 ac_cv_c_ppdev="no"
10731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10735 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10736 if test "$ac_cv_c_ppdev" = "yes"
10737 then
10739 cat >>confdefs.h <<\_ACEOF
10740 #define HAVE_PPDEV 1
10741 _ACEOF
10745 echo "$as_me:$LINENO: checking for va_copy" >&5
10746 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10747 if test "${ac_cv_c_va_copy+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <stdarg.h>
10758 main ()
10760 va_list ap1, ap2;
10761 va_copy(ap1,ap2);
10764 return 0;
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest$ac_exeext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_c_va_copy="yes"
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_c_va_copy="no"
10795 rm -f conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10799 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10800 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10801 if test "$ac_cv_c_va_copy" = "yes"
10802 then
10804 cat >>confdefs.h <<\_ACEOF
10805 #define HAVE_VA_COPY 1
10806 _ACEOF
10809 echo "$as_me:$LINENO: checking for __va_copy" >&5
10810 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10811 if test "${ac_cv_c___va_copy+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 #include <stdarg.h>
10822 main ()
10824 va_list ap1, ap2;
10825 __va_copy(ap1,ap2);
10828 return 0;
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833 (eval $ac_link) 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_c___va_copy="yes"
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_cv_c___va_copy="no"
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10863 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10864 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10865 if test "$ac_cv_c___va_copy" = "yes"
10866 then
10868 cat >>confdefs.h <<\_ACEOF
10869 #define HAVE___VA_COPY 1
10870 _ACEOF
10874 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10875 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10876 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <setjmp.h>
10887 main ()
10889 sigjmp_buf buf;
10890 sigsetjmp( buf, 1 );
10891 siglongjmp( buf, 1 );
10893 return 0;
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898 (eval $ac_link) 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest$ac_exeext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_c_sigsetjmp="yes"
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_cv_c_sigsetjmp="no"
10924 rm -f conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10928 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10929 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10930 if test "$ac_cv_c_sigsetjmp" = "yes"
10931 then
10933 cat >>confdefs.h <<\_ACEOF
10934 #define HAVE_SIGSETJMP 1
10935 _ACEOF
10939 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10940 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10941 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #define _GNU_SOURCE
10951 #include <pthread.h>
10954 main ()
10956 if ((pthread_rwlock_t *) 0)
10957 return 0;
10958 if (sizeof (pthread_rwlock_t))
10959 return 0;
10961 return 0;
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966 (eval $ac_compile) 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_type_pthread_rwlock_t=yes
10986 else
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 ac_cv_type_pthread_rwlock_t=no
10992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10994 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10995 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10996 if test $ac_cv_type_pthread_rwlock_t = yes; then
10998 cat >>confdefs.h <<_ACEOF
10999 #define HAVE_PTHREAD_RWLOCK_T 1
11000 _ACEOF
11004 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11005 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11006 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009 cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h. */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 #define _GNU_SOURCE
11016 #include <pthread.h>
11019 main ()
11021 if ((pthread_rwlockattr_t *) 0)
11022 return 0;
11023 if (sizeof (pthread_rwlockattr_t))
11024 return 0;
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11031 (eval $ac_compile) 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_type_pthread_rwlockattr_t=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ac_cv_type_pthread_rwlockattr_t=no
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11060 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11061 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11065 _ACEOF
11071 ac_save_LIBS="$LIBS"
11072 LIBS="$LIBS $LIBPTHREAD"
11076 for ac_func in \
11077 pthread_getattr_np \
11078 pthread_get_stackaddr_np \
11079 pthread_get_stacksize_np \
11082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11083 echo "$as_me:$LINENO: checking for $ac_func" >&5
11084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11085 if eval "test \"\${$as_ac_var+set}\" = set"; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11096 #define $ac_func innocuous_$ac_func
11098 /* System header to define __stub macros and hopefully few prototypes,
11099 which can conflict with char $ac_func (); below.
11100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11101 <limits.h> exists even on freestanding compilers. */
11103 #ifdef __STDC__
11104 # include <limits.h>
11105 #else
11106 # include <assert.h>
11107 #endif
11109 #undef $ac_func
11111 /* Override any gcc2 internal prototype to avoid an error. */
11112 #ifdef __cplusplus
11113 extern "C"
11115 #endif
11116 /* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11118 char $ac_func ();
11119 /* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11123 choke me
11124 #else
11125 char (*f) () = $ac_func;
11126 #endif
11127 #ifdef __cplusplus
11129 #endif
11132 main ()
11134 return f != $ac_func;
11136 return 0;
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141 (eval $ac_link) 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest$ac_exeext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 eval "$as_ac_var=yes"
11161 else
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 eval "$as_ac_var=no"
11167 rm -f conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11172 if test `eval echo '${'$as_ac_var'}'` = yes; then
11173 cat >>confdefs.h <<_ACEOF
11174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11175 _ACEOF
11178 done
11180 LIBS="$ac_save_LIBS"
11185 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11189 echo "$as_me:$LINENO: checking for $ac_header" >&5
11190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11196 else
11197 # Is the header compilable?
11198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11200 cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h. */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 $ac_includes_default
11207 #include <$ac_header>
11208 _ACEOF
11209 rm -f conftest.$ac_objext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest.$ac_objext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_compiler=no
11237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6
11241 # Is the header present?
11242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #include <$ac_header>
11251 _ACEOF
11252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } >/dev/null; then
11260 if test -s conftest.err; then
11261 ac_cpp_err=$ac_c_preproc_warn_flag
11262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11263 else
11264 ac_cpp_err=
11266 else
11267 ac_cpp_err=yes
11269 if test -z "$ac_cpp_err"; then
11270 ac_header_preproc=yes
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_header_preproc=no
11277 rm -f conftest.err conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279 echo "${ECHO_T}$ac_header_preproc" >&6
11281 # So? What about this header?
11282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 yes:no: )
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11288 ac_header_preproc=yes
11290 no:yes:* )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11304 cat <<\_ASBOX
11305 ## ------------------------------------ ##
11306 ## Report this to wine-devel@winehq.org ##
11307 ## ------------------------------------ ##
11308 _ASBOX
11310 sed "s/^/$as_me: WARNING: /" >&2
11312 esac
11313 echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 eval "$as_ac_Header=\$ac_header_preproc"
11320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11325 cat >>confdefs.h <<_ACEOF
11326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11327 _ACEOF
11328 break
11331 done
11334 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11335 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11336 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11346 #if defined(HAVE_SYS_SOUNDCARD_H)
11347 #include <sys/soundcard.h>
11348 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11349 #include <machine/soundcard.h>
11350 #elif defined(HAVE_SOUNDCARD_H)
11351 #include <soundcard.h>
11352 #endif
11355 main ()
11359 /* check for one of the Open Sound System specific SNDCTL_ defines */
11360 #if !defined(SNDCTL_DSP_STEREO)
11361 #error No open sound system
11362 #endif
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_c_opensoundsystem="yes"
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_cv_c_opensoundsystem="no"
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11398 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11399 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11401 if test "$ac_cv_c_opensoundsystem" = "yes"
11402 then
11404 cat >>confdefs.h <<\_ACEOF
11405 #define HAVE_OSS 1
11406 _ACEOF
11410 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11411 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11412 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11422 #if defined(HAVE_SYS_SOUNDCARD_H)
11423 #include <sys/soundcard.h>
11424 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11425 #include <machine/soundcard.h>
11426 #elif defined(HAVE_SOUNDCARD_H)
11427 #include <soundcard.h>
11428 #endif
11431 main ()
11435 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11436 #if !defined(SNDCTL_SEQ_SYNC)
11437 #error No open sound system MIDI interface
11438 #endif
11441 return 0;
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446 (eval $ac_compile) 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_c_opensoundsystem_midi="yes"
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_c_opensoundsystem_midi="no"
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11474 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11475 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11477 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11478 then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define HAVE_OSS_MIDI 1
11482 _ACEOF
11486 # Extract the first word of "artsc-config", so it can be a program name with args.
11487 set dummy artsc-config; ac_word=$2
11488 echo "$as_me:$LINENO: checking for $ac_word" >&5
11489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11490 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493 case $ARTSCCONFIG in
11494 [\\/]* | ?:[\\/]*)
11495 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH
11501 IFS=$as_save_IFS
11502 test -z "$as_dir" && as_dir=.
11503 for ac_exec_ext in '' $ac_executable_extensions; do
11504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11505 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 break 2
11509 done
11510 done
11513 esac
11515 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11517 if test -n "$ARTSCCONFIG"; then
11518 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11519 echo "${ECHO_T}$ARTSCCONFIG" >&6
11520 else
11521 echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11525 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11526 then
11527 ARTSC_CFLAGS=""
11528 for i in `$ARTSCCONFIG --cflags`
11530 case "$i" in
11531 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11532 esac
11533 done
11534 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11535 save_CFLAGS="$CFLAGS"
11536 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <artsc.h>
11545 main ()
11547 arts_stream_t stream;
11549 return 0;
11551 _ACEOF
11552 rm -f conftest.$ac_objext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11554 (eval $ac_compile) 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ARTSLIBS=$ARTSC_LIBS
11575 ARTSINCL=$ARTSC_CFLAGS
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_ARTS 1
11580 _ACEOF
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 CFLAGS="$save_CFLAGS"
11591 ALSALIBS=""
11595 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11599 echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11606 else
11607 # Is the header compilable?
11608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 $ac_includes_default
11617 #include <$ac_header>
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621 (eval $ac_compile) 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_header_compiler=yes
11641 else
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_header_compiler=no
11647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11649 echo "${ECHO_T}$ac_header_compiler" >&6
11651 # Is the header present?
11652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 #include <$ac_header>
11661 _ACEOF
11662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null; then
11670 if test -s conftest.err; then
11671 ac_cpp_err=$ac_c_preproc_warn_flag
11672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673 else
11674 ac_cpp_err=
11676 else
11677 ac_cpp_err=yes
11679 if test -z "$ac_cpp_err"; then
11680 ac_header_preproc=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_preproc=no
11687 rm -f conftest.err conftest.$ac_ext
11688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11689 echo "${ECHO_T}$ac_header_preproc" >&6
11691 # So? What about this header?
11692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11693 yes:no: )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11698 ac_header_preproc=yes
11700 no:yes:* )
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11714 cat <<\_ASBOX
11715 ## ------------------------------------ ##
11716 ## Report this to wine-devel@winehq.org ##
11717 ## ------------------------------------ ##
11718 _ASBOX
11720 sed "s/^/$as_me: WARNING: /" >&2
11722 esac
11723 echo "$as_me:$LINENO: checking for $ac_header" >&5
11724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728 eval "$as_ac_Header=\$ac_header_preproc"
11730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11737 _ACEOF
11738 break
11741 done
11743 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11744 then
11745 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11746 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11747 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750 ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-lasound $LIBS"
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11759 /* Override any gcc2 internal prototype to avoid an error. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 /* We use char because int might match the return type of a gcc2
11764 builtin and then its argument prototype would still apply. */
11765 char snd_pcm_open ();
11767 main ()
11769 snd_pcm_open ();
11771 return 0;
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_lib_asound_snd_pcm_open=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_cv_lib_asound_snd_pcm_open=no
11802 rm -f conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11806 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11807 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11808 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11810 cat >>confdefs.h <<\_ACEOF
11811 #define HAVE_ALSA 1
11812 _ACEOF
11814 ALSALIBS="-lasound"
11820 AUDIOIOLIBS=""
11823 for ac_header in libaudioio.h
11825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11827 echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11834 else
11835 # Is the header compilable?
11836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11838 cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h. */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11845 #include <$ac_header>
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_header_compiler=yes
11869 else
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_header_compiler=no
11875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6
11879 # Is the header present?
11880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 #include <$ac_header>
11889 _ACEOF
11890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null; then
11898 if test -s conftest.err; then
11899 ac_cpp_err=$ac_c_preproc_warn_flag
11900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11901 else
11902 ac_cpp_err=
11904 else
11905 ac_cpp_err=yes
11907 if test -z "$ac_cpp_err"; then
11908 ac_header_preproc=yes
11909 else
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_header_preproc=no
11915 rm -f conftest.err conftest.$ac_ext
11916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6
11919 # So? What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11921 yes:no: )
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11926 ac_header_preproc=yes
11928 no:yes:* )
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11942 cat <<\_ASBOX
11943 ## ------------------------------------ ##
11944 ## Report this to wine-devel@winehq.org ##
11945 ## ------------------------------------ ##
11946 _ASBOX
11948 sed "s/^/$as_me: WARNING: /" >&2
11950 esac
11951 echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 eval "$as_ac_Header=\$ac_header_preproc"
11958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 _ACEOF
11966 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11967 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11968 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971 ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-laudioio $LIBS"
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11980 /* Override any gcc2 internal prototype to avoid an error. */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 /* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11986 char AudioIOGetVersion ();
11988 main ()
11990 AudioIOGetVersion ();
11992 return 0;
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_lib_audioio_AudioIOGetVersion=yes
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_cv_lib_audioio_AudioIOGetVersion=no
12023 rm -f conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12028 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12029 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12030 AUDIOIOLIBS="-laudioio"
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_LIBAUDIOIO 1
12034 _ACEOF
12040 done
12045 for ac_header in capi20.h
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12049 echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12056 else
12057 # Is the header compilable?
12058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h. */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 $ac_includes_default
12067 #include <$ac_header>
12068 _ACEOF
12069 rm -f conftest.$ac_objext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest.$ac_objext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 ac_header_compiler=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_header_compiler=no
12097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12099 echo "${ECHO_T}$ac_header_compiler" >&6
12101 # Is the header present?
12102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include <$ac_header>
12111 _ACEOF
12112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } >/dev/null; then
12120 if test -s conftest.err; then
12121 ac_cpp_err=$ac_c_preproc_warn_flag
12122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12123 else
12124 ac_cpp_err=
12126 else
12127 ac_cpp_err=yes
12129 if test -z "$ac_cpp_err"; then
12130 ac_header_preproc=yes
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_header_preproc=no
12137 rm -f conftest.err conftest.$ac_ext
12138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12139 echo "${ECHO_T}$ac_header_preproc" >&6
12141 # So? What about this header?
12142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12143 yes:no: )
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12148 ac_header_preproc=yes
12150 no:yes:* )
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12164 cat <<\_ASBOX
12165 ## ------------------------------------ ##
12166 ## Report this to wine-devel@winehq.org ##
12167 ## ------------------------------------ ##
12168 _ASBOX
12170 sed "s/^/$as_me: WARNING: /" >&2
12172 esac
12173 echo "$as_me:$LINENO: checking for $ac_header" >&5
12174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 eval "$as_ac_Header=\$ac_header_preproc"
12180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12187 _ACEOF
12190 for ac_header in linux/capi.h
12192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12194 echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12201 else
12202 # Is the header compilable?
12203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 $ac_includes_default
12212 #include <$ac_header>
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_header_compiler=yes
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ac_header_compiler=no
12242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12244 echo "${ECHO_T}$ac_header_compiler" >&6
12246 # Is the header present?
12247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <$ac_header>
12256 _ACEOF
12257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null; then
12265 if test -s conftest.err; then
12266 ac_cpp_err=$ac_c_preproc_warn_flag
12267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12268 else
12269 ac_cpp_err=
12271 else
12272 ac_cpp_err=yes
12274 if test -z "$ac_cpp_err"; then
12275 ac_header_preproc=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_preproc=no
12282 rm -f conftest.err conftest.$ac_ext
12283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12284 echo "${ECHO_T}$ac_header_preproc" >&6
12286 # So? What about this header?
12287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12288 yes:no: )
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12293 ac_header_preproc=yes
12295 no:yes:* )
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12309 cat <<\_ASBOX
12310 ## ------------------------------------ ##
12311 ## Report this to wine-devel@winehq.org ##
12312 ## ------------------------------------ ##
12313 _ASBOX
12315 sed "s/^/$as_me: WARNING: /" >&2
12317 esac
12318 echo "$as_me:$LINENO: checking for $ac_header" >&5
12319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 eval "$as_ac_Header=\$ac_header_preproc"
12325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12332 _ACEOF
12334 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12335 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12336 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-lcapi20 $LIBS"
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12348 /* Override any gcc2 internal prototype to avoid an error. */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 /* We use char because int might match the return type of a gcc2
12353 builtin and then its argument prototype would still apply. */
12354 char capi20_register ();
12356 main ()
12358 capi20_register ();
12360 return 0;
12362 _ACEOF
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365 (eval $ac_link) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_lib_capi20_capi20_register=yes
12385 else
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_cv_lib_capi20_capi20_register=no
12391 rm -f conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS=$ac_check_lib_save_LIBS
12395 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12396 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12397 if test $ac_cv_lib_capi20_capi20_register = yes; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define HAVE_CAPI4LINUX 1
12402 _ACEOF
12404 CAPI4LINUXLIBS="-lcapi20"
12412 done
12417 done
12421 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12422 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12423 if test "${ac_cv_mmap64_works+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 if test "$cross_compiling" = yes; then
12427 ac_cv_mmap64_works="no"
12428 else
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12436 #define _FILE_OFFSET_BITS 64
12437 #include <stdio.h>
12438 #include <unistd.h>
12439 #include <fcntl.h>
12440 #include <sys/mman.h>
12441 #include <errno.h>
12443 int main(int argc,char **argv) {
12444 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12445 if (fd == -1) exit(1);
12447 unlink("conftest.map");
12449 write(fd,"test",4);
12451 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12452 (errno == EINVAL)
12454 exit(1);
12456 close(fd);
12457 fprintf(stderr,"success!\n");
12458 exit(0);
12462 _ACEOF
12463 rm -f conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_mmap64_works="yes"
12475 else
12476 echo "$as_me: program exited with status $ac_status" >&5
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ( exit $ac_status )
12481 ac_cv_mmap64_works="no"
12483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12486 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12487 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12489 if test "$ac_cv_mmap64_works" = "yes"
12490 then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define _FILE_OFFSET_BITS 64
12494 _ACEOF
12499 EXTRACFLAGS=""
12501 if test "x${GCC}" = "xyes"
12502 then
12503 EXTRACFLAGS="-Wall -pipe"
12505 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12506 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12507 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510 if test "$cross_compiling" = yes; then
12511 ac_cv_c_gcc_strength_bug="yes"
12512 else
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 int L[4] = {0,1,2,3};
12521 int main(void) {
12522 static int Array[3];
12523 unsigned int B = 3;
12524 int i;
12525 for(i=0; i<B; i++) Array[i] = i - 3;
12526 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12527 L[i] = 4;
12529 exit( Array[1] != -2 || L[2] != 3);
12531 _ACEOF
12532 rm -f conftest$ac_exeext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_cv_c_gcc_strength_bug="no"
12544 else
12545 echo "$as_me: program exited with status $ac_status" >&5
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ( exit $ac_status )
12550 ac_cv_c_gcc_strength_bug="yes"
12552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12556 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12557 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12558 then
12559 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12562 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12563 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12564 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567 ac_wine_try_cflags_saved=$CFLAGS
12568 CFLAGS="$CFLAGS -fshort-wchar"
12569 cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h. */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12577 main ()
12581 return 0;
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest$ac_exeext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_c_gcc_fshort_wchar="yes"
12606 else
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_cv_c_gcc_fshort_wchar="no"
12612 rm -f conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 CFLAGS=$ac_wine_try_cflags_saved
12616 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12617 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12618 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12619 then
12621 cat >>confdefs.h <<\_ACEOF
12622 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12623 _ACEOF
12627 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12628 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12629 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 ac_wine_try_cflags_saved=$CFLAGS
12633 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12642 main ()
12646 return 0;
12648 _ACEOF
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_c_gcc_stack_boundary="yes"
12671 else
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 ac_cv_c_gcc_stack_boundary="no"
12677 rm -f conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 CFLAGS=$ac_wine_try_cflags_saved
12681 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12682 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12683 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12684 then
12685 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12688 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12689 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12690 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693 ac_wine_try_cflags_saved=$CFLAGS
12694 CFLAGS="$CFLAGS -fno-strict-aliasing"
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12703 main ()
12707 return 0;
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712 (eval $ac_link) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest$ac_exeext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_cv_c_gcc_no_strict_aliasing="yes"
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_cv_c_gcc_no_strict_aliasing="no"
12738 rm -f conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 CFLAGS=$ac_wine_try_cflags_saved
12742 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12743 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12744 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12745 then
12746 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12749 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12750 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12751 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 ac_wine_try_cflags_saved=$CFLAGS
12755 CFLAGS="$CFLAGS -gstabs+"
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12764 main ()
12768 return 0;
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12773 (eval $ac_link) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_c_gcc_gstabs="yes"
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_c_gcc_gstabs="no"
12799 rm -f conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 CFLAGS=$ac_wine_try_cflags_saved
12803 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12804 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12805 if test "$ac_cv_c_gcc_gstabs" = "yes"
12806 then
12807 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12810 saved_CFLAGS="$CFLAGS"
12811 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12812 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12813 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12814 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #include <string.h>
12825 main ()
12829 return 0;
12831 _ACEOF
12832 rm -f conftest.$ac_objext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834 (eval $ac_compile) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_cv_c_string_h_warnings=no
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_cv_c_string_h_warnings=yes
12860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12862 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12863 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12864 CFLAGS="$saved_CFLAGS"
12865 if test "$ac_cv_c_string_h_warnings" = "no"
12866 then
12867 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12872 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12873 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12874 if test "${ac_cv_asm_func_def+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 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"); }
12886 main ()
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895 (eval $ac_link) 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_asm_func_def=".def"
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12928 main ()
12932 return 0;
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest$ac_exeext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 ac_cv_asm_func_def=".type @function"
12957 else
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12970 main ()
12974 return 0;
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_asm_func_def=".type 2"
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_cv_asm_func_def="unknown"
13005 rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13008 rm -f conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13011 rm -f conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13014 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13015 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13019 case "$ac_cv_asm_func_def" in
13020 ".def")
13021 cat >>confdefs.h <<\_ACEOF
13022 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13023 _ACEOF
13025 ".type @function")
13026 cat >>confdefs.h <<\_ACEOF
13027 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13028 _ACEOF
13030 ".type 2")
13031 cat >>confdefs.h <<\_ACEOF
13032 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13033 _ACEOF
13036 cat >>confdefs.h <<\_ACEOF
13037 #define __ASM_FUNC(name) ""
13038 _ACEOF
13040 esac
13043 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13044 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13045 if test "${ac_cv_c_extern_prefix+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13055 extern int ac_test;
13057 main ()
13059 if (ac_test) return 1
13061 return 0;
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066 (eval $ac_link) 2>conftest.er1
13067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_c_extern_prefix="yes"
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 ac_cv_c_extern_prefix="no"
13092 rm -f conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13096 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13100 if test "$ac_cv_c_extern_prefix" = "yes"
13101 then
13102 cat >>confdefs.h <<\_ACEOF
13103 #define __ASM_NAME(name) "_" name
13104 _ACEOF
13106 else
13107 cat >>confdefs.h <<\_ACEOF
13108 #define __ASM_NAME(name) name
13109 _ACEOF
13114 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13115 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13116 if test "${ac_cv_c_asm_string+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13128 main ()
13132 return 0;
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest$ac_exeext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_c_asm_string=".string"
13157 else
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h. */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13170 main ()
13174 return 0;
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13179 (eval $ac_link) 2>conftest.er1
13180 ac_status=$?
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
13186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest$ac_exeext'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13198 ac_cv_c_asm_string=".asciz"
13199 else
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13212 main ()
13216 return 0;
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13221 (eval $ac_link) 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; } &&
13234 { ac_try='test -s conftest$ac_exeext'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13240 ac_cv_c_asm_string=".ascii"
13241 else
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13246 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13247 { (exit 1); exit 1; }; }
13249 rm -f conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13252 rm -f conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13255 rm -f conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13258 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13259 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13262 cat >>confdefs.h <<_ACEOF
13263 #define __ASM_STRING "$ac_cv_c_asm_string"
13264 _ACEOF
13268 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13269 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13270 if test "${ac_cv_c_asm_short+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13282 main ()
13286 return 0;
13288 _ACEOF
13289 rm -f conftest.$ac_objext conftest$ac_exeext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 ac_cv_c_asm_short=".short"
13311 else
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13324 main ()
13328 return 0;
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13333 (eval $ac_link) 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_c_asm_short=".half"
13353 else
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13358 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13359 { (exit 1); exit 1; }; }
13361 rm -f conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
13364 rm -f conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13367 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13368 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13371 cat >>confdefs.h <<_ACEOF
13372 #define __ASM_SHORT "$ac_cv_c_asm_short"
13373 _ACEOF
13377 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13378 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13379 if test "${ac_cv_c_asm_size+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13391 main ()
13395 return 0;
13397 _ACEOF
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_cv_c_asm_size="yes"
13420 else
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 ac_cv_c_asm_size="no"
13426 rm -f conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13430 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13432 if test "$ac_cv_c_asm_size" = "yes"
13433 then
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_ASM_DOT_SIZE 1
13437 _ACEOF
13442 DLLEXT=""
13444 DLLFLAGS="-D_REENTRANT"
13446 DLLIBS=""
13448 LDSHARED=""
13450 LDDLLFLAGS=""
13452 LIBEXT="so"
13454 IMPLIBEXT="def"
13457 case $host_os in
13458 cygwin*|mingw32*)
13459 if test -n "$ac_tool_prefix"; then
13460 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13461 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13462 echo "$as_me:$LINENO: checking for $ac_word" >&5
13463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13464 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467 if test -n "$DLLTOOL"; then
13468 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13481 done
13482 done
13486 DLLTOOL=$ac_cv_prog_DLLTOOL
13487 if test -n "$DLLTOOL"; then
13488 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13489 echo "${ECHO_T}$DLLTOOL" >&6
13490 else
13491 echo "$as_me:$LINENO: result: no" >&5
13492 echo "${ECHO_T}no" >&6
13496 if test -z "$ac_cv_prog_DLLTOOL"; then
13497 ac_ct_DLLTOOL=$DLLTOOL
13498 # Extract the first word of "dlltool", so it can be a program name with args.
13499 set dummy dlltool; ac_word=$2
13500 echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13502 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505 if test -n "$ac_ct_DLLTOOL"; then
13506 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13519 done
13520 done
13522 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13525 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13526 if test -n "$ac_ct_DLLTOOL"; then
13527 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13528 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13529 else
13530 echo "$as_me:$LINENO: result: no" >&5
13531 echo "${ECHO_T}no" >&6
13534 DLLTOOL=$ac_ct_DLLTOOL
13535 else
13536 DLLTOOL="$ac_cv_prog_DLLTOOL"
13539 if test -n "$ac_tool_prefix"; then
13540 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13541 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13542 echo "$as_me:$LINENO: checking for $ac_word" >&5
13543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13544 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547 if test -n "$DLLWRAP"; then
13548 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13549 else
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13561 done
13562 done
13566 DLLWRAP=$ac_cv_prog_DLLWRAP
13567 if test -n "$DLLWRAP"; then
13568 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13569 echo "${ECHO_T}$DLLWRAP" >&6
13570 else
13571 echo "$as_me:$LINENO: result: no" >&5
13572 echo "${ECHO_T}no" >&6
13576 if test -z "$ac_cv_prog_DLLWRAP"; then
13577 ac_ct_DLLWRAP=$DLLWRAP
13578 # Extract the first word of "dllwrap", so it can be a program name with args.
13579 set dummy dllwrap; ac_word=$2
13580 echo "$as_me:$LINENO: checking for $ac_word" >&5
13581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13582 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 if test -n "$ac_ct_DLLWRAP"; then
13586 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13595 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13599 done
13600 done
13602 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13605 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13606 if test -n "$ac_ct_DLLWRAP"; then
13607 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13608 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13609 else
13610 echo "$as_me:$LINENO: result: no" >&5
13611 echo "${ECHO_T}no" >&6
13614 DLLWRAP=$ac_ct_DLLWRAP
13615 else
13616 DLLWRAP="$ac_cv_prog_DLLWRAP"
13619 if test "$DLLWRAP" = "false"; then
13620 LIBEXT="a"
13621 else
13622 LIBEXT="dll"
13624 IMPLIBEXT="a"
13625 WIN16_FILES=""
13626 WIN16_INSTALL=""
13630 for ac_header in dlfcn.h
13632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo "$as_me:$LINENO: checking for $ac_header" >&5
13635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13641 else
13642 # Is the header compilable?
13643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h. */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13652 #include <$ac_header>
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 ac_header_compiler=yes
13676 else
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13680 ac_header_compiler=no
13682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13684 echo "${ECHO_T}$ac_header_compiler" >&6
13686 # Is the header present?
13687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #include <$ac_header>
13696 _ACEOF
13697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } >/dev/null; then
13705 if test -s conftest.err; then
13706 ac_cpp_err=$ac_c_preproc_warn_flag
13707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13708 else
13709 ac_cpp_err=
13711 else
13712 ac_cpp_err=yes
13714 if test -z "$ac_cpp_err"; then
13715 ac_header_preproc=yes
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_header_preproc=no
13722 rm -f conftest.err conftest.$ac_ext
13723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13724 echo "${ECHO_T}$ac_header_preproc" >&6
13726 # So? What about this header?
13727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13728 yes:no: )
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13733 ac_header_preproc=yes
13735 no:yes:* )
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13749 cat <<\_ASBOX
13750 ## ------------------------------------ ##
13751 ## Report this to wine-devel@winehq.org ##
13752 ## ------------------------------------ ##
13753 _ASBOX
13755 sed "s/^/$as_me: WARNING: /" >&2
13757 esac
13758 echo "$as_me:$LINENO: checking for $ac_header" >&5
13759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 eval "$as_ac_Header=\$ac_header_preproc"
13765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13770 cat >>confdefs.h <<_ACEOF
13771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13772 _ACEOF
13774 for ac_func in dlopen
13776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13777 echo "$as_me:$LINENO: checking for $ac_func" >&5
13778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13779 if eval "test \"\${$as_ac_var+set}\" = set"; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h. */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13790 #define $ac_func innocuous_$ac_func
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char $ac_func (); below.
13794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13795 <limits.h> exists even on freestanding compilers. */
13797 #ifdef __STDC__
13798 # include <limits.h>
13799 #else
13800 # include <assert.h>
13801 #endif
13803 #undef $ac_func
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 #ifdef __cplusplus
13807 extern "C"
13809 #endif
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13812 char $ac_func ();
13813 /* The GNU C library defines this for functions which it implements
13814 to always fail with ENOSYS. Some functions are actually named
13815 something starting with __ and the normal name is an alias. */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 char (*f) () = $ac_func;
13820 #endif
13821 #ifdef __cplusplus
13823 #endif
13826 main ()
13828 return f != $ac_func;
13830 return 0;
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835 (eval $ac_link) 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 eval "$as_ac_var=yes"
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 eval "$as_ac_var=no"
13861 rm -f conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
13864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13866 if test `eval echo '${'$as_ac_var'}'` = yes; then
13867 cat >>confdefs.h <<_ACEOF
13868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13869 _ACEOF
13871 else
13872 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-ldl $LIBS"
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h. */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13886 /* Override any gcc2 internal prototype to avoid an error. */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 /* We use char because int might match the return type of a gcc2
13891 builtin and then its argument prototype would still apply. */
13892 char dlopen ();
13894 main ()
13896 dlopen ();
13898 return 0;
13900 _ACEOF
13901 rm -f conftest.$ac_objext conftest$ac_exeext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13903 (eval $ac_link) 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
13910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest$ac_exeext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_cv_lib_dl_dlopen=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_cv_lib_dl_dlopen=no
13929 rm -f conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 LIBS=$ac_check_lib_save_LIBS
13933 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13935 if test $ac_cv_lib_dl_dlopen = yes; then
13937 cat >>confdefs.h <<\_ACEOF
13938 #define HAVE_DLOPEN 1
13939 _ACEOF
13941 DLLIBS="-ldl"
13942 else
13943 LIBEXT="a"
13947 done
13949 else
13950 LIBEXT="a"
13953 done
13956 if test "$LIBEXT" = "so"
13957 then
13958 DLLFLAGS="$DLLFLAGS -fPIC"
13959 DLLEXT=".so"
13960 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13961 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13962 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 else
13965 ac_wine_try_cflags_saved=$CFLAGS
13966 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13967 cat >conftest.$ac_ext <<_ACEOF
13968 void myfunc() {}
13969 _ACEOF
13970 rm -f conftest.$ac_objext conftest$ac_exeext
13971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
13979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_c_dll_gnuelf="yes"
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_c_dll_gnuelf="no"
13998 rm -f conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 CFLAGS=$ac_wine_try_cflags_saved
14002 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14003 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14004 if test "$ac_cv_c_dll_gnuelf" = "yes"
14005 then
14006 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14007 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14008 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14009 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14010 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 ac_wine_try_cflags_saved=$CFLAGS
14014 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h. */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14023 main ()
14027 return 0;
14029 _ACEOF
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>conftest.er1
14033 ac_status=$?
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; } &&
14045 { ac_try='test -s conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_c_dll_zdefs="yes"
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 ac_cv_c_dll_zdefs="no"
14058 rm -f conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 CFLAGS=$ac_wine_try_cflags_saved
14062 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14063 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14064 if test "$ac_cv_c_dll_zdefs" = "yes"
14065 then
14066 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14069 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14070 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14071 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 ac_wine_try_cflags_saved=$CFLAGS
14075 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h. */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14084 main ()
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest$ac_exeext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_cv_c_dll_init_fini="yes"
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_cv_c_dll_init_fini="no"
14119 rm -f conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121 CFLAGS=$ac_wine_try_cflags_saved
14123 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14124 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14125 if test "$ac_cv_c_dll_init_fini" = "yes"
14126 then
14127 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14130 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14131 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14132 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 echo '{ global: *; };' >conftest.map
14136 ac_wine_try_cflags_saved=$CFLAGS
14137 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14146 main ()
14150 return 0;
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest$ac_exeext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_cv_c_ld_version_scripts="yes"
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_cv_c_ld_version_scripts="no"
14181 rm -f conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14183 CFLAGS=$ac_wine_try_cflags_saved
14184 rm -f conftest.map
14186 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14187 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14188 if test "$ac_cv_c_ld_version_scripts" = "yes"
14189 then
14190 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14193 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14194 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14195 if test "${ac_cv_c_export_dynamic+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198 ac_wine_try_cflags_saved=$CFLAGS
14199 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14208 main ()
14212 return 0;
14214 _ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14217 (eval $ac_link) 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 ac_cv_c_export_dynamic="yes"
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 ac_cv_c_export_dynamic="no"
14243 rm -f conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
14245 CFLAGS=$ac_wine_try_cflags_saved
14247 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14248 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14249 if test "$ac_cv_c_export_dynamic" = "yes"
14250 then
14251 LDEXECFLAGS="-Wl,--export-dynamic"
14255 case $host_cpu in
14256 *i[3456789]86*)
14257 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14258 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
14259 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 ac_wine_try_cflags_saved=$CFLAGS
14263 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
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. */
14272 main ()
14276 return 0;
14278 _ACEOF
14279 rm -f conftest.$ac_objext conftest$ac_exeext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14281 (eval $ac_link) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest$ac_exeext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_cv_ld_reloc_exec="yes"
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_ld_reloc_exec="no"
14307 rm -f conftest.err conftest.$ac_objext \
14308 conftest$ac_exeext conftest.$ac_ext
14309 CFLAGS=$ac_wine_try_cflags_saved
14311 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14312 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14313 if test "$ac_cv_ld_reloc_exec" = "yes"
14314 then
14315 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14318 esac
14320 else
14321 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14322 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14323 if test "${ac_cv_c_dll_unixware+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 ac_wine_try_cflags_saved=$CFLAGS
14327 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14328 cat >conftest.$ac_ext <<_ACEOF
14329 void myfunc() {}
14330 _ACEOF
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333 (eval $ac_link) 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } &&
14346 { ac_try='test -s conftest$ac_exeext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_cv_c_dll_unixware="yes"
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_cv_c_dll_unixware="no"
14359 rm -f conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
14361 CFLAGS=$ac_wine_try_cflags_saved
14363 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14364 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14365 if test "$ac_cv_c_dll_unixware" = "yes"
14366 then
14367 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14368 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14370 else
14371 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14372 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14373 if test "${ac_cv_c_dll_macho+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 ac_wine_try_cflags_saved=$CFLAGS
14377 CFLAGS="$CFLAGS -bundle"
14378 cat >conftest.$ac_ext <<_ACEOF
14379 void myfunc() {}
14380 _ACEOF
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest$ac_exeext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_cv_c_dll_macho="yes"
14403 else
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_cv_c_dll_macho="no"
14409 rm -f conftest.err conftest.$ac_objext \
14410 conftest$ac_exeext conftest.$ac_ext
14411 CFLAGS=$ac_wine_try_cflags_saved
14413 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14414 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14415 if test "$ac_cv_c_dll_macho" = "yes"
14416 then
14417 LIBEXT="dylib"
14418 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14419 LDSHARED="\$(CC) -dynamiclib"
14420 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14421 STRIP="$STRIP -u -r"
14422 LDEXECFLAGS="-seg1addr 0x120000"
14424 LDLIBWINEFLAGS="-seg1addr 0x140000"
14426 COREFOUNDATIONLIB="-framework CoreFoundation"
14428 IOKITLIB="-framework IOKit"
14430 IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14431 else
14432 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14433 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14434 if test "${ac_cv_c_dll_hpux+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 ac_wine_try_cflags_saved=$CFLAGS
14438 CFLAGS="$CFLAGS -shared"
14439 cat >conftest.$ac_ext <<_ACEOF
14440 void myfunc() {}
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14457 { ac_try='test -s conftest$ac_exeext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14463 ac_cv_c_dll_hpux="yes"
14464 else
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_cv_c_dll_hpux="no"
14470 rm -f conftest.err conftest.$ac_objext \
14471 conftest$ac_exeext conftest.$ac_ext
14472 CFLAGS=$ac_wine_try_cflags_saved
14474 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14475 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14476 if test "$ac_cv_c_dll_hpux" = "yes"
14477 then
14478 LIBEXT="sl"
14479 DLLEXT=".sl"
14480 LDDLLFLAGS="-shared -fPIC"
14481 LDSHARED="\$(CC) -shared"
14488 CROSSTEST=""
14490 if test "$cross_compiling" = "no"
14491 then
14492 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14494 # Extract the first word of "$ac_prog", so it can be a program name with args.
14495 set dummy $ac_prog; ac_word=$2
14496 echo "$as_me:$LINENO: checking for $ac_word" >&5
14497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14498 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501 if test -n "$CROSSCC"; then
14502 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14503 else
14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505 for as_dir in $PATH
14507 IFS=$as_save_IFS
14508 test -z "$as_dir" && as_dir=.
14509 for ac_exec_ext in '' $ac_executable_extensions; do
14510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14511 ac_cv_prog_CROSSCC="$ac_prog"
14512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14513 break 2
14515 done
14516 done
14520 CROSSCC=$ac_cv_prog_CROSSCC
14521 if test -n "$CROSSCC"; then
14522 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14523 echo "${ECHO_T}$CROSSCC" >&6
14524 else
14525 echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6
14529 test -n "$CROSSCC" && break
14530 done
14531 test -n "$CROSSCC" || CROSSCC="false"
14533 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14535 # Extract the first word of "$ac_prog", so it can be a program name with args.
14536 set dummy $ac_prog; ac_word=$2
14537 echo "$as_me:$LINENO: checking for $ac_word" >&5
14538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14539 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 if test -n "$DLLTOOL"; then
14543 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14544 else
14545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14548 IFS=$as_save_IFS
14549 test -z "$as_dir" && as_dir=.
14550 for ac_exec_ext in '' $ac_executable_extensions; do
14551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14552 ac_cv_prog_DLLTOOL="$ac_prog"
14553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14554 break 2
14556 done
14557 done
14561 DLLTOOL=$ac_cv_prog_DLLTOOL
14562 if test -n "$DLLTOOL"; then
14563 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14564 echo "${ECHO_T}$DLLTOOL" >&6
14565 else
14566 echo "$as_me:$LINENO: result: no" >&5
14567 echo "${ECHO_T}no" >&6
14570 test -n "$DLLTOOL" && break
14571 done
14572 test -n "$DLLTOOL" || DLLTOOL="false"
14574 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14576 # Extract the first word of "$ac_prog", so it can be a program name with args.
14577 set dummy $ac_prog; ac_word=$2
14578 echo "$as_me:$LINENO: checking for $ac_word" >&5
14579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14580 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583 if test -n "$CROSSWINDRES"; then
14584 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14585 else
14586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14587 for as_dir in $PATH
14589 IFS=$as_save_IFS
14590 test -z "$as_dir" && as_dir=.
14591 for ac_exec_ext in '' $ac_executable_extensions; do
14592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14593 ac_cv_prog_CROSSWINDRES="$ac_prog"
14594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14595 break 2
14597 done
14598 done
14602 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14603 if test -n "$CROSSWINDRES"; then
14604 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14605 echo "${ECHO_T}$CROSSWINDRES" >&6
14606 else
14607 echo "$as_me:$LINENO: result: no" >&5
14608 echo "${ECHO_T}no" >&6
14611 test -n "$CROSSWINDRES" && break
14612 done
14613 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14615 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14618 esac
14620 if test "$LIBEXT" = "a"; then
14621 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14622 It is currently not possible to build Wine without shared library
14623 (.so) support to allow transparent switch between .so and .dll files.
14624 If you are using Linux, you will need a newer binutils.
14625 " >&5
14626 echo "$as_me: error: could not find a way to build shared libraries.
14627 It is currently not possible to build Wine without shared library
14628 (.so) support to allow transparent switch between .so and .dll files.
14629 If you are using Linux, you will need a newer binutils.
14630 " >&2;}
14631 { (exit 1); exit 1; }; }
14634 case $build_os in
14635 cygwin*|mingw32*)
14636 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14638 darwin*|macosx*)
14639 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14642 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14644 esac
14646 case $host_os in
14647 mingw32*)
14648 CRTLIBS="-lmsvcrt"
14650 SOCKETLIBS="-lws2_32"
14653 esac
14655 case $host_os in
14656 linux*)
14657 case $host_cpu in
14658 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14660 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14662 esac
14663 MAIN_BINARY="wine-glibc"
14666 darwin*)
14667 WINE_BINARIES="wine-pthread"
14669 MAIN_BINARY="wine-pthread"
14673 WINE_BINARIES="wine-kthread"
14675 MAIN_BINARY="wine-kthread"
14678 esac
14681 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14682 then
14683 # Extract the first word of "ldd", so it can be a program name with args.
14684 set dummy ldd; ac_word=$2
14685 echo "$as_me:$LINENO: checking for $ac_word" >&5
14686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14687 if test "${ac_cv_path_LDD+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690 case $LDD in
14691 [\\/]* | ?:[\\/]*)
14692 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14696 as_dummy="/sbin:/usr/sbin:$PATH"
14697 for as_dir in $as_dummy
14699 IFS=$as_save_IFS
14700 test -z "$as_dir" && as_dir=.
14701 for ac_exec_ext in '' $ac_executable_extensions; do
14702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14703 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14705 break 2
14707 done
14708 done
14710 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14712 esac
14714 LDD=$ac_cv_path_LDD
14716 if test -n "$LDD"; then
14717 echo "$as_me:$LINENO: result: $LDD" >&5
14718 echo "${ECHO_T}$LDD" >&6
14719 else
14720 echo "$as_me:$LINENO: result: no" >&5
14721 echo "${ECHO_T}no" >&6
14725 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14726 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14727 if test "${ac_cv_lib_soname_X11+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730 ac_get_soname_save_LIBS=$LIBS
14731 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14739 /* Override any gcc2 internal prototype to avoid an error. */
14740 #ifdef __cplusplus
14741 extern "C"
14742 #endif
14743 /* We use char because int might match the return type of a gcc2
14744 builtin and then its argument prototype would still apply. */
14745 char XCreateWindow ();
14747 main ()
14749 XCreateWindow ();
14751 return 0;
14753 _ACEOF
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756 (eval $ac_link) 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest$ac_exeext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14776 if test "x$ac_cv_lib_soname_X11" = "x"
14777 then
14778 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14780 else
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14786 rm -f conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14788 LIBS=$ac_get_soname_save_LIBS
14790 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14791 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14792 if test "x$ac_cv_lib_soname_X11" != xNONE
14793 then
14794 cat >>confdefs.h <<_ACEOF
14795 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14796 _ACEOF
14799 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14800 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14801 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 ac_get_soname_save_LIBS=$LIBS
14805 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14813 /* Override any gcc2 internal prototype to avoid an error. */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 /* We use char because int might match the return type of a gcc2
14818 builtin and then its argument prototype would still apply. */
14819 char XextCreateExtension ();
14821 main ()
14823 XextCreateExtension ();
14825 return 0;
14827 _ACEOF
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14830 (eval $ac_link) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest$ac_exeext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14850 if test "x$ac_cv_lib_soname_Xext" = "x"
14851 then
14852 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14854 else
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14860 rm -f conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LIBS=$ac_get_soname_save_LIBS
14864 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14865 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14866 if test "x$ac_cv_lib_soname_Xext" != xNONE
14867 then
14868 cat >>confdefs.h <<_ACEOF
14869 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14870 _ACEOF
14873 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14874 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14875 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878 ac_get_soname_save_LIBS=$LIBS
14879 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any gcc2 internal prototype to avoid an error. */
14888 #ifdef __cplusplus
14889 extern "C"
14890 #endif
14891 /* We use char because int might match the return type of a gcc2
14892 builtin and then its argument prototype would still apply. */
14893 char XOpenDevice ();
14895 main ()
14897 XOpenDevice ();
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14904 (eval $ac_link) 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
14924 if test "x$ac_cv_lib_soname_Xi" = "x"
14925 then
14926 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14934 rm -f conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
14936 LIBS=$ac_get_soname_save_LIBS
14938 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14939 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14940 if test "x$ac_cv_lib_soname_Xi" != xNONE
14941 then
14942 cat >>confdefs.h <<_ACEOF
14943 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14944 _ACEOF
14947 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14948 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14949 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 ac_get_soname_save_LIBS=$LIBS
14953 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967 char XRenderQueryExtension ();
14969 main ()
14971 XRenderQueryExtension ();
14973 return 0;
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978 (eval $ac_link) 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
14998 if test "x$ac_cv_lib_soname_Xrender" = "x"
14999 then
15000 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15002 else
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15008 rm -f conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext conftest.$ac_ext
15010 LIBS=$ac_get_soname_save_LIBS
15012 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15013 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15014 if test "x$ac_cv_lib_soname_Xrender" != xNONE
15015 then
15016 cat >>confdefs.h <<_ACEOF
15017 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15018 _ACEOF
15021 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15022 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
15023 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 ac_get_soname_save_LIBS=$LIBS
15027 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 /* Override any gcc2 internal prototype to avoid an error. */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15041 char XRRQueryExtension ();
15043 main ()
15045 XRRQueryExtension ();
15047 return 0;
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15052 (eval $ac_link) 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest$ac_exeext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
15072 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15073 then
15074 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15082 rm -f conftest.err conftest.$ac_objext \
15083 conftest$ac_exeext conftest.$ac_ext
15084 LIBS=$ac_get_soname_save_LIBS
15086 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15087 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
15088 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
15089 then
15090 cat >>confdefs.h <<_ACEOF
15091 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15092 _ACEOF
15095 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15096 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15097 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100 ac_get_soname_save_LIBS=$LIBS
15101 LIBS="-lfreetype $X_LIBS $LIBS"
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 /* Override any gcc2 internal prototype to avoid an error. */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 /* We use char because int might match the return type of a gcc2
15114 builtin and then its argument prototype would still apply. */
15115 char FT_Init_FreeType ();
15117 main ()
15119 FT_Init_FreeType ();
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126 (eval $ac_link) 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
15146 if test "x$ac_cv_lib_soname_freetype" = "x"
15147 then
15148 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15156 rm -f conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158 LIBS=$ac_get_soname_save_LIBS
15160 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15161 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15162 if test "x$ac_cv_lib_soname_freetype" != xNONE
15163 then
15164 cat >>confdefs.h <<_ACEOF
15165 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15166 _ACEOF
15169 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15170 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15171 if test "${ac_cv_lib_soname_GL+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174 ac_get_soname_save_LIBS=$LIBS
15175 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any gcc2 internal prototype to avoid an error. */
15184 #ifdef __cplusplus
15185 extern "C"
15186 #endif
15187 /* We use char because int might match the return type of a gcc2
15188 builtin and then its argument prototype would still apply. */
15189 char glXQueryExtension ();
15191 main ()
15193 glXQueryExtension ();
15195 return 0;
15197 _ACEOF
15198 rm -f conftest.$ac_objext conftest$ac_exeext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15200 (eval $ac_link) 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } &&
15207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest$ac_exeext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
15220 if test "x$ac_cv_lib_soname_GL" = "x"
15221 then
15222 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15230 rm -f conftest.err conftest.$ac_objext \
15231 conftest$ac_exeext conftest.$ac_ext
15232 LIBS=$ac_get_soname_save_LIBS
15234 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15235 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15236 if test "x$ac_cv_lib_soname_GL" != xNONE
15237 then
15238 cat >>confdefs.h <<_ACEOF
15239 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15240 _ACEOF
15243 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15244 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
15245 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248 ac_get_soname_save_LIBS=$LIBS
15249 LIBS="-ltxc_dxtn $LIBS"
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any gcc2 internal prototype to avoid an error. */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15263 char fetch_2d_texel_rgba_dxt1 ();
15265 main ()
15267 fetch_2d_texel_rgba_dxt1 ();
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274 (eval $ac_link) 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest$ac_exeext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
15294 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15295 then
15296 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15304 rm -f conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15306 LIBS=$ac_get_soname_save_LIBS
15308 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15309 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15310 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15311 then
15312 cat >>confdefs.h <<_ACEOF
15313 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15314 _ACEOF
15317 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15318 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15319 if test "${ac_cv_lib_soname_cups+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322 ac_get_soname_save_LIBS=$LIBS
15323 LIBS="-lcups $LIBS"
15324 cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h. */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15331 /* Override any gcc2 internal prototype to avoid an error. */
15332 #ifdef __cplusplus
15333 extern "C"
15334 #endif
15335 /* We use char because int might match the return type of a gcc2
15336 builtin and then its argument prototype would still apply. */
15337 char cupsGetDefault ();
15339 main ()
15341 cupsGetDefault ();
15343 return 0;
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
15368 if test "x$ac_cv_lib_soname_cups" = "x"
15369 then
15370 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15372 else
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15378 rm -f conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_get_soname_save_LIBS
15382 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15383 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15384 if test "x$ac_cv_lib_soname_cups" != xNONE
15385 then
15386 cat >>confdefs.h <<_ACEOF
15387 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15388 _ACEOF
15391 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15392 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15393 if test "${ac_cv_lib_soname_jack+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 ac_get_soname_save_LIBS=$LIBS
15397 LIBS="-ljack $LIBS"
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15405 /* Override any gcc2 internal prototype to avoid an error. */
15406 #ifdef __cplusplus
15407 extern "C"
15408 #endif
15409 /* We use char because int might match the return type of a gcc2
15410 builtin and then its argument prototype would still apply. */
15411 char jack_client_new ();
15413 main ()
15415 jack_client_new ();
15417 return 0;
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest$ac_exeext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15442 if test "x$ac_cv_lib_soname_jack" = "x"
15443 then
15444 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15446 else
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15452 rm -f conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454 LIBS=$ac_get_soname_save_LIBS
15456 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15457 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15458 if test "x$ac_cv_lib_soname_jack" != xNONE
15459 then
15460 cat >>confdefs.h <<_ACEOF
15461 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15462 _ACEOF
15465 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15466 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15467 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470 ac_get_soname_save_LIBS=$LIBS
15471 LIBS="-lfontconfig $LIBS"
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15479 /* Override any gcc2 internal prototype to avoid an error. */
15480 #ifdef __cplusplus
15481 extern "C"
15482 #endif
15483 /* We use char because int might match the return type of a gcc2
15484 builtin and then its argument prototype would still apply. */
15485 char FcInit ();
15487 main ()
15489 FcInit ();
15491 return 0;
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15516 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15517 then
15518 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15520 else
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15526 rm -f conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_get_soname_save_LIBS
15530 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15531 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15532 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15533 then
15534 cat >>confdefs.h <<_ACEOF
15535 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15536 _ACEOF
15539 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15540 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15541 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544 ac_get_soname_save_LIBS=$LIBS
15545 LIBS="-lssl $LIBS"
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h. */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15553 /* Override any gcc2 internal prototype to avoid an error. */
15554 #ifdef __cplusplus
15555 extern "C"
15556 #endif
15557 /* We use char because int might match the return type of a gcc2
15558 builtin and then its argument prototype would still apply. */
15559 char SSL_library_init ();
15561 main ()
15563 SSL_library_init ();
15565 return 0;
15567 _ACEOF
15568 rm -f conftest.$ac_objext conftest$ac_exeext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15590 if test "x$ac_cv_lib_soname_ssl" = "x"
15591 then
15592 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15594 else
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15600 rm -f conftest.err conftest.$ac_objext \
15601 conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_get_soname_save_LIBS
15604 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15605 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15606 if test "x$ac_cv_lib_soname_ssl" != xNONE
15607 then
15608 cat >>confdefs.h <<_ACEOF
15609 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15610 _ACEOF
15613 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15614 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15615 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618 ac_get_soname_save_LIBS=$LIBS
15619 LIBS="-lcrypto $LIBS"
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any gcc2 internal prototype to avoid an error. */
15628 #ifdef __cplusplus
15629 extern "C"
15630 #endif
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15633 char BIO_new_socket ();
15635 main ()
15637 BIO_new_socket ();
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15657 { ac_try='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15664 if test "x$ac_cv_lib_soname_crypto" = "x"
15665 then
15666 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15668 else
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15674 rm -f conftest.err conftest.$ac_objext \
15675 conftest$ac_exeext conftest.$ac_ext
15676 LIBS=$ac_get_soname_save_LIBS
15678 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15679 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15680 if test "x$ac_cv_lib_soname_crypto" != xNONE
15681 then
15682 cat >>confdefs.h <<_ACEOF
15683 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15684 _ACEOF
15687 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15688 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15689 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692 ac_get_soname_save_LIBS=$LIBS
15693 LIBS="-lncurses $LIBS"
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h. */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15701 /* Override any gcc2 internal prototype to avoid an error. */
15702 #ifdef __cplusplus
15703 extern "C"
15704 #endif
15705 /* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707 char waddch ();
15709 main ()
15711 waddch ();
15713 return 0;
15715 _ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15738 if test "x$ac_cv_lib_soname_ncurses" = "x"
15739 then
15740 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15748 rm -f conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
15750 LIBS=$ac_get_soname_save_LIBS
15752 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15753 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15754 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15755 then
15756 cat >>confdefs.h <<_ACEOF
15757 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15758 _ACEOF
15761 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15762 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15763 if test "${ac_cv_lib_soname_curses+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766 ac_get_soname_save_LIBS=$LIBS
15767 LIBS="-lcurses $LIBS"
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h. */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 /* Override any gcc2 internal prototype to avoid an error. */
15776 #ifdef __cplusplus
15777 extern "C"
15778 #endif
15779 /* We use char because int might match the return type of a gcc2
15780 builtin and then its argument prototype would still apply. */
15781 char waddch ();
15783 main ()
15785 waddch ();
15787 return 0;
15789 _ACEOF
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>conftest.er1
15793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest$ac_exeext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15812 if test "x$ac_cv_lib_soname_curses" = "x"
15813 then
15814 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15822 rm -f conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_get_soname_save_LIBS
15826 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15827 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15828 if test "x$ac_cv_lib_soname_curses" != xNONE
15829 then
15830 cat >>confdefs.h <<_ACEOF
15831 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15832 _ACEOF
15835 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15836 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15837 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840 ac_get_soname_save_LIBS=$LIBS
15841 LIBS="-ljpeg $LIBS"
15842 cat >conftest.$ac_ext <<_ACEOF
15843 /* confdefs.h. */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15849 /* Override any gcc2 internal prototype to avoid an error. */
15850 #ifdef __cplusplus
15851 extern "C"
15852 #endif
15853 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15855 char jpeg_start_decompress ();
15857 main ()
15859 jpeg_start_decompress ();
15861 return 0;
15863 _ACEOF
15864 rm -f conftest.$ac_objext conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; } &&
15879 { ac_try='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15886 if test "x$ac_cv_lib_soname_jpeg" = "x"
15887 then
15888 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15890 else
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15896 rm -f conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext conftest.$ac_ext
15898 LIBS=$ac_get_soname_save_LIBS
15900 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15901 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15902 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15903 then
15904 cat >>confdefs.h <<_ACEOF
15905 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15906 _ACEOF
15909 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15910 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15911 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 ac_get_soname_save_LIBS=$LIBS
15915 LIBS="-lungif $LIBS"
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15923 /* Override any gcc2 internal prototype to avoid an error. */
15924 #ifdef __cplusplus
15925 extern "C"
15926 #endif
15927 /* We use char because int might match the return type of a gcc2
15928 builtin and then its argument prototype would still apply. */
15929 char DGifOpen ();
15931 main ()
15933 DGifOpen ();
15935 return 0;
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest$ac_exeext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15960 if test "x$ac_cv_lib_soname_ungif" = "x"
15961 then
15962 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15964 else
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15970 rm -f conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972 LIBS=$ac_get_soname_save_LIBS
15974 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15975 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15976 if test "x$ac_cv_lib_soname_ungif" != xNONE
15977 then
15978 cat >>confdefs.h <<_ACEOF
15979 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15980 _ACEOF
15983 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15984 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15985 if test "${ac_cv_lib_soname_gif+set}" = set; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988 ac_get_soname_save_LIBS=$LIBS
15989 LIBS="-lgif $LIBS"
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15997 /* Override any gcc2 internal prototype to avoid an error. */
15998 #ifdef __cplusplus
15999 extern "C"
16000 #endif
16001 /* We use char because int might match the return type of a gcc2
16002 builtin and then its argument prototype would still apply. */
16003 char DGifOpen ();
16005 main ()
16007 DGifOpen ();
16009 return 0;
16011 _ACEOF
16012 rm -f conftest.$ac_objext conftest$ac_exeext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16014 (eval $ac_link) 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest$ac_exeext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
16034 if test "x$ac_cv_lib_soname_gif" = "x"
16035 then
16036 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16038 else
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16044 rm -f conftest.err conftest.$ac_objext \
16045 conftest$ac_exeext conftest.$ac_ext
16046 LIBS=$ac_get_soname_save_LIBS
16048 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
16049 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
16050 if test "x$ac_cv_lib_soname_gif" != xNONE
16051 then
16052 cat >>confdefs.h <<_ACEOF
16053 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
16054 _ACEOF
16057 echo "$as_me:$LINENO: checking for -llcms soname" >&5
16058 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
16059 if test "${ac_cv_lib_soname_lcms+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062 ac_get_soname_save_LIBS=$LIBS
16063 LIBS="-llcms $LIBS"
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16071 /* Override any gcc2 internal prototype to avoid an error. */
16072 #ifdef __cplusplus
16073 extern "C"
16074 #endif
16075 /* We use char because int might match the return type of a gcc2
16076 builtin and then its argument prototype would still apply. */
16077 char cmsOpenProfileFromFile ();
16079 main ()
16081 cmsOpenProfileFromFile ();
16083 return 0;
16085 _ACEOF
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16088 (eval $ac_link) 2>conftest.er1
16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } &&
16095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest$ac_exeext'
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
16108 if test "x$ac_cv_lib_soname_lcms" = "x"
16109 then
16110 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
16118 rm -f conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120 LIBS=$ac_get_soname_save_LIBS
16122 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
16123 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
16124 if test "x$ac_cv_lib_soname_lcms" != xNONE
16125 then
16126 cat >>confdefs.h <<_ACEOF
16127 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
16128 _ACEOF
16134 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16135 # for constant arguments. Useless!
16136 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16137 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16138 if test "${ac_cv_working_alloca_h+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 #include <alloca.h>
16149 main ()
16151 char *p = (char *) alloca (2 * sizeof (int));
16153 return 0;
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest$ac_exeext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_working_alloca_h=yes
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 ac_cv_working_alloca_h=no
16184 rm -f conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16187 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16188 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16189 if test $ac_cv_working_alloca_h = yes; then
16191 cat >>confdefs.h <<\_ACEOF
16192 #define HAVE_ALLOCA_H 1
16193 _ACEOF
16197 echo "$as_me:$LINENO: checking for alloca" >&5
16198 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16199 if test "${ac_cv_func_alloca_works+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202 cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h. */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 #ifdef __GNUC__
16209 # define alloca __builtin_alloca
16210 #else
16211 # ifdef _MSC_VER
16212 # include <malloc.h>
16213 # define alloca _alloca
16214 # else
16215 # if HAVE_ALLOCA_H
16216 # include <alloca.h>
16217 # else
16218 # ifdef _AIX
16219 #pragma alloca
16220 # else
16221 # ifndef alloca /* predefined by HP cc +Olibcalls */
16222 char *alloca ();
16223 # endif
16224 # endif
16225 # endif
16226 # endif
16227 #endif
16230 main ()
16232 char *p = (char *) alloca (1);
16234 return 0;
16236 _ACEOF
16237 rm -f conftest.$ac_objext conftest$ac_exeext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16239 (eval $ac_link) 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest$ac_exeext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_func_alloca_works=yes
16259 else
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 ac_cv_func_alloca_works=no
16265 rm -f conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16268 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16269 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16271 if test $ac_cv_func_alloca_works = yes; then
16273 cat >>confdefs.h <<\_ACEOF
16274 #define HAVE_ALLOCA 1
16275 _ACEOF
16277 else
16278 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16279 # that cause trouble. Some versions do not even contain alloca or
16280 # contain a buggy version. If you still want to use their alloca,
16281 # use ar to extract alloca.o from them instead of compiling alloca.c.
16283 ALLOCA=alloca.$ac_objext
16285 cat >>confdefs.h <<\_ACEOF
16286 #define C_ALLOCA 1
16287 _ACEOF
16290 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16291 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16292 if test "${ac_cv_os_cray+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295 cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h. */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16301 #if defined(CRAY) && ! defined(CRAY2)
16302 webecray
16303 #else
16304 wenotbecray
16305 #endif
16307 _ACEOF
16308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16309 $EGREP "webecray" >/dev/null 2>&1; then
16310 ac_cv_os_cray=yes
16311 else
16312 ac_cv_os_cray=no
16314 rm -f conftest*
16317 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16318 echo "${ECHO_T}$ac_cv_os_cray" >&6
16319 if test $ac_cv_os_cray = yes; then
16320 for ac_func in _getb67 GETB67 getb67; do
16321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_func" >&5
16323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_var+set}\" = set"; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16335 #define $ac_func innocuous_$ac_func
16337 /* System header to define __stub macros and hopefully few prototypes,
16338 which can conflict with char $ac_func (); below.
16339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16340 <limits.h> exists even on freestanding compilers. */
16342 #ifdef __STDC__
16343 # include <limits.h>
16344 #else
16345 # include <assert.h>
16346 #endif
16348 #undef $ac_func
16350 /* Override any gcc2 internal prototype to avoid an error. */
16351 #ifdef __cplusplus
16352 extern "C"
16354 #endif
16355 /* We use char because int might match the return type of a gcc2
16356 builtin and then its argument prototype would still apply. */
16357 char $ac_func ();
16358 /* The GNU C library defines this for functions which it implements
16359 to always fail with ENOSYS. Some functions are actually named
16360 something starting with __ and the normal name is an alias. */
16361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16362 choke me
16363 #else
16364 char (*f) () = $ac_func;
16365 #endif
16366 #ifdef __cplusplus
16368 #endif
16371 main ()
16373 return f != $ac_func;
16375 return 0;
16377 _ACEOF
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380 (eval $ac_link) 2>conftest.er1
16381 ac_status=$?
16382 grep -v '^ *+' conftest.er1 >conftest.err
16383 rm -f conftest.er1
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
16387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } &&
16393 { ac_try='test -s conftest$ac_exeext'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 eval "$as_ac_var=yes"
16400 else
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 eval "$as_ac_var=no"
16406 rm -f conftest.err conftest.$ac_objext \
16407 conftest$ac_exeext conftest.$ac_ext
16409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16411 if test `eval echo '${'$as_ac_var'}'` = yes; then
16413 cat >>confdefs.h <<_ACEOF
16414 #define CRAY_STACKSEG_END $ac_func
16415 _ACEOF
16417 break
16420 done
16423 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16424 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16425 if test "${ac_cv_c_stack_direction+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428 if test "$cross_compiling" = yes; then
16429 ac_cv_c_stack_direction=0
16430 else
16431 cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h. */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16438 find_stack_direction ()
16440 static char *addr = 0;
16441 auto char dummy;
16442 if (addr == 0)
16444 addr = &dummy;
16445 return find_stack_direction ();
16447 else
16448 return (&dummy > addr) ? 1 : -1;
16452 main ()
16454 exit (find_stack_direction () < 0);
16456 _ACEOF
16457 rm -f conftest$ac_exeext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16459 (eval $ac_link) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468 ac_cv_c_stack_direction=1
16469 else
16470 echo "$as_me: program exited with status $ac_status" >&5
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ( exit $ac_status )
16475 ac_cv_c_stack_direction=-1
16477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16480 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16481 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16483 cat >>confdefs.h <<_ACEOF
16484 #define STACK_DIRECTION $ac_cv_c_stack_direction
16485 _ACEOF
16552 for ac_func in \
16553 _lwp_create \
16554 _lwp_self \
16555 _pclose \
16556 _popen \
16557 _snprintf \
16558 _spawnvp \
16559 _stricmp \
16560 _strnicmp \
16561 _vsnprintf \
16562 chsize \
16563 clone \
16564 epoll_create \
16565 ffs \
16566 finite \
16567 fork \
16568 fpclass \
16569 fstatfs \
16570 fstatvfs \
16571 ftruncate \
16572 ftruncate64 \
16573 futimes \
16574 getnetbyaddr \
16575 getnetbyname \
16576 getopt_long \
16577 getpagesize \
16578 getprotobyname \
16579 getprotobynumber \
16580 getpwuid \
16581 getservbyport \
16582 gettid \
16583 gettimeofday \
16584 getuid \
16585 inet_network \
16586 lseek64 \
16587 lstat \
16588 memmove \
16589 mmap \
16590 pclose \
16591 popen \
16592 pread \
16593 pwrite \
16594 readlink \
16595 rfork \
16596 sched_yield \
16597 select \
16598 sendmsg \
16599 settimeofday \
16600 sigaltstack \
16601 snprintf \
16602 spawnvp \
16603 statfs \
16604 statvfs \
16605 strcasecmp \
16606 strerror \
16607 strncasecmp \
16608 tcgetattr \
16609 timegm \
16610 usleep \
16611 vfscanf \
16612 vsnprintf \
16613 wait4 \
16614 waitpid \
16617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16618 echo "$as_me:$LINENO: checking for $ac_func" >&5
16619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620 if eval "test \"\${$as_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 cat >conftest.$ac_ext <<_ACEOF
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16631 #define $ac_func innocuous_$ac_func
16633 /* System header to define __stub macros and hopefully few prototypes,
16634 which can conflict with char $ac_func (); below.
16635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16636 <limits.h> exists even on freestanding compilers. */
16638 #ifdef __STDC__
16639 # include <limits.h>
16640 #else
16641 # include <assert.h>
16642 #endif
16644 #undef $ac_func
16646 /* Override any gcc2 internal prototype to avoid an error. */
16647 #ifdef __cplusplus
16648 extern "C"
16650 #endif
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16653 char $ac_func ();
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658 choke me
16659 #else
16660 char (*f) () = $ac_func;
16661 #endif
16662 #ifdef __cplusplus
16664 #endif
16667 main ()
16669 return f != $ac_func;
16671 return 0;
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest$ac_exeext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_var=yes"
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 eval "$as_ac_var=no"
16702 rm -f conftest.err conftest.$ac_objext \
16703 conftest$ac_exeext conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16707 if test `eval echo '${'$as_ac_var'}'` = yes; then
16708 cat >>confdefs.h <<_ACEOF
16709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16710 _ACEOF
16713 done
16719 for ac_header in sys/mount.h sys/user.h
16721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16722 echo "$as_me:$LINENO: checking for $ac_header" >&5
16723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 #include <sys/types.h>
16734 #if HAVE_SYS_PARAM_H
16735 # include <sys/param.h>
16736 #endif
16738 #include <$ac_header>
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest.$ac_objext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 eval "$as_ac_Header=yes"
16762 else
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 eval "$as_ac_Header=no"
16768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16773 cat >>confdefs.h <<_ACEOF
16774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16775 _ACEOF
16779 done
16787 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16790 echo "$as_me:$LINENO: checking for $ac_header" >&5
16791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795 cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h. */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16801 #include <sys/types.h>
16802 #if HAVE_SYS_SOCKET_H
16803 # include <sys/socket.h>
16804 #endif
16806 #include <$ac_header>
16807 _ACEOF
16808 rm -f conftest.$ac_objext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 (eval $ac_compile) 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 eval "$as_ac_Header=yes"
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 eval "$as_ac_Header=no"
16836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16841 cat >>confdefs.h <<_ACEOF
16842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 _ACEOF
16847 done
16851 for ac_header in resolv.h
16853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854 echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <sys/types.h>
16866 #if HAVE_SYS_SOCKET_H
16867 # include <sys/socket.h>
16868 #endif
16869 #if HAVE_NETINET_IN_H
16870 # include <netinet/in.h>
16871 #endif
16872 #if HAVE_ARPA_NAMESER_H
16873 # include <arpa/nameser.h>
16874 #endif
16876 #include <$ac_header>
16877 _ACEOF
16878 rm -f conftest.$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 eval "$as_ac_Header=yes"
16900 else
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 eval "$as_ac_Header=no"
16906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16913 _ACEOF
16917 done
16921 for ac_header in netinet/ip.h
16923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16924 echo "$as_me:$LINENO: checking for $ac_header" >&5
16925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 else
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 #include <sys/types.h>
16936 #if HAVE_SYS_SOCKET_H
16937 # include <sys/socket.h>
16938 #endif
16939 #if HAVE_NETINET_IN_SYSTM_H
16940 # include <netinet/in_systm.h>
16941 #endif
16943 #include <$ac_header>
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947 (eval $ac_compile) 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 eval "$as_ac_Header=yes"
16967 else
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 eval "$as_ac_Header=no"
16973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16980 _ACEOF
16984 done
16988 for ac_header in ucontext.h
16990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16991 echo "$as_me:$LINENO: checking for $ac_header" >&5
16992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <signal.h>
17004 #include <$ac_header>
17005 _ACEOF
17006 rm -f conftest.$ac_objext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008 (eval $ac_compile) 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 eval "$as_ac_Header=yes"
17028 else
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 eval "$as_ac_Header=no"
17034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17039 cat >>confdefs.h <<_ACEOF
17040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17041 _ACEOF
17045 done
17049 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17050 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17051 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <sys/types.h>
17061 #ifdef HAVE_SYS_SOCKET_H
17062 # include <sys/socket.h>
17063 #endif
17064 #include <netipx/ipx.h>
17066 main ()
17068 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17070 return 0;
17072 _ACEOF
17073 rm -f conftest.$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075 (eval $ac_compile) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest.$ac_objext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_c_ipx_gnu="yes"
17095 else
17096 echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_cv_c_ipx_gnu="no"
17101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17104 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17105 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17106 if test "$ac_cv_c_ipx_gnu" = "yes"
17107 then
17109 cat >>confdefs.h <<\_ACEOF
17110 #define HAVE_IPX_GNU 1
17111 _ACEOF
17115 if test "$ac_cv_c_ipx_gnu" = "no"
17116 then
17117 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17118 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17119 if test "${ac_cv_c_ipx_linux+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121 else
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 #include <sys/types.h>
17129 #ifdef HAVE_SYS_SOCKET_H
17130 # include <sys/socket.h>
17131 #endif
17132 #include <asm/types.h>
17133 #include <linux/ipx.h>
17135 main ()
17137 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17139 return 0;
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17144 (eval $ac_compile) 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
17151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; } &&
17157 { ac_try='test -s conftest.$ac_objext'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 ac_cv_c_ipx_linux="yes"
17164 else
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168 ac_cv_c_ipx_linux="no"
17170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17173 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17174 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17175 if test "$ac_cv_c_ipx_linux" = "yes"
17176 then
17178 cat >>confdefs.h <<\_ACEOF
17179 #define HAVE_IPX_LINUX 1
17180 _ACEOF
17186 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17187 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17188 if test "${ac_cv_c_const+set}" = set; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 else
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17199 main ()
17201 /* FIXME: Include the comments suggested by Paul. */
17202 #ifndef __cplusplus
17203 /* Ultrix mips cc rejects this. */
17204 typedef int charset[2];
17205 const charset x;
17206 /* SunOS 4.1.1 cc rejects this. */
17207 char const *const *ccp;
17208 char **p;
17209 /* NEC SVR4.0.2 mips cc rejects this. */
17210 struct point {int x, y;};
17211 static struct point const zero = {0,0};
17212 /* AIX XL C 1.02.0.0 rejects this.
17213 It does not let you subtract one const X* pointer from another in
17214 an arm of an if-expression whose if-part is not a constant
17215 expression */
17216 const char *g = "string";
17217 ccp = &g + (g ? g-g : 0);
17218 /* HPUX 7.0 cc rejects these. */
17219 ++ccp;
17220 p = (char**) ccp;
17221 ccp = (char const *const *) p;
17222 { /* SCO 3.2v4 cc rejects this. */
17223 char *t;
17224 char const *s = 0 ? (char *) 0 : (char const *) 0;
17226 *t++ = 0;
17228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17229 int x[] = {25, 17};
17230 const int *foo = &x[0];
17231 ++foo;
17233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17234 typedef const int *iptr;
17235 iptr p = 0;
17236 ++p;
17238 { /* AIX XL C 1.02.0.0 rejects this saying
17239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17240 struct s { int j; const int *ap[3]; };
17241 struct s *b; b->j = 5;
17243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17244 const int foo = 10;
17246 #endif
17249 return 0;
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>conftest.er1
17255 ac_status=$?
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_cv_c_const=yes
17274 else
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_c_const=no
17280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17283 echo "${ECHO_T}$ac_cv_c_const" >&6
17284 if test $ac_cv_c_const = no; then
17286 cat >>confdefs.h <<\_ACEOF
17287 #define const
17288 _ACEOF
17292 echo "$as_me:$LINENO: checking for inline" >&5
17293 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17294 if test "${ac_cv_c_inline+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 ac_cv_c_inline=no
17298 for ac_kw in inline __inline__ __inline; do
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 #ifndef __cplusplus
17306 typedef int foo_t;
17307 static $ac_kw foo_t static_foo () {return 0; }
17308 $ac_kw foo_t foo () {return 0; }
17309 #endif
17311 _ACEOF
17312 rm -f conftest.$ac_objext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17314 (eval $ac_compile) 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_c_inline=$ac_kw; break
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17340 done
17343 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17344 echo "${ECHO_T}$ac_cv_c_inline" >&6
17347 case $ac_cv_c_inline in
17348 inline | yes) ;;
17350 case $ac_cv_c_inline in
17351 no) ac_val=;;
17352 *) ac_val=$ac_cv_c_inline;;
17353 esac
17354 cat >>confdefs.h <<_ACEOF
17355 #ifndef __cplusplus
17356 #define inline $ac_val
17357 #endif
17358 _ACEOF
17360 esac
17362 echo "$as_me:$LINENO: checking for mode_t" >&5
17363 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17364 if test "${ac_cv_type_mode_t+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 $ac_includes_default
17375 main ()
17377 if ((mode_t *) 0)
17378 return 0;
17379 if (sizeof (mode_t))
17380 return 0;
17382 return 0;
17384 _ACEOF
17385 rm -f conftest.$ac_objext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17387 (eval $ac_compile) 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try='test -s conftest.$ac_objext'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_cv_type_mode_t=yes
17407 else
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_cv_type_mode_t=no
17413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17416 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17417 if test $ac_cv_type_mode_t = yes; then
17419 cat >>confdefs.h <<_ACEOF
17420 #define HAVE_MODE_T 1
17421 _ACEOF
17425 echo "$as_me:$LINENO: checking for off_t" >&5
17426 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17427 if test "${ac_cv_type_off_t+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h. */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 $ac_includes_default
17438 main ()
17440 if ((off_t *) 0)
17441 return 0;
17442 if (sizeof (off_t))
17443 return 0;
17445 return 0;
17447 _ACEOF
17448 rm -f conftest.$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450 (eval $ac_compile) 2>conftest.er1
17451 ac_status=$?
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest.$ac_objext'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_type_off_t=yes
17470 else
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 ac_cv_type_off_t=no
17476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17478 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17479 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17480 if test $ac_cv_type_off_t = yes; then
17482 cat >>confdefs.h <<_ACEOF
17483 #define HAVE_OFF_T 1
17484 _ACEOF
17488 echo "$as_me:$LINENO: checking for pid_t" >&5
17489 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17490 if test "${ac_cv_type_pid_t+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493 cat >conftest.$ac_ext <<_ACEOF
17494 /* confdefs.h. */
17495 _ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 $ac_includes_default
17501 main ()
17503 if ((pid_t *) 0)
17504 return 0;
17505 if (sizeof (pid_t))
17506 return 0;
17508 return 0;
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17513 (eval $ac_compile) 2>conftest.er1
17514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_type_pid_t=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_type_pid_t=no
17539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17541 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17542 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17543 if test $ac_cv_type_pid_t = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546 #define HAVE_PID_T 1
17547 _ACEOF
17551 echo "$as_me:$LINENO: checking for size_t" >&5
17552 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17553 if test "${ac_cv_type_size_t+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556 cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h. */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562 $ac_includes_default
17564 main ()
17566 if ((size_t *) 0)
17567 return 0;
17568 if (sizeof (size_t))
17569 return 0;
17571 return 0;
17573 _ACEOF
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576 (eval $ac_compile) 2>conftest.er1
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_type_size_t=yes
17596 else
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_type_size_t=no
17602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17605 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17606 if test $ac_cv_type_size_t = yes; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define HAVE_SIZE_T 1
17610 _ACEOF
17614 echo "$as_me:$LINENO: checking for ssize_t" >&5
17615 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17616 if test "${ac_cv_type_ssize_t+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619 cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h. */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625 $ac_includes_default
17627 main ()
17629 if ((ssize_t *) 0)
17630 return 0;
17631 if (sizeof (ssize_t))
17632 return 0;
17634 return 0;
17636 _ACEOF
17637 rm -f conftest.$ac_objext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17639 (eval $ac_compile) 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest.$ac_objext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_type_ssize_t=yes
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_cv_type_ssize_t=no
17665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17667 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17668 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17669 if test $ac_cv_type_ssize_t = yes; then
17671 cat >>confdefs.h <<_ACEOF
17672 #define HAVE_SSIZE_T 1
17673 _ACEOF
17677 echo "$as_me:$LINENO: checking for long long" >&5
17678 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17679 if test "${ac_cv_type_long_long+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 $ac_includes_default
17690 main ()
17692 if ((long long *) 0)
17693 return 0;
17694 if (sizeof (long long))
17695 return 0;
17697 return 0;
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17702 (eval $ac_compile) 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_type_long_long=yes
17722 else
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_cv_type_long_long=no
17728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17730 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17731 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17732 if test $ac_cv_type_long_long = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_LONG_LONG 1
17736 _ACEOF
17740 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17741 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17742 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17743 echo $ECHO_N "(cached) $ECHO_C" >&6
17744 else
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h. */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751 $ac_includes_default
17753 main ()
17755 if ((fsblkcnt_t *) 0)
17756 return 0;
17757 if (sizeof (fsblkcnt_t))
17758 return 0;
17760 return 0;
17762 _ACEOF
17763 rm -f conftest.$ac_objext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17765 (eval $ac_compile) 2>conftest.er1
17766 ac_status=$?
17767 grep -v '^ *+' conftest.er1 >conftest.err
17768 rm -f conftest.er1
17769 cat conftest.err >&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
17772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest.$ac_objext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_cv_type_fsblkcnt_t=yes
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_cv_type_fsblkcnt_t=no
17791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17793 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17794 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17795 if test $ac_cv_type_fsblkcnt_t = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_FSBLKCNT_T 1
17799 _ACEOF
17803 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17804 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17805 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814 $ac_includes_default
17816 main ()
17818 if ((fsfilcnt_t *) 0)
17819 return 0;
17820 if (sizeof (fsfilcnt_t))
17821 return 0;
17823 return 0;
17825 _ACEOF
17826 rm -f conftest.$ac_objext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17828 (eval $ac_compile) 2>conftest.er1
17829 ac_status=$?
17830 grep -v '^ *+' conftest.er1 >conftest.err
17831 rm -f conftest.er1
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest.$ac_objext'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 ac_cv_type_fsfilcnt_t=yes
17848 else
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17852 ac_cv_type_fsfilcnt_t=no
17854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17856 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17857 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17858 if test $ac_cv_type_fsfilcnt_t = yes; then
17860 cat >>confdefs.h <<_ACEOF
17861 #define HAVE_FSFILCNT_T 1
17862 _ACEOF
17868 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17869 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17870 if test "${wine_cv_linux_input_h+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873 cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h. */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17880 #include <linux/input.h>
17883 main ()
17886 int foo = EVIOCGBIT(EV_ABS,42);
17887 int bar = BTN_PINKIE;
17888 int fortytwo = 42;
17891 return 0;
17893 _ACEOF
17894 rm -f conftest.$ac_objext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17896 (eval $ac_compile) 2>conftest.er1
17897 ac_status=$?
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
17903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 wine_cv_linux_input_h=yes
17916 else
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 wine_cv_linux_input_h=no
17922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17925 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17926 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17927 if test "$wine_cv_linux_input_h" = "yes"
17928 then
17930 cat >>confdefs.h <<\_ACEOF
17931 #define HAVE_CORRECT_LINUXINPUT_H 1
17932 _ACEOF
17937 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17938 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17939 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 #include <netdb.h>
17952 main ()
17955 char *name=NULL;
17956 struct hostent he;
17957 struct hostent *result;
17958 char *buf=NULL;
17959 int bufsize=0;
17960 int res,errnr;
17961 char *addr=NULL;
17962 int addrlen=0;
17963 int addrtype=0;
17964 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17965 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17968 return 0;
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973 (eval $ac_link) 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest$ac_exeext'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17992 wine_cv_linux_gethostbyname_r_6=yes
17993 else
17994 echo "$as_me: failed program was:" >&5
17995 sed 's/^/| /' conftest.$ac_ext >&5
17997 wine_cv_linux_gethostbyname_r_6=no
18000 rm -f conftest.err conftest.$ac_objext \
18001 conftest$ac_exeext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18005 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
18006 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18007 then
18009 cat >>confdefs.h <<\_ACEOF
18010 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18011 _ACEOF
18015 if test "$ac_cv_header_linux_joystick_h" = "yes"
18016 then
18017 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18018 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18019 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022 cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h. */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18029 #include <sys/ioctl.h>
18030 #include <linux/joystick.h>
18032 struct js_event blub;
18033 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18034 #error "no 2.2 header"
18035 #endif
18038 main ()
18040 /*empty*/
18042 return 0;
18044 _ACEOF
18045 rm -f conftest.$ac_objext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18047 (eval $ac_compile) 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
18054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 wine_cv_linux_joystick_22_api=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 wine_cv_linux_joystick_22_api=no
18073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18076 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18077 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18078 if test "$wine_cv_linux_joystick_22_api" = "yes"
18079 then
18081 cat >>confdefs.h <<\_ACEOF
18082 #define HAVE_LINUX_22_JOYSTICK_API 1
18083 _ACEOF
18089 if test "$ac_cv_header_sys_vfs_h" = "yes"
18090 then
18091 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18092 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18093 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18103 #include <sys/types.h>
18104 #ifdef HAVE_SYS_PARAM_H
18105 # include <sys/param.h>
18106 #endif
18107 #include <sys/vfs.h>
18110 main ()
18113 struct statfs stfs;
18115 memset(&stfs,0,sizeof(stfs));
18118 return 0;
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18124 ac_status=$?
18125 grep -v '^ *+' conftest.er1 >conftest.err
18126 rm -f conftest.er1
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest.$ac_objext'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 wine_cv_sys_vfs_has_statfs=yes
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 wine_cv_sys_vfs_has_statfs=no
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18153 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18154 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18155 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18156 then
18158 cat >>confdefs.h <<\_ACEOF
18159 #define STATFS_DEFINED_BY_SYS_VFS 1
18160 _ACEOF
18165 if test "$ac_cv_header_sys_statfs_h" = "yes"
18166 then
18167 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18168 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18169 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18179 #include <sys/types.h>
18180 #ifdef HAVE_SYS_PARAM_H
18181 # include <sys/param.h>
18182 #endif
18183 #include <sys/statfs.h>
18186 main ()
18189 struct statfs stfs;
18192 return 0;
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 wine_cv_sys_statfs_has_statfs=yes
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 wine_cv_sys_statfs_has_statfs=no
18224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18227 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18228 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18229 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18230 then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define STATFS_DEFINED_BY_SYS_STATFS 1
18234 _ACEOF
18239 if test "$ac_cv_header_sys_mount_h" = "yes"
18240 then
18241 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18242 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18243 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h. */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 #include <sys/types.h>
18254 #ifdef HAVE_SYS_PARAM_H
18255 # include <sys/param.h>
18256 #endif
18257 #include <sys/mount.h>
18260 main ()
18263 struct statfs stfs;
18266 return 0;
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271 (eval $ac_compile) 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 wine_cv_sys_mount_has_statfs=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 wine_cv_sys_mount_has_statfs=no
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18301 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18302 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18303 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18304 then
18306 cat >>confdefs.h <<\_ACEOF
18307 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18308 _ACEOF
18314 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18315 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18316 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h. */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18325 #include <sys/types.h>
18326 #ifdef HAVE_SYS_PARAM_H
18327 # include <sys/param.h>
18328 #endif
18329 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18330 # include <sys/mount.h>
18331 #else
18332 # ifdef STATFS_DEFINED_BY_SYS_VFS
18333 # include <sys/vfs.h>
18334 # else
18335 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18336 # include <sys/statfs.h>
18337 # endif
18338 # endif
18339 #endif
18342 main ()
18344 static struct statfs ac_aggr;
18345 if (ac_aggr.f_bfree)
18346 return 0;
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 ac_cv_member_struct_statfs_f_bfree=yes
18373 else
18374 echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 #include <sys/types.h>
18384 #ifdef HAVE_SYS_PARAM_H
18385 # include <sys/param.h>
18386 #endif
18387 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18388 # include <sys/mount.h>
18389 #else
18390 # ifdef STATFS_DEFINED_BY_SYS_VFS
18391 # include <sys/vfs.h>
18392 # else
18393 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18394 # include <sys/statfs.h>
18395 # endif
18396 # endif
18397 #endif
18400 main ()
18402 static struct statfs ac_aggr;
18403 if (sizeof ac_aggr.f_bfree)
18404 return 0;
18406 return 0;
18408 _ACEOF
18409 rm -f conftest.$ac_objext
18410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18411 (eval $ac_compile) 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest.$ac_objext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_member_struct_statfs_f_bfree=yes
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ac_cv_member_struct_statfs_f_bfree=no
18437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18442 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18443 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18445 cat >>confdefs.h <<_ACEOF
18446 #define HAVE_STRUCT_STATFS_F_BFREE 1
18447 _ACEOF
18451 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18452 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18453 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 #include <sys/types.h>
18463 #ifdef HAVE_SYS_PARAM_H
18464 # include <sys/param.h>
18465 #endif
18466 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18467 # include <sys/mount.h>
18468 #else
18469 # ifdef STATFS_DEFINED_BY_SYS_VFS
18470 # include <sys/vfs.h>
18471 # else
18472 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18473 # include <sys/statfs.h>
18474 # endif
18475 # endif
18476 #endif
18479 main ()
18481 static struct statfs ac_aggr;
18482 if (ac_aggr.f_bavail)
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_struct_statfs_f_bavail=yes
18510 else
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 #include <sys/types.h>
18521 #ifdef HAVE_SYS_PARAM_H
18522 # include <sys/param.h>
18523 #endif
18524 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18525 # include <sys/mount.h>
18526 #else
18527 # ifdef STATFS_DEFINED_BY_SYS_VFS
18528 # include <sys/vfs.h>
18529 # else
18530 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18531 # include <sys/statfs.h>
18532 # endif
18533 # endif
18534 #endif
18537 main ()
18539 static struct statfs ac_aggr;
18540 if (sizeof ac_aggr.f_bavail)
18541 return 0;
18543 return 0;
18545 _ACEOF
18546 rm -f conftest.$ac_objext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18548 (eval $ac_compile) 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest.$ac_objext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_member_struct_statfs_f_bavail=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_cv_member_struct_statfs_f_bavail=no
18574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18578 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18579 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18580 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18584 _ACEOF
18588 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18589 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18590 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 else
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h. */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 #include <sys/types.h>
18600 #ifdef HAVE_SYS_PARAM_H
18601 # include <sys/param.h>
18602 #endif
18603 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18604 # include <sys/mount.h>
18605 #else
18606 # ifdef STATFS_DEFINED_BY_SYS_VFS
18607 # include <sys/vfs.h>
18608 # else
18609 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18610 # include <sys/statfs.h>
18611 # endif
18612 # endif
18613 #endif
18616 main ()
18618 static struct statfs ac_aggr;
18619 if (ac_aggr.f_frsize)
18620 return 0;
18622 return 0;
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest.$ac_objext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_member_struct_statfs_f_frsize=yes
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <sys/types.h>
18658 #ifdef HAVE_SYS_PARAM_H
18659 # include <sys/param.h>
18660 #endif
18661 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18662 # include <sys/mount.h>
18663 #else
18664 # ifdef STATFS_DEFINED_BY_SYS_VFS
18665 # include <sys/vfs.h>
18666 # else
18667 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18668 # include <sys/statfs.h>
18669 # endif
18670 # endif
18671 #endif
18674 main ()
18676 static struct statfs ac_aggr;
18677 if (sizeof ac_aggr.f_frsize)
18678 return 0;
18680 return 0;
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685 (eval $ac_compile) 2>conftest.er1
18686 ac_status=$?
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
18692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_member_struct_statfs_f_frsize=yes
18705 else
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_member_struct_statfs_f_frsize=no
18711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18716 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18717 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18719 cat >>confdefs.h <<_ACEOF
18720 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18721 _ACEOF
18725 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18726 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18727 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h. */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 #include <sys/types.h>
18737 #ifdef HAVE_SYS_PARAM_H
18738 # include <sys/param.h>
18739 #endif
18740 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18741 # include <sys/mount.h>
18742 #else
18743 # ifdef STATFS_DEFINED_BY_SYS_VFS
18744 # include <sys/vfs.h>
18745 # else
18746 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18747 # include <sys/statfs.h>
18748 # endif
18749 # endif
18750 #endif
18753 main ()
18755 static struct statfs ac_aggr;
18756 if (ac_aggr.f_ffree)
18757 return 0;
18759 return 0;
18761 _ACEOF
18762 rm -f conftest.$ac_objext
18763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18764 (eval $ac_compile) 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } &&
18771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest.$ac_objext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_member_struct_statfs_f_ffree=yes
18784 else
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <sys/types.h>
18795 #ifdef HAVE_SYS_PARAM_H
18796 # include <sys/param.h>
18797 #endif
18798 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18799 # include <sys/mount.h>
18800 #else
18801 # ifdef STATFS_DEFINED_BY_SYS_VFS
18802 # include <sys/vfs.h>
18803 # else
18804 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18805 # include <sys/statfs.h>
18806 # endif
18807 # endif
18808 #endif
18811 main ()
18813 static struct statfs ac_aggr;
18814 if (sizeof ac_aggr.f_ffree)
18815 return 0;
18817 return 0;
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18822 (eval $ac_compile) 2>conftest.er1
18823 ac_status=$?
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_member_struct_statfs_f_ffree=yes
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_member_struct_statfs_f_ffree=no
18848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18853 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18854 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18856 cat >>confdefs.h <<_ACEOF
18857 #define HAVE_STRUCT_STATFS_F_FFREE 1
18858 _ACEOF
18862 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18863 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18864 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 #include <sys/types.h>
18874 #ifdef HAVE_SYS_PARAM_H
18875 # include <sys/param.h>
18876 #endif
18877 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18878 # include <sys/mount.h>
18879 #else
18880 # ifdef STATFS_DEFINED_BY_SYS_VFS
18881 # include <sys/vfs.h>
18882 # else
18883 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18884 # include <sys/statfs.h>
18885 # endif
18886 # endif
18887 #endif
18890 main ()
18892 static struct statfs ac_aggr;
18893 if (ac_aggr.f_favail)
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_statfs_f_favail=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_PARAM_H
18933 # include <sys/param.h>
18934 #endif
18935 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18936 # include <sys/mount.h>
18937 #else
18938 # ifdef STATFS_DEFINED_BY_SYS_VFS
18939 # include <sys/vfs.h>
18940 # else
18941 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18942 # include <sys/statfs.h>
18943 # endif
18944 # endif
18945 #endif
18948 main ()
18950 static struct statfs ac_aggr;
18951 if (sizeof ac_aggr.f_favail)
18952 return 0;
18954 return 0;
18956 _ACEOF
18957 rm -f conftest.$ac_objext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959 (eval $ac_compile) 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest.$ac_objext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_member_struct_statfs_f_favail=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_member_struct_statfs_f_favail=no
18985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18989 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18990 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18991 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18993 cat >>confdefs.h <<_ACEOF
18994 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18995 _ACEOF
18999 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19000 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19001 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 #include <sys/types.h>
19011 #ifdef HAVE_SYS_PARAM_H
19012 # include <sys/param.h>
19013 #endif
19014 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19015 # include <sys/mount.h>
19016 #else
19017 # ifdef STATFS_DEFINED_BY_SYS_VFS
19018 # include <sys/vfs.h>
19019 # else
19020 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19021 # include <sys/statfs.h>
19022 # endif
19023 # endif
19024 #endif
19027 main ()
19029 static struct statfs ac_aggr;
19030 if (ac_aggr.f_namelen)
19031 return 0;
19033 return 0;
19035 _ACEOF
19036 rm -f conftest.$ac_objext
19037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038 (eval $ac_compile) 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
19045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_member_struct_statfs_f_namelen=yes
19058 else
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 #include <sys/types.h>
19069 #ifdef HAVE_SYS_PARAM_H
19070 # include <sys/param.h>
19071 #endif
19072 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19073 # include <sys/mount.h>
19074 #else
19075 # ifdef STATFS_DEFINED_BY_SYS_VFS
19076 # include <sys/vfs.h>
19077 # else
19078 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19079 # include <sys/statfs.h>
19080 # endif
19081 # endif
19082 #endif
19085 main ()
19087 static struct statfs ac_aggr;
19088 if (sizeof ac_aggr.f_namelen)
19089 return 0;
19091 return 0;
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_member_struct_statfs_f_namelen=yes
19116 else
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 ac_cv_member_struct_statfs_f_namelen=no
19122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19127 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19128 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19130 cat >>confdefs.h <<_ACEOF
19131 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19132 _ACEOF
19138 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19139 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19140 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #ifdef HAVE_SYS_STATVFS_H
19150 #include <sys/statvfs.h>
19151 #endif
19154 main ()
19156 static struct statvfs ac_aggr;
19157 if (ac_aggr.f_blocks)
19158 return 0;
19160 return 0;
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19165 (eval $ac_compile) 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest.$ac_objext'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_member_struct_statvfs_f_blocks=yes
19185 else
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h. */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19195 #ifdef HAVE_SYS_STATVFS_H
19196 #include <sys/statvfs.h>
19197 #endif
19200 main ()
19202 static struct statvfs ac_aggr;
19203 if (sizeof ac_aggr.f_blocks)
19204 return 0;
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211 (eval $ac_compile) 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_member_struct_statvfs_f_blocks=yes
19231 else
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_cv_member_struct_statvfs_f_blocks=no
19237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19242 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19243 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19245 cat >>confdefs.h <<_ACEOF
19246 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19247 _ACEOF
19253 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19254 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19255 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <sys/types.h>
19265 #ifdef HAVE_SYS_SOCKET_H
19266 # include <sys/socket.h>
19267 #endif
19268 #ifdef HAVE_SYS_UN_H
19269 # include <sys/un.h>
19270 #endif
19273 main ()
19275 static struct msghdr ac_aggr;
19276 if (ac_aggr.msg_accrights)
19277 return 0;
19279 return 0;
19281 _ACEOF
19282 rm -f conftest.$ac_objext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19284 (eval $ac_compile) 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest.$ac_objext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 ac_cv_member_struct_msghdr_msg_accrights=yes
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <sys/types.h>
19315 #ifdef HAVE_SYS_SOCKET_H
19316 # include <sys/socket.h>
19317 #endif
19318 #ifdef HAVE_SYS_UN_H
19319 # include <sys/un.h>
19320 #endif
19323 main ()
19325 static struct msghdr ac_aggr;
19326 if (sizeof ac_aggr.msg_accrights)
19327 return 0;
19329 return 0;
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_member_struct_msghdr_msg_accrights=yes
19354 else
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_member_struct_msghdr_msg_accrights=no
19360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19365 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19366 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19368 cat >>confdefs.h <<_ACEOF
19369 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19370 _ACEOF
19374 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19375 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19376 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379 cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h. */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 #include <sys/types.h>
19386 #ifdef HAVE_SYS_SOCKET_H
19387 # include <sys/socket.h>
19388 #endif
19389 #ifdef HAVE_SYS_UN_H
19390 # include <sys/un.h>
19391 #endif
19394 main ()
19396 static struct sockaddr ac_aggr;
19397 if (ac_aggr.sa_len)
19398 return 0;
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405 (eval $ac_compile) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_cv_member_struct_sockaddr_sa_len=yes
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 #include <sys/types.h>
19436 #ifdef HAVE_SYS_SOCKET_H
19437 # include <sys/socket.h>
19438 #endif
19439 #ifdef HAVE_SYS_UN_H
19440 # include <sys/un.h>
19441 #endif
19444 main ()
19446 static struct sockaddr ac_aggr;
19447 if (sizeof ac_aggr.sa_len)
19448 return 0;
19450 return 0;
19452 _ACEOF
19453 rm -f conftest.$ac_objext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19455 (eval $ac_compile) 2>conftest.er1
19456 ac_status=$?
19457 grep -v '^ *+' conftest.er1 >conftest.err
19458 rm -f conftest.er1
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_member_struct_sockaddr_sa_len=yes
19475 else
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 ac_cv_member_struct_sockaddr_sa_len=no
19481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19486 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19487 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19489 cat >>confdefs.h <<_ACEOF
19490 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19491 _ACEOF
19495 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19496 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19497 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h. */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 #include <sys/types.h>
19507 #ifdef HAVE_SYS_SOCKET_H
19508 # include <sys/socket.h>
19509 #endif
19510 #ifdef HAVE_SYS_UN_H
19511 # include <sys/un.h>
19512 #endif
19515 main ()
19517 static struct sockaddr_un ac_aggr;
19518 if (ac_aggr.sun_len)
19519 return 0;
19521 return 0;
19523 _ACEOF
19524 rm -f conftest.$ac_objext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19526 (eval $ac_compile) 2>conftest.er1
19527 ac_status=$?
19528 grep -v '^ *+' conftest.er1 >conftest.err
19529 rm -f conftest.er1
19530 cat conftest.err >&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } &&
19533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_member_struct_sockaddr_un_sun_len=yes
19546 else
19547 echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 #include <sys/types.h>
19557 #ifdef HAVE_SYS_SOCKET_H
19558 # include <sys/socket.h>
19559 #endif
19560 #ifdef HAVE_SYS_UN_H
19561 # include <sys/un.h>
19562 #endif
19565 main ()
19567 static struct sockaddr_un ac_aggr;
19568 if (sizeof ac_aggr.sun_len)
19569 return 0;
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_member_struct_sockaddr_un_sun_len=yes
19596 else
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_cv_member_struct_sockaddr_un_sun_len=no
19602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19606 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19607 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19608 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19610 cat >>confdefs.h <<_ACEOF
19611 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19612 _ACEOF
19618 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19619 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19620 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 #include <signal.h>
19632 main ()
19634 static siginfo_t ac_aggr;
19635 if (ac_aggr.si_fd)
19636 return 0;
19638 return 0;
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_member_siginfo_t_si_fd=yes
19663 else
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <signal.h>
19676 main ()
19678 static siginfo_t ac_aggr;
19679 if (sizeof ac_aggr.si_fd)
19680 return 0;
19682 return 0;
19684 _ACEOF
19685 rm -f conftest.$ac_objext
19686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19687 (eval $ac_compile) 2>conftest.er1
19688 ac_status=$?
19689 grep -v '^ *+' conftest.er1 >conftest.err
19690 rm -f conftest.er1
19691 cat conftest.err >&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
19694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 ac_cv_member_siginfo_t_si_fd=yes
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_member_siginfo_t_si_fd=no
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19717 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19718 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19719 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19721 cat >>confdefs.h <<_ACEOF
19722 #define HAVE_SIGINFO_T_SI_FD 1
19723 _ACEOF
19729 echo "$as_me:$LINENO: checking for struct option.name" >&5
19730 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19731 if test "${ac_cv_member_struct_option_name+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734 cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h. */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19740 #ifdef HAVE_GETOPT_H
19741 #include <getopt.h>
19742 #endif
19745 main ()
19747 static struct option ac_aggr;
19748 if (ac_aggr.name)
19749 return 0;
19751 return 0;
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19756 (eval $ac_compile) 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_member_struct_option_name=yes
19776 else
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 #ifdef HAVE_GETOPT_H
19787 #include <getopt.h>
19788 #endif
19791 main ()
19793 static struct option ac_aggr;
19794 if (sizeof ac_aggr.name)
19795 return 0;
19797 return 0;
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802 (eval $ac_compile) 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_member_struct_option_name=yes
19822 else
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_cv_member_struct_option_name=no
19828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19833 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19834 if test $ac_cv_member_struct_option_name = yes; then
19836 cat >>confdefs.h <<_ACEOF
19837 #define HAVE_STRUCT_OPTION_NAME 1
19838 _ACEOF
19844 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19845 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19846 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 $ac_includes_default
19857 main ()
19859 static struct stat ac_aggr;
19860 if (ac_aggr.st_blocks)
19861 return 0;
19863 return 0;
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_member_struct_stat_st_blocks=yes
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 $ac_includes_default
19900 main ()
19902 static struct stat ac_aggr;
19903 if (sizeof ac_aggr.st_blocks)
19904 return 0;
19906 return 0;
19908 _ACEOF
19909 rm -f conftest.$ac_objext
19910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19911 (eval $ac_compile) 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_member_struct_stat_st_blocks=yes
19931 else
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_member_struct_stat_st_blocks=no
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19941 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19942 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19943 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19947 _ACEOF
19954 case $host_cpu in
19955 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19956 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19957 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #ifndef __i386__
19968 #endif
19969 _ACEOF
19970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19971 $EGREP "yes" >/dev/null 2>&1; then
19972 ac_cv_cpp_def___i386__=yes
19973 else
19974 ac_cv_cpp_def___i386__=no
19976 rm -f conftest*
19979 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19980 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19981 if test $ac_cv_cpp_def___i386__ = yes; then
19982 CFLAGS="$CFLAGS -D__i386__"
19983 LINTFLAGS="$LINTFLAGS -D__i386__"
19986 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19987 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19988 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19989 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 else
19991 cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h. */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19997 #ifndef __ALPHA__
19999 #endif
20000 _ACEOF
20001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20002 $EGREP "yes" >/dev/null 2>&1; then
20003 ac_cv_cpp_def___ALPHA__=yes
20004 else
20005 ac_cv_cpp_def___ALPHA__=no
20007 rm -f conftest*
20010 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20011 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20012 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20013 CFLAGS="$CFLAGS -D__ALPHA__"
20014 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20017 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20018 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20019 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #ifndef __sparc__
20030 #endif
20031 _ACEOF
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033 $EGREP "yes" >/dev/null 2>&1; then
20034 ac_cv_cpp_def___sparc__=yes
20035 else
20036 ac_cv_cpp_def___sparc__=no
20038 rm -f conftest*
20041 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20042 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20043 if test $ac_cv_cpp_def___sparc__ = yes; then
20044 CFLAGS="$CFLAGS -D__sparc__"
20045 LINTFLAGS="$LINTFLAGS -D__sparc__"
20048 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20049 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20050 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #ifndef __powerpc__
20061 #endif
20062 _ACEOF
20063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20064 $EGREP "yes" >/dev/null 2>&1; then
20065 ac_cv_cpp_def___powerpc__=yes
20066 else
20067 ac_cv_cpp_def___powerpc__=no
20069 rm -f conftest*
20072 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20073 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20074 if test $ac_cv_cpp_def___powerpc__ = yes; then
20075 CFLAGS="$CFLAGS -D__powerpc__"
20076 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20079 esac
20081 case $host_vendor in
20082 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20083 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20084 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 #ifndef __sun__
20095 #endif
20096 _ACEOF
20097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20098 $EGREP "yes" >/dev/null 2>&1; then
20099 ac_cv_cpp_def___sun__=yes
20100 else
20101 ac_cv_cpp_def___sun__=no
20103 rm -f conftest*
20106 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20107 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20108 if test $ac_cv_cpp_def___sun__ = yes; then
20109 CFLAGS="$CFLAGS -D__sun__"
20110 LINTFLAGS="$LINTFLAGS -D__sun__"
20113 esac
20119 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20121 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20123 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20125 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20127 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20129 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20131 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20133 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20135 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20137 ac_config_commands="$ac_config_commands dlls/user/dde"
20139 ac_config_commands="$ac_config_commands dlls/user/resources"
20141 ac_config_commands="$ac_config_commands dlls/wineps/data"
20143 ac_config_commands="$ac_config_commands include/wine"
20145 ac_config_commands="$ac_config_commands misc"
20147 ac_config_commands="$ac_config_commands programs/regedit/tests"
20149 ac_config_commands="$ac_config_commands windows"
20152 MAKE_RULES=Make.rules
20155 MAKE_DLL_RULES=dlls/Makedll.rules
20158 MAKE_TEST_RULES=dlls/Maketest.rules
20161 MAKE_LIB_RULES=libs/Makelib.rules
20164 MAKE_PROG_RULES=programs/Makeprog.rules
20167 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/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/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/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/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/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/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/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/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/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 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"
20170 cat >confcache <<\_ACEOF
20171 # This file is a shell script that caches the results of configure
20172 # tests run on this system so they can be shared between configure
20173 # scripts and configure runs, see configure's option --config-cache.
20174 # It is not useful on other systems. If it contains results you don't
20175 # want to keep, you may remove or edit it.
20177 # config.status only pays attention to the cache file if you give it
20178 # the --recheck option to rerun configure.
20180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20182 # following values.
20184 _ACEOF
20186 # The following way of writing the cache mishandles newlines in values,
20187 # but we know of no workaround that is simple, portable, and efficient.
20188 # So, don't put newlines in cache variables' values.
20189 # Ultrix sh set writes to stderr and can't be redirected directly,
20190 # and sets the high bit in the cache file unless we assign to the vars.
20192 (set) 2>&1 |
20193 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20194 *ac_space=\ *)
20195 # `set' does not quote correctly, so add quotes (double-quote
20196 # substitution turns \\\\ into \\, and sed turns \\ into \).
20197 sed -n \
20198 "s/'/'\\\\''/g;
20199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20202 # `set' quotes correctly as required by POSIX, so do not add quotes.
20203 sed -n \
20204 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20206 esac;
20208 sed '
20209 t clear
20210 : clear
20211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20212 t end
20213 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20214 : end' >>confcache
20215 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20216 if test -w $cache_file; then
20217 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20218 cat confcache >$cache_file
20219 else
20220 echo "not updating unwritable cache $cache_file"
20223 rm -f confcache
20225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20226 # Let make expand exec_prefix.
20227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20231 # trailing colons and then remove the whole line if VPATH becomes empty
20232 # (actually we leave an empty line to preserve line numbers).
20233 if test "x$srcdir" = x.; then
20234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20235 s/:*\$(srcdir):*/:/;
20236 s/:*\${srcdir}:*/:/;
20237 s/:*@srcdir@:*/:/;
20238 s/^\([^=]*=[ ]*\):*/\1/;
20239 s/:*$//;
20240 s/^[^=]*=[ ]*$//;
20244 DEFS=-DHAVE_CONFIG_H
20246 ac_libobjs=
20247 ac_ltlibobjs=
20248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20249 # 1. Remove the extension, and $U if already installed.
20250 ac_i=`echo "$ac_i" |
20251 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20252 # 2. Add them.
20253 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20254 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20255 done
20256 LIBOBJS=$ac_libobjs
20258 LTLIBOBJS=$ac_ltlibobjs
20262 : ${CONFIG_STATUS=./config.status}
20263 ac_clean_files_save=$ac_clean_files
20264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20267 cat >$CONFIG_STATUS <<_ACEOF
20268 #! $SHELL
20269 # Generated by $as_me.
20270 # Run this file to recreate the current configuration.
20271 # Compiler output produced by configure, useful for debugging
20272 # configure, is in config.log if it exists.
20274 debug=false
20275 ac_cs_recheck=false
20276 ac_cs_silent=false
20277 SHELL=\${CONFIG_SHELL-$SHELL}
20278 _ACEOF
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20281 ## --------------------- ##
20282 ## M4sh Initialization. ##
20283 ## --------------------- ##
20285 # Be Bourne compatible
20286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20287 emulate sh
20288 NULLCMD=:
20289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20290 # is contrary to our usage. Disable this feature.
20291 alias -g '${1+"$@"}'='"$@"'
20292 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20293 set -o posix
20295 DUALCASE=1; export DUALCASE # for MKS sh
20297 # Support unset when possible.
20298 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20299 as_unset=unset
20300 else
20301 as_unset=false
20305 # Work around bugs in pre-3.0 UWIN ksh.
20306 $as_unset ENV MAIL MAILPATH
20307 PS1='$ '
20308 PS2='> '
20309 PS4='+ '
20311 # NLS nuisances.
20312 for as_var in \
20313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20315 LC_TELEPHONE LC_TIME
20317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20318 eval $as_var=C; export $as_var
20319 else
20320 $as_unset $as_var
20322 done
20324 # Required to use basename.
20325 if expr a : '\(a\)' >/dev/null 2>&1; then
20326 as_expr=expr
20327 else
20328 as_expr=false
20331 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20332 as_basename=basename
20333 else
20334 as_basename=false
20338 # Name of the executable.
20339 as_me=`$as_basename "$0" ||
20340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20341 X"$0" : 'X\(//\)$' \| \
20342 X"$0" : 'X\(/\)$' \| \
20343 . : '\(.\)' 2>/dev/null ||
20344 echo X/"$0" |
20345 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20346 /^X\/\(\/\/\)$/{ s//\1/; q; }
20347 /^X\/\(\/\).*/{ s//\1/; q; }
20348 s/.*/./; q'`
20351 # PATH needs CR, and LINENO needs CR and PATH.
20352 # Avoid depending upon Character Ranges.
20353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20356 as_cr_digits='0123456789'
20357 as_cr_alnum=$as_cr_Letters$as_cr_digits
20359 # The user is always right.
20360 if test "${PATH_SEPARATOR+set}" != set; then
20361 echo "#! /bin/sh" >conf$$.sh
20362 echo "exit 0" >>conf$$.sh
20363 chmod +x conf$$.sh
20364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20365 PATH_SEPARATOR=';'
20366 else
20367 PATH_SEPARATOR=:
20369 rm -f conf$$.sh
20373 as_lineno_1=$LINENO
20374 as_lineno_2=$LINENO
20375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20376 test "x$as_lineno_1" != "x$as_lineno_2" &&
20377 test "x$as_lineno_3" = "x$as_lineno_2" || {
20378 # Find who we are. Look in the path if we contain no path at all
20379 # relative or not.
20380 case $0 in
20381 *[\\/]* ) as_myself=$0 ;;
20382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20383 for as_dir in $PATH
20385 IFS=$as_save_IFS
20386 test -z "$as_dir" && as_dir=.
20387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20388 done
20391 esac
20392 # We did not find ourselves, most probably we were run as `sh COMMAND'
20393 # in which case we are not to be found in the path.
20394 if test "x$as_myself" = x; then
20395 as_myself=$0
20397 if test ! -f "$as_myself"; then
20398 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20399 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20400 { (exit 1); exit 1; }; }
20402 case $CONFIG_SHELL in
20404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20405 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20407 IFS=$as_save_IFS
20408 test -z "$as_dir" && as_dir=.
20409 for as_base in sh bash ksh sh5; do
20410 case $as_dir in
20412 if ("$as_dir/$as_base" -c '
20413 as_lineno_1=$LINENO
20414 as_lineno_2=$LINENO
20415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20416 test "x$as_lineno_1" != "x$as_lineno_2" &&
20417 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20418 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20419 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20420 CONFIG_SHELL=$as_dir/$as_base
20421 export CONFIG_SHELL
20422 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20423 fi;;
20424 esac
20425 done
20426 done
20428 esac
20430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20431 # uniformly replaced by the line number. The first 'sed' inserts a
20432 # line-number line before each line; the second 'sed' does the real
20433 # work. The second script uses 'N' to pair each line-number line
20434 # with the numbered line, and appends trailing '-' during
20435 # substitution so that $LINENO is not a special case at line end.
20436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20437 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20438 sed '=' <$as_myself |
20439 sed '
20441 s,$,-,
20442 : loop
20443 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20444 t loop
20445 s,-$,,
20446 s,^['$as_cr_digits']*\n,,
20447 ' >$as_me.lineno &&
20448 chmod +x $as_me.lineno ||
20449 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20450 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20451 { (exit 1); exit 1; }; }
20453 # Don't try to exec as it changes $[0], causing all sort of problems
20454 # (the dirname of $[0] is not the place where we might find the
20455 # original and so on. Autoconf is especially sensible to this).
20456 . ./$as_me.lineno
20457 # Exit status is that of the last command.
20458 exit
20462 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20463 *c*,-n*) ECHO_N= ECHO_C='
20464 ' ECHO_T=' ' ;;
20465 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20466 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20467 esac
20469 if expr a : '\(a\)' >/dev/null 2>&1; then
20470 as_expr=expr
20471 else
20472 as_expr=false
20475 rm -f conf$$ conf$$.exe conf$$.file
20476 echo >conf$$.file
20477 if ln -s conf$$.file conf$$ 2>/dev/null; then
20478 # We could just check for DJGPP; but this test a) works b) is more generic
20479 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20480 if test -f conf$$.exe; then
20481 # Don't use ln at all; we don't have any links
20482 as_ln_s='cp -p'
20483 else
20484 as_ln_s='ln -s'
20486 elif ln conf$$.file conf$$ 2>/dev/null; then
20487 as_ln_s=ln
20488 else
20489 as_ln_s='cp -p'
20491 rm -f conf$$ conf$$.exe conf$$.file
20493 if mkdir -p . 2>/dev/null; then
20494 as_mkdir_p=:
20495 else
20496 test -d ./-p && rmdir ./-p
20497 as_mkdir_p=false
20500 as_executable_p="test -f"
20502 # Sed expression to map a string onto a valid CPP name.
20503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20505 # Sed expression to map a string onto a valid variable name.
20506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20509 # IFS
20510 # We need space, tab and new line, in precisely that order.
20511 as_nl='
20513 IFS=" $as_nl"
20515 # CDPATH.
20516 $as_unset CDPATH
20518 exec 6>&1
20520 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20521 # report actual input values of CONFIG_FILES etc. instead of their
20522 # values after options handling. Logging --version etc. is OK.
20523 exec 5>>config.log
20525 echo
20526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20527 ## Running $as_me. ##
20528 _ASBOX
20529 } >&5
20530 cat >&5 <<_CSEOF
20532 This file was extended by Wine $as_me 20041019, which was
20533 generated by GNU Autoconf 2.59. Invocation command line was
20535 CONFIG_FILES = $CONFIG_FILES
20536 CONFIG_HEADERS = $CONFIG_HEADERS
20537 CONFIG_LINKS = $CONFIG_LINKS
20538 CONFIG_COMMANDS = $CONFIG_COMMANDS
20539 $ $0 $@
20541 _CSEOF
20542 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20543 echo >&5
20544 _ACEOF
20546 # Files that config.status was made for.
20547 if test -n "$ac_config_files"; then
20548 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20551 if test -n "$ac_config_headers"; then
20552 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20555 if test -n "$ac_config_links"; then
20556 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20559 if test -n "$ac_config_commands"; then
20560 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20563 cat >>$CONFIG_STATUS <<\_ACEOF
20565 ac_cs_usage="\
20566 \`$as_me' instantiates files from templates according to the
20567 current configuration.
20569 Usage: $0 [OPTIONS] [FILE]...
20571 -h, --help print this help, then exit
20572 -V, --version print version number, then exit
20573 -q, --quiet do not print progress messages
20574 -d, --debug don't remove temporary files
20575 --recheck update $as_me by reconfiguring in the same conditions
20576 --file=FILE[:TEMPLATE]
20577 instantiate the configuration file FILE
20578 --header=FILE[:TEMPLATE]
20579 instantiate the configuration header FILE
20581 Configuration files:
20582 $config_files
20584 Configuration headers:
20585 $config_headers
20587 Configuration commands:
20588 $config_commands
20590 Report bugs to <bug-autoconf@gnu.org>."
20591 _ACEOF
20593 cat >>$CONFIG_STATUS <<_ACEOF
20594 ac_cs_version="\\
20595 Wine config.status 20041019
20596 configured by $0, generated by GNU Autoconf 2.59,
20597 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20599 Copyright (C) 2003 Free Software Foundation, Inc.
20600 This config.status script is free software; the Free Software Foundation
20601 gives unlimited permission to copy, distribute and modify it."
20602 srcdir=$srcdir
20603 INSTALL="$INSTALL"
20604 _ACEOF
20606 cat >>$CONFIG_STATUS <<\_ACEOF
20607 # If no file are specified by the user, then we need to provide default
20608 # value. By we need to know if files were specified by the user.
20609 ac_need_defaults=:
20610 while test $# != 0
20612 case $1 in
20613 --*=*)
20614 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20615 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20616 ac_shift=:
20619 ac_option=$1
20620 ac_optarg=$2
20621 ac_shift=shift
20623 *) # This is not an option, so the user has probably given explicit
20624 # arguments.
20625 ac_option=$1
20626 ac_need_defaults=false;;
20627 esac
20629 case $ac_option in
20630 # Handling of the options.
20631 _ACEOF
20632 cat >>$CONFIG_STATUS <<\_ACEOF
20633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20634 ac_cs_recheck=: ;;
20635 --version | --vers* | -V )
20636 echo "$ac_cs_version"; exit 0 ;;
20637 --he | --h)
20638 # Conflict between --help and --header
20639 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20640 Try \`$0 --help' for more information." >&5
20641 echo "$as_me: error: ambiguous option: $1
20642 Try \`$0 --help' for more information." >&2;}
20643 { (exit 1); exit 1; }; };;
20644 --help | --hel | -h )
20645 echo "$ac_cs_usage"; exit 0 ;;
20646 --debug | --d* | -d )
20647 debug=: ;;
20648 --file | --fil | --fi | --f )
20649 $ac_shift
20650 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20651 ac_need_defaults=false;;
20652 --header | --heade | --head | --hea )
20653 $ac_shift
20654 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20655 ac_need_defaults=false;;
20656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20658 ac_cs_silent=: ;;
20660 # This is an error.
20661 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20662 Try \`$0 --help' for more information." >&5
20663 echo "$as_me: error: unrecognized option: $1
20664 Try \`$0 --help' for more information." >&2;}
20665 { (exit 1); exit 1; }; } ;;
20667 *) ac_config_targets="$ac_config_targets $1" ;;
20669 esac
20670 shift
20671 done
20673 ac_configure_extra_args=
20675 if $ac_cs_silent; then
20676 exec 6>/dev/null
20677 ac_configure_extra_args="$ac_configure_extra_args --silent"
20680 _ACEOF
20681 cat >>$CONFIG_STATUS <<_ACEOF
20682 if \$ac_cs_recheck; then
20683 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20684 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20687 _ACEOF
20693 cat >>$CONFIG_STATUS <<\_ACEOF
20694 for ac_config_target in $ac_config_targets
20696 case "$ac_config_target" in
20697 # Handling of arguments.
20698 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20699 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20700 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20701 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20702 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20703 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20704 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20705 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20706 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20707 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20708 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20709 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20710 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20711 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20712 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20713 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20714 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20715 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20716 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20717 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20718 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20719 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20720 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20721 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20722 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20723 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20724 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20725 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20726 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20727 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20728 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20729 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20730 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20731 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20732 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20733 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20734 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20735 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20736 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20737 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20738 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20739 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20740 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20741 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20742 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20743 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20744 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20745 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20746 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20747 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20748 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20749 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20750 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20751 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20752 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20753 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20754 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20755 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20756 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20757 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20758 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20759 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20760 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20761 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20762 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20763 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20764 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20765 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20766 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20767 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20768 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20769 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20770 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20771 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20772 "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
20773 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20774 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20775 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20776 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20777 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20778 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20779 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20780 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20781 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20782 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20783 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20784 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20785 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20786 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20787 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20788 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20789 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20790 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20791 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20792 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20793 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20794 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20795 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20796 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20797 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20798 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20799 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20800 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20801 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20802 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20803 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20804 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20805 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20806 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20807 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20808 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20809 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20810 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20811 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20812 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20813 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20814 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20815 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20816 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20817 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20818 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20819 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20820 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20821 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20822 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20823 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20824 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20825 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20826 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20827 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20828 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20829 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20830 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20831 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20832 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20833 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20834 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20835 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20836 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20837 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20838 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20839 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20840 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20841 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20842 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20843 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20844 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20845 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20846 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20847 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20848 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20849 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20850 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20851 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20852 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20853 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20854 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20855 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20856 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20857 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20858 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20859 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20860 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20861 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20862 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20863 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20864 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20865 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20866 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20867 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20868 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20869 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20870 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20871 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20872 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20873 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20874 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20875 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20876 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20877 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20878 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20879 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20880 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20881 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20882 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20883 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20884 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20885 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20886 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20887 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20888 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20889 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20890 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20891 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20892 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20893 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20894 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20895 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20896 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20897 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20898 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20899 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20900 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20901 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20902 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20903 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20904 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20905 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20906 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20907 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20908 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20909 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20910 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20911 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20912 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20913 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20914 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20915 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20916 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20917 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20918 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20919 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20920 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20921 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20922 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20923 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20924 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20925 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20926 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20927 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20928 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20929 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20930 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20931 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20932 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20933 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20934 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20935 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20936 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20937 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20938 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20939 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20940 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20941 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20942 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20943 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20944 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20945 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20946 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20947 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20948 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20949 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20950 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20951 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20952 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20953 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20954 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20955 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20956 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20957 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20958 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20959 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20960 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20961 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20962 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20963 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20964 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20965 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20966 { (exit 1); exit 1; }; };;
20967 esac
20968 done
20970 # If the user did not use the arguments to specify the items to instantiate,
20971 # then the envvar interface is used. Set only those that are not.
20972 # We use the long form for the default assignment because of an extremely
20973 # bizarre bug on SunOS 4.1.3.
20974 if $ac_need_defaults; then
20975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20980 # Have a temporary directory for convenience. Make it in the build tree
20981 # simply because there is no reason to put it here, and in addition,
20982 # creating and moving files from /tmp can sometimes cause problems.
20983 # Create a temporary directory, and hook for its removal unless debugging.
20984 $debug ||
20986 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20987 trap '{ (exit 1); exit 1; }' 1 2 13 15
20990 # Create a (secure) tmp directory for tmp files.
20993 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20994 test -n "$tmp" && test -d "$tmp"
20995 } ||
20997 tmp=./confstat$$-$RANDOM
20998 (umask 077 && mkdir $tmp)
20999 } ||
21001 echo "$me: cannot create a temporary directory in ." >&2
21002 { (exit 1); exit 1; }
21005 _ACEOF
21007 cat >>$CONFIG_STATUS <<_ACEOF
21010 # CONFIG_FILES section.
21013 # No need to generate the scripts if there are no CONFIG_FILES.
21014 # This happens for instance when ./config.status config.h
21015 if test -n "\$CONFIG_FILES"; then
21016 # Protect against being on the right side of a sed subst in config.status.
21017 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21018 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21019 s,@SHELL@,$SHELL,;t t
21020 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21021 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21022 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21023 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21024 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21025 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21026 s,@exec_prefix@,$exec_prefix,;t t
21027 s,@prefix@,$prefix,;t t
21028 s,@program_transform_name@,$program_transform_name,;t t
21029 s,@bindir@,$bindir,;t t
21030 s,@sbindir@,$sbindir,;t t
21031 s,@libexecdir@,$libexecdir,;t t
21032 s,@datadir@,$datadir,;t t
21033 s,@sysconfdir@,$sysconfdir,;t t
21034 s,@sharedstatedir@,$sharedstatedir,;t t
21035 s,@localstatedir@,$localstatedir,;t t
21036 s,@libdir@,$libdir,;t t
21037 s,@includedir@,$includedir,;t t
21038 s,@oldincludedir@,$oldincludedir,;t t
21039 s,@infodir@,$infodir,;t t
21040 s,@mandir@,$mandir,;t t
21041 s,@build_alias@,$build_alias,;t t
21042 s,@host_alias@,$host_alias,;t t
21043 s,@target_alias@,$target_alias,;t t
21044 s,@DEFS@,$DEFS,;t t
21045 s,@ECHO_C@,$ECHO_C,;t t
21046 s,@ECHO_N@,$ECHO_N,;t t
21047 s,@ECHO_T@,$ECHO_T,;t t
21048 s,@LIBS@,$LIBS,;t t
21049 s,@WIN16_FILES@,$WIN16_FILES,;t t
21050 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21051 s,@DLLDEFS@,$DLLDEFS,;t t
21052 s,@build@,$build,;t t
21053 s,@build_cpu@,$build_cpu,;t t
21054 s,@build_vendor@,$build_vendor,;t t
21055 s,@build_os@,$build_os,;t t
21056 s,@host@,$host,;t t
21057 s,@host_cpu@,$host_cpu,;t t
21058 s,@host_vendor@,$host_vendor,;t t
21059 s,@host_os@,$host_os,;t t
21060 s,@SET_MAKE@,$SET_MAKE,;t t
21061 s,@CC@,$CC,;t t
21062 s,@CFLAGS@,$CFLAGS,;t t
21063 s,@LDFLAGS@,$LDFLAGS,;t t
21064 s,@CPPFLAGS@,$CPPFLAGS,;t t
21065 s,@ac_ct_CC@,$ac_ct_CC,;t t
21066 s,@EXEEXT@,$EXEEXT,;t t
21067 s,@OBJEXT@,$OBJEXT,;t t
21068 s,@CXX@,$CXX,;t t
21069 s,@CXXFLAGS@,$CXXFLAGS,;t t
21070 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21071 s,@CPPBIN@,$CPPBIN,;t t
21072 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21073 s,@TOOLSDIR@,$TOOLSDIR,;t t
21074 s,@CPP@,$CPP,;t t
21075 s,@X_CFLAGS@,$X_CFLAGS,;t t
21076 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21077 s,@X_LIBS@,$X_LIBS,;t t
21078 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21079 s,@LEX@,$LEX,;t t
21080 s,@LEXLIB@,$LEXLIB,;t t
21081 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21082 s,@XLEX@,$XLEX,;t t
21083 s,@BISON@,$BISON,;t t
21084 s,@AS@,$AS,;t t
21085 s,@ac_ct_AS@,$ac_ct_AS,;t t
21086 s,@LD@,$LD,;t t
21087 s,@ac_ct_LD@,$ac_ct_LD,;t t
21088 s,@AR@,$AR,;t t
21089 s,@ac_ct_AR@,$ac_ct_AR,;t t
21090 s,@RANLIB@,$RANLIB,;t t
21091 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21092 s,@STRIP@,$STRIP,;t t
21093 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21094 s,@WINDRES@,$WINDRES,;t t
21095 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21096 s,@LN_S@,$LN_S,;t t
21097 s,@LN@,$LN,;t t
21098 s,@EGREP@,$EGREP,;t t
21099 s,@LDCONFIG@,$LDCONFIG,;t t
21100 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21101 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21102 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21103 s,@LINT@,$LINT,;t t
21104 s,@LINTFLAGS@,$LINTFLAGS,;t t
21105 s,@DB2HTML@,$DB2HTML,;t t
21106 s,@DB2PDF@,$DB2PDF,;t t
21107 s,@DB2PS@,$DB2PS,;t t
21108 s,@DB2TXT@,$DB2TXT,;t t
21109 s,@FONTFORGE@,$FONTFORGE,;t t
21110 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21111 s,@XLIB@,$XLIB,;t t
21112 s,@XFILES@,$XFILES,;t t
21113 s,@OPENGLFILES@,$OPENGLFILES,;t t
21114 s,@GLU32FILES@,$GLU32FILES,;t t
21115 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21116 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21117 s,@GLUT32FILES@,$GLUT32FILES,;t t
21118 s,@NASLIBS@,$NASLIBS,;t t
21119 s,@CURSESLIBS@,$CURSESLIBS,;t t
21120 s,@sane_devel@,$sane_devel,;t t
21121 s,@SANELIBS@,$SANELIBS,;t t
21122 s,@SANEINCL@,$SANEINCL,;t t
21123 s,@ICULIBS@,$ICULIBS,;t t
21124 s,@ft_devel@,$ft_devel,;t t
21125 s,@ft_devel2@,$ft_devel2,;t t
21126 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21127 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21128 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21129 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21130 s,@ARTSLIBS@,$ARTSLIBS,;t t
21131 s,@ARTSINCL@,$ARTSINCL,;t t
21132 s,@ALSALIBS@,$ALSALIBS,;t t
21133 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21134 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21135 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21136 s,@DLLEXT@,$DLLEXT,;t t
21137 s,@DLLFLAGS@,$DLLFLAGS,;t t
21138 s,@DLLIBS@,$DLLIBS,;t t
21139 s,@LDSHARED@,$LDSHARED,;t t
21140 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21141 s,@LIBEXT@,$LIBEXT,;t t
21142 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21143 s,@DLLTOOL@,$DLLTOOL,;t t
21144 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21145 s,@DLLWRAP@,$DLLWRAP,;t t
21146 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21147 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21148 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21149 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21150 s,@IOKITLIB@,$IOKITLIB,;t t
21151 s,@CROSSTEST@,$CROSSTEST,;t t
21152 s,@CROSSCC@,$CROSSCC,;t t
21153 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21154 s,@LDPATH@,$LDPATH,;t t
21155 s,@CRTLIBS@,$CRTLIBS,;t t
21156 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21157 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21158 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21159 s,@LDD@,$LDD,;t t
21160 s,@ALLOCA@,$ALLOCA,;t t
21161 s,@LIBOBJS@,$LIBOBJS,;t t
21162 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21163 /@MAKE_RULES@/r $MAKE_RULES
21164 s,@MAKE_RULES@,,;t t
21165 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21166 s,@MAKE_DLL_RULES@,,;t t
21167 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21168 s,@MAKE_TEST_RULES@,,;t t
21169 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21170 s,@MAKE_LIB_RULES@,,;t t
21171 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21172 s,@MAKE_PROG_RULES@,,;t t
21173 CEOF
21175 _ACEOF
21177 cat >>$CONFIG_STATUS <<\_ACEOF
21178 # Split the substitutions into bite-sized pieces for seds with
21179 # small command number limits, like on Digital OSF/1 and HP-UX.
21180 ac_max_sed_lines=48
21181 ac_sed_frag=1 # Number of current file.
21182 ac_beg=1 # First line for current file.
21183 ac_end=$ac_max_sed_lines # Line after last line for current file.
21184 ac_more_lines=:
21185 ac_sed_cmds=
21186 while $ac_more_lines; do
21187 if test $ac_beg -gt 1; then
21188 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21189 else
21190 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21192 if test ! -s $tmp/subs.frag; then
21193 ac_more_lines=false
21194 else
21195 # The purpose of the label and of the branching condition is to
21196 # speed up the sed processing (if there are no `@' at all, there
21197 # is no need to browse any of the substitutions).
21198 # These are the two extra sed commands mentioned above.
21199 (echo ':t
21200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21201 if test -z "$ac_sed_cmds"; then
21202 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21203 else
21204 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21206 ac_sed_frag=`expr $ac_sed_frag + 1`
21207 ac_beg=$ac_end
21208 ac_end=`expr $ac_end + $ac_max_sed_lines`
21210 done
21211 if test -z "$ac_sed_cmds"; then
21212 ac_sed_cmds=cat
21214 fi # test -n "$CONFIG_FILES"
21216 _ACEOF
21217 cat >>$CONFIG_STATUS <<\_ACEOF
21218 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21220 case $ac_file in
21221 - | *:- | *:-:* ) # input from stdin
21222 cat >$tmp/stdin
21223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21227 * ) ac_file_in=$ac_file.in ;;
21228 esac
21230 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21233 X"$ac_file" : 'X\(//\)[^/]' \| \
21234 X"$ac_file" : 'X\(//\)$' \| \
21235 X"$ac_file" : 'X\(/\)' \| \
21236 . : '\(.\)' 2>/dev/null ||
21237 echo X"$ac_file" |
21238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21240 /^X\(\/\/\)$/{ s//\1/; q; }
21241 /^X\(\/\).*/{ s//\1/; q; }
21242 s/.*/./; q'`
21243 { if $as_mkdir_p; then
21244 mkdir -p "$ac_dir"
21245 else
21246 as_dir="$ac_dir"
21247 as_dirs=
21248 while test ! -d "$as_dir"; do
21249 as_dirs="$as_dir $as_dirs"
21250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21252 X"$as_dir" : 'X\(//\)[^/]' \| \
21253 X"$as_dir" : 'X\(//\)$' \| \
21254 X"$as_dir" : 'X\(/\)' \| \
21255 . : '\(.\)' 2>/dev/null ||
21256 echo X"$as_dir" |
21257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21259 /^X\(\/\/\)$/{ s//\1/; q; }
21260 /^X\(\/\).*/{ s//\1/; q; }
21261 s/.*/./; q'`
21262 done
21263 test ! -n "$as_dirs" || mkdir $as_dirs
21264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21265 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21266 { (exit 1); exit 1; }; }; }
21268 ac_builddir=.
21270 if test "$ac_dir" != .; then
21271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21272 # A "../" for each directory in $ac_dir_suffix.
21273 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21274 else
21275 ac_dir_suffix= ac_top_builddir=
21278 case $srcdir in
21279 .) # No --srcdir option. We are building in place.
21280 ac_srcdir=.
21281 if test -z "$ac_top_builddir"; then
21282 ac_top_srcdir=.
21283 else
21284 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21285 fi ;;
21286 [\\/]* | ?:[\\/]* ) # Absolute path.
21287 ac_srcdir=$srcdir$ac_dir_suffix;
21288 ac_top_srcdir=$srcdir ;;
21289 *) # Relative path.
21290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21292 esac
21294 # Do not use `cd foo && pwd` to compute absolute paths, because
21295 # the directories may not exist.
21296 case `pwd` in
21297 .) ac_abs_builddir="$ac_dir";;
21299 case "$ac_dir" in
21300 .) ac_abs_builddir=`pwd`;;
21301 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21302 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21303 esac;;
21304 esac
21305 case $ac_abs_builddir in
21306 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21308 case ${ac_top_builddir}. in
21309 .) ac_abs_top_builddir=$ac_abs_builddir;;
21310 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21311 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21312 esac;;
21313 esac
21314 case $ac_abs_builddir in
21315 .) ac_abs_srcdir=$ac_srcdir;;
21317 case $ac_srcdir in
21318 .) ac_abs_srcdir=$ac_abs_builddir;;
21319 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21320 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21321 esac;;
21322 esac
21323 case $ac_abs_builddir in
21324 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21326 case $ac_top_srcdir in
21327 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21328 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21329 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21330 esac;;
21331 esac
21334 case $INSTALL in
21335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21336 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21337 esac
21339 # Let's still pretend it is `configure' which instantiates (i.e., don't
21340 # use $as_me), people would be surprised to read:
21341 # /* config.h. Generated by config.status. */
21342 if test x"$ac_file" = x-; then
21343 configure_input=
21344 else
21345 configure_input="$ac_file. "
21347 configure_input=$configure_input"Generated from `echo $ac_file_in |
21348 sed 's,.*/,,'` by configure."
21350 # First look for the input files in the build tree, otherwise in the
21351 # src tree.
21352 ac_file_inputs=`IFS=:
21353 for f in $ac_file_in; do
21354 case $f in
21355 -) echo $tmp/stdin ;;
21356 [\\/$]*)
21357 # Absolute (can't be DOS-style, as IFS=:)
21358 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21359 echo "$as_me: error: cannot find input file: $f" >&2;}
21360 { (exit 1); exit 1; }; }
21361 echo "$f";;
21362 *) # Relative
21363 if test -f "$f"; then
21364 # Build tree
21365 echo "$f"
21366 elif test -f "$srcdir/$f"; then
21367 # Source tree
21368 echo "$srcdir/$f"
21369 else
21370 # /dev/null tree
21371 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21372 echo "$as_me: error: cannot find input file: $f" >&2;}
21373 { (exit 1); exit 1; }; }
21374 fi;;
21375 esac
21376 done` || { (exit 1); exit 1; }
21378 if test x"$ac_file" != x-; then
21379 { echo "$as_me:$LINENO: creating $ac_file" >&5
21380 echo "$as_me: creating $ac_file" >&6;}
21381 rm -f "$ac_file"
21383 _ACEOF
21384 cat >>$CONFIG_STATUS <<_ACEOF
21385 sed "$ac_vpsub
21386 $extrasub
21387 _ACEOF
21388 cat >>$CONFIG_STATUS <<\_ACEOF
21390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21391 s,@configure_input@,$configure_input,;t t
21392 s,@srcdir@,$ac_srcdir,;t t
21393 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21394 s,@top_srcdir@,$ac_top_srcdir,;t t
21395 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21396 s,@builddir@,$ac_builddir,;t t
21397 s,@abs_builddir@,$ac_abs_builddir,;t t
21398 s,@top_builddir@,$ac_top_builddir,;t t
21399 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21400 s,@INSTALL@,$ac_INSTALL,;t t
21401 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21402 rm -f $tmp/stdin
21403 if test x"$ac_file" != x-; then
21404 mv $tmp/out $ac_file
21405 else
21406 cat $tmp/out
21407 rm -f $tmp/out
21410 done
21411 _ACEOF
21412 cat >>$CONFIG_STATUS <<\_ACEOF
21415 # CONFIG_HEADER section.
21418 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21419 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21421 # ac_d sets the value in "#define NAME VALUE" lines.
21422 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21423 ac_dB='[ ].*$,\1#\2'
21424 ac_dC=' '
21425 ac_dD=',;t'
21426 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21427 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21428 ac_uB='$,\1#\2define\3'
21429 ac_uC=' '
21430 ac_uD=',;t'
21432 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21434 case $ac_file in
21435 - | *:- | *:-:* ) # input from stdin
21436 cat >$tmp/stdin
21437 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21439 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21440 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21441 * ) ac_file_in=$ac_file.in ;;
21442 esac
21444 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21445 echo "$as_me: creating $ac_file" >&6;}
21447 # First look for the input files in the build tree, otherwise in the
21448 # src tree.
21449 ac_file_inputs=`IFS=:
21450 for f in $ac_file_in; do
21451 case $f in
21452 -) echo $tmp/stdin ;;
21453 [\\/$]*)
21454 # Absolute (can't be DOS-style, as IFS=:)
21455 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21456 echo "$as_me: error: cannot find input file: $f" >&2;}
21457 { (exit 1); exit 1; }; }
21458 # Do quote $f, to prevent DOS paths from being IFS'd.
21459 echo "$f";;
21460 *) # Relative
21461 if test -f "$f"; then
21462 # Build tree
21463 echo "$f"
21464 elif test -f "$srcdir/$f"; then
21465 # Source tree
21466 echo "$srcdir/$f"
21467 else
21468 # /dev/null tree
21469 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21470 echo "$as_me: error: cannot find input file: $f" >&2;}
21471 { (exit 1); exit 1; }; }
21472 fi;;
21473 esac
21474 done` || { (exit 1); exit 1; }
21475 # Remove the trailing spaces.
21476 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21478 _ACEOF
21480 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21481 # `conftest.undefs', that substitutes the proper values into
21482 # config.h.in to produce config.h. The first handles `#define'
21483 # templates, and the second `#undef' templates.
21484 # And first: Protect against being on the right side of a sed subst in
21485 # config.status. Protect against being in an unquoted here document
21486 # in config.status.
21487 rm -f conftest.defines conftest.undefs
21488 # Using a here document instead of a string reduces the quoting nightmare.
21489 # Putting comments in sed scripts is not portable.
21491 # `end' is used to avoid that the second main sed command (meant for
21492 # 0-ary CPP macros) applies to n-ary macro definitions.
21493 # See the Autoconf documentation for `clear'.
21494 cat >confdef2sed.sed <<\_ACEOF
21495 s/[\\&,]/\\&/g
21496 s,[\\$`],\\&,g
21497 t clear
21498 : clear
21499 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21500 t end
21501 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21502 : end
21503 _ACEOF
21504 # If some macros were called several times there might be several times
21505 # the same #defines, which is useless. Nevertheless, we may not want to
21506 # sort them, since we want the *last* AC-DEFINE to be honored.
21507 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21508 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21509 rm -f confdef2sed.sed
21511 # This sed command replaces #undef with comments. This is necessary, for
21512 # example, in the case of _POSIX_SOURCE, which is predefined and required
21513 # on some systems where configure will not decide to define it.
21514 cat >>conftest.undefs <<\_ACEOF
21515 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21516 _ACEOF
21518 # Break up conftest.defines because some shells have a limit on the size
21519 # of here documents, and old seds have small limits too (100 cmds).
21520 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21521 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21522 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21523 echo ' :' >>$CONFIG_STATUS
21524 rm -f conftest.tail
21525 while grep . conftest.defines >/dev/null
21527 # Write a limited-size here document to $tmp/defines.sed.
21528 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21529 # Speed up: don't consider the non `#define' lines.
21530 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21531 # Work around the forget-to-reset-the-flag bug.
21532 echo 't clr' >>$CONFIG_STATUS
21533 echo ': clr' >>$CONFIG_STATUS
21534 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21535 echo 'CEOF
21536 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21537 rm -f $tmp/in
21538 mv $tmp/out $tmp/in
21539 ' >>$CONFIG_STATUS
21540 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21541 rm -f conftest.defines
21542 mv conftest.tail conftest.defines
21543 done
21544 rm -f conftest.defines
21545 echo ' fi # grep' >>$CONFIG_STATUS
21546 echo >>$CONFIG_STATUS
21548 # Break up conftest.undefs because some shells have a limit on the size
21549 # of here documents, and old seds have small limits too (100 cmds).
21550 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21551 rm -f conftest.tail
21552 while grep . conftest.undefs >/dev/null
21554 # Write a limited-size here document to $tmp/undefs.sed.
21555 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21556 # Speed up: don't consider the non `#undef'
21557 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21558 # Work around the forget-to-reset-the-flag bug.
21559 echo 't clr' >>$CONFIG_STATUS
21560 echo ': clr' >>$CONFIG_STATUS
21561 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21562 echo 'CEOF
21563 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21564 rm -f $tmp/in
21565 mv $tmp/out $tmp/in
21566 ' >>$CONFIG_STATUS
21567 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21568 rm -f conftest.undefs
21569 mv conftest.tail conftest.undefs
21570 done
21571 rm -f conftest.undefs
21573 cat >>$CONFIG_STATUS <<\_ACEOF
21574 # Let's still pretend it is `configure' which instantiates (i.e., don't
21575 # use $as_me), people would be surprised to read:
21576 # /* config.h. Generated by config.status. */
21577 if test x"$ac_file" = x-; then
21578 echo "/* Generated by configure. */" >$tmp/config.h
21579 else
21580 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21582 cat $tmp/in >>$tmp/config.h
21583 rm -f $tmp/in
21584 if test x"$ac_file" != x-; then
21585 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21586 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21587 echo "$as_me: $ac_file is unchanged" >&6;}
21588 else
21589 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591 X"$ac_file" : 'X\(//\)[^/]' \| \
21592 X"$ac_file" : 'X\(//\)$' \| \
21593 X"$ac_file" : 'X\(/\)' \| \
21594 . : '\(.\)' 2>/dev/null ||
21595 echo X"$ac_file" |
21596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21598 /^X\(\/\/\)$/{ s//\1/; q; }
21599 /^X\(\/\).*/{ s//\1/; q; }
21600 s/.*/./; q'`
21601 { if $as_mkdir_p; then
21602 mkdir -p "$ac_dir"
21603 else
21604 as_dir="$ac_dir"
21605 as_dirs=
21606 while test ! -d "$as_dir"; do
21607 as_dirs="$as_dir $as_dirs"
21608 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21610 X"$as_dir" : 'X\(//\)[^/]' \| \
21611 X"$as_dir" : 'X\(//\)$' \| \
21612 X"$as_dir" : 'X\(/\)' \| \
21613 . : '\(.\)' 2>/dev/null ||
21614 echo X"$as_dir" |
21615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21617 /^X\(\/\/\)$/{ s//\1/; q; }
21618 /^X\(\/\).*/{ s//\1/; q; }
21619 s/.*/./; q'`
21620 done
21621 test ! -n "$as_dirs" || mkdir $as_dirs
21622 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21624 { (exit 1); exit 1; }; }; }
21626 rm -f $ac_file
21627 mv $tmp/config.h $ac_file
21629 else
21630 cat $tmp/config.h
21631 rm -f $tmp/config.h
21633 done
21634 _ACEOF
21635 cat >>$CONFIG_STATUS <<\_ACEOF
21638 # CONFIG_COMMANDS section.
21640 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21641 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21642 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21643 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21644 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$ac_dest" : 'X\(//\)[^/]' \| \
21646 X"$ac_dest" : 'X\(//\)$' \| \
21647 X"$ac_dest" : 'X\(/\)' \| \
21648 . : '\(.\)' 2>/dev/null ||
21649 echo X"$ac_dest" |
21650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21652 /^X\(\/\/\)$/{ s//\1/; q; }
21653 /^X\(\/\).*/{ s//\1/; q; }
21654 s/.*/./; q'`
21655 { if $as_mkdir_p; then
21656 mkdir -p "$ac_dir"
21657 else
21658 as_dir="$ac_dir"
21659 as_dirs=
21660 while test ! -d "$as_dir"; do
21661 as_dirs="$as_dir $as_dirs"
21662 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$as_dir" : 'X\(//\)[^/]' \| \
21665 X"$as_dir" : 'X\(//\)$' \| \
21666 X"$as_dir" : 'X\(/\)' \| \
21667 . : '\(.\)' 2>/dev/null ||
21668 echo X"$as_dir" |
21669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21671 /^X\(\/\/\)$/{ s//\1/; q; }
21672 /^X\(\/\).*/{ s//\1/; q; }
21673 s/.*/./; q'`
21674 done
21675 test ! -n "$as_dirs" || mkdir $as_dirs
21676 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21677 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21678 { (exit 1); exit 1; }; }; }
21680 ac_builddir=.
21682 if test "$ac_dir" != .; then
21683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21684 # A "../" for each directory in $ac_dir_suffix.
21685 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21686 else
21687 ac_dir_suffix= ac_top_builddir=
21690 case $srcdir in
21691 .) # No --srcdir option. We are building in place.
21692 ac_srcdir=.
21693 if test -z "$ac_top_builddir"; then
21694 ac_top_srcdir=.
21695 else
21696 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21697 fi ;;
21698 [\\/]* | ?:[\\/]* ) # Absolute path.
21699 ac_srcdir=$srcdir$ac_dir_suffix;
21700 ac_top_srcdir=$srcdir ;;
21701 *) # Relative path.
21702 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21703 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21704 esac
21706 # Do not use `cd foo && pwd` to compute absolute paths, because
21707 # the directories may not exist.
21708 case `pwd` in
21709 .) ac_abs_builddir="$ac_dir";;
21711 case "$ac_dir" in
21712 .) ac_abs_builddir=`pwd`;;
21713 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21714 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21715 esac;;
21716 esac
21717 case $ac_abs_builddir in
21718 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21720 case ${ac_top_builddir}. in
21721 .) ac_abs_top_builddir=$ac_abs_builddir;;
21722 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21723 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21724 esac;;
21725 esac
21726 case $ac_abs_builddir in
21727 .) ac_abs_srcdir=$ac_srcdir;;
21729 case $ac_srcdir in
21730 .) ac_abs_srcdir=$ac_abs_builddir;;
21731 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21732 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21733 esac;;
21734 esac
21735 case $ac_abs_builddir in
21736 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21738 case $ac_top_srcdir in
21739 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21740 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21741 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21742 esac;;
21743 esac
21746 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21747 echo "$as_me: executing $ac_dest commands" >&6;}
21748 case $ac_dest in
21749 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21750 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21751 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21752 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21753 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21754 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21755 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21756 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21757 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21758 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21759 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21760 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21761 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21762 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21763 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21764 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21765 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21766 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21767 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21768 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21769 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21770 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21771 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21772 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21773 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21774 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21775 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21776 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21777 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21778 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21779 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21780 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21781 esac
21782 done
21783 _ACEOF
21785 cat >>$CONFIG_STATUS <<\_ACEOF
21787 { (exit 0); exit 0; }
21788 _ACEOF
21789 chmod +x $CONFIG_STATUS
21790 ac_clean_files=$ac_clean_files_save
21793 # configure is writing to config.log, and then calls config.status.
21794 # config.status does its own redirection, appending to config.log.
21795 # Unfortunately, on DOS this fails, as config.log is still kept open
21796 # by configure, so config.status won't be able to write to it; its
21797 # output is simply discarded. So we exec the FD to /dev/null,
21798 # effectively closing config.log, so it can be properly (re)opened and
21799 # appended to by config.status. When coming back to configure, we
21800 # need to make the FD available again.
21801 if test "$no_create" != yes; then
21802 ac_cs_success=:
21803 ac_config_status_args=
21804 test "$silent" = yes &&
21805 ac_config_status_args="$ac_config_status_args --quiet"
21806 exec 5>/dev/null
21807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21808 exec 5>>config.log
21809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21810 # would make configure fail if this is the last instruction.
21811 $ac_cs_success || { (exit 1); exit 1; }
21815 if test "$have_x" = "no"
21816 then
21817 echo
21818 echo "*** Warning: X development files not found. Wine will be built without"
21819 echo "*** X support, which currently does not work, and would probably not be"
21820 echo "*** what you want anyway. You will need to install devel packages of"
21821 echo "*** Xlib/Xfree86 at the very least."
21824 if test "$wine_cv_opengl_version_OK" = "no"
21825 then
21826 echo
21827 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21828 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21831 if test "$wine_cv_msg_freetype" = "yes"
21832 then
21833 echo
21834 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21835 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21836 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21837 echo "*** enable Wine to use TrueType fonts."
21840 echo
21841 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21842 echo