Add upper limit for the number of pending timer interrupts.
[wine.git] / configure
blob310c609b9b728b812f5b4aa2d98a4ab2b568e312
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20031118.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20031118'
270 PACKAGE_STRING='Wine 20031118'
271 PACKAGE_BUGREPORT=''
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures Wine 20031118 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of Wine 20031118:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-win16 do not include Win16 support
853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --without-opengl do not use OpenGL
860 --without-curses do not use curses
861 --with-wine-tools=<dir> use Wine tools from directory <dir>
862 --with-x use the X Window System
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 _ACEOF
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891 ac_dir_suffix= ac_top_builddir=
894 case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 # absolute.
911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916 cd $ac_dir
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_srcdir/configure.gnu; then
919 echo
920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
922 echo
923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
926 echo
927 $ac_configure --help
928 else
929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 cd "$ac_popdir"
932 done
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
937 cat <<\_ACEOF
938 Wine configure 20031118
939 generated by GNU Autoconf 2.57
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
945 _ACEOF
946 exit 0
948 exec 5>config.log
949 cat >&5 <<_ACEOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
953 It was created by Wine $as_me 20031118, which was
954 generated by GNU Autoconf 2.57. Invocation command line was
956 $ $0 $@
958 _ACEOF
960 cat <<_ASUNAME
961 ## --------- ##
962 ## Platform. ##
963 ## --------- ##
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982 _ASUNAME
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 for as_dir in $PATH
987 IFS=$as_save_IFS
988 test -z "$as_dir" && as_dir=.
989 echo "PATH: $as_dir"
990 done
992 } >&5
994 cat >&5 <<_ACEOF
997 ## ----------- ##
998 ## Core tests. ##
999 ## ----------- ##
1001 _ACEOF
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_configure_args=
1010 ac_configure_args0=
1011 ac_configure_args1=
1012 ac_sep=
1013 ac_must_keep_next=false
1014 for ac_pass in 1 2
1016 for ac_arg
1018 case $ac_arg in
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 continue ;;
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 esac
1026 case $ac_pass in
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1032 else
1033 case $ac_arg in
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 esac
1042 -* ) ac_must_keep_next=true ;;
1043 esac
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1047 ac_sep=" "
1049 esac
1050 done
1051 done
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1063 echo
1065 cat <<\_ASBOX
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1069 _ASBOX
1070 echo
1071 # The following way of writing the cache mishandles newlines in values,
1073 (set) 2>&1 |
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 *ac_space=\ *)
1076 sed -n \
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081 sed -n \
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 esac;
1086 echo
1088 cat <<\_ASBOX
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1092 _ASBOX
1093 echo
1094 for ac_var in $ac_subst_vars
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1098 done | sort
1099 echo
1101 if test -n "$ac_subst_files"; then
1102 cat <<\_ASBOX
1103 ## ------------- ##
1104 ## Output files. ##
1105 ## ------------- ##
1106 _ASBOX
1107 echo
1108 for ac_var in $ac_subst_files
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1116 if test -s confdefs.h; then
1117 cat <<\_ASBOX
1118 ## ----------- ##
1119 ## confdefs.h. ##
1120 ## ----------- ##
1121 _ASBOX
1122 echo
1123 sed "/^$/d" confdefs.h | sort
1124 echo
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1129 } >&5
1130 rm -f core *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132 exit $exit_status
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 else
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1185 . "$ac_site_file"
1187 done
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195 case $cache_file in
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1198 esac
1200 else
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203 >$cache_file
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1216 set,)
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,set)
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1224 ,);;
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1234 fi;;
1235 esac
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1238 case $ac_new_val in
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1242 esac
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246 esac
1248 done
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290 ac_config_headers="$ac_config_headers include/config.h"
1292 ac_aux_dir=
1293 for ac_dir in tools $srcdir/tools; do
1294 if test -f $ac_dir/install-sh; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1297 break
1298 elif test -f $ac_dir/install.sh; then
1299 ac_aux_dir=$ac_dir
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1301 break
1302 elif test -f $ac_dir/shtool; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1305 break
1307 done
1308 if test -z "$ac_aux_dir"; then
1309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311 { (exit 1); exit 1; }; }
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1319 # Check whether --enable-win16 or --disable-win16 was given.
1320 if test "${enable_win16+set}" = set; then
1321 enableval="$enable_win16"
1324 # Check whether --enable-debug or --disable-debug was given.
1325 if test "${enable_debug+set}" = set; then
1326 enableval="$enable_debug"
1329 # Check whether --enable-trace or --disable-trace was given.
1330 if test "${enable_trace+set}" = set; then
1331 enableval="$enable_trace"
1336 # Check whether --with-opengl or --without-opengl was given.
1337 if test "${with_opengl+set}" = set; then
1338 withval="$with_opengl"
1342 # Check whether --with-curses or --without-curses was given.
1343 if test "${with_curses+set}" = set; then
1344 withval="$with_curses"
1348 # Check whether --with-wine-tools or --without-wine-tools was given.
1349 if test "${with_wine_tools+set}" = set; then
1350 withval="$with_wine_tools"
1354 WIN16_FILES="\$(WIN16_FILES)"
1356 WIN16_INSTALL="\$(WIN16_INSTALL)"
1358 if test "x$enable_win16" = "xno"
1359 then
1360 WIN16_FILES=""
1361 WIN16_INSTALL=""
1363 if test "x$enable_debug" = "xno"
1364 then
1366 cat >>confdefs.h <<\_ACEOF
1367 #define NO_DEBUG_MSGS 1
1368 _ACEOF
1371 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1372 then
1374 cat >>confdefs.h <<\_ACEOF
1375 #define NO_TRACE_MSGS 1
1376 _ACEOF
1381 # Make sure we can run config.sub.
1382 $ac_config_sub sun4 >/dev/null 2>&1 ||
1383 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1384 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1385 { (exit 1); exit 1; }; }
1387 echo "$as_me:$LINENO: checking build system type" >&5
1388 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1389 if test "${ac_cv_build+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392 ac_cv_build_alias=$build_alias
1393 test -z "$ac_cv_build_alias" &&
1394 ac_cv_build_alias=`$ac_config_guess`
1395 test -z "$ac_cv_build_alias" &&
1396 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1397 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1398 { (exit 1); exit 1; }; }
1399 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1406 echo "${ECHO_T}$ac_cv_build" >&6
1407 build=$ac_cv_build
1408 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking host system type" >&5
1414 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1415 if test "${ac_cv_host+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 else
1418 ac_cv_host_alias=$host_alias
1419 test -z "$ac_cv_host_alias" &&
1420 ac_cv_host_alias=$ac_cv_build_alias
1421 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1428 echo "${ECHO_T}$ac_cv_host" >&6
1429 host=$ac_cv_host
1430 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1436 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1437 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1438 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 cat >conftest.make <<\_ACEOF
1442 all:
1443 @echo 'ac_maketemp="$(MAKE)"'
1444 _ACEOF
1445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1446 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1447 if test -n "$ac_maketemp"; then
1448 eval ac_cv_prog_make_${ac_make}_set=yes
1449 else
1450 eval ac_cv_prog_make_${ac_make}_set=no
1452 rm -f conftest.make
1454 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1455 echo "$as_me:$LINENO: result: yes" >&5
1456 echo "${ECHO_T}yes" >&6
1457 SET_MAKE=
1458 else
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 SET_MAKE="MAKE=${MAKE-make}"
1464 ac_ext=c
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 break 2
1491 done
1492 done
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1507 ac_ct_CC=$CC
1508 # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="gcc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1529 done
1530 done
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1543 CC=$ac_ct_CC
1544 else
1545 CC="$ac_cv_prog_CC"
1548 if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_CC="${ac_tool_prefix}cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 break 2
1571 done
1572 done
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578 echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1586 if test -z "$ac_cv_prog_CC"; then
1587 ac_ct_CC=$CC
1588 # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1609 done
1610 done
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1623 CC=$ac_ct_CC
1624 else
1625 CC="$ac_cv_prog_CC"
1629 if test -z "$CC"; then
1630 # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640 ac_prog_rejected=no
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649 ac_prog_rejected=yes
1650 continue
1652 ac_cv_prog_CC="cc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1659 if test $ac_prog_rejected = yes; then
1660 # We found a bogon in the path, so make sure we never use it.
1661 set dummy $ac_cv_prog_CC
1662 shift
1663 if test $# != 0; then
1664 # We chose a different compiler from the bogus one.
1665 # However, it has the same basename, so the bogon will be chosen
1666 # first if we set CC to just the basename; use the full file name.
1667 shift
1668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 for ac_prog in cl
1687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1708 done
1709 done
1713 CC=$ac_cv_prog_CC
1714 if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716 echo "${ECHO_T}$CC" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1722 test -n "$CC" && break
1723 done
1725 if test -z "$CC"; then
1726 ac_ct_CC=$CC
1727 for ac_prog in cl
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1750 done
1751 done
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$ac_ct_CC" && break
1765 done
1767 CC=$ac_ct_CC
1773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1774 See \`config.log' for more details." >&5
1775 echo "$as_me: error: no acceptable C compiler found in \$PATH
1776 See \`config.log' for more details." >&2;}
1777 { (exit 1); exit 1; }; }
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781 "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784 (eval $ac_compiler --version </dev/null >&5) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789 (eval $ac_compiler -v </dev/null >&5) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794 (eval $ac_compiler -V </dev/null >&5) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1799 cat >conftest.$ac_ext <<_ACEOF
1800 #line $LINENO "configure"
1801 /* confdefs.h. */
1802 _ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1808 main ()
1812 return 0;
1814 _ACEOF
1815 ac_clean_files_save=$ac_clean_files
1816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817 # Try to create an executable without -o first, disregard a.out.
1818 # It will help us diagnose broken compilers, and finding out an intuition
1819 # of exeext.
1820 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1821 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824 (eval $ac_link_default) 2>&5
1825 ac_status=$?
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 # Find the output, starting from the most likely. This scheme is
1829 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1830 # resort.
1832 # Be careful to initialize this variable, since it used to be cached.
1833 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1834 ac_cv_exeext=
1835 # b.out is created by i960 compilers.
1836 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 test -f "$ac_file" || continue
1839 case $ac_file in
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1842 conftest.$ac_ext )
1843 # This is the source file.
1845 [ab].out )
1846 # We found the default executable, but exeext='' is most
1847 # certainly right.
1848 break;;
1849 *.* )
1850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 # FIXME: I believe we export ac_cv_exeext for Libtool,
1852 # but it would be cool to find out if it's true. Does anybody
1853 # maintain Libtool? --akim.
1854 export ac_cv_exeext
1855 break;;
1857 break;;
1858 esac
1859 done
1860 else
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&2;}
1868 { (exit 77); exit 77; }; }
1871 ac_exeext=$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_file" >&5
1873 echo "${ECHO_T}$ac_file" >&6
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880 # If not cross compiling, check that we can run a simple program.
1881 if test "$cross_compiling" != yes; then
1882 if { ac_try='./$ac_file'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884 (eval $ac_try) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1888 cross_compiling=no
1889 else
1890 if test "$cross_compiling" = maybe; then
1891 cross_compiling=yes
1892 else
1893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894 If you meant to cross compile, use \`--host'.
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907 ac_clean_files=$ac_clean_files_save
1908 # Check the compiler produces executables we can run. If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913 echo "${ECHO_T}$cross_compiling" >&6
1915 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; then
1922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924 # work properly (i.e., refer to `conftest.exe'), while it won't with
1925 # `rm'.
1926 for ac_file in conftest.exe conftest conftest.*; do
1927 test -f "$ac_file" || continue
1928 case $ac_file in
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931 export ac_cv_exeext
1932 break;;
1933 * ) break;;
1934 esac
1935 done
1936 else
1937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1944 rm -f conftest$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946 echo "${ECHO_T}$ac_cv_exeext" >&6
1948 rm -f conftest.$ac_ext
1949 EXEEXT=$ac_cv_exeext
1950 ac_exeext=$EXEEXT
1951 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 if test "${ac_cv_objext+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 /* confdefs.h. */
1959 _ACEOF
1960 cat confdefs.h >>conftest.$ac_ext
1961 cat >>conftest.$ac_ext <<_ACEOF
1962 /* end confdefs.h. */
1965 main ()
1969 return 0;
1971 _ACEOF
1972 rm -f conftest.o conftest.obj
1973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974 (eval $ac_compile) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979 case $ac_file in
1980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1982 break;;
1983 esac
1984 done
1985 else
1986 echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1989 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1990 See \`config.log' for more details." >&5
1991 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1992 See \`config.log' for more details." >&2;}
1993 { (exit 1); exit 1; }; }
1996 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1999 echo "${ECHO_T}$ac_cv_objext" >&6
2000 OBJEXT=$ac_cv_objext
2001 ac_objext=$OBJEXT
2002 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2003 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2004 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line $LINENO "configure"
2009 /* confdefs.h. */
2010 _ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h. */
2016 main ()
2018 #ifndef __GNUC__
2019 choke me
2020 #endif
2023 return 0;
2025 _ACEOF
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2038 ac_compiler_gnu=yes
2039 else
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 ac_compiler_gnu=no
2045 rm -f conftest.$ac_objext conftest.$ac_ext
2046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2049 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051 GCC=`test $ac_compiler_gnu = yes && echo yes`
2052 ac_test_CFLAGS=${CFLAGS+set}
2053 ac_save_CFLAGS=$CFLAGS
2054 CFLAGS="-g"
2055 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057 if test "${ac_cv_prog_cc_g+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 cat >conftest.$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 /* confdefs.h. */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2069 main ()
2073 return 0;
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); } &&
2082 { ac_try='test -s conftest.$ac_objext'
2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 (eval $ac_try) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; }; then
2088 ac_cv_prog_cc_g=yes
2089 else
2090 echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 ac_cv_prog_cc_g=no
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2097 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2099 if test "$ac_test_CFLAGS" = set; then
2100 CFLAGS=$ac_save_CFLAGS
2101 elif test $ac_cv_prog_cc_g = yes; then
2102 if test "$GCC" = yes; then
2103 CFLAGS="-g -O2"
2104 else
2105 CFLAGS="-g"
2107 else
2108 if test "$GCC" = yes; then
2109 CFLAGS="-O2"
2110 else
2111 CFLAGS=
2114 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2115 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2116 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119 ac_cv_prog_cc_stdc=no
2120 ac_save_CC=$CC
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 /* confdefs.h. */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2128 #include <stdarg.h>
2129 #include <stdio.h>
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2136 char **p;
2137 int i;
2139 return p[i];
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2143 char *s;
2144 va_list v;
2145 va_start (v,p);
2146 s = g (p, va_arg (v,int));
2147 va_end (v);
2148 return s;
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154 int argc;
2155 char **argv;
2157 main ()
2159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2161 return 0;
2163 _ACEOF
2164 # Don't try gcc -ansi; that turns off useful extensions and
2165 # breaks some systems' header files.
2166 # AIX -qlanglvl=ansi
2167 # Ultrix and OSF/1 -std1
2168 # HP-UX 10.20 and later -Ae
2169 # HP-UX older versions -Aa -D_HPUX_SOURCE
2170 # SVR4 -Xc -D__EXTENSIONS__
2171 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173 CC="$ac_save_CC $ac_arg"
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2193 rm -f conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2200 case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216 choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 for ac_declaration in \
2232 '' \
2233 'extern "C" void std::exit (int) throw (); using std::exit;' \
2234 'extern "C" void std::exit (int); using std::exit;' \
2235 'extern "C" void exit (int) throw ();' \
2236 'extern "C" void exit (int);' \
2237 'void exit (int);'
2239 cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 /* confdefs.h. */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2246 $ac_declaration
2247 #include <stdlib.h>
2249 main ()
2251 exit (42);
2253 return 0;
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2269 else
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2273 continue
2275 rm -f conftest.$ac_objext conftest.$ac_ext
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #line $LINENO "configure"
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2283 $ac_declaration
2285 main ()
2287 exit (42);
2289 return 0;
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2304 break
2305 else
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311 done
2312 rm -f conftest*
2313 if test -n "$ac_declaration"; then
2314 echo '#ifdef __cplusplus' >>confdefs.h
2315 echo $ac_declaration >>confdefs.h
2316 echo '#endif' >>confdefs.h
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2337 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2338 # On Suns, sometimes $CPP names a directory.
2339 if test -n "$CPP" && test -d "$CPP"; then
2340 CPP=
2342 if test -z "$CPP"; then
2343 if test "${ac_cv_prog_CPP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 # Double quotes because CPP needs to be expanded
2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2349 ac_preproc_ok=false
2350 for ac_c_preproc_warn_flag in '' yes
2352 # Use a header file that comes with gcc, so configuring glibc
2353 # with a fresh cross-compiler works.
2354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355 # <limits.h> exists even on freestanding compilers.
2356 # On the NeXT, cc -E runs the code through the compiler's parser,
2357 # not just through cpp. "Syntax error" is here to catch this case.
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2365 #ifdef __STDC__
2366 # include <limits.h>
2367 #else
2368 # include <assert.h>
2369 #endif
2370 Syntax error
2371 _ACEOF
2372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } >/dev/null; then
2380 if test -s conftest.err; then
2381 ac_cpp_err=$ac_c_preproc_warn_flag
2382 else
2383 ac_cpp_err=
2385 else
2386 ac_cpp_err=yes
2388 if test -z "$ac_cpp_err"; then
2390 else
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2394 # Broken: fails on valid input.
2395 continue
2397 rm -f conftest.err conftest.$ac_ext
2399 # OK, works on sane cases. Now check whether non-existent headers
2400 # can be detected and how.
2401 cat >conftest.$ac_ext <<_ACEOF
2402 #line $LINENO "configure"
2403 /* confdefs.h. */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2408 #include <ac_nonexistent.h>
2409 _ACEOF
2410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } >/dev/null; then
2418 if test -s conftest.err; then
2419 ac_cpp_err=$ac_c_preproc_warn_flag
2420 else
2421 ac_cpp_err=
2423 else
2424 ac_cpp_err=yes
2426 if test -z "$ac_cpp_err"; then
2427 # Broken: success on invalid input.
2428 continue
2429 else
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2433 # Passes both tests.
2434 ac_preproc_ok=:
2435 break
2437 rm -f conftest.err conftest.$ac_ext
2439 done
2440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2441 rm -f conftest.err conftest.$ac_ext
2442 if $ac_preproc_ok; then
2443 break
2446 done
2447 ac_cv_prog_CPP=$CPP
2450 CPP=$ac_cv_prog_CPP
2451 else
2452 ac_cv_prog_CPP=$CPP
2454 echo "$as_me:$LINENO: result: $CPP" >&5
2455 echo "${ECHO_T}$CPP" >&6
2456 ac_preproc_ok=false
2457 for ac_c_preproc_warn_flag in '' yes
2459 # Use a header file that comes with gcc, so configuring glibc
2460 # with a fresh cross-compiler works.
2461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2462 # <limits.h> exists even on freestanding compilers.
2463 # On the NeXT, cc -E runs the code through the compiler's parser,
2464 # not just through cpp. "Syntax error" is here to catch this case.
2465 cat >conftest.$ac_ext <<_ACEOF
2466 #line $LINENO "configure"
2467 /* confdefs.h. */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2472 #ifdef __STDC__
2473 # include <limits.h>
2474 #else
2475 # include <assert.h>
2476 #endif
2477 Syntax error
2478 _ACEOF
2479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } >/dev/null; then
2487 if test -s conftest.err; then
2488 ac_cpp_err=$ac_c_preproc_warn_flag
2489 else
2490 ac_cpp_err=
2492 else
2493 ac_cpp_err=yes
2495 if test -z "$ac_cpp_err"; then
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 # Broken: fails on valid input.
2502 continue
2504 rm -f conftest.err conftest.$ac_ext
2506 # OK, works on sane cases. Now check whether non-existent headers
2507 # can be detected and how.
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 #include <ac_nonexistent.h>
2516 _ACEOF
2517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } >/dev/null; then
2525 if test -s conftest.err; then
2526 ac_cpp_err=$ac_c_preproc_warn_flag
2527 else
2528 ac_cpp_err=
2530 else
2531 ac_cpp_err=yes
2533 if test -z "$ac_cpp_err"; then
2534 # Broken: success on invalid input.
2535 continue
2536 else
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 # Passes both tests.
2541 ac_preproc_ok=:
2542 break
2544 rm -f conftest.err conftest.$ac_ext
2546 done
2547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2548 rm -f conftest.err conftest.$ac_ext
2549 if $ac_preproc_ok; then
2551 else
2552 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2555 See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }
2559 ac_ext=c
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2567 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2568 if test "${wine_cv_toolsdir+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 if test -z "$with_wine_tools"; then
2572 if test "$cross_compiling" = "yes"; then
2573 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2574 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2575 { (exit 1); exit 1; }; }
2576 else
2577 wine_cv_toolsdir="\$(TOPOBJDIR)"
2579 elif test -d "$with_wine_tools/tools/winebuild"; then
2580 case $with_wine_tools in
2581 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2582 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2583 esac
2584 else
2585 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2586 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2587 { (exit 1); exit 1; }; }
2590 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2591 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2592 TOOLSDIR=$wine_cv_toolsdir
2597 echo "$as_me:$LINENO: checking for X" >&5
2598 echo $ECHO_N "checking for X... $ECHO_C" >&6
2601 # Check whether --with-x or --without-x was given.
2602 if test "${with_x+set}" = set; then
2603 withval="$with_x"
2606 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2607 if test "x$with_x" = xno; then
2608 # The user explicitly disabled X.
2609 have_x=disabled
2610 else
2611 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2612 # Both variables are already set.
2613 have_x=yes
2614 else
2615 if test "${ac_cv_have_x+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 # One or both of the vars are not set, and there is no cached value.
2619 ac_x_includes=no ac_x_libraries=no
2620 rm -fr conftest.dir
2621 if mkdir conftest.dir; then
2622 cd conftest.dir
2623 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2624 cat >Imakefile <<'_ACEOF'
2625 acfindx:
2626 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2627 _ACEOF
2628 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2630 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2631 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2632 for ac_extension in a so sl; do
2633 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2634 test -f $ac_im_libdir/libX11.$ac_extension; then
2635 ac_im_usrlibdir=$ac_im_libdir; break
2637 done
2638 # Screen out bogus values from the imake configuration. They are
2639 # bogus both because they are the default anyway, and because
2640 # using them would break gcc on systems where it needs fixed includes.
2641 case $ac_im_incroot in
2642 /usr/include) ;;
2643 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2644 esac
2645 case $ac_im_usrlibdir in
2646 /usr/lib | /lib) ;;
2647 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2648 esac
2650 cd ..
2651 rm -fr conftest.dir
2654 # Standard set of common directories for X headers.
2655 # Check X11 before X11Rn because it is often a symlink to the current release.
2656 ac_x_header_dirs='
2657 /usr/X11/include
2658 /usr/X11R6/include
2659 /usr/X11R5/include
2660 /usr/X11R4/include
2662 /usr/include/X11
2663 /usr/include/X11R6
2664 /usr/include/X11R5
2665 /usr/include/X11R4
2667 /usr/local/X11/include
2668 /usr/local/X11R6/include
2669 /usr/local/X11R5/include
2670 /usr/local/X11R4/include
2672 /usr/local/include/X11
2673 /usr/local/include/X11R6
2674 /usr/local/include/X11R5
2675 /usr/local/include/X11R4
2677 /usr/X386/include
2678 /usr/x386/include
2679 /usr/XFree86/include/X11
2681 /usr/include
2682 /usr/local/include
2683 /usr/unsupported/include
2684 /usr/athena/include
2685 /usr/local/x11r5/include
2686 /usr/lpp/Xamples/include
2688 /usr/openwin/include
2689 /usr/openwin/share/include'
2691 if test "$ac_x_includes" = no; then
2692 # Guess where to find include files, by looking for Intrinsic.h.
2693 # First, try using that file with no special directory specified.
2694 cat >conftest.$ac_ext <<_ACEOF
2695 #line $LINENO "configure"
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2701 #include <X11/Intrinsic.h>
2702 _ACEOF
2703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } >/dev/null; then
2711 if test -s conftest.err; then
2712 ac_cpp_err=$ac_c_preproc_warn_flag
2713 else
2714 ac_cpp_err=
2716 else
2717 ac_cpp_err=yes
2719 if test -z "$ac_cpp_err"; then
2720 # We can compile using X headers with no special include directory.
2721 ac_x_includes=
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 for ac_dir in $ac_x_header_dirs; do
2727 if test -r "$ac_dir/X11/Intrinsic.h"; then
2728 ac_x_includes=$ac_dir
2729 break
2731 done
2733 rm -f conftest.err conftest.$ac_ext
2734 fi # $ac_x_includes = no
2736 if test "$ac_x_libraries" = no; then
2737 # Check for the libraries.
2738 # See if we find them without any special options.
2739 # Don't add to $LIBS permanently.
2740 ac_save_LIBS=$LIBS
2741 LIBS="-lXt $LIBS"
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <X11/Intrinsic.h>
2751 main ()
2753 XtMalloc (0)
2755 return 0;
2757 _ACEOF
2758 rm -f conftest.$ac_objext conftest$ac_exeext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760 (eval $ac_link) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest$ac_exeext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 LIBS=$ac_save_LIBS
2771 # We can link X programs with no special library path.
2772 ac_x_libraries=
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 LIBS=$ac_save_LIBS
2778 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2780 # Don't even attempt the hair of trying to link an X program!
2781 for ac_extension in a so sl; do
2782 if test -r $ac_dir/libXt.$ac_extension; then
2783 ac_x_libraries=$ac_dir
2784 break 2
2786 done
2787 done
2789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2790 fi # $ac_x_libraries = no
2792 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2793 # Didn't find X anywhere. Cache the known absence of X.
2794 ac_cv_have_x="have_x=no"
2795 else
2796 # Record where we found X for the cache.
2797 ac_cv_have_x="have_x=yes \
2798 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2803 eval "$ac_cv_have_x"
2804 fi # $with_x != no
2806 if test "$have_x" != yes; then
2807 echo "$as_me:$LINENO: result: $have_x" >&5
2808 echo "${ECHO_T}$have_x" >&6
2809 no_x=yes
2810 else
2811 # If each of the values was on the command line, it overrides each guess.
2812 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2813 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2814 # Update the cache value to reflect the command line values.
2815 ac_cv_have_x="have_x=yes \
2816 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2817 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2818 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2821 if test "$no_x" = yes; then
2822 # Not all programs may use this symbol, but it does not hurt to define it.
2824 cat >>confdefs.h <<\_ACEOF
2825 #define X_DISPLAY_MISSING 1
2826 _ACEOF
2828 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2829 else
2830 if test -n "$x_includes"; then
2831 X_CFLAGS="$X_CFLAGS -I$x_includes"
2834 # It would also be nice to do this for all -L options, not just this one.
2835 if test -n "$x_libraries"; then
2836 X_LIBS="$X_LIBS -L$x_libraries"
2837 # For Solaris; some versions of Sun CC require a space after -R and
2838 # others require no space. Words are not sufficient . . . .
2839 case `(uname -sr) 2>/dev/null` in
2840 "SunOS 5"*)
2841 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2842 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2843 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2844 cat >conftest.$ac_ext <<_ACEOF
2845 #line $LINENO "configure"
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2853 main ()
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext conftest$ac_exeext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2862 (eval $ac_link) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -s conftest$ac_exeext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 ac_R_nospace=yes
2873 else
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 ac_R_nospace=no
2879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2880 if test $ac_R_nospace = yes; then
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 X_LIBS="$X_LIBS -R$x_libraries"
2884 else
2885 LIBS="$ac_xsave_LIBS -R $x_libraries"
2886 cat >conftest.$ac_ext <<_ACEOF
2887 #line $LINENO "configure"
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2895 main ()
2899 return 0;
2901 _ACEOF
2902 rm -f conftest.$ac_objext conftest$ac_exeext
2903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904 (eval $ac_link) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -s conftest$ac_exeext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 ac_R_space=yes
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 ac_R_space=no
2921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2922 if test $ac_R_space = yes; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924 echo "${ECHO_T}yes" >&6
2925 X_LIBS="$X_LIBS -R $x_libraries"
2926 else
2927 echo "$as_me:$LINENO: result: neither works" >&5
2928 echo "${ECHO_T}neither works" >&6
2931 LIBS=$ac_xsave_LIBS
2932 esac
2935 # Check for system-dependent libraries X programs must link with.
2936 # Do this before checking for the system-independent R6 libraries
2937 # (-lICE), since we may need -lsocket or whatever for X linking.
2939 if test "$ISC" = yes; then
2940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2941 else
2942 # Martyn Johnson says this is needed for Ultrix, if the X
2943 # libraries were built with DECnet support. And Karl Berry says
2944 # the Alpha needs dnet_stub (dnet does not exist).
2945 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #line $LINENO "configure"
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2954 /* Override any gcc2 internal prototype to avoid an error. */
2955 #ifdef __cplusplus
2956 extern "C"
2957 #endif
2958 /* We use char because int might match the return type of a gcc2
2959 builtin and then its argument prototype would still apply. */
2960 char XOpenDisplay ();
2962 main ()
2964 XOpenDisplay ();
2966 return 0;
2968 _ACEOF
2969 rm -f conftest.$ac_objext conftest$ac_exeext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2971 (eval $ac_link) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest$ac_exeext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2987 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2988 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 ac_check_lib_save_LIBS=$LIBS
2992 LIBS="-ldnet $LIBS"
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3001 /* Override any gcc2 internal prototype to avoid an error. */
3002 #ifdef __cplusplus
3003 extern "C"
3004 #endif
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3007 char dnet_ntoa ();
3009 main ()
3011 dnet_ntoa ();
3013 return 0;
3015 _ACEOF
3016 rm -f conftest.$ac_objext conftest$ac_exeext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3018 (eval $ac_link) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -s conftest$ac_exeext'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 ac_cv_lib_dnet_dnet_ntoa=yes
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 ac_cv_lib_dnet_dnet_ntoa=no
3035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3036 LIBS=$ac_check_lib_save_LIBS
3038 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3039 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3040 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3044 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3045 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3046 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3047 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 ac_check_lib_save_LIBS=$LIBS
3051 LIBS="-ldnet_stub $LIBS"
3052 cat >conftest.$ac_ext <<_ACEOF
3053 #line $LINENO "configure"
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 #ifdef __cplusplus
3062 extern "C"
3063 #endif
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char dnet_ntoa ();
3068 main ()
3070 dnet_ntoa ();
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext conftest$ac_exeext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077 (eval $ac_link) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest$ac_exeext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 ac_cv_lib_dnet_stub_dnet_ntoa=no
3094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095 LIBS=$ac_check_lib_save_LIBS
3097 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3098 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3099 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3100 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3106 LIBS="$ac_xsave_LIBS"
3108 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3109 # to get the SysV transport functions.
3110 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3111 # needs -lnsl.
3112 # The nsl library prevents programs from opening the X display
3113 # on Irix 5.2, according to T.E. Dickey.
3114 # The functions gethostbyname, getservbyname, and inet_addr are
3115 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3116 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3117 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3118 if test "${ac_cv_func_gethostbyname+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 cat >conftest.$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 /* System header to define __stub macros and hopefully few prototypes,
3129 which can conflict with char gethostbyname (); below.
3130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131 <limits.h> exists even on freestanding compilers. */
3132 #ifdef __STDC__
3133 # include <limits.h>
3134 #else
3135 # include <assert.h>
3136 #endif
3137 /* Override any gcc2 internal prototype to avoid an error. */
3138 #ifdef __cplusplus
3139 extern "C"
3141 #endif
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3144 char gethostbyname ();
3145 /* The GNU C library defines this for functions which it implements
3146 to always fail with ENOSYS. Some functions are actually named
3147 something starting with __ and the normal name is an alias. */
3148 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3149 choke me
3150 #else
3151 char (*f) () = gethostbyname;
3152 #endif
3153 #ifdef __cplusplus
3155 #endif
3158 main ()
3160 return f != gethostbyname;
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext conftest$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -s conftest$ac_exeext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 ac_cv_func_gethostbyname=yes
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 ac_cv_func_gethostbyname=no
3184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3186 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3187 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3189 if test $ac_cv_func_gethostbyname = no; then
3190 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3191 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3192 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 ac_check_lib_save_LIBS=$LIBS
3196 LIBS="-lnsl $LIBS"
3197 cat >conftest.$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3205 /* Override any gcc2 internal prototype to avoid an error. */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3211 char gethostbyname ();
3213 main ()
3215 gethostbyname ();
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222 (eval $ac_link) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -s conftest$ac_exeext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_lib_nsl_gethostbyname=yes
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_cv_lib_nsl_gethostbyname=no
3239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3240 LIBS=$ac_check_lib_save_LIBS
3242 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3243 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3244 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3248 if test $ac_cv_lib_nsl_gethostbyname = no; then
3249 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3250 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3251 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 ac_check_lib_save_LIBS=$LIBS
3255 LIBS="-lbsd $LIBS"
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 #ifdef __cplusplus
3266 extern "C"
3267 #endif
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3270 char gethostbyname ();
3272 main ()
3274 gethostbyname ();
3276 return 0;
3278 _ACEOF
3279 rm -f conftest.$ac_objext conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281 (eval $ac_link) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest$ac_exeext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 ac_cv_lib_bsd_gethostbyname=yes
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 ac_cv_lib_bsd_gethostbyname=no
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3299 LIBS=$ac_check_lib_save_LIBS
3301 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3302 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3303 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3310 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3311 # socket/setsockopt and other routines are undefined under SCO ODT
3312 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3313 # on later versions), says Simon Leinen: it contains gethostby*
3314 # variants that don't use the name server (or something). -lsocket
3315 # must be given before -lnsl if both are needed. We assume that
3316 # if connect needs -lnsl, so does gethostbyname.
3317 echo "$as_me:$LINENO: checking for connect" >&5
3318 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3319 if test "${ac_cv_func_connect+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 /* System header to define __stub macros and hopefully few prototypes,
3330 which can conflict with char connect (); below.
3331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332 <limits.h> exists even on freestanding compilers. */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338 /* Override any gcc2 internal prototype to avoid an error. */
3339 #ifdef __cplusplus
3340 extern "C"
3342 #endif
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3345 char connect ();
3346 /* The GNU C library defines this for functions which it implements
3347 to always fail with ENOSYS. Some functions are actually named
3348 something starting with __ and the normal name is an alias. */
3349 #if defined (__stub_connect) || defined (__stub___connect)
3350 choke me
3351 #else
3352 char (*f) () = connect;
3353 #endif
3354 #ifdef __cplusplus
3356 #endif
3359 main ()
3361 return f != connect;
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_func_connect=yes
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_cv_func_connect=no
3385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3387 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3388 echo "${ECHO_T}$ac_cv_func_connect" >&6
3390 if test $ac_cv_func_connect = no; then
3391 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3392 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3393 if test "${ac_cv_lib_socket_connect+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 ac_check_lib_save_LIBS=$LIBS
3397 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #line $LINENO "configure"
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char connect ();
3414 main ()
3416 connect ();
3418 return 0;
3420 _ACEOF
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -s conftest$ac_exeext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 ac_cv_lib_socket_connect=yes
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 ac_cv_lib_socket_connect=no
3440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3443 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3444 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3445 if test $ac_cv_lib_socket_connect = yes; then
3446 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3451 # Guillermo Gomez says -lposix is necessary on A/UX.
3452 echo "$as_me:$LINENO: checking for remove" >&5
3453 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3454 if test "${ac_cv_func_remove+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 /* System header to define __stub macros and hopefully few prototypes,
3465 which can conflict with char remove (); below.
3466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 <limits.h> exists even on freestanding compilers. */
3468 #ifdef __STDC__
3469 # include <limits.h>
3470 #else
3471 # include <assert.h>
3472 #endif
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 #ifdef __cplusplus
3475 extern "C"
3477 #endif
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3480 char remove ();
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_remove) || defined (__stub___remove)
3485 choke me
3486 #else
3487 char (*f) () = remove;
3488 #endif
3489 #ifdef __cplusplus
3491 #endif
3494 main ()
3496 return f != remove;
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext conftest$ac_exeext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503 (eval $ac_link) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest$ac_exeext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_func_remove=yes
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_cv_func_remove=no
3520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3523 echo "${ECHO_T}$ac_cv_func_remove" >&6
3525 if test $ac_cv_func_remove = no; then
3526 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3527 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3528 if test "${ac_cv_lib_posix_remove+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 ac_check_lib_save_LIBS=$LIBS
3532 LIBS="-lposix $LIBS"
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3541 /* Override any gcc2 internal prototype to avoid an error. */
3542 #ifdef __cplusplus
3543 extern "C"
3544 #endif
3545 /* We use char because int might match the return type of a gcc2
3546 builtin and then its argument prototype would still apply. */
3547 char remove ();
3549 main ()
3551 remove ();
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.$ac_objext conftest$ac_exeext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558 (eval $ac_link) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -s conftest$ac_exeext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_cv_lib_posix_remove=yes
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 ac_cv_lib_posix_remove=no
3575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3576 LIBS=$ac_check_lib_save_LIBS
3578 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3579 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3580 if test $ac_cv_lib_posix_remove = yes; then
3581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3586 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3587 echo "$as_me:$LINENO: checking for shmat" >&5
3588 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3589 if test "${ac_cv_func_shmat+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 /* System header to define __stub macros and hopefully few prototypes,
3600 which can conflict with char shmat (); below.
3601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602 <limits.h> exists even on freestanding compilers. */
3603 #ifdef __STDC__
3604 # include <limits.h>
3605 #else
3606 # include <assert.h>
3607 #endif
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 #ifdef __cplusplus
3610 extern "C"
3612 #endif
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3615 char shmat ();
3616 /* The GNU C library defines this for functions which it implements
3617 to always fail with ENOSYS. Some functions are actually named
3618 something starting with __ and the normal name is an alias. */
3619 #if defined (__stub_shmat) || defined (__stub___shmat)
3620 choke me
3621 #else
3622 char (*f) () = shmat;
3623 #endif
3624 #ifdef __cplusplus
3626 #endif
3629 main ()
3631 return f != shmat;
3633 return 0;
3635 _ACEOF
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3638 (eval $ac_link) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -s conftest$ac_exeext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_cv_func_shmat=yes
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_cv_func_shmat=no
3655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3657 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3658 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3660 if test $ac_cv_func_shmat = no; then
3661 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3662 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3663 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 ac_check_lib_save_LIBS=$LIBS
3667 LIBS="-lipc $LIBS"
3668 cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3676 /* Override any gcc2 internal prototype to avoid an error. */
3677 #ifdef __cplusplus
3678 extern "C"
3679 #endif
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3682 char shmat ();
3684 main ()
3686 shmat ();
3688 return 0;
3690 _ACEOF
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693 (eval $ac_link) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_lib_ipc_shmat=yes
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_lib_ipc_shmat=no
3710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3711 LIBS=$ac_check_lib_save_LIBS
3713 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3714 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3715 if test $ac_cv_lib_ipc_shmat = yes; then
3716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3722 # Check for libraries that X11R6 Xt/Xaw programs need.
3723 ac_save_LDFLAGS=$LDFLAGS
3724 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3725 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3726 # check for ICE first), but we must link in the order -lSM -lICE or
3727 # we get undefined symbols. So assume we have SM if we have ICE.
3728 # These have to be linked with before -lX11, unlike the other
3729 # libraries we check for below, so use a different variable.
3730 # John Interrante, Karl Berry
3731 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3732 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3733 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 ac_check_lib_save_LIBS=$LIBS
3737 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3738 cat >conftest.$ac_ext <<_ACEOF
3739 #line $LINENO "configure"
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 #ifdef __cplusplus
3748 extern "C"
3749 #endif
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3752 char IceConnectionNumber ();
3754 main ()
3756 IceConnectionNumber ();
3758 return 0;
3760 _ACEOF
3761 rm -f conftest.$ac_objext conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763 (eval $ac_link) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try='test -s conftest$ac_exeext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 ac_cv_lib_ICE_IceConnectionNumber=yes
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 ac_cv_lib_ICE_IceConnectionNumber=no
3780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3781 LIBS=$ac_check_lib_save_LIBS
3783 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3784 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3785 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3786 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3789 LDFLAGS=$ac_save_LDFLAGS
3793 for ac_prog in 'bison -y' byacc
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_YACC+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -n "$YACC"; then
3803 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_YACC="$ac_prog"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3821 YACC=$ac_cv_prog_YACC
3822 if test -n "$YACC"; then
3823 echo "$as_me:$LINENO: result: $YACC" >&5
3824 echo "${ECHO_T}$YACC" >&6
3825 else
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 test -n "$YACC" && break
3831 done
3832 test -n "$YACC" || YACC="yacc"
3834 for ac_prog in flex lex
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_LEX+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 if test -n "$LEX"; then
3844 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_LEX="$ac_prog"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3857 done
3858 done
3862 LEX=$ac_cv_prog_LEX
3863 if test -n "$LEX"; then
3864 echo "$as_me:$LINENO: result: $LEX" >&5
3865 echo "${ECHO_T}$LEX" >&6
3866 else
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3871 test -n "$LEX" && break
3872 done
3873 test -n "$LEX" || LEX=":"
3875 if test -z "$LEXLIB"
3876 then
3877 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3878 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3879 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 ac_check_lib_save_LIBS=$LIBS
3883 LIBS="-lfl $LIBS"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3898 char yywrap ();
3900 main ()
3902 yywrap ();
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_lib_fl_yywrap=yes
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_cv_lib_fl_yywrap=no
3926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3927 LIBS=$ac_check_lib_save_LIBS
3929 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3930 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3931 if test $ac_cv_lib_fl_yywrap = yes; then
3932 LEXLIB="-lfl"
3933 else
3934 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3935 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3936 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 ac_check_lib_save_LIBS=$LIBS
3940 LIBS="-ll $LIBS"
3941 cat >conftest.$ac_ext <<_ACEOF
3942 #line $LINENO "configure"
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 #ifdef __cplusplus
3951 extern "C"
3952 #endif
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955 char yywrap ();
3957 main ()
3959 yywrap ();
3961 return 0;
3963 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -s conftest$ac_exeext'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_cv_lib_l_yywrap=yes
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_lib_l_yywrap=no
3983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_check_lib_save_LIBS
3986 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3987 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3988 if test $ac_cv_lib_l_yywrap = yes; then
3989 LEXLIB="-ll"
3996 if test "x$LEX" != "x:"; then
3997 echo "$as_me:$LINENO: checking lex output file root" >&5
3998 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3999 if test "${ac_cv_prog_lex_root+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 # The minimal lex program is just a single line: %%. But some broken lexes
4003 # (Solaris, I think it was) want two %% lines, so accommodate them.
4004 cat >conftest.l <<_ACEOF
4007 _ACEOF
4008 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4009 (eval $LEX conftest.l) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
4013 if test -f lex.yy.c; then
4014 ac_cv_prog_lex_root=lex.yy
4015 elif test -f lexyy.c; then
4016 ac_cv_prog_lex_root=lexyy
4017 else
4018 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4019 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4020 { (exit 1); exit 1; }; }
4023 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4024 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4025 rm -f conftest.l
4026 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4028 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4029 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4030 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 # POSIX says lex can declare yytext either as a pointer or an array; the
4034 # default is implementation-dependent. Figure out which it is, since
4035 # not all implementations provide the %pointer and %array declarations.
4036 ac_cv_prog_lex_yytext_pointer=no
4037 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4038 ac_save_LIBS=$LIBS
4039 LIBS="$LIBS $LEXLIB"
4040 cat >conftest.$ac_ext <<_ACEOF
4041 `cat $LEX_OUTPUT_ROOT.c`
4042 _ACEOF
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4045 (eval $ac_link) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -s conftest$ac_exeext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_cv_prog_lex_yytext_pointer=yes
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4062 LIBS=$ac_save_LIBS
4063 rm -f "${LEX_OUTPUT_ROOT}.c"
4066 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4067 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4068 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4070 cat >>confdefs.h <<\_ACEOF
4071 #define YYTEXT_POINTER 1
4072 _ACEOF
4078 for ac_prog in $YACC bison yacc
4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_XYACC+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 if test -n "$XYACC"; then
4088 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_XYACC="$ac_prog"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4106 XYACC=$ac_cv_prog_XYACC
4107 if test -n "$XYACC"; then
4108 echo "$as_me:$LINENO: result: $XYACC" >&5
4109 echo "${ECHO_T}$XYACC" >&6
4110 else
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4115 test -n "$XYACC" && break
4116 done
4117 test -n "$XYACC" || XYACC="none"
4119 if test "$XYACC" = "none"
4120 then
4121 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4122 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4123 { (exit 1); exit 1; }; }
4125 for ac_prog in $LEX flex lex
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131 if test "${ac_cv_prog_XLEX+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 if test -n "$XLEX"; then
4135 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_XLEX="$ac_prog"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4153 XLEX=$ac_cv_prog_XLEX
4154 if test -n "$XLEX"; then
4155 echo "$as_me:$LINENO: result: $XLEX" >&5
4156 echo "${ECHO_T}$XLEX" >&6
4157 else
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4162 test -n "$XLEX" && break
4163 done
4164 test -n "$XLEX" || XLEX="none"
4166 if test "$XLEX" = "none"
4167 then
4168 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4169 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4170 { (exit 1); exit 1; }; }
4173 if test -n "$ac_tool_prefix"; then
4174 for ac_prog in gas as
4176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AS+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 if test -n "$AS"; then
4184 ac_cv_prog_AS="$AS" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4197 done
4198 done
4202 AS=$ac_cv_prog_AS
4203 if test -n "$AS"; then
4204 echo "$as_me:$LINENO: result: $AS" >&5
4205 echo "${ECHO_T}$AS" >&6
4206 else
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4211 test -n "$AS" && break
4212 done
4214 if test -z "$AS"; then
4215 ac_ct_AS=$AS
4216 for ac_prog in gas as
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 if test -n "$ac_ct_AS"; then
4226 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_AS="$ac_prog"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4244 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4245 if test -n "$ac_ct_AS"; then
4246 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4247 echo "${ECHO_T}$ac_ct_AS" >&6
4248 else
4249 echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4253 test -n "$ac_ct_AS" && break
4254 done
4255 test -n "$ac_ct_AS" || ac_ct_AS="as"
4257 AS=$ac_ct_AS
4260 if test -n "$ac_tool_prefix"; then
4261 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4262 set dummy ${ac_tool_prefix}ld; ac_word=$2
4263 echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_LD+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if test -n "$LD"; then
4269 ac_cv_prog_LD="$LD" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_LD="${ac_tool_prefix}ld"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4287 LD=$ac_cv_prog_LD
4288 if test -n "$LD"; then
4289 echo "$as_me:$LINENO: result: $LD" >&5
4290 echo "${ECHO_T}$LD" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4297 if test -z "$ac_cv_prog_LD"; then
4298 ac_ct_LD=$LD
4299 # Extract the first word of "ld", so it can be a program name with args.
4300 set dummy ld; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 if test -n "$ac_ct_LD"; then
4307 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_ac_ct_LD="ld"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4323 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4326 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4327 if test -n "$ac_ct_LD"; then
4328 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4329 echo "${ECHO_T}$ac_ct_LD" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6
4335 LD=$ac_ct_LD
4336 else
4337 LD="$ac_cv_prog_LD"
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_AR+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 if test -n "$AR"; then
4349 ac_cv_prog_AR="$AR" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_AR="${ac_tool_prefix}ar"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4362 done
4363 done
4367 AR=$ac_cv_prog_AR
4368 if test -n "$AR"; then
4369 echo "$as_me:$LINENO: result: $AR" >&5
4370 echo "${ECHO_T}$AR" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4377 if test -z "$ac_cv_prog_AR"; then
4378 ac_ct_AR=$AR
4379 # Extract the first word of "ar", so it can be a program name with args.
4380 set dummy ar; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 if test -n "$ac_ct_AR"; then
4387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_ac_ct_AR="ar"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4403 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4407 if test -n "$ac_ct_AR"; then
4408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4409 echo "${ECHO_T}$ac_ct_AR" >&6
4410 else
4411 echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4415 AR=$ac_ct_AR
4416 else
4417 AR="$ac_cv_prog_AR"
4420 if test -n "$ac_tool_prefix"; then
4421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_RANLIB+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 if test -n "$RANLIB"; then
4429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4442 done
4443 done
4447 RANLIB=$ac_cv_prog_RANLIB
4448 if test -n "$RANLIB"; then
4449 echo "$as_me:$LINENO: result: $RANLIB" >&5
4450 echo "${ECHO_T}$RANLIB" >&6
4451 else
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4457 if test -z "$ac_cv_prog_RANLIB"; then
4458 ac_ct_RANLIB=$RANLIB
4459 # Extract the first word of "ranlib", so it can be a program name with args.
4460 set dummy ranlib; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$ac_ct_RANLIB"; then
4467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_ac_ct_RANLIB="ranlib"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4487 if test -n "$ac_ct_RANLIB"; then
4488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4490 else
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 RANLIB=$ac_ct_RANLIB
4496 else
4497 RANLIB="$ac_cv_prog_RANLIB"
4500 if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4502 set dummy ${ac_tool_prefix}strip; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_STRIP+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 if test -n "$STRIP"; then
4509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4527 STRIP=$ac_cv_prog_STRIP
4528 if test -n "$STRIP"; then
4529 echo "$as_me:$LINENO: result: $STRIP" >&5
4530 echo "${ECHO_T}$STRIP" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4537 if test -z "$ac_cv_prog_STRIP"; then
4538 ac_ct_STRIP=$STRIP
4539 # Extract the first word of "strip", so it can be a program name with args.
4540 set dummy strip; ac_word=$2
4541 echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 if test -n "$ac_ct_STRIP"; then
4547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_ac_ct_STRIP="strip"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4560 done
4561 done
4563 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4567 if test -n "$ac_ct_STRIP"; then
4568 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4569 echo "${ECHO_T}$ac_ct_STRIP" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4575 STRIP=$ac_ct_STRIP
4576 else
4577 STRIP="$ac_cv_prog_STRIP"
4580 if test -n "$ac_tool_prefix"; then
4581 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4582 set dummy ${ac_tool_prefix}windres; ac_word=$2
4583 echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585 if test "${ac_cv_prog_WINDRES+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 if test -n "$WINDRES"; then
4589 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4602 done
4603 done
4607 WINDRES=$ac_cv_prog_WINDRES
4608 if test -n "$WINDRES"; then
4609 echo "$as_me:$LINENO: result: $WINDRES" >&5
4610 echo "${ECHO_T}$WINDRES" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4617 if test -z "$ac_cv_prog_WINDRES"; then
4618 ac_ct_WINDRES=$WINDRES
4619 # Extract the first word of "windres", so it can be a program name with args.
4620 set dummy windres; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$ac_ct_WINDRES"; then
4627 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_ac_ct_WINDRES="windres"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4643 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4646 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4647 if test -n "$ac_ct_WINDRES"; then
4648 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4649 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4650 else
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 WINDRES=$ac_ct_WINDRES
4656 else
4657 WINDRES="$ac_cv_prog_WINDRES"
4660 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4662 LN_S=$as_ln_s
4663 if test "$LN_S" = "ln -s"; then
4664 echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4668 echo "${ECHO_T}no, using $LN_S" >&6
4671 echo "$as_me:$LINENO: checking whether ln works" >&5
4672 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4673 rm -f conf$$ conf$$.file
4674 echo >conf$$.file
4675 if ln conf$$.file conf$$ 2>/dev/null; then
4676 LN=ln
4678 echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6
4680 else
4681 LN="cp -p"
4683 echo "$as_me:$LINENO: result: no, using $LN" >&5
4684 echo "${ECHO_T}no, using $LN" >&6
4686 rm -f conf$$ conf$$.file
4687 # Extract the first word of "ldconfig", so it can be a program name with args.
4688 set dummy ldconfig; ac_word=$2
4689 echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 case $LDCONFIG in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in /sbin /usr/sbin $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4713 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4715 esac
4717 LDCONFIG=$ac_cv_path_LDCONFIG
4719 if test -n "$LDCONFIG"; then
4720 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4721 echo "${ECHO_T}$LDCONFIG" >&6
4722 else
4723 echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4727 # Find a good install program. We prefer a C program (faster),
4728 # so one script is as good as another. But avoid the broken or
4729 # incompatible versions:
4730 # SysV /etc/install, /usr/sbin/install
4731 # SunOS /usr/etc/install
4732 # IRIX /sbin/install
4733 # AIX /bin/install
4734 # AmigaOS /C/install, which installs bootblocks on floppy discs
4735 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4736 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4737 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4738 # ./install, which can be erroneously created by make from ./install.sh.
4739 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4740 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4741 if test -z "$INSTALL"; then
4742 if test "${ac_cv_path_install+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 # Account for people who put trailing slashes in PATH elements.
4751 case $as_dir/ in
4752 ./ | .// | /cC/* | \
4753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4754 /usr/ucb/* ) ;;
4756 # OSF1 and SCO ODT 3.0 have their own names for install.
4757 # Don't use installbsd from OSF since it installs stuff as root
4758 # by default.
4759 for ac_prog in ginstall scoinst install; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4762 if test $ac_prog = install &&
4763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4764 # AIX install. It has an incompatible calling convention.
4766 elif test $ac_prog = install &&
4767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4768 # program-specific install script used by HP pwplus--don't use.
4770 else
4771 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4772 break 3
4775 done
4776 done
4778 esac
4779 done
4783 if test "${ac_cv_path_install+set}" = set; then
4784 INSTALL=$ac_cv_path_install
4785 else
4786 # As a last resort, use the slow shell script. We don't cache a
4787 # path for INSTALL within a source directory, because that will
4788 # break other packages using the cache if that directory is
4789 # removed, or if the path is relative.
4790 INSTALL=$ac_install_sh
4793 echo "$as_me:$LINENO: result: $INSTALL" >&5
4794 echo "${ECHO_T}$INSTALL" >&6
4796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4797 # It thinks the first close brace ends the variable substitution.
4798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4800 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4802 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4804 case "$INSTALL" in
4805 [\\/$]* | ?:[\\/]* ) ;;
4806 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4807 esac
4809 for ac_prog in lclint lint
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_prog_LINT+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 if test -n "$LINT"; then
4819 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_LINT="$ac_prog"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4837 LINT=$ac_cv_prog_LINT
4838 if test -n "$LINT"; then
4839 echo "$as_me:$LINENO: result: $LINT" >&5
4840 echo "${ECHO_T}$LINT" >&6
4841 else
4842 echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4846 test -n "$LINT" && break
4847 done
4849 if test "$LINT" = "lint"
4850 then
4851 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4856 for ac_prog in docbook2html db2html
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 if test -n "$DB2HTML"; then
4866 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_DB2HTML="$ac_prog"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4884 DB2HTML=$ac_cv_prog_DB2HTML
4885 if test -n "$DB2HTML"; then
4886 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4887 echo "${ECHO_T}$DB2HTML" >&6
4888 else
4889 echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4893 test -n "$DB2HTML" && break
4894 done
4895 test -n "$DB2HTML" || DB2HTML="false"
4899 for ac_prog in docbook2pdf db2pdf
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$DB2PDF"; then
4909 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_DB2PDF="$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4927 DB2PDF=$ac_cv_prog_DB2PDF
4928 if test -n "$DB2PDF"; then
4929 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4930 echo "${ECHO_T}$DB2PDF" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4936 test -n "$DB2PDF" && break
4937 done
4938 test -n "$DB2PDF" || DB2PDF="false"
4942 for ac_prog in docbook2ps db2ps
4944 # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948 if test "${ac_cv_prog_DB2PS+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 if test -n "$DB2PS"; then
4952 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_DB2PS="$ac_prog"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4970 DB2PS=$ac_cv_prog_DB2PS
4971 if test -n "$DB2PS"; then
4972 echo "$as_me:$LINENO: result: $DB2PS" >&5
4973 echo "${ECHO_T}$DB2PS" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4979 test -n "$DB2PS" && break
4980 done
4981 test -n "$DB2PS" || DB2PS="false"
4985 for ac_prog in docbook2txt db2txt
4987 # Extract the first word of "$ac_prog", so it can be a program name with args.
4988 set dummy $ac_prog; ac_word=$2
4989 echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4991 if test "${ac_cv_prog_DB2TXT+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 if test -n "$DB2TXT"; then
4995 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_DB2TXT="$ac_prog"
5005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5013 DB2TXT=$ac_cv_prog_DB2TXT
5014 if test -n "$DB2TXT"; then
5015 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5016 echo "${ECHO_T}$DB2TXT" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5022 test -n "$DB2TXT" && break
5023 done
5024 test -n "$DB2TXT" || DB2TXT="false"
5030 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5031 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5032 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 ac_check_lib_save_LIBS=$LIBS
5036 LIBS="-lm $LIBS"
5037 cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 #ifdef __cplusplus
5047 extern "C"
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051 char sqrt ();
5053 main ()
5055 sqrt ();
5057 return 0;
5059 _ACEOF
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_cv_lib_m_sqrt=yes
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_cv_lib_m_sqrt=no
5079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5080 LIBS=$ac_check_lib_save_LIBS
5082 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5083 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5084 if test $ac_cv_lib_m_sqrt = yes; then
5085 cat >>confdefs.h <<_ACEOF
5086 #define HAVE_LIBM 1
5087 _ACEOF
5089 LIBS="-lm $LIBS"
5094 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5095 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5096 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 ac_check_lib_save_LIBS=$LIBS
5100 LIBS="-li386 $LIBS"
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5109 /* Override any gcc2 internal prototype to avoid an error. */
5110 #ifdef __cplusplus
5111 extern "C"
5112 #endif
5113 /* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5115 char i386_set_ldt ();
5117 main ()
5119 i386_set_ldt ();
5121 return 0;
5123 _ACEOF
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_i386_i386_set_ldt=yes
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_cv_lib_i386_i386_set_ldt=no
5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5146 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5147 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5148 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5149 cat >>confdefs.h <<_ACEOF
5150 #define HAVE_LIBI386 1
5151 _ACEOF
5153 LIBS="-li386 $LIBS"
5158 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5159 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5160 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 ac_check_lib_save_LIBS=$LIBS
5164 LIBS="-lossaudio $LIBS"
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 #ifdef __cplusplus
5175 extern "C"
5176 #endif
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5179 char _oss_ioctl ();
5181 main ()
5183 _oss_ioctl ();
5185 return 0;
5187 _ACEOF
5188 rm -f conftest.$ac_objext conftest$ac_exeext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5190 (eval $ac_link) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -s conftest$ac_exeext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_cv_lib_ossaudio__oss_ioctl=yes
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_cv_lib_ossaudio__oss_ioctl=no
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBOSSAUDIO 1
5215 _ACEOF
5217 LIBS="-lossaudio $LIBS"
5222 for ac_func in iswalnum
5224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5225 echo "$as_me:$LINENO: checking for $ac_func" >&5
5226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5227 if eval "test \"\${$as_ac_var+set}\" = set"; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 /* System header to define __stub macros and hopefully few prototypes,
5238 which can conflict with char $ac_func (); below.
5239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 <limits.h> exists even on freestanding compilers. */
5241 #ifdef __STDC__
5242 # include <limits.h>
5243 #else
5244 # include <assert.h>
5245 #endif
5246 /* Override any gcc2 internal prototype to avoid an error. */
5247 #ifdef __cplusplus
5248 extern "C"
5250 #endif
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5253 char $ac_func ();
5254 /* The GNU C library defines this for functions which it implements
5255 to always fail with ENOSYS. Some functions are actually named
5256 something starting with __ and the normal name is an alias. */
5257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5258 choke me
5259 #else
5260 char (*f) () = $ac_func;
5261 #endif
5262 #ifdef __cplusplus
5264 #endif
5267 main ()
5269 return f != $ac_func;
5271 return 0;
5273 _ACEOF
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276 (eval $ac_link) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -s conftest$ac_exeext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 eval "$as_ac_var=yes"
5287 else
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 eval "$as_ac_var=no"
5293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5297 if test `eval echo '${'$as_ac_var'}'` = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5300 _ACEOF
5302 else
5304 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5305 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5306 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 ac_check_lib_save_LIBS=$LIBS
5310 LIBS="-lw $LIBS"
5311 cat >conftest.$ac_ext <<_ACEOF
5312 #line $LINENO "configure"
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 #ifdef __cplusplus
5321 extern "C"
5322 #endif
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5325 char iswalnum ();
5327 main ()
5329 iswalnum ();
5331 return 0;
5333 _ACEOF
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest$ac_exeext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_lib_w_iswalnum=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_cv_lib_w_iswalnum=no
5353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5356 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5357 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5358 if test $ac_cv_lib_w_iswalnum = yes; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_LIBW 1
5361 _ACEOF
5363 LIBS="-lw $LIBS"
5368 done
5371 for ac_func in gethostbyname
5373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5374 echo "$as_me:$LINENO: checking for $ac_func" >&5
5375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5376 if eval "test \"\${$as_ac_var+set}\" = set"; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379 cat >conftest.$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 /* System header to define __stub macros and hopefully few prototypes,
5387 which can conflict with char $ac_func (); below.
5388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 <limits.h> exists even on freestanding compilers. */
5390 #ifdef __STDC__
5391 # include <limits.h>
5392 #else
5393 # include <assert.h>
5394 #endif
5395 /* Override any gcc2 internal prototype to avoid an error. */
5396 #ifdef __cplusplus
5397 extern "C"
5399 #endif
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5402 char $ac_func ();
5403 /* The GNU C library defines this for functions which it implements
5404 to always fail with ENOSYS. Some functions are actually named
5405 something starting with __ and the normal name is an alias. */
5406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5407 choke me
5408 #else
5409 char (*f) () = $ac_func;
5410 #endif
5411 #ifdef __cplusplus
5413 #endif
5416 main ()
5418 return f != $ac_func;
5420 return 0;
5422 _ACEOF
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -s conftest$ac_exeext'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 eval "$as_ac_var=yes"
5436 else
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 eval "$as_ac_var=no"
5442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5446 if test `eval echo '${'$as_ac_var'}'` = yes; then
5447 cat >>confdefs.h <<_ACEOF
5448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5449 _ACEOF
5451 else
5453 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5454 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5455 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 ac_check_lib_save_LIBS=$LIBS
5459 LIBS="-lnsl $LIBS"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 /* confdefs.h. */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5468 /* Override any gcc2 internal prototype to avoid an error. */
5469 #ifdef __cplusplus
5470 extern "C"
5471 #endif
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5474 char gethostbyname ();
5476 main ()
5478 gethostbyname ();
5480 return 0;
5482 _ACEOF
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_nsl_gethostbyname=yes
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_cv_lib_nsl_gethostbyname=no
5502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5505 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5506 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5507 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509 #define HAVE_LIBNSL 1
5510 _ACEOF
5512 LIBS="-lnsl $LIBS"
5517 done
5520 for ac_func in connect
5522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5523 echo "$as_me:$LINENO: checking for $ac_func" >&5
5524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5525 if eval "test \"\${$as_ac_var+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 cat >conftest.$ac_ext <<_ACEOF
5529 #line $LINENO "configure"
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 /* System header to define __stub macros and hopefully few prototypes,
5536 which can conflict with char $ac_func (); below.
5537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5538 <limits.h> exists even on freestanding compilers. */
5539 #ifdef __STDC__
5540 # include <limits.h>
5541 #else
5542 # include <assert.h>
5543 #endif
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 #ifdef __cplusplus
5546 extern "C"
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char $ac_func ();
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 choke me
5557 #else
5558 char (*f) () = $ac_func;
5559 #endif
5560 #ifdef __cplusplus
5562 #endif
5565 main ()
5567 return f != $ac_func;
5569 return 0;
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -s conftest$ac_exeext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 eval "$as_ac_var=yes"
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 eval "$as_ac_var=no"
5591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5595 if test `eval echo '${'$as_ac_var'}'` = yes; then
5596 cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5598 _ACEOF
5600 else
5602 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5603 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5604 if test "${ac_cv_lib_socket_connect+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 ac_check_lib_save_LIBS=$LIBS
5608 LIBS="-lsocket $LIBS"
5609 cat >conftest.$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 #ifdef __cplusplus
5619 extern "C"
5620 #endif
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5623 char connect ();
5625 main ()
5627 connect ();
5629 return 0;
5631 _ACEOF
5632 rm -f conftest.$ac_objext conftest$ac_exeext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5634 (eval $ac_link) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -s conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_lib_socket_connect=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_cv_lib_socket_connect=no
5651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5652 LIBS=$ac_check_lib_save_LIBS
5654 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5655 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5656 if test $ac_cv_lib_socket_connect = yes; then
5657 cat >>confdefs.h <<_ACEOF
5658 #define HAVE_LIBSOCKET 1
5659 _ACEOF
5661 LIBS="-lsocket $LIBS"
5666 done
5669 for ac_func in inet_aton
5671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5672 echo "$as_me:$LINENO: checking for $ac_func" >&5
5673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5674 if eval "test \"\${$as_ac_var+set}\" = set"; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 /* System header to define __stub macros and hopefully few prototypes,
5685 which can conflict with char $ac_func (); below.
5686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 <limits.h> exists even on freestanding compilers. */
5688 #ifdef __STDC__
5689 # include <limits.h>
5690 #else
5691 # include <assert.h>
5692 #endif
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 #ifdef __cplusplus
5695 extern "C"
5697 #endif
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char $ac_func ();
5701 /* The GNU C library defines this for functions which it implements
5702 to always fail with ENOSYS. Some functions are actually named
5703 something starting with __ and the normal name is an alias. */
5704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705 choke me
5706 #else
5707 char (*f) () = $ac_func;
5708 #endif
5709 #ifdef __cplusplus
5711 #endif
5714 main ()
5716 return f != $ac_func;
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest$ac_exeext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 eval "$as_ac_var=yes"
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 eval "$as_ac_var=no"
5740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5744 if test `eval echo '${'$as_ac_var'}'` = yes; then
5745 cat >>confdefs.h <<_ACEOF
5746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5747 _ACEOF
5749 else
5751 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5752 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5753 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 ac_check_lib_save_LIBS=$LIBS
5757 LIBS="-lresolv $LIBS"
5758 cat >conftest.$ac_ext <<_ACEOF
5759 #line $LINENO "configure"
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 #ifdef __cplusplus
5768 extern "C"
5769 #endif
5770 /* We use char because int might match the return type of a gcc2
5771 builtin and then its argument prototype would still apply. */
5772 char inet_aton ();
5774 main ()
5776 inet_aton ();
5778 return 0;
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_lib_resolv_inet_aton=yes
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 ac_cv_lib_resolv_inet_aton=no
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5803 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5804 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5805 if test $ac_cv_lib_resolv_inet_aton = yes; then
5806 cat >>confdefs.h <<_ACEOF
5807 #define HAVE_LIBRESOLV 1
5808 _ACEOF
5810 LIBS="-lresolv $LIBS"
5815 done
5818 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5819 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5820 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-lxpg4 $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5833 /* Override any gcc2 internal prototype to avoid an error. */
5834 #ifdef __cplusplus
5835 extern "C"
5836 #endif
5837 /* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5839 char _xpg4_setrunelocale ();
5841 main ()
5843 _xpg4_setrunelocale ();
5845 return 0;
5847 _ACEOF
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5871 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5872 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5873 cat >>confdefs.h <<_ACEOF
5874 #define HAVE_LIBXPG4 1
5875 _ACEOF
5877 LIBS="-lxpg4 $LIBS"
5882 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
5883 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
5884 if test "${ac_cv_lib_poll_poll+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 ac_check_lib_save_LIBS=$LIBS
5888 LIBS="-lpoll $LIBS"
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 /* Override any gcc2 internal prototype to avoid an error. */
5898 #ifdef __cplusplus
5899 extern "C"
5900 #endif
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903 char poll ();
5905 main ()
5907 poll ();
5909 return 0;
5911 _ACEOF
5912 rm -f conftest.$ac_objext conftest$ac_exeext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5914 (eval $ac_link) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_lib_poll_poll=yes
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 ac_cv_lib_poll_poll=no
5931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5934 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
5935 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
5936 if test $ac_cv_lib_poll_poll = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBPOLL 1
5939 _ACEOF
5941 LIBS="-lpoll $LIBS"
5945 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5946 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5947 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 ac_check_lib_save_LIBS=$LIBS
5951 LIBS="-lpthread $LIBS"
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5960 /* Override any gcc2 internal prototype to avoid an error. */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5966 char pthread_create ();
5968 main ()
5970 pthread_create ();
5972 return 0;
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest$ac_exeext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_lib_pthread_pthread_create=yes
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_lib_pthread_pthread_create=no
5994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5995 LIBS=$ac_check_lib_save_LIBS
5997 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5998 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5999 if test $ac_cv_lib_pthread_pthread_create = yes; then
6000 LIBPTHREAD="-lpthread"
6005 JPEGLIB=""
6007 echo "$as_me:$LINENO: checking for egrep" >&5
6008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6009 if test "${ac_cv_prog_egrep+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6013 then ac_cv_prog_egrep='grep -E'
6014 else ac_cv_prog_egrep='egrep'
6017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6019 EGREP=$ac_cv_prog_egrep
6022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6024 if test "${ac_cv_header_stdc+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 #line $LINENO "configure"
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #include <stdlib.h>
6035 #include <stdarg.h>
6036 #include <string.h>
6037 #include <float.h>
6040 main ()
6044 return 0;
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 ac_cv_header_stdc=yes
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 ac_cv_header_stdc=no
6066 rm -f conftest.$ac_objext conftest.$ac_ext
6068 if test $ac_cv_header_stdc = yes; then
6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6070 cat >conftest.$ac_ext <<_ACEOF
6071 #line $LINENO "configure"
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <string.h>
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "memchr" >/dev/null 2>&1; then
6083 else
6084 ac_cv_header_stdc=no
6086 rm -f conftest*
6090 if test $ac_cv_header_stdc = yes; then
6091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <stdlib.h>
6101 _ACEOF
6102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103 $EGREP "free" >/dev/null 2>&1; then
6105 else
6106 ac_cv_header_stdc=no
6108 rm -f conftest*
6112 if test $ac_cv_header_stdc = yes; then
6113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6114 if test "$cross_compiling" = yes; then
6116 else
6117 cat >conftest.$ac_ext <<_ACEOF
6118 #line $LINENO "configure"
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <ctype.h>
6125 #if ((' ' & 0x0FF) == 0x020)
6126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6128 #else
6129 # define ISLOWER(c) \
6130 (('a' <= (c) && (c) <= 'i') \
6131 || ('j' <= (c) && (c) <= 'r') \
6132 || ('s' <= (c) && (c) <= 'z'))
6133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6134 #endif
6136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6138 main ()
6140 int i;
6141 for (i = 0; i < 256; i++)
6142 if (XOR (islower (i), ISLOWER (i))
6143 || toupper (i) != TOUPPER (i))
6144 exit(2);
6145 exit (0);
6147 _ACEOF
6148 rm -f conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6160 else
6161 echo "$as_me: program exited with status $ac_status" >&5
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ( exit $ac_status )
6166 ac_cv_header_stdc=no
6168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6174 if test $ac_cv_header_stdc = yes; then
6176 cat >>confdefs.h <<\_ACEOF
6177 #define STDC_HEADERS 1
6178 _ACEOF
6182 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6192 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6193 inttypes.h stdint.h unistd.h
6195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 cat >conftest.$ac_ext <<_ACEOF
6202 #line $LINENO "configure"
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 $ac_includes_default
6210 #include <$ac_header>
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 eval "$as_ac_Header=yes"
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 eval "$as_ac_Header=no"
6231 rm -f conftest.$ac_objext conftest.$ac_ext
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6238 _ACEOF
6242 done
6246 for ac_header in jpeglib.h
6248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6257 else
6258 # Is the header compilable?
6259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261 cat >conftest.$ac_ext <<_ACEOF
6262 #line $LINENO "configure"
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 #include <$ac_header>
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_header_compiler=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_compiler=no
6290 rm -f conftest.$ac_objext conftest.$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6292 echo "${ECHO_T}$ac_header_compiler" >&6
6294 # Is the header present?
6295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6297 cat >conftest.$ac_ext <<_ACEOF
6298 #line $LINENO "configure"
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <$ac_header>
6305 _ACEOF
6306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } >/dev/null; then
6314 if test -s conftest.err; then
6315 ac_cpp_err=$ac_c_preproc_warn_flag
6316 else
6317 ac_cpp_err=
6319 else
6320 ac_cpp_err=yes
6322 if test -z "$ac_cpp_err"; then
6323 ac_header_preproc=yes
6324 else
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_header_preproc=no
6330 rm -f conftest.err conftest.$ac_ext
6331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6332 echo "${ECHO_T}$ac_header_preproc" >&6
6334 # So? What about this header?
6335 case $ac_header_compiler:$ac_header_preproc in
6336 yes:no )
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6342 cat <<\_ASBOX
6343 ## ------------------------------------ ##
6344 ## Report this to bug-autoconf@gnu.org. ##
6345 ## ------------------------------------ ##
6346 _ASBOX
6348 sed "s/^/$as_me: WARNING: /" >&2
6350 no:yes )
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6358 cat <<\_ASBOX
6359 ## ------------------------------------ ##
6360 ## Report this to bug-autoconf@gnu.org. ##
6361 ## ------------------------------------ ##
6362 _ASBOX
6364 sed "s/^/$as_me: WARNING: /" >&2
6366 esac
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 eval "$as_ac_Header=$ac_header_preproc"
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6379 cat >>confdefs.h <<_ACEOF
6380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381 _ACEOF
6382 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6383 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6384 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 ac_check_lib_save_LIBS=$LIBS
6388 LIBS="-ljpeg $LIBS"
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 /* Override any gcc2 internal prototype to avoid an error. */
6398 #ifdef __cplusplus
6399 extern "C"
6400 #endif
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6403 char jpeg_start_decompress ();
6405 main ()
6407 jpeg_start_decompress ();
6409 return 0;
6411 _ACEOF
6412 rm -f conftest.$ac_objext conftest$ac_exeext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -s conftest$ac_exeext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6425 else
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_cv_lib_jpeg_jpeg_start_decompress=no
6431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432 LIBS=$ac_check_lib_save_LIBS
6434 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6435 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6436 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_LIBJPEG 1
6440 _ACEOF
6442 JPEGLIB="-ljpeg"
6449 done
6452 GIFLIB=""
6455 for ac_header in gif_lib.h
6457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 else
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6478 #include <$ac_header>
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_header_compiler=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6497 ac_header_compiler=no
6499 rm -f conftest.$ac_objext conftest.$ac_ext
6500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6501 echo "${ECHO_T}$ac_header_compiler" >&6
6503 # Is the header present?
6504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <$ac_header>
6514 _ACEOF
6515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } >/dev/null; then
6523 if test -s conftest.err; then
6524 ac_cpp_err=$ac_c_preproc_warn_flag
6525 else
6526 ac_cpp_err=
6528 else
6529 ac_cpp_err=yes
6531 if test -z "$ac_cpp_err"; then
6532 ac_header_preproc=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_header_preproc=no
6539 rm -f conftest.err conftest.$ac_ext
6540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6541 echo "${ECHO_T}$ac_header_preproc" >&6
6543 # So? What about this header?
6544 case $ac_header_compiler:$ac_header_preproc in
6545 yes:no )
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551 cat <<\_ASBOX
6552 ## ------------------------------------ ##
6553 ## Report this to bug-autoconf@gnu.org. ##
6554 ## ------------------------------------ ##
6555 _ASBOX
6557 sed "s/^/$as_me: WARNING: /" >&2
6559 no:yes )
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6567 cat <<\_ASBOX
6568 ## ------------------------------------ ##
6569 ## Report this to bug-autoconf@gnu.org. ##
6570 ## ------------------------------------ ##
6571 _ASBOX
6573 sed "s/^/$as_me: WARNING: /" >&2
6575 esac
6576 echo "$as_me:$LINENO: checking for $ac_header" >&5
6577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 eval "$as_ac_Header=$ac_header_preproc"
6583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6588 cat >>confdefs.h <<_ACEOF
6589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6590 _ACEOF
6591 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6592 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6593 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596 ac_check_lib_save_LIBS=$LIBS
6597 LIBS="-lungif $LIBS"
6598 cat >conftest.$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 #ifdef __cplusplus
6608 extern "C"
6609 #endif
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6612 char DGifOpen ();
6614 main ()
6616 DGifOpen ();
6618 return 0;
6620 _ACEOF
6621 rm -f conftest.$ac_objext conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623 (eval $ac_link) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -s conftest$ac_exeext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 ac_cv_lib_ungif_DGifOpen=yes
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 ac_cv_lib_ungif_DGifOpen=no
6640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6641 LIBS=$ac_check_lib_save_LIBS
6643 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6644 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6645 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_LIBGIF 1
6649 _ACEOF
6651 GIFLIB="-lungif"
6652 else
6653 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6654 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6655 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658 ac_check_lib_save_LIBS=$LIBS
6659 LIBS="-lgif $LIBS"
6660 cat >conftest.$ac_ext <<_ACEOF
6661 #line $LINENO "configure"
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6668 /* Override any gcc2 internal prototype to avoid an error. */
6669 #ifdef __cplusplus
6670 extern "C"
6671 #endif
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6674 char DGifOpen ();
6676 main ()
6678 DGifOpen ();
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext conftest$ac_exeext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685 (eval $ac_link) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -s conftest$ac_exeext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_lib_gif_DGifOpen=yes
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 ac_cv_lib_gif_DGifOpen=no
6702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6705 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6706 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6707 if test $ac_cv_lib_gif_DGifOpen = yes; then
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_LIBGIF 1
6710 _ACEOF
6712 GIFLIB="-lgif"
6719 done
6724 XFILES=""
6726 OPENGLFILES=""
6728 GLU32FILES=""
6730 OPENGL_LIBS=""
6731 if test "$have_x" = "yes"
6732 then
6733 XLIB="-lXext -lX11"
6734 ac_save_CPPFLAGS="$CPPFLAGS"
6735 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6738 for ac_header in X11/Xlib.h
6740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742 echo "$as_me:$LINENO: checking for $ac_header" >&5
6743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6749 else
6750 # Is the header compilable?
6751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 $ac_includes_default
6761 #include <$ac_header>
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_header_compiler=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 ac_header_compiler=no
6782 rm -f conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6784 echo "${ECHO_T}$ac_header_compiler" >&6
6786 # Is the header present?
6787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6789 cat >conftest.$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <$ac_header>
6797 _ACEOF
6798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } >/dev/null; then
6806 if test -s conftest.err; then
6807 ac_cpp_err=$ac_c_preproc_warn_flag
6808 else
6809 ac_cpp_err=
6811 else
6812 ac_cpp_err=yes
6814 if test -z "$ac_cpp_err"; then
6815 ac_header_preproc=yes
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 ac_header_preproc=no
6822 rm -f conftest.err conftest.$ac_ext
6823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824 echo "${ECHO_T}$ac_header_preproc" >&6
6826 # So? What about this header?
6827 case $ac_header_compiler:$ac_header_preproc in
6828 yes:no )
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6834 cat <<\_ASBOX
6835 ## ------------------------------------ ##
6836 ## Report this to bug-autoconf@gnu.org. ##
6837 ## ------------------------------------ ##
6838 _ASBOX
6840 sed "s/^/$as_me: WARNING: /" >&2
6842 no:yes )
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6850 cat <<\_ASBOX
6851 ## ------------------------------------ ##
6852 ## Report this to bug-autoconf@gnu.org. ##
6853 ## ------------------------------------ ##
6854 _ASBOX
6856 sed "s/^/$as_me: WARNING: /" >&2
6858 esac
6859 echo "$as_me:$LINENO: checking for $ac_header" >&5
6860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 eval "$as_ac_Header=$ac_header_preproc"
6866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 _ACEOF
6884 for ac_header in X11/XKBlib.h \
6885 X11/Xutil.h \
6886 X11/extensions/shape.h \
6887 X11/extensions/XShm.h \
6888 X11/extensions/Xrandr.h \
6889 X11/extensions/Xrender.h \
6890 X11/extensions/Xvlib.h \
6891 X11/extensions/xf86dga.h \
6892 X11/extensions/xf86vmode.h
6894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6895 echo "$as_me:$LINENO: checking for $ac_header" >&5
6896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 cat >conftest.$ac_ext <<_ACEOF
6901 #line $LINENO "configure"
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <X11/Xlib.h>
6908 #ifdef HAVE_X11_XUTIL_H
6909 # include <X11/Xutil.h>
6910 #endif
6912 #include <$ac_header>
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 eval "$as_ac_Header=yes"
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 eval "$as_ac_Header=no"
6933 rm -f conftest.$ac_objext conftest.$ac_ext
6935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940 _ACEOF
6944 done
6947 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6948 then
6949 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6950 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6951 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6956 cat >conftest.$ac_ext <<_ACEOF
6957 #line $LINENO "configure"
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 #ifdef __cplusplus
6966 extern "C"
6967 #endif
6968 /* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */
6970 char XkbQueryExtension ();
6972 main ()
6974 XkbQueryExtension ();
6976 return 0;
6978 _ACEOF
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981 (eval $ac_link) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_lib_X11_XkbQueryExtension=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_lib_X11_XkbQueryExtension=no
6998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7001 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7002 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7003 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7005 cat >>confdefs.h <<\_ACEOF
7006 #define HAVE_XKB 1
7007 _ACEOF
7013 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7014 then
7015 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7016 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7017 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 ac_check_lib_save_LIBS=$LIBS
7021 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 #ifdef __cplusplus
7032 extern "C"
7033 #endif
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char XShmQueryExtension ();
7038 main ()
7040 XShmQueryExtension ();
7042 return 0;
7044 _ACEOF
7045 rm -f conftest.$ac_objext conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -s conftest$ac_exeext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_lib_Xext_XShmQueryExtension=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_cv_lib_Xext_XShmQueryExtension=no
7064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7065 LIBS=$ac_check_lib_save_LIBS
7067 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7068 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7069 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_LIBXXSHM 1
7073 _ACEOF
7079 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7080 then
7081 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7082 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7083 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7088 cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7096 /* Override any gcc2 internal prototype to avoid an error. */
7097 #ifdef __cplusplus
7098 extern "C"
7099 #endif
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7102 char XShapeQueryExtension ();
7104 main ()
7106 XShapeQueryExtension ();
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_lib_Xext_XShapeQueryExtension=yes
7124 else
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_cv_lib_Xext_XShapeQueryExtension=no
7130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7133 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7134 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7135 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7137 cat >>confdefs.h <<\_ACEOF
7138 #define HAVE_LIBXSHAPE 1
7139 _ACEOF
7145 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7146 then
7147 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7148 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7149 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 ac_check_lib_save_LIBS=$LIBS
7153 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7154 cat >conftest.$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char XDGAQueryExtension ();
7170 main ()
7172 XDGAQueryExtension ();
7174 return 0;
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179 (eval $ac_link) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -s conftest$ac_exeext'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; }; then
7189 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7190 else
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7199 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7200 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7201 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_LIBXXF86DGA2 1
7205 _ACEOF
7207 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7209 else
7210 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7211 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7212 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 ac_check_lib_save_LIBS=$LIBS
7216 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7217 $LIBS"
7218 cat >conftest.$ac_ext <<_ACEOF
7219 #line $LINENO "configure"
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7226 /* Override any gcc2 internal prototype to avoid an error. */
7227 #ifdef __cplusplus
7228 extern "C"
7229 #endif
7230 /* We use char because int might match the return type of a gcc2
7231 builtin and then its argument prototype would still apply. */
7232 char XF86DGAQueryExtension ();
7234 main ()
7236 XF86DGAQueryExtension ();
7238 return 0;
7240 _ACEOF
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7243 (eval $ac_link) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -s conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7254 else
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 LIBS=$ac_check_lib_save_LIBS
7263 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7264 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7265 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7267 cat >>confdefs.h <<\_ACEOF
7268 #define HAVE_LIBXXF86DGA 1
7269 _ACEOF
7271 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7280 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7281 then
7282 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7283 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7284 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 ac_check_lib_save_LIBS=$LIBS
7288 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7289 cat >conftest.$ac_ext <<_ACEOF
7290 #line $LINENO "configure"
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 #ifdef __cplusplus
7299 extern "C"
7300 #endif
7301 /* We use char because int might match the return type of a gcc2
7302 builtin and then its argument prototype would still apply. */
7303 char XF86VidModeQueryExtension ();
7305 main ()
7307 XF86VidModeQueryExtension ();
7309 return 0;
7311 _ACEOF
7312 rm -f conftest.$ac_objext conftest$ac_exeext
7313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7314 (eval $ac_link) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -s conftest$ac_exeext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7332 LIBS=$ac_check_lib_save_LIBS
7334 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7335 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7336 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_LIBXXF86VM 1
7340 _ACEOF
7342 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7348 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7349 then
7350 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7351 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7352 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 ac_check_lib_save_LIBS=$LIBS
7356 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7357 cat >conftest.$ac_ext <<_ACEOF
7358 #line $LINENO "configure"
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7365 /* Override any gcc2 internal prototype to avoid an error. */
7366 #ifdef __cplusplus
7367 extern "C"
7368 #endif
7369 /* We use char because int might match the return type of a gcc2
7370 builtin and then its argument prototype would still apply. */
7371 char XRRSetScreenConfigAndRate ();
7373 main ()
7375 XRRSetScreenConfigAndRate ();
7377 return 0;
7379 _ACEOF
7380 rm -f conftest.$ac_objext conftest$ac_exeext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382 (eval $ac_link) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7393 else
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7400 LIBS=$ac_check_lib_save_LIBS
7402 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7403 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7404 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_LIBXRANDR 1
7408 _ACEOF
7410 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
7416 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7417 then
7418 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7419 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7420 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 ac_check_lib_save_LIBS=$LIBS
7424 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7425 cat >conftest.$ac_ext <<_ACEOF
7426 #line $LINENO "configure"
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 #ifdef __cplusplus
7435 extern "C"
7436 #endif
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7439 char XvShmCreateImage ();
7441 main ()
7443 XvShmCreateImage ();
7445 return 0;
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450 (eval $ac_link) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_cv_lib_Xv_XvShmCreateImage=yes
7461 else
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 ac_cv_lib_Xv_XvShmCreateImage=no
7467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7468 LIBS=$ac_check_lib_save_LIBS
7470 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7471 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7472 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_XVIDEO 1
7476 _ACEOF
7478 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7487 done
7489 if test "x$with_opengl" != "xno"
7490 then
7491 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7492 then
7493 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7494 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7495 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7496 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7497 { (exit 1); exit 1; }; }
7502 for ac_header in GL/gl.h GL/glx.h
7504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7513 else
7514 # Is the header compilable?
7515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 #include <$ac_header>
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_header_compiler=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_header_compiler=no
7546 rm -f conftest.$ac_objext conftest.$ac_ext
7547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7548 echo "${ECHO_T}$ac_header_compiler" >&6
7550 # Is the header present?
7551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7553 cat >conftest.$ac_ext <<_ACEOF
7554 #line $LINENO "configure"
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <$ac_header>
7561 _ACEOF
7562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } >/dev/null; then
7570 if test -s conftest.err; then
7571 ac_cpp_err=$ac_c_preproc_warn_flag
7572 else
7573 ac_cpp_err=
7575 else
7576 ac_cpp_err=yes
7578 if test -z "$ac_cpp_err"; then
7579 ac_header_preproc=yes
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_header_preproc=no
7586 rm -f conftest.err conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7588 echo "${ECHO_T}$ac_header_preproc" >&6
7590 # So? What about this header?
7591 case $ac_header_compiler:$ac_header_preproc in
7592 yes:no )
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7598 cat <<\_ASBOX
7599 ## ------------------------------------ ##
7600 ## Report this to bug-autoconf@gnu.org. ##
7601 ## ------------------------------------ ##
7602 _ASBOX
7604 sed "s/^/$as_me: WARNING: /" >&2
7606 no:yes )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 cat <<\_ASBOX
7615 ## ------------------------------------ ##
7616 ## Report this to bug-autoconf@gnu.org. ##
7617 ## ------------------------------------ ##
7618 _ASBOX
7620 sed "s/^/$as_me: WARNING: /" >&2
7622 esac
7623 echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 eval "$as_ac_Header=$ac_header_preproc"
7630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7635 cat >>confdefs.h <<_ACEOF
7636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7637 _ACEOF
7641 done
7643 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7644 then
7646 for ac_header in GL/glext.h
7648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 #include <GL/glx.h>
7663 #include <$ac_header>
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 eval "$as_ac_Header=yes"
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 eval "$as_ac_Header=no"
7684 rm -f conftest.$ac_objext conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691 _ACEOF
7695 done
7697 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7698 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7699 if test "${wine_cv_opengl_version_OK+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702 cat >conftest.$ac_ext <<_ACEOF
7703 #line $LINENO "configure"
7704 /* confdefs.h. */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 #include <GL/gl.h>
7711 main ()
7713 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } &&
7724 { ac_try='test -s conftest.$ac_objext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 wine_cv_opengl_version_OK="yes"
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 wine_cv_opengl_version_OK="no"
7738 rm -f conftest.$ac_objext conftest.$ac_ext
7741 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7742 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7744 if test "$wine_cv_opengl_version_OK" = "yes"
7745 then
7746 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7747 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7748 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 ac_check_lib_save_LIBS=$LIBS
7752 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 /* Override any gcc2 internal prototype to avoid an error. */
7762 #ifdef __cplusplus
7763 extern "C"
7764 #endif
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7767 char glXCreateContext ();
7769 main ()
7771 glXCreateContext ();
7773 return 0;
7775 _ACEOF
7776 rm -f conftest.$ac_objext conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_cv_lib_GL_glXCreateContext=yes
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_cv_lib_GL_glXCreateContext=no
7795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7796 LIBS=$ac_check_lib_save_LIBS
7798 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7799 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7800 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7801 OPENGL_LIBS="-lGL"
7806 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7807 then
7808 OPENGLFILES='$(OPENGLFILES)'
7810 cat >>confdefs.h <<\_ACEOF
7811 #define HAVE_OPENGL 1
7812 _ACEOF
7815 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7816 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7817 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 ac_check_lib_save_LIBS=$LIBS
7821 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 /* confdefs.h. */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7830 /* Override any gcc2 internal prototype to avoid an error. */
7831 #ifdef __cplusplus
7832 extern "C"
7833 #endif
7834 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */
7836 char glXGetProcAddressARB ();
7838 main ()
7840 glXGetProcAddressARB ();
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_cv_lib_GL_glXGetProcAddressARB=yes
7858 else
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 ac_cv_lib_GL_glXGetProcAddressARB=no
7864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7865 LIBS=$ac_check_lib_save_LIBS
7867 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7868 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7869 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_GLX_GETPROCADDRESS 1
7873 _ACEOF
7878 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7879 then
7880 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7881 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7882 if test "${wine_cv_extension_prototypes+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <GL/gl.h>
7893 #ifdef HAVE_GL_GLEXT_H
7894 # include <GL/glext.h>
7895 #endif
7898 main ()
7900 PFNGLCOLORTABLEEXTPROC test_proc;
7902 return 0;
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 wine_cv_extension_prototypes="yes"
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 wine_cv_extension_prototypes="no"
7925 rm -f conftest.$ac_objext conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7929 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7930 if test "$wine_cv_extension_prototypes" = "yes"
7931 then
7933 cat >>confdefs.h <<\_ACEOF
7934 #define HAVE_GLEXT_PROTOTYPES 1
7935 _ACEOF
7941 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7942 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7943 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7948 $LIBS"
7949 cat >conftest.$ac_ext <<_ACEOF
7950 #line $LINENO "configure"
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7957 /* Override any gcc2 internal prototype to avoid an error. */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7963 char gluLookAt ();
7965 main ()
7967 gluLookAt ();
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_lib_GLU_gluLookAt=yes
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_lib_GLU_gluLookAt=no
7991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7992 LIBS=$ac_check_lib_save_LIBS
7994 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7995 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7996 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7997 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7998 GLU32FILES='$(GLU32FILES)'
8006 NASLIBS=""
8009 for ac_header in audio/audiolib.h
8011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8020 else
8021 # Is the header compilable?
8022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8024 cat >conftest.$ac_ext <<_ACEOF
8025 #line $LINENO "configure"
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8032 #include <$ac_header>
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036 (eval $ac_compile) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -s conftest.$ac_objext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_header_compiler=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ac_header_compiler=no
8053 rm -f conftest.$ac_objext conftest.$ac_ext
8054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8055 echo "${ECHO_T}$ac_header_compiler" >&6
8057 # Is the header present?
8058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <$ac_header>
8068 _ACEOF
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8077 if test -s conftest.err; then
8078 ac_cpp_err=$ac_c_preproc_warn_flag
8079 else
8080 ac_cpp_err=
8082 else
8083 ac_cpp_err=yes
8085 if test -z "$ac_cpp_err"; then
8086 ac_header_preproc=yes
8087 else
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_header_preproc=no
8093 rm -f conftest.err conftest.$ac_ext
8094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8095 echo "${ECHO_T}$ac_header_preproc" >&6
8097 # So? What about this header?
8098 case $ac_header_compiler:$ac_header_preproc in
8099 yes:no )
8100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8105 cat <<\_ASBOX
8106 ## ------------------------------------ ##
8107 ## Report this to bug-autoconf@gnu.org. ##
8108 ## ------------------------------------ ##
8109 _ASBOX
8111 sed "s/^/$as_me: WARNING: /" >&2
8113 no:yes )
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8121 cat <<\_ASBOX
8122 ## ------------------------------------ ##
8123 ## Report this to bug-autoconf@gnu.org. ##
8124 ## ------------------------------------ ##
8125 _ASBOX
8127 sed "s/^/$as_me: WARNING: /" >&2
8129 esac
8130 echo "$as_me:$LINENO: checking for $ac_header" >&5
8131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 eval "$as_ac_Header=$ac_header_preproc"
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8142 cat >>confdefs.h <<_ACEOF
8143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8144 _ACEOF
8146 for ac_header in audio/soundlib.h
8148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8149 echo "$as_me:$LINENO: checking for $ac_header" >&5
8150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 #include <audio/audiolib.h>
8163 #include <$ac_header>
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8167 (eval $ac_compile) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 eval "$as_ac_Header=yes"
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8182 eval "$as_ac_Header=no"
8184 rm -f conftest.$ac_objext conftest.$ac_ext
8186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 _ACEOF
8195 done
8197 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8198 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8199 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 #line $LINENO "configure"
8206 /* confdefs.h. */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8212 /* Override any gcc2 internal prototype to avoid an error. */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 /* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218 char AuCreateFlow ();
8220 main ()
8222 AuCreateFlow ();
8224 return 0;
8226 _ACEOF
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_audio_AuCreateFlow=yes
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_cv_lib_audio_AuCreateFlow=no
8246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8249 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8250 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8251 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8253 cat >>confdefs.h <<\_ACEOF
8254 #define HAVE_NAS 1
8255 _ACEOF
8257 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8262 done
8265 CPPFLAGS="$ac_save_CPPFLAGS"
8266 XFILES='$(XFILES)'
8267 else
8268 XLIB=""
8269 X_CFLAGS=""
8270 X_LIBS=""
8273 CURSESLIBS=""
8274 if test "x$with_curses" != "xno"
8275 then
8277 for ac_header in ncurses.h
8279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8281 echo "$as_me:$LINENO: checking for $ac_header" >&5
8282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8288 else
8289 # Is the header compilable?
8290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 #include <$ac_header>
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_header_compiler=yes
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_header_compiler=no
8321 rm -f conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8323 echo "${ECHO_T}$ac_header_compiler" >&6
8325 # Is the header present?
8326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8329 #line $LINENO "configure"
8330 /* confdefs.h. */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335 #include <$ac_header>
8336 _ACEOF
8337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } >/dev/null; then
8345 if test -s conftest.err; then
8346 ac_cpp_err=$ac_c_preproc_warn_flag
8347 else
8348 ac_cpp_err=
8350 else
8351 ac_cpp_err=yes
8353 if test -z "$ac_cpp_err"; then
8354 ac_header_preproc=yes
8355 else
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8359 ac_header_preproc=no
8361 rm -f conftest.err conftest.$ac_ext
8362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8363 echo "${ECHO_T}$ac_header_preproc" >&6
8365 # So? What about this header?
8366 case $ac_header_compiler:$ac_header_preproc in
8367 yes:no )
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8373 cat <<\_ASBOX
8374 ## ------------------------------------ ##
8375 ## Report this to bug-autoconf@gnu.org. ##
8376 ## ------------------------------------ ##
8377 _ASBOX
8379 sed "s/^/$as_me: WARNING: /" >&2
8381 no:yes )
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8389 cat <<\_ASBOX
8390 ## ------------------------------------ ##
8391 ## Report this to bug-autoconf@gnu.org. ##
8392 ## ------------------------------------ ##
8393 _ASBOX
8395 sed "s/^/$as_me: WARNING: /" >&2
8397 esac
8398 echo "$as_me:$LINENO: checking for $ac_header" >&5
8399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403 eval "$as_ac_Header=$ac_header_preproc"
8405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8410 cat >>confdefs.h <<_ACEOF
8411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 _ACEOF
8413 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8414 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8415 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 ac_check_lib_save_LIBS=$LIBS
8419 LIBS="-lncurses $LIBS"
8420 cat >conftest.$ac_ext <<_ACEOF
8421 #line $LINENO "configure"
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8428 /* Override any gcc2 internal prototype to avoid an error. */
8429 #ifdef __cplusplus
8430 extern "C"
8431 #endif
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8434 char waddch ();
8436 main ()
8438 waddch ();
8440 return 0;
8442 _ACEOF
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -s conftest$ac_exeext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_lib_ncurses_waddch=yes
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 ac_cv_lib_ncurses_waddch=no
8462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_lib_save_LIBS
8465 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8466 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8467 if test $ac_cv_lib_ncurses_waddch = yes; then
8469 cat >>confdefs.h <<\_ACEOF
8470 #define HAVE_LIBNCURSES 1
8471 _ACEOF
8473 CURSESLIBS="-lncurses"
8474 else
8476 for ac_header in curses.h
8478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8480 echo "$as_me:$LINENO: checking for $ac_header" >&5
8481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8487 else
8488 # Is the header compilable?
8489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8491 cat >conftest.$ac_ext <<_ACEOF
8492 #line $LINENO "configure"
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #include <$ac_header>
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503 (eval $ac_compile) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_header_compiler=yes
8514 else
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_header_compiler=no
8520 rm -f conftest.$ac_objext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8522 echo "${ECHO_T}$ac_header_compiler" >&6
8524 # Is the header present?
8525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 #include <$ac_header>
8535 _ACEOF
8536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } >/dev/null; then
8544 if test -s conftest.err; then
8545 ac_cpp_err=$ac_c_preproc_warn_flag
8546 else
8547 ac_cpp_err=
8549 else
8550 ac_cpp_err=yes
8552 if test -z "$ac_cpp_err"; then
8553 ac_header_preproc=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_header_preproc=no
8560 rm -f conftest.err conftest.$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562 echo "${ECHO_T}$ac_header_preproc" >&6
8564 # So? What about this header?
8565 case $ac_header_compiler:$ac_header_preproc in
8566 yes:no )
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8572 cat <<\_ASBOX
8573 ## ------------------------------------ ##
8574 ## Report this to bug-autoconf@gnu.org. ##
8575 ## ------------------------------------ ##
8576 _ASBOX
8578 sed "s/^/$as_me: WARNING: /" >&2
8580 no:yes )
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588 cat <<\_ASBOX
8589 ## ------------------------------------ ##
8590 ## Report this to bug-autoconf@gnu.org. ##
8591 ## ------------------------------------ ##
8592 _ASBOX
8594 sed "s/^/$as_me: WARNING: /" >&2
8596 esac
8597 echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 eval "$as_ac_Header=$ac_header_preproc"
8604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8609 cat >>confdefs.h <<_ACEOF
8610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611 _ACEOF
8612 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8613 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8614 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 ac_check_lib_save_LIBS=$LIBS
8618 LIBS="-lcurses $LIBS"
8619 cat >conftest.$ac_ext <<_ACEOF
8620 #line $LINENO "configure"
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8627 /* Override any gcc2 internal prototype to avoid an error. */
8628 #ifdef __cplusplus
8629 extern "C"
8630 #endif
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633 char waddch ();
8635 main ()
8637 waddch ();
8639 return 0;
8641 _ACEOF
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644 (eval $ac_link) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_lib_curses_waddch=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_lib_curses_waddch=no
8661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8664 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8665 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8666 if test $ac_cv_lib_curses_waddch = yes; then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_LIBCURSES 1
8670 _ACEOF
8672 CURSESLIBS="-lcurses"
8677 done
8683 done
8685 saved_libs="$LIBS"
8686 LIBS="$CURSESLIBS $LIBS"
8689 for ac_func in getbkgd resizeterm
8691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8692 echo "$as_me:$LINENO: checking for $ac_func" >&5
8693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_var+set}\" = set"; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 /* System header to define __stub macros and hopefully few prototypes,
8705 which can conflict with char $ac_func (); below.
8706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8707 <limits.h> exists even on freestanding compilers. */
8708 #ifdef __STDC__
8709 # include <limits.h>
8710 #else
8711 # include <assert.h>
8712 #endif
8713 /* Override any gcc2 internal prototype to avoid an error. */
8714 #ifdef __cplusplus
8715 extern "C"
8717 #endif
8718 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */
8720 char $ac_func ();
8721 /* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8725 choke me
8726 #else
8727 char (*f) () = $ac_func;
8728 #endif
8729 #ifdef __cplusplus
8731 #endif
8734 main ()
8736 return f != $ac_func;
8738 return 0;
8740 _ACEOF
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -s conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 eval "$as_ac_var=yes"
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 eval "$as_ac_var=no"
8760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8764 if test `eval echo '${'$as_ac_var'}'` = yes; then
8765 cat >>confdefs.h <<_ACEOF
8766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8767 _ACEOF
8770 done
8772 LIBS="$saved_libs"
8776 # Extract the first word of "sane-config", so it can be a program name with args.
8777 set dummy sane-config; ac_word=$2
8778 echo "$as_me:$LINENO: checking for $ac_word" >&5
8779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780 if test "${ac_cv_prog_sane_devel+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 if test -n "$sane_devel"; then
8784 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8785 else
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_sane_devel="sane-config"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8797 done
8798 done
8800 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8803 sane_devel=$ac_cv_prog_sane_devel
8804 if test -n "$sane_devel"; then
8805 echo "$as_me:$LINENO: result: $sane_devel" >&5
8806 echo "${ECHO_T}$sane_devel" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6
8812 if test "$sane_devel" = "no"
8813 then
8814 SANELIBS=""
8815 SANEINCL=""
8816 else
8817 SANELIBS="`$sane_devel --libs`"
8818 SANEINCL="`$sane_devel --cflags`"
8819 ac_save_CPPFLAGS="$CPPFLAGS"
8820 ac_save_LIBS="$LIBS"
8821 CPPFLAGS="$CPPFLAGS $SANEINCL"
8822 LIBS="$LIBS $SANELIBS"
8823 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8824 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8825 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8826 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8830 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8831 else
8832 # Is the header compilable?
8833 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8834 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 /* confdefs.h. */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8842 $ac_includes_default
8843 #include <sane/sane.h>
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest.$ac_objext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_header_compiler=yes
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_header_compiler=no
8864 rm -f conftest.$ac_objext conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866 echo "${ECHO_T}$ac_header_compiler" >&6
8868 # Is the header present?
8869 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8870 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 #include <sane/sane.h>
8879 _ACEOF
8880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } >/dev/null; then
8888 if test -s conftest.err; then
8889 ac_cpp_err=$ac_c_preproc_warn_flag
8890 else
8891 ac_cpp_err=
8893 else
8894 ac_cpp_err=yes
8896 if test -z "$ac_cpp_err"; then
8897 ac_header_preproc=yes
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 ac_header_preproc=no
8904 rm -f conftest.err conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8906 echo "${ECHO_T}$ac_header_preproc" >&6
8908 # So? What about this header?
8909 case $ac_header_compiler:$ac_header_preproc in
8910 yes:no )
8911 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8912 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8914 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8916 cat <<\_ASBOX
8917 ## ------------------------------------ ##
8918 ## Report this to bug-autoconf@gnu.org. ##
8919 ## ------------------------------------ ##
8920 _ASBOX
8922 sed "s/^/$as_me: WARNING: /" >&2
8924 no:yes )
8925 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8926 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8928 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8930 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8932 cat <<\_ASBOX
8933 ## ------------------------------------ ##
8934 ## Report this to bug-autoconf@gnu.org. ##
8935 ## ------------------------------------ ##
8936 _ASBOX
8938 sed "s/^/$as_me: WARNING: /" >&2
8940 esac
8941 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8942 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8943 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 ac_cv_header_sane_sane_h=$ac_header_preproc
8948 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8949 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8952 if test $ac_cv_header_sane_sane_h = yes; then
8953 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8954 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8955 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 ac_check_lib_save_LIBS=$LIBS
8959 LIBS="-lsane $LIBS"
8960 cat >conftest.$ac_ext <<_ACEOF
8961 #line $LINENO "configure"
8962 /* confdefs.h. */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8974 char sane_open ();
8976 main ()
8978 sane_open ();
8980 return 0;
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_lib_sane_sane_open=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_lib_sane_sane_open=no
9002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9005 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9006 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9007 if test $ac_cv_lib_sane_sane_open = yes; then
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_SANE 1
9011 _ACEOF
9013 else
9014 SANELIBS=""
9015 SANEINCL=""
9018 else
9019 SANELIBS=""
9020 SANEINCL=""
9024 LIBS="$ac_save_LIBS"
9025 CPPFLAGS="$ac_save_CPPFLAGS"
9031 for ac_header in unicode/ubidi.h
9033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9042 else
9043 # Is the header compilable?
9044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9053 $ac_includes_default
9054 #include <$ac_header>
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058 (eval $ac_compile) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_header_compiler=yes
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_header_compiler=no
9075 rm -f conftest.$ac_objext conftest.$ac_ext
9076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9077 echo "${ECHO_T}$ac_header_compiler" >&6
9079 # Is the header present?
9080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 #include <$ac_header>
9090 _ACEOF
9091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } >/dev/null; then
9099 if test -s conftest.err; then
9100 ac_cpp_err=$ac_c_preproc_warn_flag
9101 else
9102 ac_cpp_err=
9104 else
9105 ac_cpp_err=yes
9107 if test -z "$ac_cpp_err"; then
9108 ac_header_preproc=yes
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_header_preproc=no
9115 rm -f conftest.err conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9117 echo "${ECHO_T}$ac_header_preproc" >&6
9119 # So? What about this header?
9120 case $ac_header_compiler:$ac_header_preproc in
9121 yes:no )
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9127 cat <<\_ASBOX
9128 ## ------------------------------------ ##
9129 ## Report this to bug-autoconf@gnu.org. ##
9130 ## ------------------------------------ ##
9131 _ASBOX
9133 sed "s/^/$as_me: WARNING: /" >&2
9135 no:yes )
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9143 cat <<\_ASBOX
9144 ## ------------------------------------ ##
9145 ## Report this to bug-autoconf@gnu.org. ##
9146 ## ------------------------------------ ##
9147 _ASBOX
9149 sed "s/^/$as_me: WARNING: /" >&2
9151 esac
9152 echo "$as_me:$LINENO: checking for $ac_header" >&5
9153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 eval "$as_ac_Header=$ac_header_preproc"
9159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 _ACEOF
9170 done
9172 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9173 then
9174 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9175 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9176 if test "${ac_cv_lib_icu+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 saved_libs="$LIBS"
9180 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9181 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9182 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9183 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line $LINENO "configure"
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <unicode/ubidi.h>
9193 main ()
9195 ubidi_open()
9197 return 0;
9199 _ACEOF
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202 (eval $ac_link) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_lib_icu="yes"
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_cv_lib_icu="no"
9219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9220 LIBS="$saved_libs"
9222 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9223 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9224 if test "$ac_cv_lib_icu" = "yes"
9225 then
9227 cat >>confdefs.h <<\_ACEOF
9228 #define HAVE_ICU 1
9229 _ACEOF
9231 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9236 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9237 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9238 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-lfreetype $X_LIBS $LIBS"
9243 cat >conftest.$ac_ext <<_ACEOF
9244 #line $LINENO "configure"
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9251 /* Override any gcc2 internal prototype to avoid an error. */
9252 #ifdef __cplusplus
9253 extern "C"
9254 #endif
9255 /* We use char because int might match the return type of a gcc2
9256 builtin and then its argument prototype would still apply. */
9257 char FT_Init_FreeType ();
9259 main ()
9261 FT_Init_FreeType ();
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -s conftest$ac_exeext'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 (eval $ac_try) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
9278 ac_cv_lib_freetype_FT_Init_FreeType=yes
9279 else
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_cv_lib_freetype_FT_Init_FreeType=no
9285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9288 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9289 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9290 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9291 ft_lib=yes
9292 else
9293 ft_lib=no
9296 if test "$ft_lib" = "no"
9297 then
9298 FREETYPEINCL=""
9299 wine_cv_msg_freetype=no
9300 else
9301 # Extract the first word of "freetype-config", so it can be a program name with args.
9302 set dummy freetype-config; ac_word=$2
9303 echo "$as_me:$LINENO: checking for $ac_word" >&5
9304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9305 if test "${ac_cv_prog_ft_devel+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 if test -n "$ft_devel"; then
9309 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9310 else
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 for as_dir in $PATH
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_ft_devel="freetype-config"
9319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 break 2
9322 done
9323 done
9325 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9328 ft_devel=$ac_cv_prog_ft_devel
9329 if test -n "$ft_devel"; then
9330 echo "$as_me:$LINENO: result: $ft_devel" >&5
9331 echo "${ECHO_T}$ft_devel" >&6
9332 else
9333 echo "$as_me:$LINENO: result: no" >&5
9334 echo "${ECHO_T}no" >&6
9337 if test "$ft_devel" = "no"
9338 then
9339 # Extract the first word of "freetype2-config", so it can be a program name with args.
9340 set dummy freetype2-config; ac_word=$2
9341 echo "$as_me:$LINENO: checking for $ac_word" >&5
9342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9343 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 if test -n "$ft_devel2"; then
9347 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9348 else
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9356 ac_cv_prog_ft_devel2="freetype2-config"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9360 done
9361 done
9363 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9366 ft_devel2=$ac_cv_prog_ft_devel2
9367 if test -n "$ft_devel2"; then
9368 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9369 echo "${ECHO_T}$ft_devel2" >&6
9370 else
9371 echo "$as_me:$LINENO: result: no" >&5
9372 echo "${ECHO_T}no" >&6
9375 if test "$ft_devel2" = "freetype2-config"
9376 then
9377 ft_devel=$ft_devel2
9380 if test "$ft_devel" = "no"
9381 then
9382 FREETYPEINCL=""
9383 wine_cv_msg_freetype=yes
9384 else
9385 FREETYPEINCL=`$ft_devel --cflags`
9386 ac_save_CPPFLAGS="$CPPFLAGS"
9387 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9397 for ac_header in ft2build.h \
9398 freetype/freetype.h \
9399 freetype/ftglyph.h \
9400 freetype/tttables.h \
9401 freetype/ftnames.h \
9402 freetype/ftsnames.h \
9403 freetype/ttnameid.h \
9404 freetype/ftoutln.h \
9405 freetype/internal/sfnt.h
9407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9408 echo "$as_me:$LINENO: checking for $ac_header" >&5
9409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9415 /* confdefs.h. */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 #if HAVE_FT2BUILD_H
9421 #include <ft2build.h>
9422 #endif
9424 #include <$ac_header>
9425 _ACEOF
9426 rm -f conftest.$ac_objext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9428 (eval $ac_compile) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -s conftest.$ac_objext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 eval "$as_ac_Header=yes"
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 eval "$as_ac_Header=no"
9445 rm -f conftest.$ac_objext conftest.$ac_ext
9447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9450 cat >>confdefs.h <<_ACEOF
9451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9452 _ACEOF
9456 done
9458 cat >conftest.$ac_ext <<_ACEOF
9459 #line $LINENO "configure"
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 #include <ft2build.h>
9466 #include <freetype/fttrigon.h>
9467 _ACEOF
9468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } >/dev/null; then
9476 if test -s conftest.err; then
9477 ac_cpp_err=$ac_c_preproc_warn_flag
9478 else
9479 ac_cpp_err=
9481 else
9482 ac_cpp_err=yes
9484 if test -z "$ac_cpp_err"; then
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_FREETYPE_FTTRIGON_H 1
9488 _ACEOF
9490 wine_cv_fttrigon=yes
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 wine_cv_fttrigon=no
9497 rm -f conftest.err conftest.$ac_ext
9498 CPPFLAGS="$ac_save_CPPFLAGS"
9499 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9500 then
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_FREETYPE 1
9504 _ACEOF
9506 wine_cv_msg_freetype=no
9507 else
9508 FREETYPEINCL=""
9509 wine_cv_msg_freetype=yes
9515 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9516 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9517 if test "${ac_cv_c_ppdev+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 cat >conftest.$ac_ext <<_ACEOF
9521 #line $LINENO "configure"
9522 /* confdefs.h. */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 #include <linux/ppdev.h>
9529 main ()
9531 ioctl (1,PPCLAIM,0)
9533 return 0;
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_c_ppdev="yes"
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_c_ppdev="no"
9555 rm -f conftest.$ac_objext conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9559 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9560 if test "$ac_cv_c_ppdev" = "yes"
9561 then
9563 cat >>confdefs.h <<\_ACEOF
9564 #define HAVE_PPDEV 1
9565 _ACEOF
9569 echo "$as_me:$LINENO: checking for va_copy" >&5
9570 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9571 if test "${ac_cv_c_va_copy+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <stdarg.h>
9583 main ()
9585 va_list ap1, ap2;
9586 va_copy(ap1,ap2);
9589 return 0;
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_c_va_copy="yes"
9605 else
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_c_va_copy="no"
9611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9615 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9616 if test "$ac_cv_c_va_copy" = "yes"
9617 then
9619 cat >>confdefs.h <<\_ACEOF
9620 #define HAVE_VA_COPY 1
9621 _ACEOF
9624 echo "$as_me:$LINENO: checking for __va_copy" >&5
9625 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9626 if test "${ac_cv_c___va_copy+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 cat >conftest.$ac_ext <<_ACEOF
9630 #line $LINENO "configure"
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <stdarg.h>
9638 main ()
9640 va_list ap1, ap2;
9641 __va_copy(ap1,ap2);
9644 return 0;
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_c___va_copy="yes"
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_c___va_copy="no"
9666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9670 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9671 if test "$ac_cv_c___va_copy" = "yes"
9672 then
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE___VA_COPY 1
9676 _ACEOF
9680 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
9681 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
9682 if test "${ac_cv_c_sigsetjmp+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 /* confdefs.h. */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 #include <setjmp.h>
9694 main ()
9696 sigjmp_buf buf;
9697 sigsetjmp( buf, 1 );
9698 siglongjmp( buf, 1 );
9700 return 0;
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_c_sigsetjmp="yes"
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_c_sigsetjmp="no"
9722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9725 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
9726 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
9727 if test "$ac_cv_c_sigsetjmp" = "yes"
9728 then
9730 cat >>confdefs.h <<\_ACEOF
9731 #define HAVE_SIGSETJMP 1
9732 _ACEOF
9736 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9737 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9738 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 cat >conftest.$ac_ext <<_ACEOF
9742 #line $LINENO "configure"
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #define _GNU_SOURCE
9749 #include <pthread.h>
9752 main ()
9754 if ((pthread_rwlock_t *) 0)
9755 return 0;
9756 if (sizeof (pthread_rwlock_t))
9757 return 0;
9759 return 0;
9761 _ACEOF
9762 rm -f conftest.$ac_objext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 (eval $ac_compile) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -s conftest.$ac_objext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 ac_cv_type_pthread_rwlock_t=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_cv_type_pthread_rwlock_t=no
9781 rm -f conftest.$ac_objext conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9784 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9785 if test $ac_cv_type_pthread_rwlock_t = yes; then
9787 cat >>confdefs.h <<_ACEOF
9788 #define HAVE_PTHREAD_RWLOCK_T 1
9789 _ACEOF
9793 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9794 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9795 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 cat >conftest.$ac_ext <<_ACEOF
9799 #line $LINENO "configure"
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #define _GNU_SOURCE
9806 #include <pthread.h>
9809 main ()
9811 if ((pthread_rwlockattr_t *) 0)
9812 return 0;
9813 if (sizeof (pthread_rwlockattr_t))
9814 return 0;
9816 return 0;
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -s conftest.$ac_objext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 (eval $ac_try) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9831 ac_cv_type_pthread_rwlockattr_t=yes
9832 else
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_cv_type_pthread_rwlockattr_t=no
9838 rm -f conftest.$ac_objext conftest.$ac_ext
9840 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9841 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9842 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9844 cat >>confdefs.h <<_ACEOF
9845 #define HAVE_PTHREAD_RWLOCKATTR_T 1
9846 _ACEOF
9852 ac_save_LIBS="$LIBS"
9853 LIBS="$LIBS $LIBPTHREAD"
9855 for ac_func in pthread_getattr_np
9857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9858 echo "$as_me:$LINENO: checking for $ac_func" >&5
9859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9860 if eval "test \"\${$as_ac_var+set}\" = set"; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 /* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char $ac_func (); below.
9872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9873 <limits.h> exists even on freestanding compilers. */
9874 #ifdef __STDC__
9875 # include <limits.h>
9876 #else
9877 # include <assert.h>
9878 #endif
9879 /* Override any gcc2 internal prototype to avoid an error. */
9880 #ifdef __cplusplus
9881 extern "C"
9883 #endif
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9886 char $ac_func ();
9887 /* The GNU C library defines this for functions which it implements
9888 to always fail with ENOSYS. Some functions are actually named
9889 something starting with __ and the normal name is an alias. */
9890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9891 choke me
9892 #else
9893 char (*f) () = $ac_func;
9894 #endif
9895 #ifdef __cplusplus
9897 #endif
9900 main ()
9902 return f != $ac_func;
9904 return 0;
9906 _ACEOF
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909 (eval $ac_link) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -s conftest$ac_exeext'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
9919 eval "$as_ac_var=yes"
9920 else
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 eval "$as_ac_var=no"
9926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9930 if test `eval echo '${'$as_ac_var'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9933 _ACEOF
9936 done
9938 LIBS="$ac_save_LIBS"
9943 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954 else
9955 # Is the header compilable?
9956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 /* confdefs.h. */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 #include <$ac_header>
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970 (eval $ac_compile) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -s conftest.$ac_objext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_header_compiler=yes
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_header_compiler=no
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6
9991 # Is the header present?
9992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9995 #line $LINENO "configure"
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <$ac_header>
10002 _ACEOF
10003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } >/dev/null; then
10011 if test -s conftest.err; then
10012 ac_cpp_err=$ac_c_preproc_warn_flag
10013 else
10014 ac_cpp_err=
10016 else
10017 ac_cpp_err=yes
10019 if test -z "$ac_cpp_err"; then
10020 ac_header_preproc=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_preproc=no
10027 rm -f conftest.err conftest.$ac_ext
10028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029 echo "${ECHO_T}$ac_header_preproc" >&6
10031 # So? What about this header?
10032 case $ac_header_compiler:$ac_header_preproc in
10033 yes:no )
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10039 cat <<\_ASBOX
10040 ## ------------------------------------ ##
10041 ## Report this to bug-autoconf@gnu.org. ##
10042 ## ------------------------------------ ##
10043 _ASBOX
10045 sed "s/^/$as_me: WARNING: /" >&2
10047 no:yes )
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10055 cat <<\_ASBOX
10056 ## ------------------------------------ ##
10057 ## Report this to bug-autoconf@gnu.org. ##
10058 ## ------------------------------------ ##
10059 _ASBOX
10061 sed "s/^/$as_me: WARNING: /" >&2
10063 esac
10064 echo "$as_me:$LINENO: checking for $ac_header" >&5
10065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 eval "$as_ac_Header=$ac_header_preproc"
10071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078 _ACEOF
10079 break
10082 done
10085 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10086 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10087 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090 cat >conftest.$ac_ext <<_ACEOF
10091 #line $LINENO "configure"
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 #if defined(HAVE_SYS_SOUNDCARD_H)
10099 #include <sys/soundcard.h>
10100 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10101 #include <machine/soundcard.h>
10102 #elif defined(HAVE_SOUNDCARD_H)
10103 #include <soundcard.h>
10104 #endif
10107 main ()
10111 /* check for one of the Open Sound System specific SNDCTL_ defines */
10112 #if !defined(SNDCTL_DSP_STEREO)
10113 #error No open sound system
10114 #endif
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_c_opensoundsystem="yes"
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_c_opensoundsystem="no"
10139 rm -f conftest.$ac_objext conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10142 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10144 if test "$ac_cv_c_opensoundsystem" = "yes"
10145 then
10147 cat >>confdefs.h <<\_ACEOF
10148 #define HAVE_OSS 1
10149 _ACEOF
10153 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10154 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10155 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 cat >conftest.$ac_ext <<_ACEOF
10159 #line $LINENO "configure"
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 #if defined(HAVE_SYS_SOUNDCARD_H)
10167 #include <sys/soundcard.h>
10168 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10169 #include <machine/soundcard.h>
10170 #elif defined(HAVE_SOUNDCARD_H)
10171 #include <soundcard.h>
10172 #endif
10175 main ()
10179 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10180 #if !defined(SNDCTL_SEQ_SYNC)
10181 #error No open sound system MIDI interface
10182 #endif
10185 return 0;
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -s conftest.$ac_objext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 ac_cv_c_opensoundsystem_midi="yes"
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_cv_c_opensoundsystem_midi="no"
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10209 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10210 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10212 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10213 then
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_OSS_MIDI 1
10217 _ACEOF
10221 # Extract the first word of "artsc-config", so it can be a program name with args.
10222 set dummy artsc-config; ac_word=$2
10223 echo "$as_me:$LINENO: checking for $ac_word" >&5
10224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10225 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228 case $ARTSCCONFIG in
10229 [\\/]* | ?:[\\/]*)
10230 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234 for as_dir in $PATH
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10244 done
10245 done
10248 esac
10250 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10252 if test -n "$ARTSCCONFIG"; then
10253 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10254 echo "${ECHO_T}$ARTSCCONFIG" >&6
10255 else
10256 echo "$as_me:$LINENO: result: no" >&5
10257 echo "${ECHO_T}no" >&6
10260 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10261 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10262 if test "${ac_cv_c_artsserver+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10266 then
10267 ac_cv_c_artsserver=no
10268 else
10269 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10270 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10271 ac_cv_c_artsserver=no
10272 save_CFLAGS="$CFLAGS"
10273 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10274 cat >conftest.$ac_ext <<_ACEOF
10275 #line $LINENO "configure"
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10282 #include <artsc.h>
10285 main ()
10288 arts_stream_t stream;
10291 return 0;
10293 _ACEOF
10294 rm -f conftest.$ac_objext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } &&
10300 { ac_try='test -s conftest.$ac_objext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10307 ac_cv_c_artsserver=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10314 rm -f conftest.$ac_objext conftest.$ac_ext
10315 CFLAGS="$save_CFLAGS"
10318 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10319 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10321 if test "$ac_cv_c_artsserver" = "yes"
10322 then
10323 ARTSLIBS=$ARTSC_LIBS
10325 ARTSINCL=$ARTSC_CFLAGS
10329 cat >>confdefs.h <<\_ACEOF
10330 #define HAVE_ARTS 1
10331 _ACEOF
10335 ALSALIBS=""
10339 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10343 echo "$as_me:$LINENO: checking for $ac_header" >&5
10344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10350 else
10351 # Is the header compilable?
10352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10354 cat >conftest.$ac_ext <<_ACEOF
10355 #line $LINENO "configure"
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10362 #include <$ac_header>
10363 _ACEOF
10364 rm -f conftest.$ac_objext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -s conftest.$ac_objext'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10376 ac_header_compiler=yes
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_header_compiler=no
10383 rm -f conftest.$ac_objext conftest.$ac_ext
10384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10385 echo "${ECHO_T}$ac_header_compiler" >&6
10387 # Is the header present?
10388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 /* confdefs.h. */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 #include <$ac_header>
10398 _ACEOF
10399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } >/dev/null; then
10407 if test -s conftest.err; then
10408 ac_cpp_err=$ac_c_preproc_warn_flag
10409 else
10410 ac_cpp_err=
10412 else
10413 ac_cpp_err=yes
10415 if test -z "$ac_cpp_err"; then
10416 ac_header_preproc=yes
10417 else
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 ac_header_preproc=no
10423 rm -f conftest.err conftest.$ac_ext
10424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10425 echo "${ECHO_T}$ac_header_preproc" >&6
10427 # So? What about this header?
10428 case $ac_header_compiler:$ac_header_preproc in
10429 yes:no )
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10435 cat <<\_ASBOX
10436 ## ------------------------------------ ##
10437 ## Report this to bug-autoconf@gnu.org. ##
10438 ## ------------------------------------ ##
10439 _ASBOX
10441 sed "s/^/$as_me: WARNING: /" >&2
10443 no:yes )
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10451 cat <<\_ASBOX
10452 ## ------------------------------------ ##
10453 ## Report this to bug-autoconf@gnu.org. ##
10454 ## ------------------------------------ ##
10455 _ASBOX
10457 sed "s/^/$as_me: WARNING: /" >&2
10459 esac
10460 echo "$as_me:$LINENO: checking for $ac_header" >&5
10461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 eval "$as_ac_Header=$ac_header_preproc"
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10472 cat >>confdefs.h <<_ACEOF
10473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10474 _ACEOF
10475 break
10478 done
10480 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10481 then
10482 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10483 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10484 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lasound $LIBS"
10489 cat >conftest.$ac_ext <<_ACEOF
10490 #line $LINENO "configure"
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 /* We use char because int might match the return type of a gcc2
10502 builtin and then its argument prototype would still apply. */
10503 char snd_pcm_open ();
10505 main ()
10507 snd_pcm_open ();
10509 return 0;
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -s conftest$ac_exeext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_cv_lib_asound_snd_pcm_open=yes
10525 else
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_cv_lib_asound_snd_pcm_open=no
10531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10532 LIBS=$ac_check_lib_save_LIBS
10534 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10535 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10536 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10538 cat >>confdefs.h <<\_ACEOF
10539 #define HAVE_ALSA 1
10540 _ACEOF
10542 ALSALIBS="-lasound"
10548 AUDIOIOLIBS=""
10551 for ac_header in libaudioio.h
10553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10555 echo "$as_me:$LINENO: checking for $ac_header" >&5
10556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10562 else
10563 # Is the header compilable?
10564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10566 cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 /* confdefs.h. */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 $ac_includes_default
10574 #include <$ac_header>
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578 (eval $ac_compile) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_header_compiler=yes
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_header_compiler=no
10595 rm -f conftest.$ac_objext conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10597 echo "${ECHO_T}$ac_header_compiler" >&6
10599 # Is the header present?
10600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10603 #line $LINENO "configure"
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 #include <$ac_header>
10610 _ACEOF
10611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } >/dev/null; then
10619 if test -s conftest.err; then
10620 ac_cpp_err=$ac_c_preproc_warn_flag
10621 else
10622 ac_cpp_err=
10624 else
10625 ac_cpp_err=yes
10627 if test -z "$ac_cpp_err"; then
10628 ac_header_preproc=yes
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_header_preproc=no
10635 rm -f conftest.err conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10637 echo "${ECHO_T}$ac_header_preproc" >&6
10639 # So? What about this header?
10640 case $ac_header_compiler:$ac_header_preproc in
10641 yes:no )
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647 cat <<\_ASBOX
10648 ## ------------------------------------ ##
10649 ## Report this to bug-autoconf@gnu.org. ##
10650 ## ------------------------------------ ##
10651 _ASBOX
10653 sed "s/^/$as_me: WARNING: /" >&2
10655 no:yes )
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10663 cat <<\_ASBOX
10664 ## ------------------------------------ ##
10665 ## Report this to bug-autoconf@gnu.org. ##
10666 ## ------------------------------------ ##
10667 _ASBOX
10669 sed "s/^/$as_me: WARNING: /" >&2
10671 esac
10672 echo "$as_me:$LINENO: checking for $ac_header" >&5
10673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 eval "$as_ac_Header=$ac_header_preproc"
10679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10684 cat >>confdefs.h <<_ACEOF
10685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686 _ACEOF
10687 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10688 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10689 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-laudioio $LIBS"
10694 cat >conftest.$ac_ext <<_ACEOF
10695 #line $LINENO "configure"
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any gcc2 internal prototype to avoid an error. */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 /* We use char because int might match the return type of a gcc2
10707 builtin and then its argument prototype would still apply. */
10708 char AudioIOGetVersion ();
10710 main ()
10712 AudioIOGetVersion ();
10714 return 0;
10716 _ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719 (eval $ac_link) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -s conftest$ac_exeext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_lib_audioio_AudioIOGetVersion=yes
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_cv_lib_audioio_AudioIOGetVersion=no
10736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10739 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10740 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10741 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10742 AUDIOIOLIBS="-laudioio"
10744 cat >>confdefs.h <<\_ACEOF
10745 #define HAVE_LIBAUDIOIO 1
10746 _ACEOF
10752 done
10757 for ac_header in capi20.h
10759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10761 echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10768 else
10769 # Is the header compilable?
10770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 /* confdefs.h. */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 #include <$ac_header>
10781 _ACEOF
10782 rm -f conftest.$ac_objext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784 (eval $ac_compile) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_header_compiler=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_header_compiler=no
10801 rm -f conftest.$ac_objext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 echo "${ECHO_T}$ac_header_compiler" >&6
10805 # Is the header present?
10806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10809 #line $LINENO "configure"
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <$ac_header>
10816 _ACEOF
10817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } >/dev/null; then
10825 if test -s conftest.err; then
10826 ac_cpp_err=$ac_c_preproc_warn_flag
10827 else
10828 ac_cpp_err=
10830 else
10831 ac_cpp_err=yes
10833 if test -z "$ac_cpp_err"; then
10834 ac_header_preproc=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_header_preproc=no
10841 rm -f conftest.err conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc in
10847 yes:no )
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10853 cat <<\_ASBOX
10854 ## ------------------------------------ ##
10855 ## Report this to bug-autoconf@gnu.org. ##
10856 ## ------------------------------------ ##
10857 _ASBOX
10859 sed "s/^/$as_me: WARNING: /" >&2
10861 no:yes )
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10869 cat <<\_ASBOX
10870 ## ------------------------------------ ##
10871 ## Report this to bug-autoconf@gnu.org. ##
10872 ## ------------------------------------ ##
10873 _ASBOX
10875 sed "s/^/$as_me: WARNING: /" >&2
10877 esac
10878 echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 eval "$as_ac_Header=$ac_header_preproc"
10885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10892 _ACEOF
10895 for ac_header in linux/capi.h
10897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10899 echo "$as_me:$LINENO: checking for $ac_header" >&5
10900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10906 else
10907 # Is the header compilable?
10908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10910 cat >conftest.$ac_ext <<_ACEOF
10911 #line $LINENO "configure"
10912 /* confdefs.h. */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10917 $ac_includes_default
10918 #include <$ac_header>
10919 _ACEOF
10920 rm -f conftest.$ac_objext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10922 (eval $ac_compile) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -s conftest.$ac_objext'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_header_compiler=yes
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_header_compiler=no
10939 rm -f conftest.$ac_objext conftest.$ac_ext
10940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10941 echo "${ECHO_T}$ac_header_compiler" >&6
10943 # Is the header present?
10944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <$ac_header>
10954 _ACEOF
10955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } >/dev/null; then
10963 if test -s conftest.err; then
10964 ac_cpp_err=$ac_c_preproc_warn_flag
10965 else
10966 ac_cpp_err=
10968 else
10969 ac_cpp_err=yes
10971 if test -z "$ac_cpp_err"; then
10972 ac_header_preproc=yes
10973 else
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_header_preproc=no
10979 rm -f conftest.err conftest.$ac_ext
10980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981 echo "${ECHO_T}$ac_header_preproc" >&6
10983 # So? What about this header?
10984 case $ac_header_compiler:$ac_header_preproc in
10985 yes:no )
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991 cat <<\_ASBOX
10992 ## ------------------------------------ ##
10993 ## Report this to bug-autoconf@gnu.org. ##
10994 ## ------------------------------------ ##
10995 _ASBOX
10997 sed "s/^/$as_me: WARNING: /" >&2
10999 no:yes )
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11007 cat <<\_ASBOX
11008 ## ------------------------------------ ##
11009 ## Report this to bug-autoconf@gnu.org. ##
11010 ## ------------------------------------ ##
11011 _ASBOX
11013 sed "s/^/$as_me: WARNING: /" >&2
11015 esac
11016 echo "$as_me:$LINENO: checking for $ac_header" >&5
11017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021 eval "$as_ac_Header=$ac_header_preproc"
11023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11028 cat >>confdefs.h <<_ACEOF
11029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11030 _ACEOF
11032 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11033 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11034 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lcapi20 $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11047 /* Override any gcc2 internal prototype to avoid an error. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 /* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11053 char capi20_register ();
11055 main ()
11057 capi20_register ();
11059 return 0;
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_lib_capi20_capi20_register=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_cv_lib_capi20_capi20_register=no
11081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11085 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11086 if test $ac_cv_lib_capi20_capi20_register = yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_CAPI4LINUX 1
11091 _ACEOF
11093 CAPI4LINUXLIBS="-lcapi20"
11101 done
11106 done
11110 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
11111 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
11112 if test "${ac_cv_mmap64_works+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115 if test "$cross_compiling" = yes; then
11116 ac_cv_mmap64_works="no"
11117 else
11118 cat >conftest.$ac_ext <<_ACEOF
11119 #line $LINENO "configure"
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11126 #define _FILE_OFFSET_BITS 64
11127 #include <stdio.h>
11128 #include <unistd.h>
11129 #include <fcntl.h>
11130 #include <sys/mman.h>
11131 #include <errno.h>
11133 int main(int argc,char **argv) {
11134 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11135 if (fd == -1) exit(1);
11137 unlink("conftest.map");
11139 write(fd,"test",4);
11141 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11142 (errno == EINVAL)
11144 exit(1);
11146 close(fd);
11147 fprintf(stderr,"success!\n");
11148 exit(0);
11152 _ACEOF
11153 rm -f conftest$ac_exeext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 ac_cv_mmap64_works="yes"
11165 else
11166 echo "$as_me: program exited with status $ac_status" >&5
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ( exit $ac_status )
11171 ac_cv_mmap64_works="no"
11173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11176 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
11177 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
11179 if test "$ac_cv_mmap64_works" = "yes"
11180 then
11182 cat >>confdefs.h <<\_ACEOF
11183 #define _FILE_OFFSET_BITS 64
11184 _ACEOF
11189 EXTRACFLAGS=""
11191 if test "x${GCC}" = "xyes"
11192 then
11193 EXTRACFLAGS=-Wall
11195 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11196 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11197 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 if test "$cross_compiling" = yes; then
11201 ac_cv_c_gcc_strength_bug="yes"
11202 else
11203 cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11211 int L[4] = {0,1,2,3};
11212 int main(void) {
11213 static int Array[3];
11214 unsigned int B = 3;
11215 int i;
11216 for(i=0; i<B; i++) Array[i] = i - 3;
11217 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11218 L[i] = 4;
11220 exit( Array[1] != -2 || L[2] != 3);
11222 _ACEOF
11223 rm -f conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_cv_c_gcc_strength_bug="no"
11235 else
11236 echo "$as_me: program exited with status $ac_status" >&5
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ( exit $ac_status )
11241 ac_cv_c_gcc_strength_bug="yes"
11243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11247 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11248 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11249 then
11250 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11253 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11254 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11255 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 ac_wine_try_cflags_saved=$CFLAGS
11259 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11260 cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11269 main ()
11273 return 0;
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_cv_c_gcc_stack_boundary="yes"
11289 else
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ac_cv_c_gcc_stack_boundary="no"
11295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11296 CFLAGS=$ac_wine_try_cflags_saved
11298 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11299 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11300 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11301 then
11302 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11305 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11306 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11307 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 ac_wine_try_cflags_saved=$CFLAGS
11311 CFLAGS="$CFLAGS -fno-strict-aliasing"
11312 cat >conftest.$ac_ext <<_ACEOF
11313 #line $LINENO "configure"
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11321 main ()
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext conftest$ac_exeext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11330 (eval $ac_link) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -s conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_c_gcc_no_strict_aliasing="yes"
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_cv_c_gcc_no_strict_aliasing="no"
11347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11348 CFLAGS=$ac_wine_try_cflags_saved
11350 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11351 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11352 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11353 then
11354 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11357 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11358 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11359 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 ac_wine_try_cflags_saved=$CFLAGS
11363 CFLAGS="$CFLAGS -gstabs+"
11364 cat >conftest.$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11366 /* confdefs.h. */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11373 main ()
11377 return 0;
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 ac_cv_c_gcc_gstabs="yes"
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_cv_c_gcc_gstabs="no"
11399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11400 CFLAGS=$ac_wine_try_cflags_saved
11402 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11403 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11404 if test "$ac_cv_c_gcc_gstabs" = "yes"
11405 then
11406 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11409 saved_CFLAGS="$CFLAGS"
11410 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11411 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11412 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11413 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 cat >conftest.$ac_ext <<_ACEOF
11417 #line $LINENO "configure"
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <string.h>
11425 main ()
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_c_string_h_warnings=no
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_cv_c_string_h_warnings=yes
11451 rm -f conftest.$ac_objext conftest.$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11454 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11455 CFLAGS="$saved_CFLAGS"
11456 if test "$ac_cv_c_string_h_warnings" = "no"
11457 then
11458 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11463 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11464 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11465 if test "${ac_cv_asm_func_def+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 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"); }
11478 main ()
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_asm_func_def=".def"
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 cat >conftest.$ac_ext <<_ACEOF
11503 #line $LINENO "configure"
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11512 main ()
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_asm_func_def=".type @function"
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11546 main ()
11550 return 0;
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_asm_func_def=".type 2"
11566 else
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_cv_asm_func_def="unknown"
11572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11578 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11579 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11583 case "$ac_cv_asm_func_def" in
11584 ".def")
11585 cat >>confdefs.h <<\_ACEOF
11586 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11587 _ACEOF
11589 ".type @function")
11590 cat >>confdefs.h <<\_ACEOF
11591 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11592 _ACEOF
11594 ".type 2")
11595 cat >>confdefs.h <<\_ACEOF
11596 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11597 _ACEOF
11600 cat >>confdefs.h <<\_ACEOF
11601 #define __ASM_FUNC(name) ""
11602 _ACEOF
11604 esac
11607 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11608 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11609 if test "${ac_cv_c_extern_prefix+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11620 extern int ac_test;
11622 main ()
11624 if (ac_test) return 1
11626 return 0;
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_cv_c_extern_prefix="yes"
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_cv_c_extern_prefix="no"
11648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11650 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11651 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11655 if test "$ac_cv_c_extern_prefix" = "yes"
11656 then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define __ASM_NAME(name) "_" name
11659 _ACEOF
11661 else
11662 cat >>confdefs.h <<\_ACEOF
11663 #define __ASM_NAME(name) name
11664 _ACEOF
11669 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11670 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11671 if test "${ac_cv_c_asm_string+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 cat >conftest.$ac_ext <<_ACEOF
11675 #line $LINENO "configure"
11676 /* confdefs.h. */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11684 main ()
11688 return 0;
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_c_asm_string="yes"
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_cv_c_asm_string="no"
11710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11712 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11713 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11714 if test "$ac_cv_c_asm_string" = "yes"
11715 then
11717 cat >>confdefs.h <<\_ACEOF
11718 #define __ASM_STRING ".string"
11719 _ACEOF
11721 else
11722 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11723 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11724 if test "${ac_cv_c_asm_asciz+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727 cat >conftest.$ac_ext <<_ACEOF
11728 #line $LINENO "configure"
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11737 main ()
11741 return 0;
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -s conftest$ac_exeext'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 ac_cv_c_asm_asciz="yes"
11757 else
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_cv_c_asm_asciz="no"
11763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11765 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11766 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11767 if test "$ac_cv_c_asm_asciz" = "yes"
11768 then
11769 cat >>confdefs.h <<\_ACEOF
11770 #define __ASM_STRING ".asciz"
11771 _ACEOF
11773 else
11774 cat >>confdefs.h <<\_ACEOF
11775 #define __ASM_STRING ".ascii"
11776 _ACEOF
11782 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11783 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11784 if test "${ac_cv_c_asm_short+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787 cat >conftest.$ac_ext <<_ACEOF
11788 #line $LINENO "configure"
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11797 main ()
11801 return 0;
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -s conftest$ac_exeext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_c_asm_short="yes"
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_cv_c_asm_short="no"
11823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11825 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11826 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11827 if test "$ac_cv_c_asm_short" = "yes"
11828 then
11830 cat >>confdefs.h <<\_ACEOF
11831 #define __ASM_SHORT ".short"
11832 _ACEOF
11834 else
11835 cat >>confdefs.h <<\_ACEOF
11836 #define __ASM_SHORT ".half"
11837 _ACEOF
11842 DLLEXT=""
11844 DLLFLAGS="-D_REENTRANT"
11846 DLLIBS=""
11848 LDSHARED=""
11850 LDDLL=""
11852 LIBEXT="so"
11854 IMPLIBEXT="def"
11857 case $host_os in
11858 cygwin*|mingw32*)
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11862 echo "$as_me:$LINENO: checking for $ac_word" >&5
11863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11864 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867 if test -n "$DLLTOOL"; then
11868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11869 else
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 break 2
11881 done
11882 done
11886 DLLTOOL=$ac_cv_prog_DLLTOOL
11887 if test -n "$DLLTOOL"; then
11888 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11889 echo "${ECHO_T}$DLLTOOL" >&6
11890 else
11891 echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6
11896 if test -z "$ac_cv_prog_DLLTOOL"; then
11897 ac_ct_DLLTOOL=$DLLTOOL
11898 # Extract the first word of "dlltool", so it can be a program name with args.
11899 set dummy dlltool; ac_word=$2
11900 echo "$as_me:$LINENO: checking for $ac_word" >&5
11901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11902 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 if test -n "$ac_ct_DLLTOOL"; then
11906 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11919 done
11920 done
11922 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11925 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11926 if test -n "$ac_ct_DLLTOOL"; then
11927 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11928 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11929 else
11930 echo "$as_me:$LINENO: result: no" >&5
11931 echo "${ECHO_T}no" >&6
11934 DLLTOOL=$ac_ct_DLLTOOL
11935 else
11936 DLLTOOL="$ac_cv_prog_DLLTOOL"
11939 if test -n "$ac_tool_prefix"; then
11940 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11941 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11942 echo "$as_me:$LINENO: checking for $ac_word" >&5
11943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11944 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 if test -n "$DLLWRAP"; then
11948 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11949 else
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11957 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11961 done
11962 done
11966 DLLWRAP=$ac_cv_prog_DLLWRAP
11967 if test -n "$DLLWRAP"; then
11968 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11969 echo "${ECHO_T}$DLLWRAP" >&6
11970 else
11971 echo "$as_me:$LINENO: result: no" >&5
11972 echo "${ECHO_T}no" >&6
11976 if test -z "$ac_cv_prog_DLLWRAP"; then
11977 ac_ct_DLLWRAP=$DLLWRAP
11978 # Extract the first word of "dllwrap", so it can be a program name with args.
11979 set dummy dllwrap; ac_word=$2
11980 echo "$as_me:$LINENO: checking for $ac_word" >&5
11981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11982 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 if test -n "$ac_ct_DLLWRAP"; then
11986 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11999 done
12000 done
12002 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
12005 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
12006 if test -n "$ac_ct_DLLWRAP"; then
12007 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
12008 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
12009 else
12010 echo "$as_me:$LINENO: result: no" >&5
12011 echo "${ECHO_T}no" >&6
12014 DLLWRAP=$ac_ct_DLLWRAP
12015 else
12016 DLLWRAP="$ac_cv_prog_DLLWRAP"
12019 if test "$DLLWRAP" = "false"; then
12020 LIBEXT="a"
12021 else
12022 LIBEXT="dll"
12024 IMPLIBEXT="a"
12028 for ac_header in dlfcn.h
12030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12032 echo "$as_me:$LINENO: checking for $ac_header" >&5
12033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039 else
12040 # Is the header compilable?
12041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12051 #include <$ac_header>
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -s conftest.$ac_objext'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 ac_header_compiler=yes
12066 else
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ac_header_compiler=no
12072 rm -f conftest.$ac_objext conftest.$ac_ext
12073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12074 echo "${ECHO_T}$ac_header_compiler" >&6
12076 # Is the header present?
12077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12079 cat >conftest.$ac_ext <<_ACEOF
12080 #line $LINENO "configure"
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <$ac_header>
12087 _ACEOF
12088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } >/dev/null; then
12096 if test -s conftest.err; then
12097 ac_cpp_err=$ac_c_preproc_warn_flag
12098 else
12099 ac_cpp_err=
12101 else
12102 ac_cpp_err=yes
12104 if test -z "$ac_cpp_err"; then
12105 ac_header_preproc=yes
12106 else
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_header_preproc=no
12112 rm -f conftest.err conftest.$ac_ext
12113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12114 echo "${ECHO_T}$ac_header_preproc" >&6
12116 # So? What about this header?
12117 case $ac_header_compiler:$ac_header_preproc in
12118 yes:no )
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12124 cat <<\_ASBOX
12125 ## ------------------------------------ ##
12126 ## Report this to bug-autoconf@gnu.org. ##
12127 ## ------------------------------------ ##
12128 _ASBOX
12130 sed "s/^/$as_me: WARNING: /" >&2
12132 no:yes )
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 cat <<\_ASBOX
12141 ## ------------------------------------ ##
12142 ## Report this to bug-autoconf@gnu.org. ##
12143 ## ------------------------------------ ##
12144 _ASBOX
12146 sed "s/^/$as_me: WARNING: /" >&2
12148 esac
12149 echo "$as_me:$LINENO: checking for $ac_header" >&5
12150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 eval "$as_ac_Header=$ac_header_preproc"
12156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12161 cat >>confdefs.h <<_ACEOF
12162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12163 _ACEOF
12165 for ac_func in dlopen
12167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12168 echo "$as_me:$LINENO: checking for $ac_func" >&5
12169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12170 if eval "test \"\${$as_ac_var+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173 cat >conftest.$ac_ext <<_ACEOF
12174 #line $LINENO "configure"
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 /* System header to define __stub macros and hopefully few prototypes,
12181 which can conflict with char $ac_func (); below.
12182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12183 <limits.h> exists even on freestanding compilers. */
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189 /* Override any gcc2 internal prototype to avoid an error. */
12190 #ifdef __cplusplus
12191 extern "C"
12193 #endif
12194 /* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12196 char $ac_func ();
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 char (*f) () = $ac_func;
12204 #endif
12205 #ifdef __cplusplus
12207 #endif
12210 main ()
12212 return f != $ac_func;
12214 return 0;
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12229 eval "$as_ac_var=yes"
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 eval "$as_ac_var=no"
12236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12240 if test `eval echo '${'$as_ac_var'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 _ACEOF
12245 else
12246 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12247 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-ldl $LIBS"
12253 cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any gcc2 internal prototype to avoid an error. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 /* We use char because int might match the return type of a gcc2
12266 builtin and then its argument prototype would still apply. */
12267 char dlopen ();
12269 main ()
12271 dlopen ();
12273 return 0;
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_lib_dl_dlopen=yes
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_cv_lib_dl_dlopen=no
12295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12296 LIBS=$ac_check_lib_save_LIBS
12298 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12300 if test $ac_cv_lib_dl_dlopen = yes; then
12302 cat >>confdefs.h <<\_ACEOF
12303 #define HAVE_DLOPEN 1
12304 _ACEOF
12306 DLLIBS="-ldl"
12307 else
12308 LIBEXT="a"
12312 done
12314 else
12315 LIBEXT="a"
12318 done
12321 if test "$LIBEXT" = "so"
12322 then
12323 DLLFLAGS="$DLLFLAGS -fPIC"
12324 DLLEXT=".so"
12325 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12326 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12327 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330 ac_wine_try_cflags_saved=$CFLAGS
12331 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12332 cat >conftest.$ac_ext <<_ACEOF
12333 #line $LINENO "configure"
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12341 main ()
12345 return 0;
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_c_dll_gnuelf="yes"
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_c_dll_gnuelf="no"
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368 CFLAGS=$ac_wine_try_cflags_saved
12370 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12371 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12372 if test "$ac_cv_c_dll_gnuelf" = "yes"
12373 then
12374 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12375 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
12376 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12377 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12378 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381 ac_wine_try_cflags_saved=$CFLAGS
12382 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12383 cat >conftest.$ac_ext <<_ACEOF
12384 #line $LINENO "configure"
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12392 main ()
12396 return 0;
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_c_dll_zdefs="yes"
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_c_dll_zdefs="no"
12418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12419 CFLAGS=$ac_wine_try_cflags_saved
12421 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12422 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12423 if test "$ac_cv_c_dll_zdefs" = "yes"
12424 then
12425 LDDLL="$LDDLL,-z,defs"
12428 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
12429 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
12430 if test "${ac_cv_c_export_dynamic+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 ac_wine_try_cflags_saved=$CFLAGS
12434 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
12435 cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 /* confdefs.h. */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12444 main ()
12448 return 0;
12450 _ACEOF
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_c_export_dynamic="yes"
12464 else
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_cv_c_export_dynamic="no"
12470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12471 CFLAGS=$ac_wine_try_cflags_saved
12473 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
12474 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
12475 if test "$ac_cv_c_export_dynamic" = "yes"
12476 then
12477 LDEXECFLAGS="-Wl,--export-dynamic"
12481 case $host_cpu in
12482 *i[3456789]86*)
12483 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
12484 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
12485 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 saved_CFLAGS="$CFLAGS"
12489 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
12490 if test "$cross_compiling" = yes; then
12491 ac_cv_ld_reloc_exec="no"
12492 else
12493 cat >conftest.$ac_ext <<_ACEOF
12494 #line $LINENO "configure"
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 #include <unistd.h>
12501 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_ld_reloc_exec="yes"
12515 else
12516 echo "$as_me: program exited with status $ac_status" >&5
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ( exit $ac_status )
12521 ac_cv_ld_reloc_exec="no"
12523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12525 CFLAGS="$saved_CFLAGS"
12527 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12528 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12529 if test "$ac_cv_ld_reloc_exec" = "yes"
12530 then
12531 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
12534 esac
12536 else
12537 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12538 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12539 if test "${ac_cv_c_dll_unixware+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542 ac_wine_try_cflags_saved=$CFLAGS
12543 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12544 cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12546 /* confdefs.h. */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12553 main ()
12557 return 0;
12559 _ACEOF
12560 rm -f conftest.$ac_objext conftest$ac_exeext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_c_dll_unixware="yes"
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 ac_cv_c_dll_unixware="no"
12579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12580 CFLAGS=$ac_wine_try_cflags_saved
12582 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12583 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12584 if test "$ac_cv_c_dll_unixware" = "yes"
12585 then
12586 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12587 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12589 else
12590 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
12591 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
12592 if test "${ac_cv_c_dll_macho+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 ac_wine_try_cflags_saved=$CFLAGS
12596 CFLAGS="$CFLAGS -bundle"
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12606 main ()
12610 return 0;
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -s conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_c_dll_macho="yes"
12626 else
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_cv_c_dll_macho="no"
12632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12633 CFLAGS=$ac_wine_try_cflags_saved
12635 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
12636 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
12637 if test "$ac_cv_c_dll_macho" = "yes"
12638 then
12639 LIBEXT="dylib"
12640 LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
12641 LDSHARED="\$(CC) -dynamiclib"
12642 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
12648 CROSSTEST=""
12650 if test "$cross_compiling" = "no"
12651 then
12652 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12654 # Extract the first word of "$ac_prog", so it can be a program name with args.
12655 set dummy $ac_prog; ac_word=$2
12656 echo "$as_me:$LINENO: checking for $ac_word" >&5
12657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12658 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 if test -n "$CROSSCC"; then
12662 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12663 else
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_prog_CROSSCC="$ac_prog"
12672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12675 done
12676 done
12680 CROSSCC=$ac_cv_prog_CROSSCC
12681 if test -n "$CROSSCC"; then
12682 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12683 echo "${ECHO_T}$CROSSCC" >&6
12684 else
12685 echo "$as_me:$LINENO: result: no" >&5
12686 echo "${ECHO_T}no" >&6
12689 test -n "$CROSSCC" && break
12690 done
12691 test -n "$CROSSCC" || CROSSCC="false"
12693 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12695 # Extract the first word of "$ac_prog", so it can be a program name with args.
12696 set dummy $ac_prog; ac_word=$2
12697 echo "$as_me:$LINENO: checking for $ac_word" >&5
12698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12699 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 if test -n "$DLLTOOL"; then
12703 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12704 else
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712 ac_cv_prog_DLLTOOL="$ac_prog"
12713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12716 done
12717 done
12721 DLLTOOL=$ac_cv_prog_DLLTOOL
12722 if test -n "$DLLTOOL"; then
12723 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12724 echo "${ECHO_T}$DLLTOOL" >&6
12725 else
12726 echo "$as_me:$LINENO: result: no" >&5
12727 echo "${ECHO_T}no" >&6
12730 test -n "$DLLTOOL" && break
12731 done
12732 test -n "$DLLTOOL" || DLLTOOL="false"
12734 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12736 # Extract the first word of "$ac_prog", so it can be a program name with args.
12737 set dummy $ac_prog; ac_word=$2
12738 echo "$as_me:$LINENO: checking for $ac_word" >&5
12739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12740 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743 if test -n "$CROSSWINDRES"; then
12744 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12745 else
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12753 ac_cv_prog_CROSSWINDRES="$ac_prog"
12754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12757 done
12758 done
12762 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12763 if test -n "$CROSSWINDRES"; then
12764 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12765 echo "${ECHO_T}$CROSSWINDRES" >&6
12766 else
12767 echo "$as_me:$LINENO: result: no" >&5
12768 echo "${ECHO_T}no" >&6
12771 test -n "$CROSSWINDRES" && break
12772 done
12773 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12775 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12778 esac
12780 if test "$LIBEXT" = "a"; then
12781 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12782 It is currently not possible to build Wine without shared library
12783 (.so) support to allow transparent switch between .so and .dll files.
12784 If you are using Linux, you will need a newer binutils.
12785 " >&5
12786 echo "$as_me: error: could not find a way to build shared libraries.
12787 It is currently not possible to build Wine without shared library
12788 (.so) support to allow transparent switch between .so and .dll files.
12789 If you are using Linux, you will need a newer binutils.
12790 " >&2;}
12791 { (exit 1); exit 1; }; }
12794 case $build_os in
12795 cygwin*|mingw32*)
12796 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12798 darwin*|macosx*)
12799 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
12802 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12804 esac
12806 case $host_os in
12807 mingw32*)
12808 CRTLIBS="-lmsvcrt"
12810 esac
12812 case $host_os in
12813 linux*)
12814 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
12816 MAIN_BINARY="wine-glibc"
12820 WINE_BINARIES="wine-kthread"
12822 MAIN_BINARY="wine-kthread"
12825 esac
12828 if test "$LIBEXT" = "so"
12829 then
12830 # Extract the first word of "ldd", so it can be a program name with args.
12831 set dummy ldd; ac_word=$2
12832 echo "$as_me:$LINENO: checking for $ac_word" >&5
12833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12834 if test "${ac_cv_path_LDD+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 case $LDD in
12838 [\\/]* | ?:[\\/]*)
12839 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 as_dummy="/sbin:/usr/sbin:$PATH"
12844 for as_dir in $as_dummy
12846 IFS=$as_save_IFS
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 break 2
12854 done
12855 done
12857 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12859 esac
12861 LDD=$ac_cv_path_LDD
12863 if test -n "$LDD"; then
12864 echo "$as_me:$LINENO: result: $LDD" >&5
12865 echo "${ECHO_T}$LDD" >&6
12866 else
12867 echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6
12872 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12873 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12874 if test "${ac_cv_lib_soname_X11+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877 ac_get_soname_save_LIBS=$LIBS
12878 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12879 cat >conftest.$ac_ext <<_ACEOF
12880 #line $LINENO "configure"
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12887 /* Override any gcc2 internal prototype to avoid an error. */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12893 char XCreateWindow ();
12895 main ()
12897 XCreateWindow ();
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 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_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
12915 if test "x$ac_cv_lib_soname_X11" = "x"
12916 then
12917 ac_cv_lib_soname_X11="libX11.so"
12919 else
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12923 ac_cv_lib_soname_X11="libX11.so"
12925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12926 LIBS=$ac_get_soname_save_LIBS
12928 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12929 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12930 if test "x$ac_cv_lib_soname_X11" != xNONE
12931 then
12932 cat >>confdefs.h <<_ACEOF
12933 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12934 _ACEOF
12937 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12938 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12939 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 ac_get_soname_save_LIBS=$LIBS
12943 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12944 cat >conftest.$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12952 /* Override any gcc2 internal prototype to avoid an error. */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 /* We use char because int might match the return type of a gcc2
12957 builtin and then its argument prototype would still apply. */
12958 char XextCreateExtension ();
12960 main ()
12962 XextCreateExtension ();
12964 return 0;
12966 _ACEOF
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969 (eval $ac_link) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
12980 if test "x$ac_cv_lib_soname_Xext" = "x"
12981 then
12982 ac_cv_lib_soname_Xext="libXext.so"
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 ac_cv_lib_soname_Xext="libXext.so"
12990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12991 LIBS=$ac_get_soname_save_LIBS
12993 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12994 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12995 if test "x$ac_cv_lib_soname_Xext" != xNONE
12996 then
12997 cat >>confdefs.h <<_ACEOF
12998 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12999 _ACEOF
13002 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
13003 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
13004 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 ac_get_soname_save_LIBS=$LIBS
13008 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
13009 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 /* confdefs.h. */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13017 /* Override any gcc2 internal prototype to avoid an error. */
13018 #ifdef __cplusplus
13019 extern "C"
13020 #endif
13021 /* We use char because int might match the return type of a gcc2
13022 builtin and then its argument prototype would still apply. */
13023 char XRenderQueryExtension ();
13025 main ()
13027 XRenderQueryExtension ();
13029 return 0;
13031 _ACEOF
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034 (eval $ac_link) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
13045 if test "x$ac_cv_lib_soname_Xrender" = "x"
13046 then
13047 ac_cv_lib_soname_Xrender="libXrender.so"
13049 else
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13053 ac_cv_lib_soname_Xrender="libXrender.so"
13055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13056 LIBS=$ac_get_soname_save_LIBS
13058 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
13059 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
13060 if test "x$ac_cv_lib_soname_Xrender" != xNONE
13061 then
13062 cat >>confdefs.h <<_ACEOF
13063 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
13064 _ACEOF
13067 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
13068 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
13069 if test "${ac_cv_lib_soname_freetype+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072 ac_get_soname_save_LIBS=$LIBS
13073 LIBS="-lfreetype $X_LIBS $LIBS"
13074 cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 /* Override any gcc2 internal prototype to avoid an error. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 /* We use char because int might match the return type of a gcc2
13087 builtin and then its argument prototype would still apply. */
13088 char FT_Init_FreeType ();
13090 main ()
13092 FT_Init_FreeType ();
13094 return 0;
13096 _ACEOF
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13099 (eval $ac_link) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -s conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
13110 if test "x$ac_cv_lib_soname_freetype" = "x"
13111 then
13112 ac_cv_lib_soname_freetype="libfreetype.so"
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_cv_lib_soname_freetype="libfreetype.so"
13120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_get_soname_save_LIBS
13123 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13124 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
13125 if test "x$ac_cv_lib_soname_freetype" != xNONE
13126 then
13127 cat >>confdefs.h <<_ACEOF
13128 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13129 _ACEOF
13132 echo "$as_me:$LINENO: checking for -lGL soname" >&5
13133 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
13134 if test "${ac_cv_lib_soname_GL+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137 ac_get_soname_save_LIBS=$LIBS
13138 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
13139 cat >conftest.$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13147 /* Override any gcc2 internal prototype to avoid an error. */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 /* We use char because int might match the return type of a gcc2
13152 builtin and then its argument prototype would still apply. */
13153 char glXQueryExtension ();
13155 main ()
13157 glXQueryExtension ();
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164 (eval $ac_link) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
13175 if test "x$ac_cv_lib_soname_GL" = "x"
13176 then
13177 ac_cv_lib_soname_GL="libGL.so"
13179 else
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ac_cv_lib_soname_GL="libGL.so"
13185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_get_soname_save_LIBS
13188 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
13189 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
13190 if test "x$ac_cv_lib_soname_GL" != xNONE
13191 then
13192 cat >>confdefs.h <<_ACEOF
13193 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
13194 _ACEOF
13197 echo "$as_me:$LINENO: checking for -lcups soname" >&5
13198 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
13199 if test "${ac_cv_lib_soname_cups+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 ac_get_soname_save_LIBS=$LIBS
13203 LIBS="-lcups $LIBS"
13204 cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13206 /* confdefs.h. */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13212 /* Override any gcc2 internal prototype to avoid an error. */
13213 #ifdef __cplusplus
13214 extern "C"
13215 #endif
13216 /* We use char because int might match the return type of a gcc2
13217 builtin and then its argument prototype would still apply. */
13218 char cupsGetDefault ();
13220 main ()
13222 cupsGetDefault ();
13224 return 0;
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -s conftest$ac_exeext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
13240 if test "x$ac_cv_lib_soname_cups" = "x"
13241 then
13242 ac_cv_lib_soname_cups="libcups.so"
13244 else
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_cv_lib_soname_cups="libcups.so"
13250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_get_soname_save_LIBS
13253 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13254 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13255 if test "x$ac_cv_lib_soname_cups" != xNONE
13256 then
13257 cat >>confdefs.h <<_ACEOF
13258 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13259 _ACEOF
13262 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13263 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13264 if test "${ac_cv_lib_soname_jack+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 else
13267 ac_get_soname_save_LIBS=$LIBS
13268 LIBS="-ljack $LIBS"
13269 cat >conftest.$ac_ext <<_ACEOF
13270 #line $LINENO "configure"
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 /* Override any gcc2 internal prototype to avoid an error. */
13278 #ifdef __cplusplus
13279 extern "C"
13280 #endif
13281 /* We use char because int might match the return type of a gcc2
13282 builtin and then its argument prototype would still apply. */
13283 char jack_client_new ();
13285 main ()
13287 jack_client_new ();
13289 return 0;
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13304 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
13305 if test "x$ac_cv_lib_soname_jack" = "x"
13306 then
13307 ac_cv_lib_soname_jack="libjack.so"
13309 else
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_cv_lib_soname_jack="libjack.so"
13315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_get_soname_save_LIBS
13318 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13319 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13320 if test "x$ac_cv_lib_soname_jack" != xNONE
13321 then
13322 cat >>confdefs.h <<_ACEOF
13323 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13324 _ACEOF
13327 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13328 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13329 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332 ac_get_soname_save_LIBS=$LIBS
13333 LIBS="-lfontconfig $LIBS"
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13342 /* Override any gcc2 internal prototype to avoid an error. */
13343 #ifdef __cplusplus
13344 extern "C"
13345 #endif
13346 /* We use char because int might match the return type of a gcc2
13347 builtin and then its argument prototype would still apply. */
13348 char FcInit ();
13350 main ()
13352 FcInit ();
13354 return 0;
13356 _ACEOF
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -s conftest$ac_exeext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
13370 if test "x$ac_cv_lib_soname_fontconfig" = "x"
13371 then
13372 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13381 LIBS=$ac_get_soname_save_LIBS
13383 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13384 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13385 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13386 then
13387 cat >>confdefs.h <<_ACEOF
13388 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13389 _ACEOF
13392 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13393 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13394 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 else
13397 ac_get_soname_save_LIBS=$LIBS
13398 LIBS="-lssl $LIBS"
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 /* confdefs.h. */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13407 /* Override any gcc2 internal prototype to avoid an error. */
13408 #ifdef __cplusplus
13409 extern "C"
13410 #endif
13411 /* We use char because int might match the return type of a gcc2
13412 builtin and then its argument prototype would still apply. */
13413 char SSL_library_init ();
13415 main ()
13417 SSL_library_init ();
13419 return 0;
13421 _ACEOF
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13424 (eval $ac_link) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -s conftest$ac_exeext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
13435 if test "x$ac_cv_lib_soname_ssl" = "x"
13436 then
13437 ac_cv_lib_soname_ssl="libssl.so"
13439 else
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_cv_lib_soname_ssl="libssl.so"
13445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13446 LIBS=$ac_get_soname_save_LIBS
13448 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13449 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13450 if test "x$ac_cv_lib_soname_ssl" != xNONE
13451 then
13452 cat >>confdefs.h <<_ACEOF
13453 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13454 _ACEOF
13457 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13458 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13459 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 ac_get_soname_save_LIBS=$LIBS
13463 LIBS="-lcrypto $LIBS"
13464 cat >conftest.$ac_ext <<_ACEOF
13465 #line $LINENO "configure"
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 /* Override any gcc2 internal prototype to avoid an error. */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477 builtin and then its argument prototype would still apply. */
13478 char BIO_new_socket ();
13480 main ()
13482 BIO_new_socket ();
13484 return 0;
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
13500 if test "x$ac_cv_lib_soname_crypto" = "x"
13501 then
13502 ac_cv_lib_soname_crypto="libcrypto.so"
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_cv_lib_soname_crypto="libcrypto.so"
13510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_get_soname_save_LIBS
13513 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13514 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13515 if test "x$ac_cv_lib_soname_crypto" != xNONE
13516 then
13517 cat >>confdefs.h <<_ACEOF
13518 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13519 _ACEOF
13522 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13523 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13524 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 ac_get_soname_save_LIBS=$LIBS
13528 LIBS="-lncurses $LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13537 /* Override any gcc2 internal prototype to avoid an error. */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13543 char waddch ();
13545 main ()
13547 waddch ();
13549 return 0;
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554 (eval $ac_link) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -s conftest$ac_exeext'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
13565 if test "x$ac_cv_lib_soname_ncurses" = "x"
13566 then
13567 ac_cv_lib_soname_ncurses="libncurses.so"
13569 else
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_cv_lib_soname_ncurses="libncurses.so"
13575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13576 LIBS=$ac_get_soname_save_LIBS
13578 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13579 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13580 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13581 then
13582 cat >>confdefs.h <<_ACEOF
13583 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13584 _ACEOF
13587 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13588 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13589 if test "${ac_cv_lib_soname_curses+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592 ac_get_soname_save_LIBS=$LIBS
13593 LIBS="-lcurses $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13595 #line $LINENO "configure"
13596 /* confdefs.h. */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13602 /* Override any gcc2 internal prototype to avoid an error. */
13603 #ifdef __cplusplus
13604 extern "C"
13605 #endif
13606 /* We use char because int might match the return type of a gcc2
13607 builtin and then its argument prototype would still apply. */
13608 char waddch ();
13610 main ()
13612 waddch ();
13614 return 0;
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -s conftest$ac_exeext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
13630 if test "x$ac_cv_lib_soname_curses" = "x"
13631 then
13632 ac_cv_lib_soname_curses="libcurses.so"
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_lib_soname_curses="libcurses.so"
13640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_get_soname_save_LIBS
13643 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13644 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13645 if test "x$ac_cv_lib_soname_curses" != xNONE
13646 then
13647 cat >>confdefs.h <<_ACEOF
13648 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13649 _ACEOF
13655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13656 # for constant arguments. Useless!
13657 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13658 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13659 if test "${ac_cv_working_alloca_h+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 cat >conftest.$ac_ext <<_ACEOF
13663 #line $LINENO "configure"
13664 /* confdefs.h. */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 #include <alloca.h>
13671 main ()
13673 char *p = (char *) alloca (2 * sizeof (int));
13675 return 0;
13677 _ACEOF
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_working_alloca_h=yes
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_cv_working_alloca_h=no
13697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13699 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13700 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13701 if test $ac_cv_working_alloca_h = yes; then
13703 cat >>confdefs.h <<\_ACEOF
13704 #define HAVE_ALLOCA_H 1
13705 _ACEOF
13709 echo "$as_me:$LINENO: checking for alloca" >&5
13710 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13711 if test "${ac_cv_func_alloca_works+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 cat >conftest.$ac_ext <<_ACEOF
13715 #line $LINENO "configure"
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #ifdef __GNUC__
13722 # define alloca __builtin_alloca
13723 #else
13724 # ifdef _MSC_VER
13725 # include <malloc.h>
13726 # define alloca _alloca
13727 # else
13728 # if HAVE_ALLOCA_H
13729 # include <alloca.h>
13730 # else
13731 # ifdef _AIX
13732 #pragma alloca
13733 # else
13734 # ifndef alloca /* predefined by HP cc +Olibcalls */
13735 char *alloca ();
13736 # endif
13737 # endif
13738 # endif
13739 # endif
13740 #endif
13743 main ()
13745 char *p = (char *) alloca (1);
13747 return 0;
13749 _ACEOF
13750 rm -f conftest.$ac_objext conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752 (eval $ac_link) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_func_alloca_works=yes
13763 else
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_cv_func_alloca_works=no
13769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13772 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13774 if test $ac_cv_func_alloca_works = yes; then
13776 cat >>confdefs.h <<\_ACEOF
13777 #define HAVE_ALLOCA 1
13778 _ACEOF
13780 else
13781 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13782 # that cause trouble. Some versions do not even contain alloca or
13783 # contain a buggy version. If you still want to use their alloca,
13784 # use ar to extract alloca.o from them instead of compiling alloca.c.
13786 ALLOCA=alloca.$ac_objext
13788 cat >>confdefs.h <<\_ACEOF
13789 #define C_ALLOCA 1
13790 _ACEOF
13793 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13794 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13795 if test "${ac_cv_os_cray+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798 cat >conftest.$ac_ext <<_ACEOF
13799 #line $LINENO "configure"
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #if defined(CRAY) && ! defined(CRAY2)
13806 webecray
13807 #else
13808 wenotbecray
13809 #endif
13811 _ACEOF
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 $EGREP "webecray" >/dev/null 2>&1; then
13814 ac_cv_os_cray=yes
13815 else
13816 ac_cv_os_cray=no
13818 rm -f conftest*
13821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13822 echo "${ECHO_T}$ac_cv_os_cray" >&6
13823 if test $ac_cv_os_cray = yes; then
13824 for ac_func in _getb67 GETB67 getb67; do
13825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826 echo "$as_me:$LINENO: checking for $ac_func" >&5
13827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13828 if eval "test \"\${$as_ac_var+set}\" = set"; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 /* System header to define __stub macros and hopefully few prototypes,
13839 which can conflict with char $ac_func (); below.
13840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13841 <limits.h> exists even on freestanding compilers. */
13842 #ifdef __STDC__
13843 # include <limits.h>
13844 #else
13845 # include <assert.h>
13846 #endif
13847 /* Override any gcc2 internal prototype to avoid an error. */
13848 #ifdef __cplusplus
13849 extern "C"
13851 #endif
13852 /* We use char because int might match the return type of a gcc2
13853 builtin and then its argument prototype would still apply. */
13854 char $ac_func ();
13855 /* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13859 choke me
13860 #else
13861 char (*f) () = $ac_func;
13862 #endif
13863 #ifdef __cplusplus
13865 #endif
13868 main ()
13870 return f != $ac_func;
13872 return 0;
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 eval "$as_ac_var=yes"
13888 else
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 eval "$as_ac_var=no"
13894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13898 if test `eval echo '${'$as_ac_var'}'` = yes; then
13900 cat >>confdefs.h <<_ACEOF
13901 #define CRAY_STACKSEG_END $ac_func
13902 _ACEOF
13904 break
13907 done
13910 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13911 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13912 if test "${ac_cv_c_stack_direction+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915 if test "$cross_compiling" = yes; then
13916 ac_cv_c_stack_direction=0
13917 else
13918 cat >conftest.$ac_ext <<_ACEOF
13919 #line $LINENO "configure"
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13926 find_stack_direction ()
13928 static char *addr = 0;
13929 auto char dummy;
13930 if (addr == 0)
13932 addr = &dummy;
13933 return find_stack_direction ();
13935 else
13936 return (&dummy > addr) ? 1 : -1;
13940 main ()
13942 exit (find_stack_direction () < 0);
13944 _ACEOF
13945 rm -f conftest$ac_exeext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13947 (eval $ac_link) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_c_stack_direction=1
13957 else
13958 echo "$as_me: program exited with status $ac_status" >&5
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13962 ( exit $ac_status )
13963 ac_cv_c_stack_direction=-1
13965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13969 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13971 cat >>confdefs.h <<_ACEOF
13972 #define STACK_DIRECTION $ac_cv_c_stack_direction
13973 _ACEOF
14030 for ac_func in \
14031 _lwp_create \
14032 _lwp_self \
14033 _pclose \
14034 _popen \
14035 _snprintf \
14036 _spawnvp \
14037 _stricmp \
14038 _strnicmp \
14039 _vsnprintf \
14040 chsize \
14041 clone \
14042 finite \
14043 fpclass \
14044 ftruncate \
14045 ftruncate64 \
14046 getnetbyaddr \
14047 getnetbyname \
14048 getopt_long \
14049 getpagesize \
14050 getprotobyname \
14051 getprotobynumber \
14052 getpwuid \
14053 getservbyport \
14054 gettid \
14055 gettimeofday \
14056 inet_network \
14057 lseek64 \
14058 lstat \
14059 memmove \
14060 mmap \
14061 pclose \
14062 popen \
14063 pread \
14064 pwrite \
14065 rfork \
14066 select \
14067 sendmsg \
14068 settimeofday \
14069 sigaltstack \
14070 snprintf \
14071 spawnvp \
14072 statfs \
14073 strcasecmp \
14074 strerror \
14075 strncasecmp \
14076 tcgetattr \
14077 timegm \
14078 usleep \
14079 vfscanf \
14080 vsnprintf \
14081 wait4 \
14082 waitpid \
14085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14086 echo "$as_me:$LINENO: checking for $ac_func" >&5
14087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14088 if eval "test \"\${$as_ac_var+set}\" = set"; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 /* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char $ac_func (); below.
14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14101 <limits.h> exists even on freestanding compilers. */
14102 #ifdef __STDC__
14103 # include <limits.h>
14104 #else
14105 # include <assert.h>
14106 #endif
14107 /* Override any gcc2 internal prototype to avoid an error. */
14108 #ifdef __cplusplus
14109 extern "C"
14111 #endif
14112 /* We use char because int might match the return type of a gcc2
14113 builtin and then its argument prototype would still apply. */
14114 char $ac_func ();
14115 /* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14119 choke me
14120 #else
14121 char (*f) () = $ac_func;
14122 #endif
14123 #ifdef __cplusplus
14125 #endif
14128 main ()
14130 return f != $ac_func;
14132 return 0;
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -s conftest$ac_exeext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 eval "$as_ac_var=yes"
14148 else
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14152 eval "$as_ac_var=no"
14154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14158 if test `eval echo '${'$as_ac_var'}'` = yes; then
14159 cat >>confdefs.h <<_ACEOF
14160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14161 _ACEOF
14164 done
14248 for ac_header in \
14249 arpa/inet.h \
14250 arpa/nameser.h \
14251 cups/cups.h \
14252 direct.h \
14253 elf.h \
14254 float.h \
14255 fontconfig/fontconfig.h \
14256 getopt.h \
14257 ieeefp.h \
14258 io.h \
14259 jack/jack.h \
14260 libio.h \
14261 libutil.h \
14262 link.h \
14263 linux/cdrom.h \
14264 linux/hdreg.h \
14265 linux/input.h \
14266 linux/joystick.h \
14267 linux/major.h \
14268 linux/param.h \
14269 linux/serial.h \
14270 linux/ucdrom.h \
14271 machine/cpu.h \
14272 netdb.h \
14273 netinet/in.h \
14274 netinet/in_systm.h \
14275 netinet/tcp.h \
14276 netinet/tcp_fsm.h \
14277 openssl/ssl.h \
14278 process.h \
14279 pthread.h \
14280 pty.h \
14281 pwd.h \
14282 regex.h \
14283 sched.h \
14284 scsi/sg.h \
14285 scsi/scsi.h \
14286 scsi/scsi_ioctl.h \
14287 socket.h \
14288 stdint.h \
14289 strings.h \
14290 sys/cdio.h \
14291 sys/errno.h \
14292 sys/file.h \
14293 sys/filio.h \
14294 sys/inttypes.h \
14295 sys/ioctl.h \
14296 sys/ipc.h \
14297 sys/link.h \
14298 sys/lwp.h \
14299 sys/mman.h \
14300 sys/modem.h \
14301 sys/msg.h \
14302 sys/param.h \
14303 sys/poll.h \
14304 sys/ptrace.h \
14305 sys/reg.h \
14306 sys/scsiio.h \
14307 sys/shm.h \
14308 sys/signal.h \
14309 sys/socket.h \
14310 sys/sockio.h \
14311 sys/statfs.h \
14312 sys/strtio.h \
14313 sys/syscall.h \
14314 sys/sysctl.h \
14315 sys/time.h \
14316 sys/times.h \
14317 sys/uio.h \
14318 sys/un.h \
14319 sys/v86.h \
14320 sys/v86intr.h \
14321 sys/vfs.h \
14322 sys/vm86.h \
14323 sys/wait.h \
14324 syscall.h \
14325 termios.h \
14326 unistd.h \
14327 utime.h \
14328 valgrind/memcheck.h
14331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14333 echo "$as_me:$LINENO: checking for $ac_header" >&5
14334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14340 else
14341 # Is the header compilable?
14342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14344 cat >conftest.$ac_ext <<_ACEOF
14345 #line $LINENO "configure"
14346 /* confdefs.h. */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 $ac_includes_default
14352 #include <$ac_header>
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_header_compiler=yes
14367 else
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 ac_header_compiler=no
14373 rm -f conftest.$ac_objext conftest.$ac_ext
14374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14375 echo "${ECHO_T}$ac_header_compiler" >&6
14377 # Is the header present?
14378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 /* confdefs.h. */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 #include <$ac_header>
14388 _ACEOF
14389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } >/dev/null; then
14397 if test -s conftest.err; then
14398 ac_cpp_err=$ac_c_preproc_warn_flag
14399 else
14400 ac_cpp_err=
14402 else
14403 ac_cpp_err=yes
14405 if test -z "$ac_cpp_err"; then
14406 ac_header_preproc=yes
14407 else
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_header_preproc=no
14413 rm -f conftest.err conftest.$ac_ext
14414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14415 echo "${ECHO_T}$ac_header_preproc" >&6
14417 # So? What about this header?
14418 case $ac_header_compiler:$ac_header_preproc in
14419 yes:no )
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14425 cat <<\_ASBOX
14426 ## ------------------------------------ ##
14427 ## Report this to bug-autoconf@gnu.org. ##
14428 ## ------------------------------------ ##
14429 _ASBOX
14431 sed "s/^/$as_me: WARNING: /" >&2
14433 no:yes )
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14441 cat <<\_ASBOX
14442 ## ------------------------------------ ##
14443 ## Report this to bug-autoconf@gnu.org. ##
14444 ## ------------------------------------ ##
14445 _ASBOX
14447 sed "s/^/$as_me: WARNING: /" >&2
14449 esac
14450 echo "$as_me:$LINENO: checking for $ac_header" >&5
14451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 eval "$as_ac_Header=$ac_header_preproc"
14457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14462 cat >>confdefs.h <<_ACEOF
14463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14464 _ACEOF
14468 done
14470 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14471 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14472 if test "${ac_cv_header_stat_broken+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475 cat >conftest.$ac_ext <<_ACEOF
14476 #line $LINENO "configure"
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 #include <sys/types.h>
14483 #include <sys/stat.h>
14485 #if defined(S_ISBLK) && defined(S_IFDIR)
14486 # if S_ISBLK (S_IFDIR)
14487 You lose.
14488 # endif
14489 #endif
14491 #if defined(S_ISBLK) && defined(S_IFCHR)
14492 # if S_ISBLK (S_IFCHR)
14493 You lose.
14494 # endif
14495 #endif
14497 #if defined(S_ISLNK) && defined(S_IFREG)
14498 # if S_ISLNK (S_IFREG)
14499 You lose.
14500 # endif
14501 #endif
14503 #if defined(S_ISSOCK) && defined(S_IFREG)
14504 # if S_ISSOCK (S_IFREG)
14505 You lose.
14506 # endif
14507 #endif
14509 _ACEOF
14510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14511 $EGREP "You lose" >/dev/null 2>&1; then
14512 ac_cv_header_stat_broken=yes
14513 else
14514 ac_cv_header_stat_broken=no
14516 rm -f conftest*
14519 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14520 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14521 if test $ac_cv_header_stat_broken = yes; then
14523 cat >>confdefs.h <<\_ACEOF
14524 #define STAT_MACROS_BROKEN 1
14525 _ACEOF
14533 for ac_header in sys/mount.h sys/user.h
14535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536 echo "$as_me:$LINENO: checking for $ac_header" >&5
14537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541 cat >conftest.$ac_ext <<_ACEOF
14542 #line $LINENO "configure"
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 #include <sys/types.h>
14549 #if HAVE_SYS_PARAM_H
14550 # include <sys/param.h>
14551 #endif
14553 #include <$ac_header>
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 eval "$as_ac_Header=yes"
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 eval "$as_ac_Header=no"
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14581 _ACEOF
14585 done
14593 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601 cat >conftest.$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14603 /* confdefs.h. */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #include <sys/types.h>
14609 #if HAVE_SYS_SOCKET_H
14610 # include <sys/socket.h>
14611 #endif
14613 #include <$ac_header>
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617 (eval $ac_compile) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 eval "$as_ac_Header=yes"
14628 else
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14632 eval "$as_ac_Header=no"
14634 rm -f conftest.$ac_objext conftest.$ac_ext
14636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14639 cat >>confdefs.h <<_ACEOF
14640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14641 _ACEOF
14645 done
14649 for ac_header in resolv.h
14651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14652 echo "$as_me:$LINENO: checking for $ac_header" >&5
14653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657 cat >conftest.$ac_ext <<_ACEOF
14658 #line $LINENO "configure"
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <sys/types.h>
14665 #if HAVE_SYS_SOCKET_H
14666 # include <sys/socket.h>
14667 #endif
14668 #if HAVE_NETINET_IN_H
14669 # include <netinet/in.h>
14670 #endif
14671 #if HAVE_ARPA_NAMESER_H
14672 # include <arpa/nameser.h>
14673 #endif
14675 #include <$ac_header>
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 eval "$as_ac_Header=yes"
14690 else
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 eval "$as_ac_Header=no"
14696 rm -f conftest.$ac_objext conftest.$ac_ext
14698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14701 cat >>confdefs.h <<_ACEOF
14702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14703 _ACEOF
14707 done
14711 for ac_header in netinet/ip.h
14713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14714 echo "$as_me:$LINENO: checking for $ac_header" >&5
14715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 cat >conftest.$ac_ext <<_ACEOF
14720 #line $LINENO "configure"
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <sys/types.h>
14727 #if HAVE_SYS_SOCKET_H
14728 # include <sys/socket.h>
14729 #endif
14730 #if HAVE_NETINET_IN_SYSTM_H
14731 # include <netinet/in_systm.h>
14732 #endif
14734 #include <$ac_header>
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738 (eval $ac_compile) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 eval "$as_ac_Header=yes"
14749 else
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 eval "$as_ac_Header=no"
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14762 _ACEOF
14766 done
14770 for ac_header in ucontext.h
14772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14773 echo "$as_me:$LINENO: checking for $ac_header" >&5
14774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <signal.h>
14787 #include <$ac_header>
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 eval "$as_ac_Header=yes"
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 eval "$as_ac_Header=no"
14808 rm -f conftest.$ac_objext conftest.$ac_ext
14810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14813 cat >>confdefs.h <<_ACEOF
14814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14815 _ACEOF
14819 done
14823 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14824 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14825 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828 cat >conftest.$ac_ext <<_ACEOF
14829 #line $LINENO "configure"
14830 /* confdefs.h. */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <sys/types.h>
14836 #ifdef HAVE_SYS_SOCKET_H
14837 # include <sys/socket.h>
14838 #endif
14839 #include <netipx/ipx.h>
14841 main ()
14843 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14845 return 0;
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -s conftest.$ac_objext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_cv_c_ipx_gnu="yes"
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_cv_c_ipx_gnu="no"
14867 rm -f conftest.$ac_objext conftest.$ac_ext
14870 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14871 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14872 if test "$ac_cv_c_ipx_gnu" = "yes"
14873 then
14875 cat >>confdefs.h <<\_ACEOF
14876 #define HAVE_IPX_GNU 1
14877 _ACEOF
14881 if test "$ac_cv_c_ipx_gnu" = "no"
14882 then
14883 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14884 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14885 if test "${ac_cv_c_ipx_linux+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 cat >conftest.$ac_ext <<_ACEOF
14889 #line $LINENO "configure"
14890 /* confdefs.h. */
14891 _ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14895 #include <sys/types.h>
14896 #ifdef HAVE_SYS_SOCKET_H
14897 # include <sys/socket.h>
14898 #endif
14899 #include <asm/types.h>
14900 #include <linux/ipx.h>
14902 main ()
14904 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14906 return 0;
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14911 (eval $ac_compile) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -s conftest.$ac_objext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_c_ipx_linux="yes"
14922 else
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_cv_c_ipx_linux="no"
14928 rm -f conftest.$ac_objext conftest.$ac_ext
14931 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14932 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14933 if test "$ac_cv_c_ipx_linux" = "yes"
14934 then
14936 cat >>confdefs.h <<\_ACEOF
14937 #define HAVE_IPX_LINUX 1
14938 _ACEOF
14944 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14946 if test "${ac_cv_c_const+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949 cat >conftest.$ac_ext <<_ACEOF
14950 #line $LINENO "configure"
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14958 main ()
14960 /* FIXME: Include the comments suggested by Paul. */
14961 #ifndef __cplusplus
14962 /* Ultrix mips cc rejects this. */
14963 typedef int charset[2];
14964 const charset x;
14965 /* SunOS 4.1.1 cc rejects this. */
14966 char const *const *ccp;
14967 char **p;
14968 /* NEC SVR4.0.2 mips cc rejects this. */
14969 struct point {int x, y;};
14970 static struct point const zero = {0,0};
14971 /* AIX XL C 1.02.0.0 rejects this.
14972 It does not let you subtract one const X* pointer from another in
14973 an arm of an if-expression whose if-part is not a constant
14974 expression */
14975 const char *g = "string";
14976 ccp = &g + (g ? g-g : 0);
14977 /* HPUX 7.0 cc rejects these. */
14978 ++ccp;
14979 p = (char**) ccp;
14980 ccp = (char const *const *) p;
14981 { /* SCO 3.2v4 cc rejects this. */
14982 char *t;
14983 char const *s = 0 ? (char *) 0 : (char const *) 0;
14985 *t++ = 0;
14987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14988 int x[] = {25, 17};
14989 const int *foo = &x[0];
14990 ++foo;
14992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14993 typedef const int *iptr;
14994 iptr p = 0;
14995 ++p;
14997 { /* AIX XL C 1.02.0.0 rejects this saying
14998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14999 struct s { int j; const int *ap[3]; };
15000 struct s *b; b->j = 5;
15002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15003 const int foo = 10;
15005 #endif
15008 return 0;
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -s conftest.$ac_objext'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_c_const=yes
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_c_const=no
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15032 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15033 echo "${ECHO_T}$ac_cv_c_const" >&6
15034 if test $ac_cv_c_const = no; then
15036 cat >>confdefs.h <<\_ACEOF
15037 #define const
15038 _ACEOF
15042 echo "$as_me:$LINENO: checking for inline" >&5
15043 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15044 if test "${ac_cv_c_inline+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 ac_cv_c_inline=no
15048 for ac_kw in inline __inline__ __inline; do
15049 cat >conftest.$ac_ext <<_ACEOF
15050 #line $LINENO "configure"
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 #ifndef __cplusplus
15057 typedef int foo_t;
15058 static $ac_kw foo_t static_foo () {return 0; }
15059 $ac_kw foo_t foo () {return 0; }
15060 #endif
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -s conftest.$ac_objext'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_cv_c_inline=$ac_kw; break
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15081 rm -f conftest.$ac_objext conftest.$ac_ext
15082 done
15085 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15086 echo "${ECHO_T}$ac_cv_c_inline" >&6
15087 case $ac_cv_c_inline in
15088 inline | yes) ;;
15090 cat >>confdefs.h <<\_ACEOF
15091 #define inline
15092 _ACEOF
15094 *) cat >>confdefs.h <<_ACEOF
15095 #define inline $ac_cv_c_inline
15096 _ACEOF
15098 esac
15100 echo "$as_me:$LINENO: checking for mode_t" >&5
15101 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15102 if test "${ac_cv_type_mode_t+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105 cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 $ac_includes_default
15114 main ()
15116 if ((mode_t *) 0)
15117 return 0;
15118 if (sizeof (mode_t))
15119 return 0;
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126 (eval $ac_compile) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -s conftest.$ac_objext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_cv_type_mode_t=yes
15137 else
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 ac_cv_type_mode_t=no
15143 rm -f conftest.$ac_objext conftest.$ac_ext
15145 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15146 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15147 if test $ac_cv_type_mode_t = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_MODE_T 1
15151 _ACEOF
15155 echo "$as_me:$LINENO: checking for off_t" >&5
15156 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15157 if test "${ac_cv_type_off_t+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160 cat >conftest.$ac_ext <<_ACEOF
15161 #line $LINENO "configure"
15162 /* confdefs.h. */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 $ac_includes_default
15169 main ()
15171 if ((off_t *) 0)
15172 return 0;
15173 if (sizeof (off_t))
15174 return 0;
15176 return 0;
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15181 (eval $ac_compile) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_cv_type_off_t=yes
15192 else
15193 echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_cv_type_off_t=no
15198 rm -f conftest.$ac_objext conftest.$ac_ext
15200 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15201 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15202 if test $ac_cv_type_off_t = yes; then
15204 cat >>confdefs.h <<_ACEOF
15205 #define HAVE_OFF_T 1
15206 _ACEOF
15210 echo "$as_me:$LINENO: checking for pid_t" >&5
15211 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15212 if test "${ac_cv_type_pid_t+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15224 main ()
15226 if ((pid_t *) 0)
15227 return 0;
15228 if (sizeof (pid_t))
15229 return 0;
15231 return 0;
15233 _ACEOF
15234 rm -f conftest.$ac_objext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_type_pid_t=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 ac_cv_type_pid_t=no
15253 rm -f conftest.$ac_objext conftest.$ac_ext
15255 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15256 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15257 if test $ac_cv_type_pid_t = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_PID_T 1
15261 _ACEOF
15265 echo "$as_me:$LINENO: checking for size_t" >&5
15266 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15267 if test "${ac_cv_type_size_t+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 cat >conftest.$ac_ext <<_ACEOF
15271 #line $LINENO "configure"
15272 /* confdefs.h. */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 $ac_includes_default
15279 main ()
15281 if ((size_t *) 0)
15282 return 0;
15283 if (sizeof (size_t))
15284 return 0;
15286 return 0;
15288 _ACEOF
15289 rm -f conftest.$ac_objext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15291 (eval $ac_compile) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_cv_type_size_t=yes
15302 else
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_cv_type_size_t=no
15308 rm -f conftest.$ac_objext conftest.$ac_ext
15310 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15311 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15312 if test $ac_cv_type_size_t = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315 #define HAVE_SIZE_T 1
15316 _ACEOF
15320 echo "$as_me:$LINENO: checking for ssize_t" >&5
15321 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15322 if test "${ac_cv_type_ssize_t+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325 cat >conftest.$ac_ext <<_ACEOF
15326 #line $LINENO "configure"
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15334 main ()
15336 if ((ssize_t *) 0)
15337 return 0;
15338 if (sizeof (ssize_t))
15339 return 0;
15341 return 0;
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -s conftest.$ac_objext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_cv_type_ssize_t=yes
15357 else
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 ac_cv_type_ssize_t=no
15363 rm -f conftest.$ac_objext conftest.$ac_ext
15365 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15366 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15367 if test $ac_cv_type_ssize_t = yes; then
15369 cat >>confdefs.h <<_ACEOF
15370 #define HAVE_SSIZE_T 1
15371 _ACEOF
15376 echo "$as_me:$LINENO: checking for long long" >&5
15377 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15378 if test "${ac_cv_type_long_long+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381 cat >conftest.$ac_ext <<_ACEOF
15382 #line $LINENO "configure"
15383 /* confdefs.h. */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 $ac_includes_default
15390 main ()
15392 if ((long long *) 0)
15393 return 0;
15394 if (sizeof (long long))
15395 return 0;
15397 return 0;
15399 _ACEOF
15400 rm -f conftest.$ac_objext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15402 (eval $ac_compile) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -s conftest.$ac_objext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_type_long_long=yes
15413 else
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_cv_type_long_long=no
15419 rm -f conftest.$ac_objext conftest.$ac_ext
15421 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15422 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15424 echo "$as_me:$LINENO: checking size of long long" >&5
15425 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15426 if test "${ac_cv_sizeof_long_long+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429 if test "$ac_cv_type_long_long" = yes; then
15430 # The cast to unsigned long works around a bug in the HP C Compiler
15431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15433 # This bug is HP SR number 8606223364.
15434 if test "$cross_compiling" = yes; then
15435 # Depending upon the size, compute the lo and hi bounds.
15436 cat >conftest.$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15438 /* confdefs.h. */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 $ac_includes_default
15445 main ()
15447 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15448 test_array [0] = 0
15451 return 0;
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_lo=0 ac_mid=0
15467 while :; do
15468 cat >conftest.$ac_ext <<_ACEOF
15469 #line $LINENO "configure"
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 $ac_includes_default
15477 main ()
15479 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15480 test_array [0] = 0
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15488 (eval $ac_compile) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_hi=$ac_mid; break
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_lo=`expr $ac_mid + 1`
15504 if test $ac_lo -le $ac_mid; then
15505 ac_lo= ac_hi=
15506 break
15508 ac_mid=`expr 2 '*' $ac_mid + 1`
15510 rm -f conftest.$ac_objext conftest.$ac_ext
15511 done
15512 else
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 cat >conftest.$ac_ext <<_ACEOF
15517 #line $LINENO "configure"
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15525 main ()
15527 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15528 test_array [0] = 0
15531 return 0;
15533 _ACEOF
15534 rm -f conftest.$ac_objext
15535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15536 (eval $ac_compile) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_hi=-1 ac_mid=-1
15547 while :; do
15548 cat >conftest.$ac_ext <<_ACEOF
15549 #line $LINENO "configure"
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 $ac_includes_default
15557 main ()
15559 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15560 test_array [0] = 0
15563 return 0;
15565 _ACEOF
15566 rm -f conftest.$ac_objext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568 (eval $ac_compile) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -s conftest.$ac_objext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_lo=$ac_mid; break
15579 else
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 ac_hi=`expr '(' $ac_mid ')' - 1`
15584 if test $ac_mid -le $ac_hi; then
15585 ac_lo= ac_hi=
15586 break
15588 ac_mid=`expr 2 '*' $ac_mid`
15590 rm -f conftest.$ac_objext conftest.$ac_ext
15591 done
15592 else
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_lo= ac_hi=
15598 rm -f conftest.$ac_objext conftest.$ac_ext
15600 rm -f conftest.$ac_objext conftest.$ac_ext
15601 # Binary search between lo and hi bounds.
15602 while test "x$ac_lo" != "x$ac_hi"; do
15603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15604 cat >conftest.$ac_ext <<_ACEOF
15605 #line $LINENO "configure"
15606 /* confdefs.h. */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 $ac_includes_default
15613 main ()
15615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15616 test_array [0] = 0
15619 return 0;
15621 _ACEOF
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_hi=$ac_mid
15635 else
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15639 ac_lo=`expr '(' $ac_mid ')' + 1`
15641 rm -f conftest.$ac_objext conftest.$ac_ext
15642 done
15643 case $ac_lo in
15644 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15645 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15646 See \`config.log' for more details." >&5
15647 echo "$as_me: error: cannot compute sizeof (long long), 77
15648 See \`config.log' for more details." >&2;}
15649 { (exit 1); exit 1; }; } ;;
15650 esac
15651 else
15652 if test "$cross_compiling" = yes; then
15653 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15654 See \`config.log' for more details." >&5
15655 echo "$as_me: error: cannot run test program while cross compiling
15656 See \`config.log' for more details." >&2;}
15657 { (exit 1); exit 1; }; }
15658 else
15659 cat >conftest.$ac_ext <<_ACEOF
15660 #line $LINENO "configure"
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 long longval () { return (long) (sizeof (long long)); }
15668 unsigned long ulongval () { return (long) (sizeof (long long)); }
15669 #include <stdio.h>
15670 #include <stdlib.h>
15672 main ()
15675 FILE *f = fopen ("conftest.val", "w");
15676 if (! f)
15677 exit (1);
15678 if (((long) (sizeof (long long))) < 0)
15680 long i = longval ();
15681 if (i != ((long) (sizeof (long long))))
15682 exit (1);
15683 fprintf (f, "%ld\n", i);
15685 else
15687 unsigned long i = ulongval ();
15688 if (i != ((long) (sizeof (long long))))
15689 exit (1);
15690 fprintf (f, "%lu\n", i);
15692 exit (ferror (f) || fclose (f) != 0);
15695 return 0;
15697 _ACEOF
15698 rm -f conftest$ac_exeext
15699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15700 (eval $ac_link) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_cv_sizeof_long_long=`cat conftest.val`
15710 else
15711 echo "$as_me: program exited with status $ac_status" >&5
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ( exit $ac_status )
15716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15717 See \`config.log' for more details." >&5
15718 echo "$as_me: error: cannot compute sizeof (long long), 77
15719 See \`config.log' for more details." >&2;}
15720 { (exit 1); exit 1; }; }
15722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15725 rm -f conftest.val
15726 else
15727 ac_cv_sizeof_long_long=0
15730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15731 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15732 cat >>confdefs.h <<_ACEOF
15733 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15734 _ACEOF
15738 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15739 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15740 if test "${wine_cv_linux_input_h+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743 cat >conftest.$ac_ext <<_ACEOF
15744 #line $LINENO "configure"
15745 /* confdefs.h. */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15751 #include <linux/input.h>
15754 main ()
15757 int foo = EVIOCGBIT(EV_ABS,42);
15758 int bar = BTN_PINKIE;
15759 int fortytwo = 42;
15762 return 0;
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -s conftest.$ac_objext'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 wine_cv_linux_input_h=yes
15778 else
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 wine_cv_linux_input_h=no
15784 rm -f conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15788 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15789 if test "$wine_cv_linux_input_h" = "yes"
15790 then
15792 cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_CORRECT_LINUXINPUT_H 1
15794 _ACEOF
15799 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15800 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15801 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804 cat >conftest.$ac_ext <<_ACEOF
15805 #line $LINENO "configure"
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15812 #include <netdb.h>
15815 main ()
15818 char *name=NULL;
15819 struct hostent he;
15820 struct hostent *result;
15821 char *buf=NULL;
15822 int bufsize=0;
15823 int res,errnr;
15824 char *addr=NULL;
15825 int addrlen=0;
15826 int addrtype=0;
15827 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15828 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15831 return 0;
15833 _ACEOF
15834 rm -f conftest.$ac_objext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15836 (eval $ac_compile) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -s conftest.$ac_objext'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 wine_cv_linux_gethostbyname_r_6=yes
15847 else
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 wine_cv_linux_gethostbyname_r_6=no
15854 rm -f conftest.$ac_objext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15858 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15859 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15860 then
15862 cat >>confdefs.h <<\_ACEOF
15863 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15864 _ACEOF
15868 if test "$ac_cv_header_linux_joystick_h" = "yes"
15869 then
15870 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15871 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15872 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875 cat >conftest.$ac_ext <<_ACEOF
15876 #line $LINENO "configure"
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15883 #include <sys/ioctl.h>
15884 #include <linux/joystick.h>
15886 struct js_event blub;
15887 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15888 #error "no 2.2 header"
15889 #endif
15892 main ()
15894 /*empty*/
15896 return 0;
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 wine_cv_linux_joystick_22_api=yes
15912 else
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 wine_cv_linux_joystick_22_api=no
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15921 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15922 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15923 if test "$wine_cv_linux_joystick_22_api" = "yes"
15924 then
15926 cat >>confdefs.h <<\_ACEOF
15927 #define HAVE_LINUX_22_JOYSTICK_API 1
15928 _ACEOF
15934 if test "$ac_cv_header_sys_vfs_h" = "yes"
15935 then
15936 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15937 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15938 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941 cat >conftest.$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15943 /* confdefs.h. */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15949 #include <sys/types.h>
15950 #ifdef HAVE_SYS_PARAM_H
15951 # include <sys/param.h>
15952 #endif
15953 #include <sys/vfs.h>
15956 main ()
15959 struct statfs stfs;
15961 memset(&stfs,0,sizeof(stfs));
15964 return 0;
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 wine_cv_sys_vfs_has_statfs=yes
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 wine_cv_sys_vfs_has_statfs=no
15987 rm -f conftest.$ac_objext conftest.$ac_ext
15990 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15991 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15992 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15993 then
15995 cat >>confdefs.h <<\_ACEOF
15996 #define STATFS_DEFINED_BY_SYS_VFS 1
15997 _ACEOF
16002 if test "$ac_cv_header_sys_statfs_h" = "yes"
16003 then
16004 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
16005 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
16006 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 #include <sys/types.h>
16018 #ifdef HAVE_SYS_PARAM_H
16019 # include <sys/param.h>
16020 #endif
16021 #include <sys/statfs.h>
16024 main ()
16027 struct statfs stfs;
16030 return 0;
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16035 (eval $ac_compile) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } &&
16039 { ac_try='test -s conftest.$ac_objext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 wine_cv_sys_statfs_has_statfs=yes
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 wine_cv_sys_statfs_has_statfs=no
16053 rm -f conftest.$ac_objext conftest.$ac_ext
16056 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
16057 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
16058 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
16059 then
16061 cat >>confdefs.h <<\_ACEOF
16062 #define STATFS_DEFINED_BY_SYS_STATFS 1
16063 _ACEOF
16068 if test "$ac_cv_header_sys_mount_h" = "yes"
16069 then
16070 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
16071 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
16072 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075 cat >conftest.$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16083 #include <sys/types.h>
16084 #ifdef HAVE_SYS_PARAM_H
16085 # include <sys/param.h>
16086 #endif
16087 #include <sys/mount.h>
16090 main ()
16093 struct statfs stfs;
16096 return 0;
16098 _ACEOF
16099 rm -f conftest.$ac_objext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16101 (eval $ac_compile) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -s conftest.$ac_objext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 wine_cv_sys_mount_has_statfs=yes
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 wine_cv_sys_mount_has_statfs=no
16119 rm -f conftest.$ac_objext conftest.$ac_ext
16122 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
16123 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
16124 if test "$wine_cv_sys_mount_has_statfs" = "yes"
16125 then
16127 cat >>confdefs.h <<\_ACEOF
16128 #define STATFS_DEFINED_BY_SYS_MOUNT 1
16129 _ACEOF
16135 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
16136 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
16137 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 else
16140 cat >conftest.$ac_ext <<_ACEOF
16141 #line $LINENO "configure"
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 #include <sys/types.h>
16148 #ifdef HAVE_SYS_PARAM_H
16149 # include <sys/param.h>
16150 #endif
16151 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16152 # include <sys/mount.h>
16153 #else
16154 # ifdef STATFS_DEFINED_BY_SYS_VFS
16155 # include <sys/vfs.h>
16156 # else
16157 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16158 # include <sys/statfs.h>
16159 # endif
16160 # endif
16161 #endif
16164 main ()
16166 static struct statfs ac_aggr;
16167 if (ac_aggr.f_bfree)
16168 return 0;
16170 return 0;
16172 _ACEOF
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_cv_member_struct_statfs_f_bfree=yes
16186 else
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line $LINENO "configure"
16192 /* confdefs.h. */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <sys/types.h>
16198 #ifdef HAVE_SYS_PARAM_H
16199 # include <sys/param.h>
16200 #endif
16201 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16202 # include <sys/mount.h>
16203 #else
16204 # ifdef STATFS_DEFINED_BY_SYS_VFS
16205 # include <sys/vfs.h>
16206 # else
16207 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16208 # include <sys/statfs.h>
16209 # endif
16210 # endif
16211 #endif
16214 main ()
16216 static struct statfs ac_aggr;
16217 if (sizeof ac_aggr.f_bfree)
16218 return 0;
16220 return 0;
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -s conftest.$ac_objext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ac_cv_member_struct_statfs_f_bfree=yes
16236 else
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ac_cv_member_struct_statfs_f_bfree=no
16242 rm -f conftest.$ac_objext conftest.$ac_ext
16244 rm -f conftest.$ac_objext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16247 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16248 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_STRUCT_STATFS_F_BFREE 1
16252 _ACEOF
16256 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16257 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16258 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 #include <sys/types.h>
16269 #ifdef HAVE_SYS_PARAM_H
16270 # include <sys/param.h>
16271 #endif
16272 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16273 # include <sys/mount.h>
16274 #else
16275 # ifdef STATFS_DEFINED_BY_SYS_VFS
16276 # include <sys/vfs.h>
16277 # else
16278 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16279 # include <sys/statfs.h>
16280 # endif
16281 # endif
16282 #endif
16285 main ()
16287 static struct statfs ac_aggr;
16288 if (ac_aggr.f_bavail)
16289 return 0;
16291 return 0;
16293 _ACEOF
16294 rm -f conftest.$ac_objext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try='test -s conftest.$ac_objext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_cv_member_struct_statfs_f_bavail=yes
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 cat >conftest.$ac_ext <<_ACEOF
16312 #line $LINENO "configure"
16313 /* confdefs.h. */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h. */
16318 #include <sys/types.h>
16319 #ifdef HAVE_SYS_PARAM_H
16320 # include <sys/param.h>
16321 #endif
16322 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16323 # include <sys/mount.h>
16324 #else
16325 # ifdef STATFS_DEFINED_BY_SYS_VFS
16326 # include <sys/vfs.h>
16327 # else
16328 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16329 # include <sys/statfs.h>
16330 # endif
16331 # endif
16332 #endif
16335 main ()
16337 static struct statfs ac_aggr;
16338 if (sizeof ac_aggr.f_bavail)
16339 return 0;
16341 return 0;
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -s conftest.$ac_objext'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_cv_member_struct_statfs_f_bavail=yes
16357 else
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_cv_member_struct_statfs_f_bavail=no
16363 rm -f conftest.$ac_objext conftest.$ac_ext
16365 rm -f conftest.$ac_objext conftest.$ac_ext
16367 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16368 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16369 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16371 cat >>confdefs.h <<_ACEOF
16372 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16373 _ACEOF
16379 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16380 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16381 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384 cat >conftest.$ac_ext <<_ACEOF
16385 #line $LINENO "configure"
16386 /* confdefs.h. */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 #include <sys/types.h>
16392 #ifdef HAVE_SYS_SOCKET_H
16393 # include <sys/socket.h>
16394 #endif
16395 #ifdef HAVE_SYS_UN_H
16396 # include <sys/un.h>
16397 #endif
16400 main ()
16402 static struct msghdr ac_aggr;
16403 if (ac_aggr.msg_accrights)
16404 return 0;
16406 return 0;
16408 _ACEOF
16409 rm -f conftest.$ac_objext
16410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16411 (eval $ac_compile) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_member_struct_msghdr_msg_accrights=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 cat >conftest.$ac_ext <<_ACEOF
16427 #line $LINENO "configure"
16428 /* confdefs.h. */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <sys/types.h>
16434 #ifdef HAVE_SYS_SOCKET_H
16435 # include <sys/socket.h>
16436 #endif
16437 #ifdef HAVE_SYS_UN_H
16438 # include <sys/un.h>
16439 #endif
16442 main ()
16444 static struct msghdr ac_aggr;
16445 if (sizeof ac_aggr.msg_accrights)
16446 return 0;
16448 return 0;
16450 _ACEOF
16451 rm -f conftest.$ac_objext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16453 (eval $ac_compile) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -s conftest.$ac_objext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_cv_member_struct_msghdr_msg_accrights=yes
16464 else
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_cv_member_struct_msghdr_msg_accrights=no
16470 rm -f conftest.$ac_objext conftest.$ac_ext
16472 rm -f conftest.$ac_objext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16475 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16476 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
16478 cat >>confdefs.h <<_ACEOF
16479 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16480 _ACEOF
16484 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16485 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16486 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489 cat >conftest.$ac_ext <<_ACEOF
16490 #line $LINENO "configure"
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 #include <sys/types.h>
16497 #ifdef HAVE_SYS_SOCKET_H
16498 # include <sys/socket.h>
16499 #endif
16500 #ifdef HAVE_SYS_UN_H
16501 # include <sys/un.h>
16502 #endif
16505 main ()
16507 static struct sockaddr ac_aggr;
16508 if (ac_aggr.sa_len)
16509 return 0;
16511 return 0;
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16516 (eval $ac_compile) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_cv_member_struct_sockaddr_sa_len=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 cat >conftest.$ac_ext <<_ACEOF
16532 #line $LINENO "configure"
16533 /* confdefs.h. */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 #include <sys/types.h>
16539 #ifdef HAVE_SYS_SOCKET_H
16540 # include <sys/socket.h>
16541 #endif
16542 #ifdef HAVE_SYS_UN_H
16543 # include <sys/un.h>
16544 #endif
16547 main ()
16549 static struct sockaddr ac_aggr;
16550 if (sizeof ac_aggr.sa_len)
16551 return 0;
16553 return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
16562 { ac_try='test -s conftest.$ac_objext'
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 ac_cv_member_struct_sockaddr_sa_len=yes
16569 else
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 ac_cv_member_struct_sockaddr_sa_len=no
16575 rm -f conftest.$ac_objext conftest.$ac_ext
16577 rm -f conftest.$ac_objext conftest.$ac_ext
16579 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16580 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16581 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16585 _ACEOF
16589 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16590 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16591 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <sys/types.h>
16602 #ifdef HAVE_SYS_SOCKET_H
16603 # include <sys/socket.h>
16604 #endif
16605 #ifdef HAVE_SYS_UN_H
16606 # include <sys/un.h>
16607 #endif
16610 main ()
16612 static struct sockaddr_un ac_aggr;
16613 if (ac_aggr.sun_len)
16614 return 0;
16616 return 0;
16618 _ACEOF
16619 rm -f conftest.$ac_objext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16621 (eval $ac_compile) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } &&
16625 { ac_try='test -s conftest.$ac_objext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_member_struct_sockaddr_un_sun_len=yes
16632 else
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16638 /* confdefs.h. */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 #include <sys/types.h>
16644 #ifdef HAVE_SYS_SOCKET_H
16645 # include <sys/socket.h>
16646 #endif
16647 #ifdef HAVE_SYS_UN_H
16648 # include <sys/un.h>
16649 #endif
16652 main ()
16654 static struct sockaddr_un ac_aggr;
16655 if (sizeof ac_aggr.sun_len)
16656 return 0;
16658 return 0;
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -s conftest.$ac_objext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_member_struct_sockaddr_un_sun_len=yes
16674 else
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 ac_cv_member_struct_sockaddr_un_sun_len=no
16680 rm -f conftest.$ac_objext conftest.$ac_ext
16682 rm -f conftest.$ac_objext conftest.$ac_ext
16684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16685 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16686 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16690 _ACEOF
16696 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16697 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16698 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16703 /* confdefs.h. */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 #include <signal.h>
16711 main ()
16713 static siginfo_t ac_aggr;
16714 if (ac_aggr.si_fd)
16715 return 0;
16717 return 0;
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_member_siginfo_t_si_fd=yes
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 cat >conftest.$ac_ext <<_ACEOF
16738 #line $LINENO "configure"
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 #include <signal.h>
16747 main ()
16749 static siginfo_t ac_aggr;
16750 if (sizeof ac_aggr.si_fd)
16751 return 0;
16753 return 0;
16755 _ACEOF
16756 rm -f conftest.$ac_objext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758 (eval $ac_compile) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_cv_member_siginfo_t_si_fd=yes
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_member_siginfo_t_si_fd=no
16775 rm -f conftest.$ac_objext conftest.$ac_ext
16777 rm -f conftest.$ac_objext conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16780 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16781 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_SIGINFO_T_SI_FD 1
16785 _ACEOF
16791 echo "$as_me:$LINENO: checking for struct option.name" >&5
16792 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16793 if test "${ac_cv_member_struct_option_name+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796 cat >conftest.$ac_ext <<_ACEOF
16797 #line $LINENO "configure"
16798 /* confdefs.h. */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16803 #ifdef HAVE_GETOPT_H
16804 #include <getopt.h>
16805 #endif
16808 main ()
16810 static struct option ac_aggr;
16811 if (ac_aggr.name)
16812 return 0;
16814 return 0;
16816 _ACEOF
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 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 ac_cv_member_struct_option_name=yes
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 cat >conftest.$ac_ext <<_ACEOF
16835 #line $LINENO "configure"
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #ifdef HAVE_GETOPT_H
16842 #include <getopt.h>
16843 #endif
16846 main ()
16848 static struct option ac_aggr;
16849 if (sizeof ac_aggr.name)
16850 return 0;
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16857 (eval $ac_compile) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_member_struct_option_name=yes
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_member_struct_option_name=no
16874 rm -f conftest.$ac_objext conftest.$ac_ext
16876 rm -f conftest.$ac_objext conftest.$ac_ext
16878 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16879 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16880 if test $ac_cv_member_struct_option_name = yes; then
16882 cat >>confdefs.h <<_ACEOF
16883 #define HAVE_STRUCT_OPTION_NAME 1
16884 _ACEOF
16890 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16891 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16892 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 cat >conftest.$ac_ext <<_ACEOF
16896 #line $LINENO "configure"
16897 /* confdefs.h. */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16902 $ac_includes_default
16904 main ()
16906 static struct stat ac_aggr;
16907 if (ac_aggr.st_blocks)
16908 return 0;
16910 return 0;
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16915 (eval $ac_compile) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -s conftest.$ac_objext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_member_struct_stat_st_blocks=yes
16926 else
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 cat >conftest.$ac_ext <<_ACEOF
16931 #line $LINENO "configure"
16932 /* confdefs.h. */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 $ac_includes_default
16939 main ()
16941 static struct stat ac_aggr;
16942 if (sizeof ac_aggr.st_blocks)
16943 return 0;
16945 return 0;
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16960 ac_cv_member_struct_stat_st_blocks=yes
16961 else
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_member_struct_stat_st_blocks=no
16967 rm -f conftest.$ac_objext conftest.$ac_ext
16969 rm -f conftest.$ac_objext conftest.$ac_ext
16971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16972 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16973 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16977 _ACEOF
16984 case $host_cpu in
16985 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16986 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16987 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 else
16990 cat >conftest.$ac_ext <<_ACEOF
16991 #line $LINENO "configure"
16992 /* confdefs.h. */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 #ifndef __i386__
16999 #endif
17000 _ACEOF
17001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17002 $EGREP "yes" >/dev/null 2>&1; then
17003 ac_cv_cpp_def___i386__=yes
17004 else
17005 ac_cv_cpp_def___i386__=no
17007 rm -f conftest*
17010 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
17011 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
17012 if test $ac_cv_cpp_def___i386__ = yes; then
17013 CFLAGS="$CFLAGS -D__i386__"
17014 LINTFLAGS="$LINTFLAGS -D__i386__"
17017 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
17018 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
17019 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 cat >conftest.$ac_ext <<_ACEOF
17023 #line $LINENO "configure"
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 #ifndef __ALPHA__
17031 #endif
17032 _ACEOF
17033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17034 $EGREP "yes" >/dev/null 2>&1; then
17035 ac_cv_cpp_def___ALPHA__=yes
17036 else
17037 ac_cv_cpp_def___ALPHA__=no
17039 rm -f conftest*
17042 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
17043 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
17044 if test $ac_cv_cpp_def___ALPHA__ = yes; then
17045 CFLAGS="$CFLAGS -D__ALPHA__"
17046 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
17049 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
17050 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
17051 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054 cat >conftest.$ac_ext <<_ACEOF
17055 #line $LINENO "configure"
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #ifndef __sparc__
17063 #endif
17064 _ACEOF
17065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17066 $EGREP "yes" >/dev/null 2>&1; then
17067 ac_cv_cpp_def___sparc__=yes
17068 else
17069 ac_cv_cpp_def___sparc__=no
17071 rm -f conftest*
17074 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
17075 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
17076 if test $ac_cv_cpp_def___sparc__ = yes; then
17077 CFLAGS="$CFLAGS -D__sparc__"
17078 LINTFLAGS="$LINTFLAGS -D__sparc__"
17081 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
17082 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
17083 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 cat >conftest.$ac_ext <<_ACEOF
17087 #line $LINENO "configure"
17088 /* confdefs.h. */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 #ifndef __powerpc__
17095 #endif
17096 _ACEOF
17097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17098 $EGREP "yes" >/dev/null 2>&1; then
17099 ac_cv_cpp_def___powerpc__=yes
17100 else
17101 ac_cv_cpp_def___powerpc__=no
17103 rm -f conftest*
17106 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
17107 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
17108 if test $ac_cv_cpp_def___powerpc__ = yes; then
17109 CFLAGS="$CFLAGS -D__powerpc__"
17110 LINTFLAGS="$LINTFLAGS -D__powerpc__"
17113 esac
17115 case $host_vendor in
17116 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
17117 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
17118 if test "${ac_cv_cpp_def___sun__+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121 cat >conftest.$ac_ext <<_ACEOF
17122 #line $LINENO "configure"
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 #ifndef __sun__
17130 #endif
17131 _ACEOF
17132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17133 $EGREP "yes" >/dev/null 2>&1; then
17134 ac_cv_cpp_def___sun__=yes
17135 else
17136 ac_cv_cpp_def___sun__=no
17138 rm -f conftest*
17141 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
17142 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
17143 if test $ac_cv_cpp_def___sun__ = yes; then
17144 CFLAGS="$CFLAGS -D__sun__"
17145 LINTFLAGS="$LINTFLAGS -D__sun__"
17148 esac
17154 ac_config_commands="$ac_config_commands controls"
17156 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
17158 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
17160 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
17162 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
17164 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
17166 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
17168 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
17170 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
17172 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
17174 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
17176 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
17178 ac_config_commands="$ac_config_commands dlls/kernel/messages"
17180 ac_config_commands="$ac_config_commands dlls/user/dde"
17182 ac_config_commands="$ac_config_commands dlls/user/resources"
17184 ac_config_commands="$ac_config_commands dlls/wineps/data"
17186 ac_config_commands="$ac_config_commands files"
17188 ac_config_commands="$ac_config_commands graphics"
17190 ac_config_commands="$ac_config_commands graphics/x11drv"
17192 ac_config_commands="$ac_config_commands include/wine"
17194 ac_config_commands="$ac_config_commands misc"
17196 ac_config_commands="$ac_config_commands objects"
17198 ac_config_commands="$ac_config_commands programs/regedit/tests"
17200 ac_config_commands="$ac_config_commands windows"
17203 MAKE_RULES=Make.rules
17206 MAKE_DLL_RULES=dlls/Makedll.rules
17209 MAKE_TEST_RULES=dlls/Maketest.rules
17212 MAKE_LIB_RULES=libs/Makelib.rules
17215 MAKE_PROG_RULES=programs/Makeprog.rules
17218 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/wined3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uxtheme/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/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/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/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"
17221 cat >confcache <<\_ACEOF
17222 # This file is a shell script that caches the results of configure
17223 # tests run on this system so they can be shared between configure
17224 # scripts and configure runs, see configure's option --config-cache.
17225 # It is not useful on other systems. If it contains results you don't
17226 # want to keep, you may remove or edit it.
17228 # config.status only pays attention to the cache file if you give it
17229 # the --recheck option to rerun configure.
17231 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17232 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17233 # following values.
17235 _ACEOF
17237 # The following way of writing the cache mishandles newlines in values,
17238 # but we know of no workaround that is simple, portable, and efficient.
17239 # So, don't put newlines in cache variables' values.
17240 # Ultrix sh set writes to stderr and can't be redirected directly,
17241 # and sets the high bit in the cache file unless we assign to the vars.
17243 (set) 2>&1 |
17244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17245 *ac_space=\ *)
17246 # `set' does not quote correctly, so add quotes (double-quote
17247 # substitution turns \\\\ into \\, and sed turns \\ into \).
17248 sed -n \
17249 "s/'/'\\\\''/g;
17250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17253 # `set' quotes correctly as required by POSIX, so do not add quotes.
17254 sed -n \
17255 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17257 esac;
17259 sed '
17260 t clear
17261 : clear
17262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17263 t end
17264 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17265 : end' >>confcache
17266 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17267 if test -w $cache_file; then
17268 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17269 cat confcache >$cache_file
17270 else
17271 echo "not updating unwritable cache $cache_file"
17274 rm -f confcache
17276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17277 # Let make expand exec_prefix.
17278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17282 # trailing colons and then remove the whole line if VPATH becomes empty
17283 # (actually we leave an empty line to preserve line numbers).
17284 if test "x$srcdir" = x.; then
17285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17286 s/:*\$(srcdir):*/:/;
17287 s/:*\${srcdir}:*/:/;
17288 s/:*@srcdir@:*/:/;
17289 s/^\([^=]*=[ ]*\):*/\1/;
17290 s/:*$//;
17291 s/^[^=]*=[ ]*$//;
17295 DEFS=-DHAVE_CONFIG_H
17297 ac_libobjs=
17298 ac_ltlibobjs=
17299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17300 # 1. Remove the extension, and $U if already installed.
17301 ac_i=`echo "$ac_i" |
17302 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17303 # 2. Add them.
17304 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17305 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17306 done
17307 LIBOBJS=$ac_libobjs
17309 LTLIBOBJS=$ac_ltlibobjs
17313 : ${CONFIG_STATUS=./config.status}
17314 ac_clean_files_save=$ac_clean_files
17315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17316 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17317 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17318 cat >$CONFIG_STATUS <<_ACEOF
17319 #! $SHELL
17320 # Generated by $as_me.
17321 # Run this file to recreate the current configuration.
17322 # Compiler output produced by configure, useful for debugging
17323 # configure, is in config.log if it exists.
17325 debug=false
17326 ac_cs_recheck=false
17327 ac_cs_silent=false
17328 SHELL=\${CONFIG_SHELL-$SHELL}
17329 _ACEOF
17331 cat >>$CONFIG_STATUS <<\_ACEOF
17332 ## --------------------- ##
17333 ## M4sh Initialization. ##
17334 ## --------------------- ##
17336 # Be Bourne compatible
17337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17338 emulate sh
17339 NULLCMD=:
17340 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17341 # is contrary to our usage. Disable this feature.
17342 alias -g '${1+"$@"}'='"$@"'
17343 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17344 set -o posix
17347 # Support unset when possible.
17348 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17349 as_unset=unset
17350 else
17351 as_unset=false
17355 # Work around bugs in pre-3.0 UWIN ksh.
17356 $as_unset ENV MAIL MAILPATH
17357 PS1='$ '
17358 PS2='> '
17359 PS4='+ '
17361 # NLS nuisances.
17362 for as_var in \
17363 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17364 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17365 LC_TELEPHONE LC_TIME
17367 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17368 eval $as_var=C; export $as_var
17369 else
17370 $as_unset $as_var
17372 done
17374 # Required to use basename.
17375 if expr a : '\(a\)' >/dev/null 2>&1; then
17376 as_expr=expr
17377 else
17378 as_expr=false
17381 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17382 as_basename=basename
17383 else
17384 as_basename=false
17388 # Name of the executable.
17389 as_me=`$as_basename "$0" ||
17390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17391 X"$0" : 'X\(//\)$' \| \
17392 X"$0" : 'X\(/\)$' \| \
17393 . : '\(.\)' 2>/dev/null ||
17394 echo X/"$0" |
17395 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17396 /^X\/\(\/\/\)$/{ s//\1/; q; }
17397 /^X\/\(\/\).*/{ s//\1/; q; }
17398 s/.*/./; q'`
17401 # PATH needs CR, and LINENO needs CR and PATH.
17402 # Avoid depending upon Character Ranges.
17403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17406 as_cr_digits='0123456789'
17407 as_cr_alnum=$as_cr_Letters$as_cr_digits
17409 # The user is always right.
17410 if test "${PATH_SEPARATOR+set}" != set; then
17411 echo "#! /bin/sh" >conf$$.sh
17412 echo "exit 0" >>conf$$.sh
17413 chmod +x conf$$.sh
17414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17415 PATH_SEPARATOR=';'
17416 else
17417 PATH_SEPARATOR=:
17419 rm -f conf$$.sh
17423 as_lineno_1=$LINENO
17424 as_lineno_2=$LINENO
17425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17426 test "x$as_lineno_1" != "x$as_lineno_2" &&
17427 test "x$as_lineno_3" = "x$as_lineno_2" || {
17428 # Find who we are. Look in the path if we contain no path at all
17429 # relative or not.
17430 case $0 in
17431 *[\\/]* ) as_myself=$0 ;;
17432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $PATH
17435 IFS=$as_save_IFS
17436 test -z "$as_dir" && as_dir=.
17437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17438 done
17441 esac
17442 # We did not find ourselves, most probably we were run as `sh COMMAND'
17443 # in which case we are not to be found in the path.
17444 if test "x$as_myself" = x; then
17445 as_myself=$0
17447 if test ! -f "$as_myself"; then
17448 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17449 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17450 { (exit 1); exit 1; }; }
17452 case $CONFIG_SHELL in
17454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17455 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17457 IFS=$as_save_IFS
17458 test -z "$as_dir" && as_dir=.
17459 for as_base in sh bash ksh sh5; do
17460 case $as_dir in
17462 if ("$as_dir/$as_base" -c '
17463 as_lineno_1=$LINENO
17464 as_lineno_2=$LINENO
17465 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17466 test "x$as_lineno_1" != "x$as_lineno_2" &&
17467 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17468 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17469 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17470 CONFIG_SHELL=$as_dir/$as_base
17471 export CONFIG_SHELL
17472 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17473 fi;;
17474 esac
17475 done
17476 done
17478 esac
17480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17481 # uniformly replaced by the line number. The first 'sed' inserts a
17482 # line-number line before each line; the second 'sed' does the real
17483 # work. The second script uses 'N' to pair each line-number line
17484 # with the numbered line, and appends trailing '-' during
17485 # substitution so that $LINENO is not a special case at line end.
17486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17487 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17488 sed '=' <$as_myself |
17489 sed '
17491 s,$,-,
17492 : loop
17493 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17494 t loop
17495 s,-$,,
17496 s,^['$as_cr_digits']*\n,,
17497 ' >$as_me.lineno &&
17498 chmod +x $as_me.lineno ||
17499 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17500 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17501 { (exit 1); exit 1; }; }
17503 # Don't try to exec as it changes $[0], causing all sort of problems
17504 # (the dirname of $[0] is not the place where we might find the
17505 # original and so on. Autoconf is especially sensible to this).
17506 . ./$as_me.lineno
17507 # Exit status is that of the last command.
17508 exit
17512 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17513 *c*,-n*) ECHO_N= ECHO_C='
17514 ' ECHO_T=' ' ;;
17515 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17516 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17517 esac
17519 if expr a : '\(a\)' >/dev/null 2>&1; then
17520 as_expr=expr
17521 else
17522 as_expr=false
17525 rm -f conf$$ conf$$.exe conf$$.file
17526 echo >conf$$.file
17527 if ln -s conf$$.file conf$$ 2>/dev/null; then
17528 # We could just check for DJGPP; but this test a) works b) is more generic
17529 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17530 if test -f conf$$.exe; then
17531 # Don't use ln at all; we don't have any links
17532 as_ln_s='cp -p'
17533 else
17534 as_ln_s='ln -s'
17536 elif ln conf$$.file conf$$ 2>/dev/null; then
17537 as_ln_s=ln
17538 else
17539 as_ln_s='cp -p'
17541 rm -f conf$$ conf$$.exe conf$$.file
17543 if mkdir -p . 2>/dev/null; then
17544 as_mkdir_p=:
17545 else
17546 as_mkdir_p=false
17549 as_executable_p="test -f"
17551 # Sed expression to map a string onto a valid CPP name.
17552 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17554 # Sed expression to map a string onto a valid variable name.
17555 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17558 # IFS
17559 # We need space, tab and new line, in precisely that order.
17560 as_nl='
17562 IFS=" $as_nl"
17564 # CDPATH.
17565 $as_unset CDPATH
17567 exec 6>&1
17569 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17570 # report actual input values of CONFIG_FILES etc. instead of their
17571 # values after options handling. Logging --version etc. is OK.
17572 exec 5>>config.log
17574 echo
17575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17576 ## Running $as_me. ##
17577 _ASBOX
17578 } >&5
17579 cat >&5 <<_CSEOF
17581 This file was extended by Wine $as_me 20031118, which was
17582 generated by GNU Autoconf 2.57. Invocation command line was
17584 CONFIG_FILES = $CONFIG_FILES
17585 CONFIG_HEADERS = $CONFIG_HEADERS
17586 CONFIG_LINKS = $CONFIG_LINKS
17587 CONFIG_COMMANDS = $CONFIG_COMMANDS
17588 $ $0 $@
17590 _CSEOF
17591 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17592 echo >&5
17593 _ACEOF
17595 # Files that config.status was made for.
17596 if test -n "$ac_config_files"; then
17597 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17600 if test -n "$ac_config_headers"; then
17601 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17604 if test -n "$ac_config_links"; then
17605 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17608 if test -n "$ac_config_commands"; then
17609 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17612 cat >>$CONFIG_STATUS <<\_ACEOF
17614 ac_cs_usage="\
17615 \`$as_me' instantiates files from templates according to the
17616 current configuration.
17618 Usage: $0 [OPTIONS] [FILE]...
17620 -h, --help print this help, then exit
17621 -V, --version print version number, then exit
17622 -q, --quiet do not print progress messages
17623 -d, --debug don't remove temporary files
17624 --recheck update $as_me by reconfiguring in the same conditions
17625 --file=FILE[:TEMPLATE]
17626 instantiate the configuration file FILE
17627 --header=FILE[:TEMPLATE]
17628 instantiate the configuration header FILE
17630 Configuration files:
17631 $config_files
17633 Configuration headers:
17634 $config_headers
17636 Configuration commands:
17637 $config_commands
17639 Report bugs to <bug-autoconf@gnu.org>."
17640 _ACEOF
17642 cat >>$CONFIG_STATUS <<_ACEOF
17643 ac_cs_version="\\
17644 Wine config.status 20031118
17645 configured by $0, generated by GNU Autoconf 2.57,
17646 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17648 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17649 Free Software Foundation, Inc.
17650 This config.status script is free software; the Free Software Foundation
17651 gives unlimited permission to copy, distribute and modify it."
17652 srcdir=$srcdir
17653 INSTALL="$INSTALL"
17654 _ACEOF
17656 cat >>$CONFIG_STATUS <<\_ACEOF
17657 # If no file are specified by the user, then we need to provide default
17658 # value. By we need to know if files were specified by the user.
17659 ac_need_defaults=:
17660 while test $# != 0
17662 case $1 in
17663 --*=*)
17664 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17665 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17666 ac_shift=:
17669 ac_option=$1
17670 ac_optarg=$2
17671 ac_shift=shift
17673 *) # This is not an option, so the user has probably given explicit
17674 # arguments.
17675 ac_option=$1
17676 ac_need_defaults=false;;
17677 esac
17679 case $ac_option in
17680 # Handling of the options.
17681 _ACEOF
17682 cat >>$CONFIG_STATUS <<\_ACEOF
17683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17684 ac_cs_recheck=: ;;
17685 --version | --vers* | -V )
17686 echo "$ac_cs_version"; exit 0 ;;
17687 --he | --h)
17688 # Conflict between --help and --header
17689 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17690 Try \`$0 --help' for more information." >&5
17691 echo "$as_me: error: ambiguous option: $1
17692 Try \`$0 --help' for more information." >&2;}
17693 { (exit 1); exit 1; }; };;
17694 --help | --hel | -h )
17695 echo "$ac_cs_usage"; exit 0 ;;
17696 --debug | --d* | -d )
17697 debug=: ;;
17698 --file | --fil | --fi | --f )
17699 $ac_shift
17700 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17701 ac_need_defaults=false;;
17702 --header | --heade | --head | --hea )
17703 $ac_shift
17704 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17705 ac_need_defaults=false;;
17706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17708 ac_cs_silent=: ;;
17710 # This is an error.
17711 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17712 Try \`$0 --help' for more information." >&5
17713 echo "$as_me: error: unrecognized option: $1
17714 Try \`$0 --help' for more information." >&2;}
17715 { (exit 1); exit 1; }; } ;;
17717 *) ac_config_targets="$ac_config_targets $1" ;;
17719 esac
17720 shift
17721 done
17723 ac_configure_extra_args=
17725 if $ac_cs_silent; then
17726 exec 6>/dev/null
17727 ac_configure_extra_args="$ac_configure_extra_args --silent"
17730 _ACEOF
17731 cat >>$CONFIG_STATUS <<_ACEOF
17732 if \$ac_cs_recheck; then
17733 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17734 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17737 _ACEOF
17743 cat >>$CONFIG_STATUS <<\_ACEOF
17744 for ac_config_target in $ac_config_targets
17746 case "$ac_config_target" in
17747 # Handling of arguments.
17748 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17749 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17750 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17751 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17752 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17753 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17754 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17755 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17756 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17757 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17758 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17759 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17760 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
17761 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
17762 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17763 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17764 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17765 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17766 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17767 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17768 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17769 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
17770 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17771 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17772 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17773 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17774 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17775 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17776 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
17777 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17778 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17779 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17780 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17781 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17782 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17783 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17784 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17785 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17786 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17787 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17788 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17789 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17790 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17791 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17792 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17793 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17794 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17795 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17796 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17797 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17798 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17799 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17800 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17801 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17802 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17803 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17804 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17805 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17806 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17807 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17808 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17809 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17810 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17811 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17812 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17813 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17814 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17815 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17816 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17817 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17818 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17819 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17820 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17821 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17822 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17823 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17824 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17825 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17826 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17827 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17828 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17829 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17830 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17831 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17832 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17833 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17834 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17835 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17836 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17837 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17838 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17839 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17840 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17841 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17842 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17843 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17844 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17845 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17846 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17847 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17848 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17849 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17850 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17851 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17852 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17853 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17854 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17855 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17856 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17857 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17858 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
17859 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17860 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17861 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17862 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17863 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17864 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17865 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17866 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17867 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17868 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17869 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17870 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17871 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17872 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17873 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17874 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17875 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17876 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17877 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17878 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17879 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17880 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17881 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17882 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17883 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17884 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17885 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17886 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17887 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17888 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17889 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17890 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17891 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17892 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17893 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17894 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17895 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17896 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17897 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17898 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17899 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17900 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17901 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17902 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17903 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17904 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17905 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17906 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
17907 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17908 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17909 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17910 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17911 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17912 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17913 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17914 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17915 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17916 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17917 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17918 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17919 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17920 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17921 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17922 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17923 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17924 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17925 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17926 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17927 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17928 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17929 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17930 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17931 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17932 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17933 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17934 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17935 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17936 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17937 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17938 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17939 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17940 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17941 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17942 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17943 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17944 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17945 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17946 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17947 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17948 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17949 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17950 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17951 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17952 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17953 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17954 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17955 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17956 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17957 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17958 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17959 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17960 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17961 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17962 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17963 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17964 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17965 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17966 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17967 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17970 { (exit 1); exit 1; }; };;
17971 esac
17972 done
17974 # If the user did not use the arguments to specify the items to instantiate,
17975 # then the envvar interface is used. Set only those that are not.
17976 # We use the long form for the default assignment because of an extremely
17977 # bizarre bug on SunOS 4.1.3.
17978 if $ac_need_defaults; then
17979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17984 # Have a temporary directory for convenience. Make it in the build tree
17985 # simply because there is no reason to put it here, and in addition,
17986 # creating and moving files from /tmp can sometimes cause problems.
17987 # Create a temporary directory, and hook for its removal unless debugging.
17988 $debug ||
17990 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17991 trap '{ (exit 1); exit 1; }' 1 2 13 15
17994 # Create a (secure) tmp directory for tmp files.
17997 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17998 test -n "$tmp" && test -d "$tmp"
17999 } ||
18001 tmp=./confstat$$-$RANDOM
18002 (umask 077 && mkdir $tmp)
18003 } ||
18005 echo "$me: cannot create a temporary directory in ." >&2
18006 { (exit 1); exit 1; }
18009 _ACEOF
18011 cat >>$CONFIG_STATUS <<_ACEOF
18014 # CONFIG_FILES section.
18017 # No need to generate the scripts if there are no CONFIG_FILES.
18018 # This happens for instance when ./config.status config.h
18019 if test -n "\$CONFIG_FILES"; then
18020 # Protect against being on the right side of a sed subst in config.status.
18021 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18022 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18023 s,@SHELL@,$SHELL,;t t
18024 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18025 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18026 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18027 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18028 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18029 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18030 s,@exec_prefix@,$exec_prefix,;t t
18031 s,@prefix@,$prefix,;t t
18032 s,@program_transform_name@,$program_transform_name,;t t
18033 s,@bindir@,$bindir,;t t
18034 s,@sbindir@,$sbindir,;t t
18035 s,@libexecdir@,$libexecdir,;t t
18036 s,@datadir@,$datadir,;t t
18037 s,@sysconfdir@,$sysconfdir,;t t
18038 s,@sharedstatedir@,$sharedstatedir,;t t
18039 s,@localstatedir@,$localstatedir,;t t
18040 s,@libdir@,$libdir,;t t
18041 s,@includedir@,$includedir,;t t
18042 s,@oldincludedir@,$oldincludedir,;t t
18043 s,@infodir@,$infodir,;t t
18044 s,@mandir@,$mandir,;t t
18045 s,@build_alias@,$build_alias,;t t
18046 s,@host_alias@,$host_alias,;t t
18047 s,@target_alias@,$target_alias,;t t
18048 s,@DEFS@,$DEFS,;t t
18049 s,@ECHO_C@,$ECHO_C,;t t
18050 s,@ECHO_N@,$ECHO_N,;t t
18051 s,@ECHO_T@,$ECHO_T,;t t
18052 s,@LIBS@,$LIBS,;t t
18053 s,@WIN16_FILES@,$WIN16_FILES,;t t
18054 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
18055 s,@build@,$build,;t t
18056 s,@build_cpu@,$build_cpu,;t t
18057 s,@build_vendor@,$build_vendor,;t t
18058 s,@build_os@,$build_os,;t t
18059 s,@host@,$host,;t t
18060 s,@host_cpu@,$host_cpu,;t t
18061 s,@host_vendor@,$host_vendor,;t t
18062 s,@host_os@,$host_os,;t t
18063 s,@SET_MAKE@,$SET_MAKE,;t t
18064 s,@CC@,$CC,;t t
18065 s,@CFLAGS@,$CFLAGS,;t t
18066 s,@LDFLAGS@,$LDFLAGS,;t t
18067 s,@CPPFLAGS@,$CPPFLAGS,;t t
18068 s,@ac_ct_CC@,$ac_ct_CC,;t t
18069 s,@EXEEXT@,$EXEEXT,;t t
18070 s,@OBJEXT@,$OBJEXT,;t t
18071 s,@CPP@,$CPP,;t t
18072 s,@TOOLSDIR@,$TOOLSDIR,;t t
18073 s,@X_CFLAGS@,$X_CFLAGS,;t t
18074 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18075 s,@X_LIBS@,$X_LIBS,;t t
18076 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18077 s,@YACC@,$YACC,;t t
18078 s,@LEX@,$LEX,;t t
18079 s,@LEXLIB@,$LEXLIB,;t t
18080 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
18081 s,@XYACC@,$XYACC,;t t
18082 s,@XLEX@,$XLEX,;t t
18083 s,@AS@,$AS,;t t
18084 s,@ac_ct_AS@,$ac_ct_AS,;t t
18085 s,@LD@,$LD,;t t
18086 s,@ac_ct_LD@,$ac_ct_LD,;t t
18087 s,@AR@,$AR,;t t
18088 s,@ac_ct_AR@,$ac_ct_AR,;t t
18089 s,@RANLIB@,$RANLIB,;t t
18090 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18091 s,@STRIP@,$STRIP,;t t
18092 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18093 s,@WINDRES@,$WINDRES,;t t
18094 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
18095 s,@LN_S@,$LN_S,;t t
18096 s,@LN@,$LN,;t t
18097 s,@LDCONFIG@,$LDCONFIG,;t t
18098 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18099 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18100 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18101 s,@LINT@,$LINT,;t t
18102 s,@LINTFLAGS@,$LINTFLAGS,;t t
18103 s,@DB2HTML@,$DB2HTML,;t t
18104 s,@DB2PDF@,$DB2PDF,;t t
18105 s,@DB2PS@,$DB2PS,;t t
18106 s,@DB2TXT@,$DB2TXT,;t t
18107 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
18108 s,@JPEGLIB@,$JPEGLIB,;t t
18109 s,@EGREP@,$EGREP,;t t
18110 s,@GIFLIB@,$GIFLIB,;t t
18111 s,@XLIB@,$XLIB,;t t
18112 s,@XFILES@,$XFILES,;t t
18113 s,@OPENGLFILES@,$OPENGLFILES,;t t
18114 s,@GLU32FILES@,$GLU32FILES,;t t
18115 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
18116 s,@NASLIBS@,$NASLIBS,;t t
18117 s,@CURSESLIBS@,$CURSESLIBS,;t t
18118 s,@sane_devel@,$sane_devel,;t t
18119 s,@SANELIBS@,$SANELIBS,;t t
18120 s,@SANEINCL@,$SANEINCL,;t t
18121 s,@ICULIBS@,$ICULIBS,;t t
18122 s,@ft_devel@,$ft_devel,;t t
18123 s,@ft_devel2@,$ft_devel2,;t t
18124 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
18125 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
18126 s,@ARTSLIBS@,$ARTSLIBS,;t t
18127 s,@ARTSINCL@,$ARTSINCL,;t t
18128 s,@ALSALIBS@,$ALSALIBS,;t t
18129 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
18130 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
18131 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
18132 s,@DLLEXT@,$DLLEXT,;t t
18133 s,@DLLFLAGS@,$DLLFLAGS,;t t
18134 s,@DLLIBS@,$DLLIBS,;t t
18135 s,@LDSHARED@,$LDSHARED,;t t
18136 s,@LDDLL@,$LDDLL,;t t
18137 s,@LIBEXT@,$LIBEXT,;t t
18138 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
18139 s,@DLLTOOL@,$DLLTOOL,;t t
18140 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18141 s,@DLLWRAP@,$DLLWRAP,;t t
18142 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
18143 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
18144 s,@CROSSTEST@,$CROSSTEST,;t t
18145 s,@CROSSCC@,$CROSSCC,;t t
18146 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
18147 s,@LDPATH@,$LDPATH,;t t
18148 s,@CRTLIBS@,$CRTLIBS,;t t
18149 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
18150 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
18151 s,@LDD@,$LDD,;t t
18152 s,@ALLOCA@,$ALLOCA,;t t
18153 s,@LIBOBJS@,$LIBOBJS,;t t
18154 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18155 /@MAKE_RULES@/r $MAKE_RULES
18156 s,@MAKE_RULES@,,;t t
18157 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
18158 s,@MAKE_DLL_RULES@,,;t t
18159 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
18160 s,@MAKE_TEST_RULES@,,;t t
18161 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
18162 s,@MAKE_LIB_RULES@,,;t t
18163 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
18164 s,@MAKE_PROG_RULES@,,;t t
18165 CEOF
18167 _ACEOF
18169 cat >>$CONFIG_STATUS <<\_ACEOF
18170 # Split the substitutions into bite-sized pieces for seds with
18171 # small command number limits, like on Digital OSF/1 and HP-UX.
18172 ac_max_sed_lines=48
18173 ac_sed_frag=1 # Number of current file.
18174 ac_beg=1 # First line for current file.
18175 ac_end=$ac_max_sed_lines # Line after last line for current file.
18176 ac_more_lines=:
18177 ac_sed_cmds=
18178 while $ac_more_lines; do
18179 if test $ac_beg -gt 1; then
18180 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18181 else
18182 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18184 if test ! -s $tmp/subs.frag; then
18185 ac_more_lines=false
18186 else
18187 # The purpose of the label and of the branching condition is to
18188 # speed up the sed processing (if there are no `@' at all, there
18189 # is no need to browse any of the substitutions).
18190 # These are the two extra sed commands mentioned above.
18191 (echo ':t
18192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18193 if test -z "$ac_sed_cmds"; then
18194 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18195 else
18196 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18198 ac_sed_frag=`expr $ac_sed_frag + 1`
18199 ac_beg=$ac_end
18200 ac_end=`expr $ac_end + $ac_max_sed_lines`
18202 done
18203 if test -z "$ac_sed_cmds"; then
18204 ac_sed_cmds=cat
18206 fi # test -n "$CONFIG_FILES"
18208 _ACEOF
18209 cat >>$CONFIG_STATUS <<\_ACEOF
18210 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18212 case $ac_file in
18213 - | *:- | *:-:* ) # input from stdin
18214 cat >$tmp/stdin
18215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18219 * ) ac_file_in=$ac_file.in ;;
18220 esac
18222 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18223 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18225 X"$ac_file" : 'X\(//\)[^/]' \| \
18226 X"$ac_file" : 'X\(//\)$' \| \
18227 X"$ac_file" : 'X\(/\)' \| \
18228 . : '\(.\)' 2>/dev/null ||
18229 echo X"$ac_file" |
18230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18232 /^X\(\/\/\)$/{ s//\1/; q; }
18233 /^X\(\/\).*/{ s//\1/; q; }
18234 s/.*/./; q'`
18235 { if $as_mkdir_p; then
18236 mkdir -p "$ac_dir"
18237 else
18238 as_dir="$ac_dir"
18239 as_dirs=
18240 while test ! -d "$as_dir"; do
18241 as_dirs="$as_dir $as_dirs"
18242 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18244 X"$as_dir" : 'X\(//\)[^/]' \| \
18245 X"$as_dir" : 'X\(//\)$' \| \
18246 X"$as_dir" : 'X\(/\)' \| \
18247 . : '\(.\)' 2>/dev/null ||
18248 echo X"$as_dir" |
18249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18251 /^X\(\/\/\)$/{ s//\1/; q; }
18252 /^X\(\/\).*/{ s//\1/; q; }
18253 s/.*/./; q'`
18254 done
18255 test ! -n "$as_dirs" || mkdir $as_dirs
18256 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18257 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18258 { (exit 1); exit 1; }; }; }
18260 ac_builddir=.
18262 if test "$ac_dir" != .; then
18263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18264 # A "../" for each directory in $ac_dir_suffix.
18265 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18266 else
18267 ac_dir_suffix= ac_top_builddir=
18270 case $srcdir in
18271 .) # No --srcdir option. We are building in place.
18272 ac_srcdir=.
18273 if test -z "$ac_top_builddir"; then
18274 ac_top_srcdir=.
18275 else
18276 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18277 fi ;;
18278 [\\/]* | ?:[\\/]* ) # Absolute path.
18279 ac_srcdir=$srcdir$ac_dir_suffix;
18280 ac_top_srcdir=$srcdir ;;
18281 *) # Relative path.
18282 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18283 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18284 esac
18285 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18286 # absolute.
18287 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18288 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18289 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18290 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18293 case $INSTALL in
18294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18295 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18296 esac
18298 if test x"$ac_file" != x-; then
18299 { echo "$as_me:$LINENO: creating $ac_file" >&5
18300 echo "$as_me: creating $ac_file" >&6;}
18301 rm -f "$ac_file"
18303 # Let's still pretend it is `configure' which instantiates (i.e., don't
18304 # use $as_me), people would be surprised to read:
18305 # /* config.h. Generated by config.status. */
18306 if test x"$ac_file" = x-; then
18307 configure_input=
18308 else
18309 configure_input="$ac_file. "
18311 configure_input=$configure_input"Generated from `echo $ac_file_in |
18312 sed 's,.*/,,'` by configure."
18314 # First look for the input files in the build tree, otherwise in the
18315 # src tree.
18316 ac_file_inputs=`IFS=:
18317 for f in $ac_file_in; do
18318 case $f in
18319 -) echo $tmp/stdin ;;
18320 [\\/$]*)
18321 # Absolute (can't be DOS-style, as IFS=:)
18322 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18323 echo "$as_me: error: cannot find input file: $f" >&2;}
18324 { (exit 1); exit 1; }; }
18325 echo $f;;
18326 *) # Relative
18327 if test -f "$f"; then
18328 # Build tree
18329 echo $f
18330 elif test -f "$srcdir/$f"; then
18331 # Source tree
18332 echo $srcdir/$f
18333 else
18334 # /dev/null tree
18335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18336 echo "$as_me: error: cannot find input file: $f" >&2;}
18337 { (exit 1); exit 1; }; }
18338 fi;;
18339 esac
18340 done` || { (exit 1); exit 1; }
18341 _ACEOF
18342 cat >>$CONFIG_STATUS <<_ACEOF
18343 sed "$ac_vpsub
18344 $extrasub
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<\_ACEOF
18348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18349 s,@configure_input@,$configure_input,;t t
18350 s,@srcdir@,$ac_srcdir,;t t
18351 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18352 s,@top_srcdir@,$ac_top_srcdir,;t t
18353 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18354 s,@builddir@,$ac_builddir,;t t
18355 s,@abs_builddir@,$ac_abs_builddir,;t t
18356 s,@top_builddir@,$ac_top_builddir,;t t
18357 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18358 s,@INSTALL@,$ac_INSTALL,;t t
18359 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18360 rm -f $tmp/stdin
18361 if test x"$ac_file" != x-; then
18362 mv $tmp/out $ac_file
18363 else
18364 cat $tmp/out
18365 rm -f $tmp/out
18368 done
18369 _ACEOF
18370 cat >>$CONFIG_STATUS <<\_ACEOF
18373 # CONFIG_HEADER section.
18376 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18377 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18379 # ac_d sets the value in "#define NAME VALUE" lines.
18380 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18381 ac_dB='[ ].*$,\1#\2'
18382 ac_dC=' '
18383 ac_dD=',;t'
18384 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18385 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18386 ac_uB='$,\1#\2define\3'
18387 ac_uC=' '
18388 ac_uD=',;t'
18390 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18392 case $ac_file in
18393 - | *:- | *:-:* ) # input from stdin
18394 cat >$tmp/stdin
18395 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18397 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18399 * ) ac_file_in=$ac_file.in ;;
18400 esac
18402 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18403 echo "$as_me: creating $ac_file" >&6;}
18405 # First look for the input files in the build tree, otherwise in the
18406 # src tree.
18407 ac_file_inputs=`IFS=:
18408 for f in $ac_file_in; do
18409 case $f in
18410 -) echo $tmp/stdin ;;
18411 [\\/$]*)
18412 # Absolute (can't be DOS-style, as IFS=:)
18413 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18414 echo "$as_me: error: cannot find input file: $f" >&2;}
18415 { (exit 1); exit 1; }; }
18416 echo $f;;
18417 *) # Relative
18418 if test -f "$f"; then
18419 # Build tree
18420 echo $f
18421 elif test -f "$srcdir/$f"; then
18422 # Source tree
18423 echo $srcdir/$f
18424 else
18425 # /dev/null tree
18426 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18427 echo "$as_me: error: cannot find input file: $f" >&2;}
18428 { (exit 1); exit 1; }; }
18429 fi;;
18430 esac
18431 done` || { (exit 1); exit 1; }
18432 # Remove the trailing spaces.
18433 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18435 _ACEOF
18437 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18438 # `conftest.undefs', that substitutes the proper values into
18439 # config.h.in to produce config.h. The first handles `#define'
18440 # templates, and the second `#undef' templates.
18441 # And first: Protect against being on the right side of a sed subst in
18442 # config.status. Protect against being in an unquoted here document
18443 # in config.status.
18444 rm -f conftest.defines conftest.undefs
18445 # Using a here document instead of a string reduces the quoting nightmare.
18446 # Putting comments in sed scripts is not portable.
18448 # `end' is used to avoid that the second main sed command (meant for
18449 # 0-ary CPP macros) applies to n-ary macro definitions.
18450 # See the Autoconf documentation for `clear'.
18451 cat >confdef2sed.sed <<\_ACEOF
18452 s/[\\&,]/\\&/g
18453 s,[\\$`],\\&,g
18454 t clear
18455 : clear
18456 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18457 t end
18458 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18459 : end
18460 _ACEOF
18461 # If some macros were called several times there might be several times
18462 # the same #defines, which is useless. Nevertheless, we may not want to
18463 # sort them, since we want the *last* AC-DEFINE to be honored.
18464 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18465 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18466 rm -f confdef2sed.sed
18468 # This sed command replaces #undef with comments. This is necessary, for
18469 # example, in the case of _POSIX_SOURCE, which is predefined and required
18470 # on some systems where configure will not decide to define it.
18471 cat >>conftest.undefs <<\_ACEOF
18472 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18473 _ACEOF
18475 # Break up conftest.defines because some shells have a limit on the size
18476 # of here documents, and old seds have small limits too (100 cmds).
18477 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18478 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18479 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18480 echo ' :' >>$CONFIG_STATUS
18481 rm -f conftest.tail
18482 while grep . conftest.defines >/dev/null
18484 # Write a limited-size here document to $tmp/defines.sed.
18485 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18486 # Speed up: don't consider the non `#define' lines.
18487 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18488 # Work around the forget-to-reset-the-flag bug.
18489 echo 't clr' >>$CONFIG_STATUS
18490 echo ': clr' >>$CONFIG_STATUS
18491 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18492 echo 'CEOF
18493 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18494 rm -f $tmp/in
18495 mv $tmp/out $tmp/in
18496 ' >>$CONFIG_STATUS
18497 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18498 rm -f conftest.defines
18499 mv conftest.tail conftest.defines
18500 done
18501 rm -f conftest.defines
18502 echo ' fi # grep' >>$CONFIG_STATUS
18503 echo >>$CONFIG_STATUS
18505 # Break up conftest.undefs because some shells have a limit on the size
18506 # of here documents, and old seds have small limits too (100 cmds).
18507 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18508 rm -f conftest.tail
18509 while grep . conftest.undefs >/dev/null
18511 # Write a limited-size here document to $tmp/undefs.sed.
18512 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18513 # Speed up: don't consider the non `#undef'
18514 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18515 # Work around the forget-to-reset-the-flag bug.
18516 echo 't clr' >>$CONFIG_STATUS
18517 echo ': clr' >>$CONFIG_STATUS
18518 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18519 echo 'CEOF
18520 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18521 rm -f $tmp/in
18522 mv $tmp/out $tmp/in
18523 ' >>$CONFIG_STATUS
18524 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18525 rm -f conftest.undefs
18526 mv conftest.tail conftest.undefs
18527 done
18528 rm -f conftest.undefs
18530 cat >>$CONFIG_STATUS <<\_ACEOF
18531 # Let's still pretend it is `configure' which instantiates (i.e., don't
18532 # use $as_me), people would be surprised to read:
18533 # /* config.h. Generated by config.status. */
18534 if test x"$ac_file" = x-; then
18535 echo "/* Generated by configure. */" >$tmp/config.h
18536 else
18537 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18539 cat $tmp/in >>$tmp/config.h
18540 rm -f $tmp/in
18541 if test x"$ac_file" != x-; then
18542 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18544 echo "$as_me: $ac_file is unchanged" >&6;}
18545 else
18546 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18548 X"$ac_file" : 'X\(//\)[^/]' \| \
18549 X"$ac_file" : 'X\(//\)$' \| \
18550 X"$ac_file" : 'X\(/\)' \| \
18551 . : '\(.\)' 2>/dev/null ||
18552 echo X"$ac_file" |
18553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18555 /^X\(\/\/\)$/{ s//\1/; q; }
18556 /^X\(\/\).*/{ s//\1/; q; }
18557 s/.*/./; q'`
18558 { if $as_mkdir_p; then
18559 mkdir -p "$ac_dir"
18560 else
18561 as_dir="$ac_dir"
18562 as_dirs=
18563 while test ! -d "$as_dir"; do
18564 as_dirs="$as_dir $as_dirs"
18565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18567 X"$as_dir" : 'X\(//\)[^/]' \| \
18568 X"$as_dir" : 'X\(//\)$' \| \
18569 X"$as_dir" : 'X\(/\)' \| \
18570 . : '\(.\)' 2>/dev/null ||
18571 echo X"$as_dir" |
18572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18574 /^X\(\/\/\)$/{ s//\1/; q; }
18575 /^X\(\/\).*/{ s//\1/; q; }
18576 s/.*/./; q'`
18577 done
18578 test ! -n "$as_dirs" || mkdir $as_dirs
18579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18581 { (exit 1); exit 1; }; }; }
18583 rm -f $ac_file
18584 mv $tmp/config.h $ac_file
18586 else
18587 cat $tmp/config.h
18588 rm -f $tmp/config.h
18590 done
18591 _ACEOF
18592 cat >>$CONFIG_STATUS <<\_ACEOF
18595 # CONFIG_COMMANDS section.
18597 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18598 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18599 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18600 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18601 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602 X"$ac_dest" : 'X\(//\)[^/]' \| \
18603 X"$ac_dest" : 'X\(//\)$' \| \
18604 X"$ac_dest" : 'X\(/\)' \| \
18605 . : '\(.\)' 2>/dev/null ||
18606 echo X"$ac_dest" |
18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18609 /^X\(\/\/\)$/{ s//\1/; q; }
18610 /^X\(\/\).*/{ s//\1/; q; }
18611 s/.*/./; q'`
18612 ac_builddir=.
18614 if test "$ac_dir" != .; then
18615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18616 # A "../" for each directory in $ac_dir_suffix.
18617 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18618 else
18619 ac_dir_suffix= ac_top_builddir=
18622 case $srcdir in
18623 .) # No --srcdir option. We are building in place.
18624 ac_srcdir=.
18625 if test -z "$ac_top_builddir"; then
18626 ac_top_srcdir=.
18627 else
18628 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18629 fi ;;
18630 [\\/]* | ?:[\\/]* ) # Absolute path.
18631 ac_srcdir=$srcdir$ac_dir_suffix;
18632 ac_top_srcdir=$srcdir ;;
18633 *) # Relative path.
18634 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18635 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18636 esac
18637 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18638 # absolute.
18639 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18640 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18641 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18642 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18645 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18646 echo "$as_me: executing $ac_dest commands" >&6;}
18647 case $ac_dest in
18648 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18649 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18650 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18651 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18652 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18653 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18654 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18655 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18656 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18657 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18658 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18659 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18660 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18661 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18662 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18663 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18664 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18665 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18666 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18667 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18668 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18669 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18670 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18671 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18672 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18673 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18674 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18675 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18676 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18677 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18678 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18679 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18680 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18681 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18682 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18683 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18684 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18685 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18686 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18687 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18688 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18689 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18690 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18691 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18692 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18693 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18694 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18695 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18696 esac
18697 done
18698 _ACEOF
18700 cat >>$CONFIG_STATUS <<\_ACEOF
18702 { (exit 0); exit 0; }
18703 _ACEOF
18704 chmod +x $CONFIG_STATUS
18705 ac_clean_files=$ac_clean_files_save
18708 # configure is writing to config.log, and then calls config.status.
18709 # config.status does its own redirection, appending to config.log.
18710 # Unfortunately, on DOS this fails, as config.log is still kept open
18711 # by configure, so config.status won't be able to write to it; its
18712 # output is simply discarded. So we exec the FD to /dev/null,
18713 # effectively closing config.log, so it can be properly (re)opened and
18714 # appended to by config.status. When coming back to configure, we
18715 # need to make the FD available again.
18716 if test "$no_create" != yes; then
18717 ac_cs_success=:
18718 ac_config_status_args=
18719 test "$silent" = yes &&
18720 ac_config_status_args="$ac_config_status_args --quiet"
18721 exec 5>/dev/null
18722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18723 exec 5>>config.log
18724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18725 # would make configure fail if this is the last instruction.
18726 $ac_cs_success || { (exit 1); exit 1; }
18730 if test "$have_x" = "no"
18731 then
18732 echo
18733 echo "*** Warning: X development files not found. Wine will be built without"
18734 echo "*** X support, which currently does not work, and would probably not be"
18735 echo "*** what you want anyway. You will need to install devel packages of"
18736 echo "*** Xlib/Xfree86 at the very least."
18739 if test "$wine_cv_opengl_version_OK" = "no"
18740 then
18741 echo
18742 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18743 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18746 if test "$wine_cv_msg_freetype" = "yes"
18747 then
18748 echo
18749 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18750 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18751 echo "*** freetype-devel package (or its equivalent on your distribution) to"
18752 echo "*** enable Wine to use TrueType fonts."
18755 echo
18756 echo "Configure finished. Do 'make depend && make' to compile Wine."
18757 echo