Get rid of the drive codepages and use CP_UNIXCP instead.
[wine/hacks.git] / configure
blob0e68d5abbe7caa778a78502b824b5375a8a807bd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20030911.
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='20030911'
270 PACKAGE_STRING='Wine 20030911'
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 LIBPTHREAD 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 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 EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS 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 20030911 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 20030911:";;
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-nptl use glibc NPTL threading support
862 --with-wine-tools=<dir> use Wine tools from directory <dir>
863 --with-x use the X Window System
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
877 _ACEOF
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892 ac_dir_suffix= ac_top_builddir=
895 case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 # absolute.
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 cd $ac_dir
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
920 echo
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
923 echo
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
927 echo
928 $ac_configure --help
929 else
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 cd "$ac_popdir"
933 done
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938 cat <<\_ACEOF
939 Wine configure 20030911
940 generated by GNU Autoconf 2.57
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947 exit 0
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
954 It was created by Wine $as_me 20030911, which was
955 generated by GNU Autoconf 2.57. Invocation command line was
957 $ $0 $@
959 _ACEOF
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983 _ASUNAME
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991 done
993 } >&5
995 cat >&5 <<_ACEOF
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1002 _ACEOF
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1017 for ac_arg
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1050 esac
1051 done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1064 echo
1066 cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 esac;
1087 echo
1089 cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123 echo
1124 sed "/^$/d" confdefs.h | sort
1125 echo
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 exit $exit_status
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1186 . "$ac_site_file"
1188 done
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1201 else
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247 esac
1249 done
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291 ac_config_headers="$ac_config_headers include/config.h"
1293 ac_aux_dir=
1294 for ac_dir in tools $srcdir/tools; do
1295 if test -f $ac_dir/install-sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 break
1299 elif test -f $ac_dir/install.sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 break
1303 elif test -f $ac_dir/shtool; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/shtool install -c"
1306 break
1308 done
1309 if test -z "$ac_aux_dir"; then
1310 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312 { (exit 1); exit 1; }; }
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1320 # Check whether --enable-win16 or --disable-win16 was given.
1321 if test "${enable_win16+set}" = set; then
1322 enableval="$enable_win16"
1325 # Check whether --enable-debug or --disable-debug was given.
1326 if test "${enable_debug+set}" = set; then
1327 enableval="$enable_debug"
1330 # Check whether --enable-trace or --disable-trace was given.
1331 if test "${enable_trace+set}" = set; then
1332 enableval="$enable_trace"
1337 # Check whether --with-opengl or --without-opengl was given.
1338 if test "${with_opengl+set}" = set; then
1339 withval="$with_opengl"
1343 # Check whether --with-curses or --without-curses was given.
1344 if test "${with_curses+set}" = set; then
1345 withval="$with_curses"
1349 # Check whether --with-nptl or --without-nptl was given.
1350 if test "${with_nptl+set}" = set; then
1351 withval="$with_nptl"
1355 # Check whether --with-wine-tools or --without-wine-tools was given.
1356 if test "${with_wine_tools+set}" = set; then
1357 withval="$with_wine_tools"
1361 WIN16_FILES="\$(WIN16_FILES)"
1363 WIN16_INSTALL="\$(WIN16_INSTALL)"
1365 if test "x$enable_win16" = "xno"
1366 then
1367 WIN16_FILES=""
1368 WIN16_INSTALL=""
1370 if test "x$enable_debug" = "xno"
1371 then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define NO_DEBUG_MSGS 1
1375 _ACEOF
1378 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1379 then
1381 cat >>confdefs.h <<\_ACEOF
1382 #define NO_TRACE_MSGS 1
1383 _ACEOF
1386 if test "x$with_nptl" = "xyes"
1387 then
1389 cat >>confdefs.h <<\_ACEOF
1390 #define HAVE_NPTL 1
1391 _ACEOF
1393 LIBPTHREAD="-lpthread"
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1424 build=$ac_cv_build
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1446 host=$ac_cv_host
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 cat >conftest.make <<\_ACEOF
1459 all:
1460 @echo 'ac_maketemp="$(MAKE)"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465 eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467 eval ac_cv_prog_make_${ac_make}_set=no
1469 rm -f conftest.make
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 SET_MAKE=
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 SET_MAKE="MAKE=${MAKE-make}"
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1489 echo "$as_me:$LINENO: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 else
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 for ac_exec_ext in '' $ac_executable_extensions; do
1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1508 done
1509 done
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515 echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1523 if test -z "$ac_cv_prog_CC"; then
1524 ac_ct_CC=$CC
1525 # Extract the first word of "gcc", so it can be a program name with args.
1526 set dummy gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532 if test -n "$ac_ct_CC"; then
1533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_ac_ct_CC="gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 break 2
1546 done
1547 done
1551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552 if test -n "$ac_ct_CC"; then
1553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1554 echo "${ECHO_T}$ac_ct_CC" >&6
1555 else
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1560 CC=$ac_ct_CC
1561 else
1562 CC="$ac_cv_prog_CC"
1565 if test -z "$CC"; then
1566 if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568 set dummy ${ac_tool_prefix}cc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1588 done
1589 done
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$ac_cv_prog_CC"; then
1604 ac_ct_CC=$CC
1605 # Extract the first word of "cc", so it can be a program name with args.
1606 set dummy cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612 if test -n "$ac_ct_CC"; then
1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_ac_ct_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1626 done
1627 done
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1635 else
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1640 CC=$ac_ct_CC
1641 else
1642 CC="$ac_cv_prog_CC"
1646 if test -z "$CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657 ac_prog_rejected=no
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666 ac_prog_rejected=yes
1667 continue
1669 ac_cv_prog_CC="cc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1673 done
1674 done
1676 if test $ac_prog_rejected = yes; then
1677 # We found a bogon in the path, so make sure we never use it.
1678 set dummy $ac_cv_prog_CC
1679 shift
1680 if test $# != 0; then
1681 # We chose a different compiler from the bogus one.
1682 # However, it has the same basename, so the bogon will be chosen
1683 # first if we set CC to just the basename; use the full file name.
1684 shift
1685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 for ac_prog in cl
1704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 if test -n "$CC"; then
1712 ac_cv_prog_CC="$CC" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1725 done
1726 done
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1739 test -n "$CC" && break
1740 done
1742 if test -z "$CC"; then
1743 ac_ct_CC=$CC
1744 for ac_prog in cl
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$ac_ct_CC" && break
1782 done
1784 CC=$ac_ct_CC
1790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: no acceptable C compiler found in \$PATH
1793 See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1796 # Provide some information about the compiler.
1797 echo "$as_me:$LINENO:" \
1798 "checking for C compiler version" >&5
1799 ac_compiler=`set X $ac_compile; echo $2`
1800 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1801 (eval $ac_compiler --version </dev/null >&5) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1806 (eval $ac_compiler -v </dev/null >&5) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1811 (eval $ac_compiler -V </dev/null >&5) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 /* confdefs.h. */
1819 _ACEOF
1820 cat confdefs.h >>conftest.$ac_ext
1821 cat >>conftest.$ac_ext <<_ACEOF
1822 /* end confdefs.h. */
1825 main ()
1829 return 0;
1831 _ACEOF
1832 ac_clean_files_save=$ac_clean_files
1833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1834 # Try to create an executable without -o first, disregard a.out.
1835 # It will help us diagnose broken compilers, and finding out an intuition
1836 # of exeext.
1837 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1838 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1840 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1841 (eval $ac_link_default) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }; then
1845 # Find the output, starting from the most likely. This scheme is
1846 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847 # resort.
1849 # Be careful to initialize this variable, since it used to be cached.
1850 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851 ac_cv_exeext=
1852 # b.out is created by i960 compilers.
1853 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1855 test -f "$ac_file" || continue
1856 case $ac_file in
1857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1859 conftest.$ac_ext )
1860 # This is the source file.
1862 [ab].out )
1863 # We found the default executable, but exeext='' is most
1864 # certainly right.
1865 break;;
1866 *.* )
1867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 # FIXME: I believe we export ac_cv_exeext for Libtool,
1869 # but it would be cool to find out if it's true. Does anybody
1870 # maintain Libtool? --akim.
1871 export ac_cv_exeext
1872 break;;
1874 break;;
1875 esac
1876 done
1877 else
1878 echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&5
1883 echo "$as_me: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&2;}
1885 { (exit 77); exit 77; }; }
1888 ac_exeext=$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_file" >&5
1890 echo "${ECHO_T}$ac_file" >&6
1892 # Check the compiler produces executables we can run. If not, either
1893 # the compiler is broken, or we cross compile.
1894 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1895 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897 # If not cross compiling, check that we can run a simple program.
1898 if test "$cross_compiling" != yes; then
1899 if { ac_try='./$ac_file'
1900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901 (eval $ac_try) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; }; then
1905 cross_compiling=no
1906 else
1907 if test "$cross_compiling" = maybe; then
1908 cross_compiling=yes
1909 else
1910 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: cannot run C compiled programs.
1914 If you meant to cross compile, use \`--host'.
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1923 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1924 ac_clean_files=$ac_clean_files_save
1925 # Check the compiler produces executables we can run. If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1928 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1929 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1930 echo "${ECHO_T}$cross_compiling" >&6
1932 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1935 (eval $ac_link) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1941 # work properly (i.e., refer to `conftest.exe'), while it won't with
1942 # `rm'.
1943 for ac_file in conftest.exe conftest conftest.*; do
1944 test -f "$ac_file" || continue
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1947 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948 export ac_cv_exeext
1949 break;;
1950 * ) break;;
1951 esac
1952 done
1953 else
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1961 rm -f conftest$ac_cv_exeext
1962 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1963 echo "${ECHO_T}$ac_cv_exeext" >&6
1965 rm -f conftest.$ac_ext
1966 EXEEXT=$ac_cv_exeext
1967 ac_exeext=$EXEEXT
1968 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1970 if test "${ac_cv_objext+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1982 main ()
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1992 ac_status=$?
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; then
1995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996 case $ac_file in
1997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999 break;;
2000 esac
2001 done
2002 else
2003 echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009 See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2016 echo "${ECHO_T}$ac_cv_objext" >&6
2017 OBJEXT=$ac_cv_objext
2018 ac_objext=$OBJEXT
2019 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 /* confdefs.h. */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2033 main ()
2035 #ifndef __GNUC__
2036 choke me
2037 #endif
2040 return 0;
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 (eval $ac_try) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 ac_compiler_gnu=yes
2056 else
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 ac_compiler_gnu=no
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068 GCC=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CFLAGS=${CFLAGS+set}
2070 ac_save_CFLAGS=$CFLAGS
2071 CFLAGS="-g"
2072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_g+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077 cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h. */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2086 main ()
2090 return 0;
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_cv_prog_cc_g=yes
2106 else
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2110 ac_cv_prog_cc_g=no
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
2120 CFLAGS="-g -O2"
2121 else
2122 CFLAGS="-g"
2124 else
2125 if test "$GCC" = yes; then
2126 CFLAGS="-O2"
2127 else
2128 CFLAGS=
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_cv_prog_cc_stdc=no
2137 ac_save_CC=$CC
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h. */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145 #include <stdarg.h>
2146 #include <stdio.h>
2147 #include <sys/types.h>
2148 #include <sys/stat.h>
2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2150 struct buf { int x; };
2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2153 char **p;
2154 int i;
2156 return p[i];
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 int argc;
2172 char **argv;
2174 main ()
2176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2178 return 0;
2180 _ACEOF
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX -qlanglvl=ansi
2184 # Ultrix and OSF/1 -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions -Aa -D_HPUX_SOURCE
2187 # SVR4 -Xc -D__EXTENSIONS__
2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 ac_cv_prog_cc_stdc=$ac_arg
2204 break
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2210 rm -f conftest.$ac_objext
2211 done
2212 rm -f conftest.$ac_ext conftest.$ac_objext
2213 CC=$ac_save_CC
2217 case "x$ac_cv_prog_cc_stdc" in
2218 x|xno)
2219 echo "$as_me:$LINENO: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2222 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 esac
2227 # Some people use a C++ compiler to compile C. Since we use `exit',
2228 # in C++ we need to declare it. In case someone uses the same compiler
2229 # for both compiling C and C++ we need to have the C++ compiler decide
2230 # the declaration of exit, since it's the most demanding environment.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #ifndef __cplusplus
2233 choke me
2234 #endif
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2263 $ac_declaration
2264 #include <stdlib.h>
2266 main ()
2268 exit (42);
2270 return 0;
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 continue
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 /* confdefs.h. */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2300 $ac_declaration
2302 main ()
2304 exit (42);
2306 return 0;
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 break
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 done
2329 rm -f conftest*
2330 if test -n "$ac_declaration"; then
2331 echo '#ifdef __cplusplus' >>confdefs.h
2332 echo $ac_declaration >>confdefs.h
2333 echo '#endif' >>confdefs.h
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2355 # On Suns, sometimes $CPP names a directory.
2356 if test -n "$CPP" && test -d "$CPP"; then
2357 CPP=
2359 if test -z "$CPP"; then
2360 if test "${ac_cv_prog_CPP+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 # Double quotes because CPP needs to be expanded
2364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2366 ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2369 # Use a header file that comes with gcc, so configuring glibc
2370 # with a fresh cross-compiler works.
2371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372 # <limits.h> exists even on freestanding compilers.
2373 # On the NeXT, cc -E runs the code through the compiler's parser,
2374 # not just through cpp. "Syntax error" is here to catch this case.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 /* confdefs.h. */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2382 #ifdef __STDC__
2383 # include <limits.h>
2384 #else
2385 # include <assert.h>
2386 #endif
2387 Syntax error
2388 _ACEOF
2389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } >/dev/null; then
2397 if test -s conftest.err; then
2398 ac_cpp_err=$ac_c_preproc_warn_flag
2399 else
2400 ac_cpp_err=
2402 else
2403 ac_cpp_err=yes
2405 if test -z "$ac_cpp_err"; then
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 # Broken: fails on valid input.
2412 continue
2414 rm -f conftest.err conftest.$ac_ext
2416 # OK, works on sane cases. Now check whether non-existent headers
2417 # can be detected and how.
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2425 #include <ac_nonexistent.h>
2426 _ACEOF
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } >/dev/null; then
2435 if test -s conftest.err; then
2436 ac_cpp_err=$ac_c_preproc_warn_flag
2437 else
2438 ac_cpp_err=
2440 else
2441 ac_cpp_err=yes
2443 if test -z "$ac_cpp_err"; then
2444 # Broken: success on invalid input.
2445 continue
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 # Passes both tests.
2451 ac_preproc_ok=:
2452 break
2454 rm -f conftest.err conftest.$ac_ext
2456 done
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.$ac_ext
2459 if $ac_preproc_ok; then
2460 break
2463 done
2464 ac_cv_prog_CPP=$CPP
2467 CPP=$ac_cv_prog_CPP
2468 else
2469 ac_cv_prog_CPP=$CPP
2471 echo "$as_me:$LINENO: result: $CPP" >&5
2472 echo "${ECHO_T}$CPP" >&6
2473 ac_preproc_ok=false
2474 for ac_c_preproc_warn_flag in '' yes
2476 # Use a header file that comes with gcc, so configuring glibc
2477 # with a fresh cross-compiler works.
2478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2479 # <limits.h> exists even on freestanding compilers.
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp. "Syntax error" is here to catch this case.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #line $LINENO "configure"
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2494 Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 else
2507 ac_cpp_err=
2509 else
2510 ac_cpp_err=yes
2512 if test -z "$ac_cpp_err"; then
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 # Broken: fails on valid input.
2519 continue
2521 rm -f conftest.err conftest.$ac_ext
2523 # OK, works on sane cases. Now check whether non-existent headers
2524 # can be detected and how.
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2532 #include <ac_nonexistent.h>
2533 _ACEOF
2534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536 ac_status=$?
2537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } >/dev/null; then
2542 if test -s conftest.err; then
2543 ac_cpp_err=$ac_c_preproc_warn_flag
2544 else
2545 ac_cpp_err=
2547 else
2548 ac_cpp_err=yes
2550 if test -z "$ac_cpp_err"; then
2551 # Broken: success on invalid input.
2552 continue
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 # Passes both tests.
2558 ac_preproc_ok=:
2559 break
2561 rm -f conftest.err conftest.$ac_ext
2563 done
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2568 else
2569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2576 ac_ext=c
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2584 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2585 if test "${wine_cv_toolsdir+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 if test -z "$with_wine_tools"; then
2589 if test "$cross_compiling" = "yes"; then
2590 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2591 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2592 { (exit 1); exit 1; }; }
2593 else
2594 wine_cv_toolsdir="\$(TOPOBJDIR)"
2596 elif test -d "$with_wine_tools/tools/winebuild"; then
2597 case $with_wine_tools in
2598 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2599 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2600 esac
2601 else
2602 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2603 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2604 { (exit 1); exit 1; }; }
2607 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2608 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2609 TOOLSDIR=$wine_cv_toolsdir
2614 echo "$as_me:$LINENO: checking for X" >&5
2615 echo $ECHO_N "checking for X... $ECHO_C" >&6
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2620 withval="$with_x"
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno; then
2625 # The user explicitly disabled X.
2626 have_x=disabled
2627 else
2628 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2629 # Both variables are already set.
2630 have_x=yes
2631 else
2632 if test "${ac_cv_have_x+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes=no ac_x_libraries=no
2637 rm -fr conftest.dir
2638 if mkdir conftest.dir; then
2639 cd conftest.dir
2640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641 cat >Imakefile <<'_ACEOF'
2642 acfindx:
2643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2644 _ACEOF
2645 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649 for ac_extension in a so sl; do
2650 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2651 test -f $ac_im_libdir/libX11.$ac_extension; then
2652 ac_im_usrlibdir=$ac_im_libdir; break
2654 done
2655 # Screen out bogus values from the imake configuration. They are
2656 # bogus both because they are the default anyway, and because
2657 # using them would break gcc on systems where it needs fixed includes.
2658 case $ac_im_incroot in
2659 /usr/include) ;;
2660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2661 esac
2662 case $ac_im_usrlibdir in
2663 /usr/lib | /lib) ;;
2664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2665 esac
2667 cd ..
2668 rm -fr conftest.dir
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2673 ac_x_header_dirs='
2674 /usr/X11/include
2675 /usr/X11R6/include
2676 /usr/X11R5/include
2677 /usr/X11R4/include
2679 /usr/include/X11
2680 /usr/include/X11R6
2681 /usr/include/X11R5
2682 /usr/include/X11R4
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2694 /usr/X386/include
2695 /usr/x386/include
2696 /usr/XFree86/include/X11
2698 /usr/include
2699 /usr/local/include
2700 /usr/unsupported/include
2701 /usr/athena/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2708 if test "$ac_x_includes" = no; then
2709 # Guess where to find include files, by looking for Intrinsic.h.
2710 # First, try using that file with no special directory specified.
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <X11/Intrinsic.h>
2719 _ACEOF
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } >/dev/null; then
2728 if test -s conftest.err; then
2729 ac_cpp_err=$ac_c_preproc_warn_flag
2730 else
2731 ac_cpp_err=
2733 else
2734 ac_cpp_err=yes
2736 if test -z "$ac_cpp_err"; then
2737 # We can compile using X headers with no special include directory.
2738 ac_x_includes=
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 for ac_dir in $ac_x_header_dirs; do
2744 if test -r "$ac_dir/X11/Intrinsic.h"; then
2745 ac_x_includes=$ac_dir
2746 break
2748 done
2750 rm -f conftest.err conftest.$ac_ext
2751 fi # $ac_x_includes = no
2753 if test "$ac_x_libraries" = no; then
2754 # Check for the libraries.
2755 # See if we find them without any special options.
2756 # Don't add to $LIBS permanently.
2757 ac_save_LIBS=$LIBS
2758 LIBS="-lXt $LIBS"
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #include <X11/Intrinsic.h>
2768 main ()
2770 XtMalloc (0)
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777 (eval $ac_link) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -s conftest$ac_exeext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 LIBS=$ac_save_LIBS
2788 # We can link X programs with no special library path.
2789 ac_x_libraries=
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 LIBS=$ac_save_LIBS
2795 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2797 # Don't even attempt the hair of trying to link an X program!
2798 for ac_extension in a so sl; do
2799 if test -r $ac_dir/libXt.$ac_extension; then
2800 ac_x_libraries=$ac_dir
2801 break 2
2803 done
2804 done
2806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2807 fi # $ac_x_libraries = no
2809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2810 # Didn't find X anywhere. Cache the known absence of X.
2811 ac_cv_have_x="have_x=no"
2812 else
2813 # Record where we found X for the cache.
2814 ac_cv_have_x="have_x=yes \
2815 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2820 eval "$ac_cv_have_x"
2821 fi # $with_x != no
2823 if test "$have_x" != yes; then
2824 echo "$as_me:$LINENO: result: $have_x" >&5
2825 echo "${ECHO_T}$have_x" >&6
2826 no_x=yes
2827 else
2828 # If each of the values was on the command line, it overrides each guess.
2829 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2830 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2831 # Update the cache value to reflect the command line values.
2832 ac_cv_have_x="have_x=yes \
2833 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2834 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2838 if test "$no_x" = yes; then
2839 # Not all programs may use this symbol, but it does not hurt to define it.
2841 cat >>confdefs.h <<\_ACEOF
2842 #define X_DISPLAY_MISSING 1
2843 _ACEOF
2845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2846 else
2847 if test -n "$x_includes"; then
2848 X_CFLAGS="$X_CFLAGS -I$x_includes"
2851 # It would also be nice to do this for all -L options, not just this one.
2852 if test -n "$x_libraries"; then
2853 X_LIBS="$X_LIBS -L$x_libraries"
2854 # For Solaris; some versions of Sun CC require a space after -R and
2855 # others require no space. Words are not sufficient . . . .
2856 case `(uname -sr) 2>/dev/null` in
2857 "SunOS 5"*)
2858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2870 main ()
2874 return 0;
2876 _ACEOF
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879 (eval $ac_link) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -s conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_R_nospace=yes
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 ac_R_nospace=no
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2897 if test $ac_R_nospace = yes; then
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900 X_LIBS="$X_LIBS -R$x_libraries"
2901 else
2902 LIBS="$ac_xsave_LIBS -R $x_libraries"
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 main ()
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921 (eval $ac_link) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_R_space=yes
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 ac_R_space=no
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939 if test $ac_R_space = yes; then
2940 echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6
2942 X_LIBS="$X_LIBS -R $x_libraries"
2943 else
2944 echo "$as_me:$LINENO: result: neither works" >&5
2945 echo "${ECHO_T}neither works" >&6
2948 LIBS=$ac_xsave_LIBS
2949 esac
2952 # Check for system-dependent libraries X programs must link with.
2953 # Do this before checking for the system-independent R6 libraries
2954 # (-lICE), since we may need -lsocket or whatever for X linking.
2956 if test "$ISC" = yes; then
2957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2958 else
2959 # Martyn Johnson says this is needed for Ultrix, if the X
2960 # libraries were built with DECnet support. And Karl Berry says
2961 # the Alpha needs dnet_stub (dnet does not exist).
2962 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 #ifdef __cplusplus
2973 extern "C"
2974 #endif
2975 /* We use char because int might match the return type of a gcc2
2976 builtin and then its argument prototype would still apply. */
2977 char XOpenDisplay ();
2979 main ()
2981 XOpenDisplay ();
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext conftest$ac_exeext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988 (eval $ac_link) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -s conftest$ac_exeext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3004 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ldnet $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 /* Override any gcc2 internal prototype to avoid an error. */
3019 #ifdef __cplusplus
3020 extern "C"
3021 #endif
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3024 char dnet_ntoa ();
3026 main ()
3028 dnet_ntoa ();
3030 return 0;
3032 _ACEOF
3033 rm -f conftest.$ac_objext conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035 (eval $ac_link) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest$ac_exeext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_lib_dnet_dnet_ntoa=yes
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 ac_cv_lib_dnet_dnet_ntoa=no
3052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053 LIBS=$ac_check_lib_save_LIBS
3055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3058 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3061 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3062 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 ac_check_lib_save_LIBS=$LIBS
3068 LIBS="-ldnet_stub $LIBS"
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 /* Override any gcc2 internal prototype to avoid an error. */
3078 #ifdef __cplusplus
3079 extern "C"
3080 #endif
3081 /* We use char because int might match the return type of a gcc2
3082 builtin and then its argument prototype would still apply. */
3083 char dnet_ntoa ();
3085 main ()
3087 dnet_ntoa ();
3089 return 0;
3091 _ACEOF
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_cv_lib_dnet_stub_dnet_ntoa=no
3111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3114 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3115 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3116 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3117 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 LIBS="$ac_xsave_LIBS"
3125 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3126 # to get the SysV transport functions.
3127 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3128 # needs -lnsl.
3129 # The nsl library prevents programs from opening the X display
3130 # on Irix 5.2, according to T.E. Dickey.
3131 # The functions gethostbyname, getservbyname, and inet_addr are
3132 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3133 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3135 if test "${ac_cv_func_gethostbyname+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145 /* System header to define __stub macros and hopefully few prototypes,
3146 which can conflict with char gethostbyname (); below.
3147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 <limits.h> exists even on freestanding compilers. */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 #ifdef __cplusplus
3156 extern "C"
3158 #endif
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3161 char gethostbyname ();
3162 /* The GNU C library defines this for functions which it implements
3163 to always fail with ENOSYS. Some functions are actually named
3164 something starting with __ and the normal name is an alias. */
3165 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3166 choke me
3167 #else
3168 char (*f) () = gethostbyname;
3169 #endif
3170 #ifdef __cplusplus
3172 #endif
3175 main ()
3177 return f != gethostbyname;
3179 return 0;
3181 _ACEOF
3182 rm -f conftest.$ac_objext conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184 (eval $ac_link) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -s conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_func_gethostbyname=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_cv_func_gethostbyname=no
3201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3204 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3206 if test $ac_cv_func_gethostbyname = no; then
3207 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3208 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3209 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 ac_check_lib_save_LIBS=$LIBS
3213 LIBS="-lnsl $LIBS"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 #ifdef __cplusplus
3224 extern "C"
3225 #endif
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3228 char gethostbyname ();
3230 main ()
3232 gethostbyname ();
3234 return 0;
3236 _ACEOF
3237 rm -f conftest.$ac_objext conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -s conftest$ac_exeext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_lib_nsl_gethostbyname=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_cv_lib_nsl_gethostbyname=no
3256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3260 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3261 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3265 if test $ac_cv_lib_nsl_gethostbyname = no; then
3266 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3267 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3268 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 ac_check_lib_save_LIBS=$LIBS
3272 LIBS="-lbsd $LIBS"
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 #ifdef __cplusplus
3283 extern "C"
3284 #endif
3285 /* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287 char gethostbyname ();
3289 main ()
3291 gethostbyname ();
3293 return 0;
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -s conftest$ac_exeext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 (eval $ac_try) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 ac_cv_lib_bsd_gethostbyname=yes
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 ac_cv_lib_bsd_gethostbyname=no
3315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3316 LIBS=$ac_check_lib_save_LIBS
3318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3327 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3328 # socket/setsockopt and other routines are undefined under SCO ODT
3329 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3330 # on later versions), says Simon Leinen: it contains gethostby*
3331 # variants that don't use the name server (or something). -lsocket
3332 # must be given before -lnsl if both are needed. We assume that
3333 # if connect needs -lnsl, so does gethostbyname.
3334 echo "$as_me:$LINENO: checking for connect" >&5
3335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3336 if test "${ac_cv_func_connect+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 /* System header to define __stub macros and hopefully few prototypes,
3347 which can conflict with char connect (); below.
3348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 <limits.h> exists even on freestanding compilers. */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 #ifdef __cplusplus
3357 extern "C"
3359 #endif
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3362 char connect ();
3363 /* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3367 choke me
3368 #else
3369 char (*f) () = connect;
3370 #endif
3371 #ifdef __cplusplus
3373 #endif
3376 main ()
3378 return f != connect;
3380 return 0;
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -s conftest$ac_exeext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_func_connect=yes
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_cv_func_connect=no
3402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3404 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3405 echo "${ECHO_T}$ac_cv_func_connect" >&6
3407 if test $ac_cv_func_connect = no; then
3408 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3409 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3410 if test "${ac_cv_lib_socket_connect+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 ac_check_lib_save_LIBS=$LIBS
3414 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 #ifdef __cplusplus
3425 extern "C"
3426 #endif
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3429 char connect ();
3431 main ()
3433 connect ();
3435 return 0;
3437 _ACEOF
3438 rm -f conftest.$ac_objext conftest$ac_exeext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440 (eval $ac_link) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -s conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_lib_socket_connect=yes
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_cv_lib_socket_connect=no
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458 LIBS=$ac_check_lib_save_LIBS
3460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3462 if test $ac_cv_lib_socket_connect = yes; then
3463 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3468 # Guillermo Gomez says -lposix is necessary on A/UX.
3469 echo "$as_me:$LINENO: checking for remove" >&5
3470 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3471 if test "${ac_cv_func_remove+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 /* System header to define __stub macros and hopefully few prototypes,
3482 which can conflict with char remove (); below.
3483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484 <limits.h> exists even on freestanding compilers. */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 #ifdef __cplusplus
3492 extern "C"
3494 #endif
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char remove ();
3498 /* The GNU C library defines this for functions which it implements
3499 to always fail with ENOSYS. Some functions are actually named
3500 something starting with __ and the normal name is an alias. */
3501 #if defined (__stub_remove) || defined (__stub___remove)
3502 choke me
3503 #else
3504 char (*f) () = remove;
3505 #endif
3506 #ifdef __cplusplus
3508 #endif
3511 main ()
3513 return f != remove;
3515 return 0;
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520 (eval $ac_link) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest$ac_exeext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_func_remove=yes
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_func_remove=no
3537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3540 echo "${ECHO_T}$ac_cv_func_remove" >&6
3542 if test $ac_cv_func_remove = no; then
3543 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3544 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3545 if test "${ac_cv_lib_posix_remove+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 ac_check_lib_save_LIBS=$LIBS
3549 LIBS="-lposix $LIBS"
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 #ifdef __cplusplus
3560 extern "C"
3561 #endif
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3564 char remove ();
3566 main ()
3568 remove ();
3570 return 0;
3572 _ACEOF
3573 rm -f conftest.$ac_objext conftest$ac_exeext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575 (eval $ac_link) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -s conftest$ac_exeext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_lib_posix_remove=yes
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 ac_cv_lib_posix_remove=no
3592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3593 LIBS=$ac_check_lib_save_LIBS
3595 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3596 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3597 if test $ac_cv_lib_posix_remove = yes; then
3598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3603 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3604 echo "$as_me:$LINENO: checking for shmat" >&5
3605 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3606 if test "${ac_cv_func_shmat+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 /* System header to define __stub macros and hopefully few prototypes,
3617 which can conflict with char shmat (); below.
3618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 <limits.h> exists even on freestanding compilers. */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 #ifdef __cplusplus
3627 extern "C"
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3632 char shmat ();
3633 /* The GNU C library defines this for functions which it implements
3634 to always fail with ENOSYS. Some functions are actually named
3635 something starting with __ and the normal name is an alias. */
3636 #if defined (__stub_shmat) || defined (__stub___shmat)
3637 choke me
3638 #else
3639 char (*f) () = shmat;
3640 #endif
3641 #ifdef __cplusplus
3643 #endif
3646 main ()
3648 return f != shmat;
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655 (eval $ac_link) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_func_shmat=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 ac_cv_func_shmat=no
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3675 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3677 if test $ac_cv_func_shmat = no; then
3678 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3679 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3680 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-lipc $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char shmat ();
3701 main ()
3703 shmat ();
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 ac_cv_lib_ipc_shmat=yes
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 ac_cv_lib_ipc_shmat=no
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3730 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3731 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3732 if test $ac_cv_lib_ipc_shmat = yes; then
3733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3739 # Check for libraries that X11R6 Xt/Xaw programs need.
3740 ac_save_LDFLAGS=$LDFLAGS
3741 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3742 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3743 # check for ICE first), but we must link in the order -lSM -lICE or
3744 # we get undefined symbols. So assume we have SM if we have ICE.
3745 # These have to be linked with before -lX11, unlike the other
3746 # libraries we check for below, so use a different variable.
3747 # John Interrante, Karl Berry
3748 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3749 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3750 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 ac_check_lib_save_LIBS=$LIBS
3754 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 #ifdef __cplusplus
3765 extern "C"
3766 #endif
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3769 char IceConnectionNumber ();
3771 main ()
3773 IceConnectionNumber ();
3775 return 0;
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -s conftest$ac_exeext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_cv_lib_ICE_IceConnectionNumber=yes
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 ac_cv_lib_ICE_IceConnectionNumber=no
3797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_check_lib_save_LIBS
3800 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3801 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3802 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3803 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3806 LDFLAGS=$ac_save_LDFLAGS
3810 for ac_prog in 'bison -y' byacc
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816 if test "${ac_cv_prog_YACC+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 if test -n "$YACC"; then
3820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_YACC="$ac_prog"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3838 YACC=$ac_cv_prog_YACC
3839 if test -n "$YACC"; then
3840 echo "$as_me:$LINENO: result: $YACC" >&5
3841 echo "${ECHO_T}$YACC" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3847 test -n "$YACC" && break
3848 done
3849 test -n "$YACC" || YACC="yacc"
3851 for ac_prog in flex lex
3853 # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_LEX+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 if test -n "$LEX"; then
3861 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_LEX="$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3879 LEX=$ac_cv_prog_LEX
3880 if test -n "$LEX"; then
3881 echo "$as_me:$LINENO: result: $LEX" >&5
3882 echo "${ECHO_T}$LEX" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3888 test -n "$LEX" && break
3889 done
3890 test -n "$LEX" || LEX=":"
3892 if test -z "$LEXLIB"
3893 then
3894 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3895 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3896 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lfl $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915 char yywrap ();
3917 main ()
3919 yywrap ();
3921 return 0;
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_fl_yywrap=yes
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 ac_cv_lib_fl_yywrap=no
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3947 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3948 if test $ac_cv_lib_fl_yywrap = yes; then
3949 LEXLIB="-lfl"
3950 else
3951 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3952 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3953 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 ac_check_lib_save_LIBS=$LIBS
3957 LIBS="-ll $LIBS"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 #ifdef __cplusplus
3968 extern "C"
3969 #endif
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3972 char yywrap ();
3974 main ()
3976 yywrap ();
3978 return 0;
3980 _ACEOF
3981 rm -f conftest.$ac_objext conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983 (eval $ac_link) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest$ac_exeext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_cv_lib_l_yywrap=yes
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_cv_lib_l_yywrap=no
4000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4004 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4005 if test $ac_cv_lib_l_yywrap = yes; then
4006 LEXLIB="-ll"
4013 if test "x$LEX" != "x:"; then
4014 echo "$as_me:$LINENO: checking lex output file root" >&5
4015 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4016 if test "${ac_cv_prog_lex_root+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 # The minimal lex program is just a single line: %%. But some broken lexes
4020 # (Solaris, I think it was) want two %% lines, so accommodate them.
4021 cat >conftest.l <<_ACEOF
4024 _ACEOF
4025 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4026 (eval $LEX conftest.l) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }
4030 if test -f lex.yy.c; then
4031 ac_cv_prog_lex_root=lex.yy
4032 elif test -f lexyy.c; then
4033 ac_cv_prog_lex_root=lexyy
4034 else
4035 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4036 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4037 { (exit 1); exit 1; }; }
4040 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4041 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4042 rm -f conftest.l
4043 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4045 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4046 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4047 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 # POSIX says lex can declare yytext either as a pointer or an array; the
4051 # default is implementation-dependent. Figure out which it is, since
4052 # not all implementations provide the %pointer and %array declarations.
4053 ac_cv_prog_lex_yytext_pointer=no
4054 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4055 ac_save_LIBS=$LIBS
4056 LIBS="$LIBS $LEXLIB"
4057 cat >conftest.$ac_ext <<_ACEOF
4058 `cat $LEX_OUTPUT_ROOT.c`
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest$ac_exeext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 ac_cv_prog_lex_yytext_pointer=yes
4073 else
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 LIBS=$ac_save_LIBS
4080 rm -f "${LEX_OUTPUT_ROOT}.c"
4083 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4084 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4085 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4087 cat >>confdefs.h <<\_ACEOF
4088 #define YYTEXT_POINTER 1
4089 _ACEOF
4095 for ac_prog in $YACC bison yacc
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_XYACC+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 if test -n "$XYACC"; then
4105 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_XYACC="$ac_prog"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4123 XYACC=$ac_cv_prog_XYACC
4124 if test -n "$XYACC"; then
4125 echo "$as_me:$LINENO: result: $XYACC" >&5
4126 echo "${ECHO_T}$XYACC" >&6
4127 else
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4132 test -n "$XYACC" && break
4133 done
4134 test -n "$XYACC" || XYACC="none"
4136 if test "$XYACC" = "none"
4137 then
4138 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4139 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4140 { (exit 1); exit 1; }; }
4142 for ac_prog in $LEX flex lex
4144 # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_XLEX+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 if test -n "$XLEX"; then
4152 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_XLEX="$ac_prog"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4170 XLEX=$ac_cv_prog_XLEX
4171 if test -n "$XLEX"; then
4172 echo "$as_me:$LINENO: result: $XLEX" >&5
4173 echo "${ECHO_T}$XLEX" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4179 test -n "$XLEX" && break
4180 done
4181 test -n "$XLEX" || XLEX="none"
4183 if test "$XLEX" = "none"
4184 then
4185 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4186 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4187 { (exit 1); exit 1; }; }
4190 if test -n "$ac_tool_prefix"; then
4191 for ac_prog in gas as
4193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_AS+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$AS"; then
4201 ac_cv_prog_AS="$AS" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4219 AS=$ac_cv_prog_AS
4220 if test -n "$AS"; then
4221 echo "$as_me:$LINENO: result: $AS" >&5
4222 echo "${ECHO_T}$AS" >&6
4223 else
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4228 test -n "$AS" && break
4229 done
4231 if test -z "$AS"; then
4232 ac_ct_AS=$AS
4233 for ac_prog in gas as
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$ac_ct_AS"; then
4243 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_AS="$ac_prog"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4262 if test -n "$ac_ct_AS"; then
4263 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4264 echo "${ECHO_T}$ac_ct_AS" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4270 test -n "$ac_ct_AS" && break
4271 done
4272 test -n "$ac_ct_AS" || ac_ct_AS="as"
4274 AS=$ac_ct_AS
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}ld; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_LD+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$LD"; then
4286 ac_cv_prog_LD="$LD" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_LD="${ac_tool_prefix}ld"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4304 LD=$ac_cv_prog_LD
4305 if test -n "$LD"; then
4306 echo "$as_me:$LINENO: result: $LD" >&5
4307 echo "${ECHO_T}$LD" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4314 if test -z "$ac_cv_prog_LD"; then
4315 ac_ct_LD=$LD
4316 # Extract the first word of "ld", so it can be a program name with args.
4317 set dummy ld; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$ac_ct_LD"; then
4324 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_LD="ld"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4340 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4343 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4344 if test -n "$ac_ct_LD"; then
4345 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4346 echo "${ECHO_T}$ac_ct_LD" >&6
4347 else
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4352 LD=$ac_ct_LD
4353 else
4354 LD="$ac_cv_prog_LD"
4357 if test -n "$ac_tool_prefix"; then
4358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}ar; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_AR+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test -n "$AR"; then
4366 ac_cv_prog_AR="$AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_AR="${ac_tool_prefix}ar"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4384 AR=$ac_cv_prog_AR
4385 if test -n "$AR"; then
4386 echo "$as_me:$LINENO: result: $AR" >&5
4387 echo "${ECHO_T}$AR" >&6
4388 else
4389 echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4394 if test -z "$ac_cv_prog_AR"; then
4395 ac_ct_AR=$AR
4396 # Extract the first word of "ar", so it can be a program name with args.
4397 set dummy ar; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 if test -n "$ac_ct_AR"; then
4404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_ac_ct_AR="ar"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4420 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4424 if test -n "$ac_ct_AR"; then
4425 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4426 echo "${ECHO_T}$ac_ct_AR" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4432 AR=$ac_ct_AR
4433 else
4434 AR="$ac_cv_prog_AR"
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_RANLIB+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 if test -n "$RANLIB"; then
4446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4464 RANLIB=$ac_cv_prog_RANLIB
4465 if test -n "$RANLIB"; then
4466 echo "$as_me:$LINENO: result: $RANLIB" >&5
4467 echo "${ECHO_T}$RANLIB" >&6
4468 else
4469 echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475 ac_ct_RANLIB=$RANLIB
4476 # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$ac_ct_RANLIB"; then
4484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_ac_ct_RANLIB="ranlib"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507 else
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 RANLIB=$ac_ct_RANLIB
4513 else
4514 RANLIB="$ac_cv_prog_RANLIB"
4517 if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_STRIP+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 if test -n "$STRIP"; then
4526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4544 STRIP=$ac_cv_prog_STRIP
4545 if test -n "$STRIP"; then
4546 echo "$as_me:$LINENO: result: $STRIP" >&5
4547 echo "${ECHO_T}$STRIP" >&6
4548 else
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4554 if test -z "$ac_cv_prog_STRIP"; then
4555 ac_ct_STRIP=$STRIP
4556 # Extract the first word of "strip", so it can be a program name with args.
4557 set dummy strip; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$ac_ct_STRIP"; then
4564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_ac_ct_STRIP="strip"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4580 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584 if test -n "$ac_ct_STRIP"; then
4585 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586 echo "${ECHO_T}$ac_ct_STRIP" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4592 STRIP=$ac_ct_STRIP
4593 else
4594 STRIP="$ac_cv_prog_STRIP"
4597 if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}windres; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_WINDRES+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$WINDRES"; then
4606 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4624 WINDRES=$ac_cv_prog_WINDRES
4625 if test -n "$WINDRES"; then
4626 echo "$as_me:$LINENO: result: $WINDRES" >&5
4627 echo "${ECHO_T}$WINDRES" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4634 if test -z "$ac_cv_prog_WINDRES"; then
4635 ac_ct_WINDRES=$WINDRES
4636 # Extract the first word of "windres", so it can be a program name with args.
4637 set dummy windres; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test -n "$ac_ct_WINDRES"; then
4644 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_WINDRES="windres"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4660 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4663 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4664 if test -n "$ac_ct_WINDRES"; then
4665 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4666 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 WINDRES=$ac_ct_WINDRES
4673 else
4674 WINDRES="$ac_cv_prog_WINDRES"
4677 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681 echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6
4683 else
4684 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6
4688 echo "$as_me:$LINENO: checking whether ln works" >&5
4689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4690 rm -f conf$$ conf$$.file
4691 echo >conf$$.file
4692 if ln conf$$.file conf$$ 2>/dev/null; then
4693 LN=ln
4695 echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6
4697 else
4698 LN="cp -p"
4700 echo "$as_me:$LINENO: result: no, using $LN" >&5
4701 echo "${ECHO_T}no, using $LN" >&6
4703 rm -f conf$$ conf$$.file
4704 # Extract the first word of "ldconfig", so it can be a program name with args.
4705 set dummy ldconfig; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 case $LDCONFIG in
4712 [\\/]* | ?:[\\/]*)
4713 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in /sbin /usr/sbin $PATH
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4727 done
4728 done
4730 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4732 esac
4734 LDCONFIG=$ac_cv_path_LDCONFIG
4736 if test -n "$LDCONFIG"; then
4737 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4738 echo "${ECHO_T}$LDCONFIG" >&6
4739 else
4740 echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4744 # Find a good install program. We prefer a C program (faster),
4745 # so one script is as good as another. But avoid the broken or
4746 # incompatible versions:
4747 # SysV /etc/install, /usr/sbin/install
4748 # SunOS /usr/etc/install
4749 # IRIX /sbin/install
4750 # AIX /bin/install
4751 # AmigaOS /C/install, which installs bootblocks on floppy discs
4752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4755 # ./install, which can be erroneously created by make from ./install.sh.
4756 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4757 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4758 if test -z "$INSTALL"; then
4759 if test "${ac_cv_path_install+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 # Account for people who put trailing slashes in PATH elements.
4768 case $as_dir/ in
4769 ./ | .// | /cC/* | \
4770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4771 /usr/ucb/* ) ;;
4773 # OSF1 and SCO ODT 3.0 have their own names for install.
4774 # Don't use installbsd from OSF since it installs stuff as root
4775 # by default.
4776 for ac_prog in ginstall scoinst install; do
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4779 if test $ac_prog = install &&
4780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4781 # AIX install. It has an incompatible calling convention.
4783 elif test $ac_prog = install &&
4784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4785 # program-specific install script used by HP pwplus--don't use.
4787 else
4788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4789 break 3
4792 done
4793 done
4795 esac
4796 done
4800 if test "${ac_cv_path_install+set}" = set; then
4801 INSTALL=$ac_cv_path_install
4802 else
4803 # As a last resort, use the slow shell script. We don't cache a
4804 # path for INSTALL within a source directory, because that will
4805 # break other packages using the cache if that directory is
4806 # removed, or if the path is relative.
4807 INSTALL=$ac_install_sh
4810 echo "$as_me:$LINENO: result: $INSTALL" >&5
4811 echo "${ECHO_T}$INSTALL" >&6
4813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4814 # It thinks the first close brace ends the variable substitution.
4815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4821 case "$INSTALL" in
4822 [\\/$]* | ?:[\\/]* ) ;;
4823 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4824 esac
4826 for ac_prog in lclint lint
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_LINT+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$LINT"; then
4836 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_LINT="$ac_prog"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4854 LINT=$ac_cv_prog_LINT
4855 if test -n "$LINT"; then
4856 echo "$as_me:$LINENO: result: $LINT" >&5
4857 echo "${ECHO_T}$LINT" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4863 test -n "$LINT" && break
4864 done
4866 if test "$LINT" = "lint"
4867 then
4868 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4873 for ac_prog in docbook2html db2html
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 if test -n "$DB2HTML"; then
4883 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_DB2HTML="$ac_prog"
4893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4901 DB2HTML=$ac_cv_prog_DB2HTML
4902 if test -n "$DB2HTML"; then
4903 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4904 echo "${ECHO_T}$DB2HTML" >&6
4905 else
4906 echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4910 test -n "$DB2HTML" && break
4911 done
4912 test -n "$DB2HTML" || DB2HTML="false"
4916 for ac_prog in docbook2pdf db2pdf
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 if test -n "$DB2PDF"; then
4926 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_DB2PDF="$ac_prog"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4944 DB2PDF=$ac_cv_prog_DB2PDF
4945 if test -n "$DB2PDF"; then
4946 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4947 echo "${ECHO_T}$DB2PDF" >&6
4948 else
4949 echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4953 test -n "$DB2PDF" && break
4954 done
4955 test -n "$DB2PDF" || DB2PDF="false"
4959 for ac_prog in docbook2ps db2ps
4961 # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965 if test "${ac_cv_prog_DB2PS+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 if test -n "$DB2PS"; then
4969 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_DB2PS="$ac_prog"
4979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4987 DB2PS=$ac_cv_prog_DB2PS
4988 if test -n "$DB2PS"; then
4989 echo "$as_me:$LINENO: result: $DB2PS" >&5
4990 echo "${ECHO_T}$DB2PS" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4996 test -n "$DB2PS" && break
4997 done
4998 test -n "$DB2PS" || DB2PS="false"
5002 for ac_prog in docbook2txt db2txt
5004 # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 if test -n "$DB2TXT"; then
5012 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_DB2TXT="$ac_prog"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5030 DB2TXT=$ac_cv_prog_DB2TXT
5031 if test -n "$DB2TXT"; then
5032 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5033 echo "${ECHO_T}$DB2TXT" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 test -n "$DB2TXT" && break
5040 done
5041 test -n "$DB2TXT" || DB2TXT="false"
5047 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5048 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5049 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 ac_check_lib_save_LIBS=$LIBS
5053 LIBS="-lm $LIBS"
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5062 /* Override any gcc2 internal prototype to avoid an error. */
5063 #ifdef __cplusplus
5064 extern "C"
5065 #endif
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5068 char sqrt ();
5070 main ()
5072 sqrt ();
5074 return 0;
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_lib_m_sqrt=yes
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_cv_lib_m_sqrt=no
5096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5097 LIBS=$ac_check_lib_save_LIBS
5099 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5100 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5101 if test $ac_cv_lib_m_sqrt = yes; then
5102 cat >>confdefs.h <<_ACEOF
5103 #define HAVE_LIBM 1
5104 _ACEOF
5106 LIBS="-lm $LIBS"
5111 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5112 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5113 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-li386 $LIBS"
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 #ifdef __cplusplus
5128 extern "C"
5129 #endif
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5132 char i386_set_ldt ();
5134 main ()
5136 i386_set_ldt ();
5138 return 0;
5140 _ACEOF
5141 rm -f conftest.$ac_objext conftest$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_lib_i386_i386_set_ldt=yes
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 ac_cv_lib_i386_i386_set_ldt=no
5160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5163 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5164 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5165 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define HAVE_LIBI386 1
5168 _ACEOF
5170 LIBS="-li386 $LIBS"
5175 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5176 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5177 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-lossaudio $LIBS"
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5190 /* Override any gcc2 internal prototype to avoid an error. */
5191 #ifdef __cplusplus
5192 extern "C"
5193 #endif
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5196 char _oss_ioctl ();
5198 main ()
5200 _oss_ioctl ();
5202 return 0;
5204 _ACEOF
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>&5
5208 ac_status=$?
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -s conftest$ac_exeext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_cv_lib_ossaudio__oss_ioctl=yes
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ac_cv_lib_ossaudio__oss_ioctl=no
5224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5228 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5229 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231 #define HAVE_LIBOSSAUDIO 1
5232 _ACEOF
5234 LIBS="-lossaudio $LIBS"
5239 for ac_func in iswalnum
5241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242 echo "$as_me:$LINENO: checking for $ac_func" >&5
5243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_var+set}\" = set"; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 #line $LINENO "configure"
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 /* System header to define __stub macros and hopefully few prototypes,
5255 which can conflict with char $ac_func (); below.
5256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257 <limits.h> exists even on freestanding compilers. */
5258 #ifdef __STDC__
5259 # include <limits.h>
5260 #else
5261 # include <assert.h>
5262 #endif
5263 /* Override any gcc2 internal prototype to avoid an error. */
5264 #ifdef __cplusplus
5265 extern "C"
5267 #endif
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char $ac_func ();
5271 /* The GNU C library defines this for functions which it implements
5272 to always fail with ENOSYS. Some functions are actually named
5273 something starting with __ and the normal name is an alias. */
5274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 choke me
5276 #else
5277 char (*f) () = $ac_func;
5278 #endif
5279 #ifdef __cplusplus
5281 #endif
5284 main ()
5286 return f != $ac_func;
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 eval "$as_ac_var=yes"
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 eval "$as_ac_var=no"
5310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5314 if test `eval echo '${'$as_ac_var'}'` = yes; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5317 _ACEOF
5319 else
5321 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5322 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5323 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 ac_check_lib_save_LIBS=$LIBS
5327 LIBS="-lw $LIBS"
5328 cat >conftest.$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 #ifdef __cplusplus
5338 extern "C"
5339 #endif
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5342 char iswalnum ();
5344 main ()
5346 iswalnum ();
5348 return 0;
5350 _ACEOF
5351 rm -f conftest.$ac_objext conftest$ac_exeext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5353 (eval $ac_link) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -s conftest$ac_exeext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5363 ac_cv_lib_w_iswalnum=yes
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 ac_cv_lib_w_iswalnum=no
5370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5371 LIBS=$ac_check_lib_save_LIBS
5373 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5374 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5375 if test $ac_cv_lib_w_iswalnum = yes; then
5376 cat >>confdefs.h <<_ACEOF
5377 #define HAVE_LIBW 1
5378 _ACEOF
5380 LIBS="-lw $LIBS"
5385 done
5388 for ac_func in gethostbyname
5390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5391 echo "$as_me:$LINENO: checking for $ac_func" >&5
5392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5393 if eval "test \"\${$as_ac_var+set}\" = set"; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396 cat >conftest.$ac_ext <<_ACEOF
5397 #line $LINENO "configure"
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403 /* System header to define __stub macros and hopefully few prototypes,
5404 which can conflict with char $ac_func (); below.
5405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 <limits.h> exists even on freestanding compilers. */
5407 #ifdef __STDC__
5408 # include <limits.h>
5409 #else
5410 # include <assert.h>
5411 #endif
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 #ifdef __cplusplus
5414 extern "C"
5416 #endif
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5419 char $ac_func ();
5420 /* The GNU C library defines this for functions which it implements
5421 to always fail with ENOSYS. Some functions are actually named
5422 something starting with __ and the normal name is an alias. */
5423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5424 choke me
5425 #else
5426 char (*f) () = $ac_func;
5427 #endif
5428 #ifdef __cplusplus
5430 #endif
5433 main ()
5435 return f != $ac_func;
5437 return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext conftest$ac_exeext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5442 (eval $ac_link) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -s conftest$ac_exeext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 eval "$as_ac_var=yes"
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 eval "$as_ac_var=no"
5459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5463 if test `eval echo '${'$as_ac_var'}'` = yes; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5466 _ACEOF
5468 else
5470 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5471 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5472 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 ac_check_lib_save_LIBS=$LIBS
5476 LIBS="-lnsl $LIBS"
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5485 /* Override any gcc2 internal prototype to avoid an error. */
5486 #ifdef __cplusplus
5487 extern "C"
5488 #endif
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5491 char gethostbyname ();
5493 main ()
5495 gethostbyname ();
5497 return 0;
5499 _ACEOF
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_cv_lib_nsl_gethostbyname=yes
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 ac_cv_lib_nsl_gethostbyname=no
5519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5520 LIBS=$ac_check_lib_save_LIBS
5522 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5523 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5524 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5525 cat >>confdefs.h <<_ACEOF
5526 #define HAVE_LIBNSL 1
5527 _ACEOF
5529 LIBS="-lnsl $LIBS"
5534 done
5537 for ac_func in connect
5539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5540 echo "$as_me:$LINENO: checking for $ac_func" >&5
5541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5542 if eval "test \"\${$as_ac_var+set}\" = set"; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 cat >conftest.$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 /* System header to define __stub macros and hopefully few prototypes,
5553 which can conflict with char $ac_func (); below.
5554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 <limits.h> exists even on freestanding compilers. */
5556 #ifdef __STDC__
5557 # include <limits.h>
5558 #else
5559 # include <assert.h>
5560 #endif
5561 /* Override any gcc2 internal prototype to avoid an error. */
5562 #ifdef __cplusplus
5563 extern "C"
5565 #endif
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5568 char $ac_func ();
5569 /* The GNU C library defines this for functions which it implements
5570 to always fail with ENOSYS. Some functions are actually named
5571 something starting with __ and the normal name is an alias. */
5572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5573 choke me
5574 #else
5575 char (*f) () = $ac_func;
5576 #endif
5577 #ifdef __cplusplus
5579 #endif
5582 main ()
5584 return f != $ac_func;
5586 return 0;
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -s conftest$ac_exeext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 eval "$as_ac_var=yes"
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 eval "$as_ac_var=no"
5608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5612 if test `eval echo '${'$as_ac_var'}'` = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5615 _ACEOF
5617 else
5619 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5620 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5621 if test "${ac_cv_lib_socket_connect+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 ac_check_lib_save_LIBS=$LIBS
5625 LIBS="-lsocket $LIBS"
5626 cat >conftest.$ac_ext <<_ACEOF
5627 #line $LINENO "configure"
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 /* Override any gcc2 internal prototype to avoid an error. */
5635 #ifdef __cplusplus
5636 extern "C"
5637 #endif
5638 /* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5640 char connect ();
5642 main ()
5644 connect ();
5646 return 0;
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -s conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_lib_socket_connect=yes
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5666 ac_cv_lib_socket_connect=no
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669 LIBS=$ac_check_lib_save_LIBS
5671 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5672 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5673 if test $ac_cv_lib_socket_connect = yes; then
5674 cat >>confdefs.h <<_ACEOF
5675 #define HAVE_LIBSOCKET 1
5676 _ACEOF
5678 LIBS="-lsocket $LIBS"
5683 done
5686 for ac_func in inet_aton
5688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5689 echo "$as_me:$LINENO: checking for $ac_func" >&5
5690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5691 if eval "test \"\${$as_ac_var+set}\" = set"; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 /* System header to define __stub macros and hopefully few prototypes,
5702 which can conflict with char $ac_func (); below.
5703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704 <limits.h> exists even on freestanding compilers. */
5705 #ifdef __STDC__
5706 # include <limits.h>
5707 #else
5708 # include <assert.h>
5709 #endif
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 #ifdef __cplusplus
5712 extern "C"
5714 #endif
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5717 char $ac_func ();
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5722 choke me
5723 #else
5724 char (*f) () = $ac_func;
5725 #endif
5726 #ifdef __cplusplus
5728 #endif
5731 main ()
5733 return f != $ac_func;
5735 return 0;
5737 _ACEOF
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 eval "$as_ac_var=yes"
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 eval "$as_ac_var=no"
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5761 if test `eval echo '${'$as_ac_var'}'` = yes; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5764 _ACEOF
5766 else
5768 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5769 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5770 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 ac_check_lib_save_LIBS=$LIBS
5774 LIBS="-lresolv $LIBS"
5775 cat >conftest.$ac_ext <<_ACEOF
5776 #line $LINENO "configure"
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 #ifdef __cplusplus
5785 extern "C"
5786 #endif
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5789 char inet_aton ();
5791 main ()
5793 inet_aton ();
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5800 (eval $ac_link) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -s conftest$ac_exeext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_cv_lib_resolv_inet_aton=yes
5811 else
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 ac_cv_lib_resolv_inet_aton=no
5817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5818 LIBS=$ac_check_lib_save_LIBS
5820 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5821 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5822 if test $ac_cv_lib_resolv_inet_aton = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define HAVE_LIBRESOLV 1
5825 _ACEOF
5827 LIBS="-lresolv $LIBS"
5832 done
5835 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5836 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5837 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 ac_check_lib_save_LIBS=$LIBS
5841 LIBS="-lxpg4 $LIBS"
5842 cat >conftest.$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5844 /* confdefs.h. */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5850 /* Override any gcc2 internal prototype to avoid an error. */
5851 #ifdef __cplusplus
5852 extern "C"
5853 #endif
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5856 char _xpg4_setrunelocale ();
5858 main ()
5860 _xpg4_setrunelocale ();
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867 (eval $ac_link) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try='test -s conftest$ac_exeext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5888 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5889 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE_LIBXPG4 1
5892 _ACEOF
5894 LIBS="-lxpg4 $LIBS"
5899 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5900 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5901 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 ac_check_lib_save_LIBS=$LIBS
5905 LIBS="-lmmap $LIBS"
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5920 char mmap ();
5922 main ()
5924 mmap ();
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_lib_mmap_mmap=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_lib_mmap_mmap=no
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5951 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5952 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5953 if test $ac_cv_lib_mmap_mmap = yes; then
5954 cat >>confdefs.h <<_ACEOF
5955 #define HAVE_LIBMMAP 1
5956 _ACEOF
5958 LIBS="-lmmap $LIBS"
5963 JPEGLIB=""
5965 echo "$as_me:$LINENO: checking for egrep" >&5
5966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967 if test "${ac_cv_prog_egrep+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971 then ac_cv_prog_egrep='grep -E'
5972 else ac_cv_prog_egrep='egrep'
5975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977 EGREP=$ac_cv_prog_egrep
5980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982 if test "${ac_cv_header_stdc+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 #line $LINENO "configure"
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <stdlib.h>
5993 #include <stdarg.h>
5994 #include <string.h>
5995 #include <float.h>
5998 main ()
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 ac_cv_header_stdc=yes
6018 else
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_header_stdc=no
6024 rm -f conftest.$ac_objext conftest.$ac_ext
6026 if test $ac_cv_header_stdc = yes; then
6027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6028 cat >conftest.$ac_ext <<_ACEOF
6029 #line $LINENO "configure"
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <string.h>
6037 _ACEOF
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 $EGREP "memchr" >/dev/null 2>&1; then
6041 else
6042 ac_cv_header_stdc=no
6044 rm -f conftest*
6048 if test $ac_cv_header_stdc = yes; then
6049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 #line $LINENO "configure"
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <stdlib.h>
6059 _ACEOF
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 $EGREP "free" >/dev/null 2>&1; then
6063 else
6064 ac_cv_header_stdc=no
6066 rm -f conftest*
6070 if test $ac_cv_header_stdc = yes; then
6071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6072 if test "$cross_compiling" = yes; then
6074 else
6075 cat >conftest.$ac_ext <<_ACEOF
6076 #line $LINENO "configure"
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <ctype.h>
6083 #if ((' ' & 0x0FF) == 0x020)
6084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6086 #else
6087 # define ISLOWER(c) \
6088 (('a' <= (c) && (c) <= 'i') \
6089 || ('j' <= (c) && (c) <= 'r') \
6090 || ('s' <= (c) && (c) <= 'z'))
6091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6092 #endif
6094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6096 main ()
6098 int i;
6099 for (i = 0; i < 256; i++)
6100 if (XOR (islower (i), ISLOWER (i))
6101 || toupper (i) != TOUPPER (i))
6102 exit(2);
6103 exit (0);
6105 _ACEOF
6106 rm -f conftest$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108 (eval $ac_link) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6118 else
6119 echo "$as_me: program exited with status $ac_status" >&5
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ( exit $ac_status )
6124 ac_cv_header_stdc=no
6126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6130 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6131 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6132 if test $ac_cv_header_stdc = yes; then
6134 cat >>confdefs.h <<\_ACEOF
6135 #define STDC_HEADERS 1
6136 _ACEOF
6140 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6151 inttypes.h stdint.h unistd.h
6153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 $ac_includes_default
6168 #include <$ac_header>
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 eval "$as_ac_Header=yes"
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 eval "$as_ac_Header=no"
6189 rm -f conftest.$ac_objext conftest.$ac_ext
6191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194 cat >>confdefs.h <<_ACEOF
6195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196 _ACEOF
6200 done
6204 for ac_header in jpeglib.h
6206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208 echo "$as_me:$LINENO: checking for $ac_header" >&5
6209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6215 else
6216 # Is the header compilable?
6217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6227 #include <$ac_header>
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_header_compiler=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_header_compiler=no
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6250 echo "${ECHO_T}$ac_header_compiler" >&6
6252 # Is the header present?
6253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6255 cat >conftest.$ac_ext <<_ACEOF
6256 #line $LINENO "configure"
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <$ac_header>
6263 _ACEOF
6264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } >/dev/null; then
6272 if test -s conftest.err; then
6273 ac_cpp_err=$ac_c_preproc_warn_flag
6274 else
6275 ac_cpp_err=
6277 else
6278 ac_cpp_err=yes
6280 if test -z "$ac_cpp_err"; then
6281 ac_header_preproc=yes
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_header_preproc=no
6288 rm -f conftest.err conftest.$ac_ext
6289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6290 echo "${ECHO_T}$ac_header_preproc" >&6
6292 # So? What about this header?
6293 case $ac_header_compiler:$ac_header_preproc in
6294 yes:no )
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6300 cat <<\_ASBOX
6301 ## ------------------------------------ ##
6302 ## Report this to bug-autoconf@gnu.org. ##
6303 ## ------------------------------------ ##
6304 _ASBOX
6306 sed "s/^/$as_me: WARNING: /" >&2
6308 no:yes )
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6316 cat <<\_ASBOX
6317 ## ------------------------------------ ##
6318 ## Report this to bug-autoconf@gnu.org. ##
6319 ## ------------------------------------ ##
6320 _ASBOX
6322 sed "s/^/$as_me: WARNING: /" >&2
6324 esac
6325 echo "$as_me:$LINENO: checking for $ac_header" >&5
6326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 eval "$as_ac_Header=$ac_header_preproc"
6332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6337 cat >>confdefs.h <<_ACEOF
6338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6339 _ACEOF
6340 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6341 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6342 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 ac_check_lib_save_LIBS=$LIBS
6346 LIBS="-ljpeg $LIBS"
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 #ifdef __cplusplus
6357 extern "C"
6358 #endif
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6361 char jpeg_start_decompress ();
6363 main ()
6365 jpeg_start_decompress ();
6367 return 0;
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6383 else
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 ac_cv_lib_jpeg_jpeg_start_decompress=no
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6392 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6393 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6394 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6396 cat >>confdefs.h <<\_ACEOF
6397 #define HAVE_LIBJPEG 1
6398 _ACEOF
6400 JPEGLIB="-ljpeg"
6407 done
6410 GIFLIB=""
6413 for ac_header in gif_lib.h
6415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6424 else
6425 # Is the header compilable?
6426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 #line $LINENO "configure"
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 #include <$ac_header>
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_header_compiler=no
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <$ac_header>
6472 _ACEOF
6473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } >/dev/null; then
6481 if test -s conftest.err; then
6482 ac_cpp_err=$ac_c_preproc_warn_flag
6483 else
6484 ac_cpp_err=
6486 else
6487 ac_cpp_err=yes
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6491 else
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_header_preproc=no
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc in
6503 yes:no )
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6509 cat <<\_ASBOX
6510 ## ------------------------------------ ##
6511 ## Report this to bug-autoconf@gnu.org. ##
6512 ## ------------------------------------ ##
6513 _ASBOX
6515 sed "s/^/$as_me: WARNING: /" >&2
6517 no:yes )
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525 cat <<\_ASBOX
6526 ## ------------------------------------ ##
6527 ## Report this to bug-autoconf@gnu.org. ##
6528 ## ------------------------------------ ##
6529 _ASBOX
6531 sed "s/^/$as_me: WARNING: /" >&2
6533 esac
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 eval "$as_ac_Header=$ac_header_preproc"
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 _ACEOF
6549 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6550 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6551 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 ac_check_lib_save_LIBS=$LIBS
6555 LIBS="-lungif $LIBS"
6556 cat >conftest.$ac_ext <<_ACEOF
6557 #line $LINENO "configure"
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6564 /* Override any gcc2 internal prototype to avoid an error. */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char DGifOpen ();
6572 main ()
6574 DGifOpen ();
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_lib_ungif_DGifOpen=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 ac_cv_lib_ungif_DGifOpen=no
6598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 LIBS=$ac_check_lib_save_LIBS
6601 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6602 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6603 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_LIBGIF 1
6607 _ACEOF
6609 GIFLIB="-lungif"
6610 else
6611 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6612 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6613 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 ac_check_lib_save_LIBS=$LIBS
6617 LIBS="-lgif $LIBS"
6618 cat >conftest.$ac_ext <<_ACEOF
6619 #line $LINENO "configure"
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632 char DGifOpen ();
6634 main ()
6636 DGifOpen ();
6638 return 0;
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -s conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 (eval $ac_try) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_lib_gif_DGifOpen=yes
6654 else
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 ac_cv_lib_gif_DGifOpen=no
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6663 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6664 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6665 if test $ac_cv_lib_gif_DGifOpen = yes; then
6666 cat >>confdefs.h <<\_ACEOF
6667 #define HAVE_LIBGIF 1
6668 _ACEOF
6670 GIFLIB="-lgif"
6677 done
6682 XFILES=""
6684 OPENGLFILES=""
6686 GLU32FILES=""
6688 OPENGL_LIBS=""
6689 if test "$have_x" = "yes"
6690 then
6691 XLIB="-lXext -lX11"
6692 ac_save_CPPFLAGS="$CPPFLAGS"
6693 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6696 for ac_header in X11/Xlib.h
6698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700 echo "$as_me:$LINENO: checking for $ac_header" >&5
6701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707 else
6708 # Is the header compilable?
6709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line $LINENO "configure"
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 $ac_includes_default
6719 #include <$ac_header>
6720 _ACEOF
6721 rm -f conftest.$ac_objext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6723 (eval $ac_compile) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -s conftest.$ac_objext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_header_compiler=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_header_compiler=no
6740 rm -f conftest.$ac_objext conftest.$ac_ext
6741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6742 echo "${ECHO_T}$ac_header_compiler" >&6
6744 # Is the header present?
6745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #include <$ac_header>
6755 _ACEOF
6756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } >/dev/null; then
6764 if test -s conftest.err; then
6765 ac_cpp_err=$ac_c_preproc_warn_flag
6766 else
6767 ac_cpp_err=
6769 else
6770 ac_cpp_err=yes
6772 if test -z "$ac_cpp_err"; then
6773 ac_header_preproc=yes
6774 else
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_header_preproc=no
6780 rm -f conftest.err conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6782 echo "${ECHO_T}$ac_header_preproc" >&6
6784 # So? What about this header?
6785 case $ac_header_compiler:$ac_header_preproc in
6786 yes:no )
6787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6792 cat <<\_ASBOX
6793 ## ------------------------------------ ##
6794 ## Report this to bug-autoconf@gnu.org. ##
6795 ## ------------------------------------ ##
6796 _ASBOX
6798 sed "s/^/$as_me: WARNING: /" >&2
6800 no:yes )
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6808 cat <<\_ASBOX
6809 ## ------------------------------------ ##
6810 ## Report this to bug-autoconf@gnu.org. ##
6811 ## ------------------------------------ ##
6812 _ASBOX
6814 sed "s/^/$as_me: WARNING: /" >&2
6816 esac
6817 echo "$as_me:$LINENO: checking for $ac_header" >&5
6818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 eval "$as_ac_Header=$ac_header_preproc"
6824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6831 _ACEOF
6834 for ac_header in X11/XKBlib.h
6836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 echo "$as_me:$LINENO: checking for $ac_header" >&5
6838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <X11/Xlib.h>
6851 #include <$ac_header>
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 eval "$as_ac_Header=yes"
6866 else
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 eval "$as_ac_Header=no"
6872 rm -f conftest.$ac_objext conftest.$ac_ext
6874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877 cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6879 _ACEOF
6880 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6881 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6882 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 ac_check_lib_save_LIBS=$LIBS
6886 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6895 /* Override any gcc2 internal prototype to avoid an error. */
6896 #ifdef __cplusplus
6897 extern "C"
6898 #endif
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6901 char XkbQueryExtension ();
6903 main ()
6905 XkbQueryExtension ();
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_lib_X11_XkbQueryExtension=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_lib_X11_XkbQueryExtension=no
6929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6932 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6933 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6934 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6936 cat >>confdefs.h <<\_ACEOF
6937 #define HAVE_XKB 1
6938 _ACEOF
6943 else
6944 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6945 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6948 done
6952 for ac_header in X11/extensions/XShm.h
6954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6955 echo "$as_me:$LINENO: checking for $ac_header" >&5
6956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 #line $LINENO "configure"
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 #include <X11/Xlib.h>
6969 #include <$ac_header>
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -s conftest.$ac_objext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 eval "$as_ac_Header=yes"
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 eval "$as_ac_Header=no"
6990 rm -f conftest.$ac_objext conftest.$ac_ext
6992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995 cat >>confdefs.h <<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6997 _ACEOF
6998 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6999 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7000 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 ac_check_lib_save_LIBS=$LIBS
7004 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7005 cat >conftest.$ac_ext <<_ACEOF
7006 #line $LINENO "configure"
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 #ifdef __cplusplus
7015 extern "C"
7016 #endif
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7019 char XShmQueryExtension ();
7021 main ()
7023 XShmQueryExtension ();
7025 return 0;
7027 _ACEOF
7028 rm -f conftest.$ac_objext conftest$ac_exeext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030 (eval $ac_link) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_cv_lib_Xext_XShmQueryExtension=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_lib_Xext_XShmQueryExtension=no
7047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7050 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7051 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7052 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7054 cat >>confdefs.h <<\_ACEOF
7055 #define HAVE_LIBXXSHM 1
7056 _ACEOF
7061 else
7062 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
7063 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
7066 done
7070 for ac_header in X11/Xutil.h
7072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7073 echo "$as_me:$LINENO: checking for $ac_header" >&5
7074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 cat >conftest.$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 #include <X11/Xlib.h>
7087 #include <$ac_header>
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -s conftest.$ac_objext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 eval "$as_ac_Header=yes"
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7106 eval "$as_ac_Header=no"
7108 rm -f conftest.$ac_objext conftest.$ac_ext
7110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7113 cat >>confdefs.h <<_ACEOF
7114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 _ACEOF
7119 done
7123 for ac_header in X11/extensions/shape.h
7125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7126 echo "$as_me:$LINENO: checking for $ac_header" >&5
7127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 cat >conftest.$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <X11/Xlib.h>
7139 #ifdef HAVE_X11_XUTIL_H
7140 # include <X11/Xutil.h>
7141 #endif
7143 #include <$ac_header>
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -s conftest.$ac_objext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 eval "$as_ac_Header=yes"
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 eval "$as_ac_Header=no"
7164 rm -f conftest.$ac_objext conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7169 cat >>confdefs.h <<_ACEOF
7170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171 _ACEOF
7172 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7173 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7174 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177 ac_check_lib_save_LIBS=$LIBS
7178 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7179 cat >conftest.$ac_ext <<_ACEOF
7180 #line $LINENO "configure"
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 #ifdef __cplusplus
7189 extern "C"
7190 #endif
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7193 char XShapeQueryExtension ();
7195 main ()
7197 XShapeQueryExtension ();
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204 (eval $ac_link) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_cv_lib_Xext_XShapeQueryExtension=yes
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_cv_lib_Xext_XShapeQueryExtension=no
7221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7222 LIBS=$ac_check_lib_save_LIBS
7224 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7225 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7226 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_LIBXSHAPE 1
7230 _ACEOF
7235 else
7236 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
7237 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
7240 done
7244 for ac_header in X11/extensions/xf86dga.h
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 echo "$as_me:$LINENO: checking for $ac_header" >&5
7248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 #include <X11/Xlib.h>
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest.$ac_objext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 eval "$as_ac_Header=yes"
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 eval "$as_ac_Header=no"
7282 rm -f conftest.$ac_objext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7287 cat >>confdefs.h <<_ACEOF
7288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 _ACEOF
7290 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7291 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7292 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 ac_check_lib_save_LIBS=$LIBS
7296 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7297 $LIBS"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 #ifdef __cplusplus
7308 extern "C"
7309 #endif
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7312 char XDGAQueryExtension ();
7314 main ()
7316 XDGAQueryExtension ();
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323 (eval $ac_link) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -s conftest$ac_exeext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 LIBS=$ac_check_lib_save_LIBS
7343 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7344 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7345 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_LIBXXF86DGA2 1
7349 _ACEOF
7351 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7353 else
7354 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7355 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7356 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 ac_check_lib_save_LIBS=$LIBS
7360 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7361 $LIBS"
7362 cat >conftest.$ac_ext <<_ACEOF
7363 #line $LINENO "configure"
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7370 /* Override any gcc2 internal prototype to avoid an error. */
7371 #ifdef __cplusplus
7372 extern "C"
7373 #endif
7374 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */
7376 char XF86DGAQueryExtension ();
7378 main ()
7380 XF86DGAQueryExtension ();
7382 return 0;
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7387 (eval $ac_link) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -s conftest$ac_exeext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7405 LIBS=$ac_check_lib_save_LIBS
7407 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7408 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7409 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_LIBXXF86DGA 1
7413 _ACEOF
7415 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7423 else
7424 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7425 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7428 done
7432 for ac_header in X11/extensions/xf86vmode.h
7434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7435 echo "$as_me:$LINENO: checking for $ac_header" >&5
7436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 cat >conftest.$ac_ext <<_ACEOF
7441 #line $LINENO "configure"
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 #include <X11/Xlib.h>
7449 #include <$ac_header>
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 eval "$as_ac_Header=yes"
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 eval "$as_ac_Header=no"
7470 rm -f conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7475 cat >>confdefs.h <<_ACEOF
7476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7477 _ACEOF
7478 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7479 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7480 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 ac_check_lib_save_LIBS=$LIBS
7484 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7485 $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 #line $LINENO "configure"
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500 char XF86VidModeQueryExtension ();
7502 main ()
7504 XF86VidModeQueryExtension ();
7506 return 0;
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7529 LIBS=$ac_check_lib_save_LIBS
7531 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7532 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7533 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7535 cat >>confdefs.h <<\_ACEOF
7536 #define HAVE_LIBXXF86VM 1
7537 _ACEOF
7539 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7544 else
7545 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7546 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7549 done
7553 for ac_header in X11/extensions/Xrandr.h
7555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7556 echo "$as_me:$LINENO: checking for $ac_header" >&5
7557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 cat >conftest.$ac_ext <<_ACEOF
7562 #line $LINENO "configure"
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <X11/Xlib.h>
7570 #include <$ac_header>
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -s conftest.$ac_objext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 eval "$as_ac_Header=yes"
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 eval "$as_ac_Header=no"
7591 rm -f conftest.$ac_objext conftest.$ac_ext
7593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7596 cat >>confdefs.h <<_ACEOF
7597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7598 _ACEOF
7599 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7600 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7601 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 ac_check_lib_save_LIBS=$LIBS
7605 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7606 $LIBS"
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 /* Override any gcc2 internal prototype to avoid an error. */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621 char XRRSetScreenConfigAndRate ();
7623 main ()
7625 XRRSetScreenConfigAndRate ();
7627 return 0;
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7650 LIBS=$ac_check_lib_save_LIBS
7652 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7653 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7654 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LIBXRANDR 1
7658 _ACEOF
7660 X_PRE_LIBS="$X_PRE_LIBS -lXrandr"
7665 else
7666 { echo "$as_me:$LINENO: WARNING: Xrandr extension not found, Wine will be built without it" >&5
7667 echo "$as_me: WARNING: Xrandr extension not found, Wine will be built without it" >&2;}
7670 done
7674 for ac_header in X11/extensions/Xvlib.h
7676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7677 echo "$as_me:$LINENO: checking for $ac_header" >&5
7678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include <X11/Xlib.h>
7691 #include <$ac_header>
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -s conftest.$ac_objext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 eval "$as_ac_Header=yes"
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 eval "$as_ac_Header=no"
7712 rm -f conftest.$ac_objext conftest.$ac_ext
7714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7717 cat >>confdefs.h <<_ACEOF
7718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7719 _ACEOF
7720 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7721 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7722 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 ac_check_lib_save_LIBS=$LIBS
7726 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7727 $LIBS"
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742 char XvShmCreateImage ();
7744 main ()
7746 XvShmCreateImage ();
7748 return 0;
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_lib_Xv_XvShmCreateImage=yes
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_cv_lib_Xv_XvShmCreateImage=no
7770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7773 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7774 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7775 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7777 cat >>confdefs.h <<\_ACEOF
7778 #define HAVE_XVIDEO 1
7779 _ACEOF
7781 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7786 else
7787 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7788 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7791 done
7795 for ac_header in X11/extensions/Xrender.h
7797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7798 echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 cat >conftest.$ac_ext <<_ACEOF
7804 #line $LINENO "configure"
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 #include <X11/Xlib.h>
7812 #include <$ac_header>
7813 _ACEOF
7814 rm -f conftest.$ac_objext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816 (eval $ac_compile) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 eval "$as_ac_Header=yes"
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 eval "$as_ac_Header=no"
7833 rm -f conftest.$ac_objext conftest.$ac_ext
7835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7840 _ACEOF
7844 done
7850 done
7852 if test "x$with_opengl" != "xno"
7853 then
7854 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7855 then
7856 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7857 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7858 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7859 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7860 { (exit 1); exit 1; }; }
7865 for ac_header in GL/gl.h GL/glx.h
7867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7869 echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 else
7877 # Is the header compilable?
7878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line $LINENO "configure"
7882 /* confdefs.h. */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 $ac_includes_default
7888 #include <$ac_header>
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_header_compiler=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_header_compiler=no
7909 rm -f conftest.$ac_objext conftest.$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 echo "${ECHO_T}$ac_header_compiler" >&6
7913 # Is the header present?
7914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <$ac_header>
7924 _ACEOF
7925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } >/dev/null; then
7933 if test -s conftest.err; then
7934 ac_cpp_err=$ac_c_preproc_warn_flag
7935 else
7936 ac_cpp_err=
7938 else
7939 ac_cpp_err=yes
7941 if test -z "$ac_cpp_err"; then
7942 ac_header_preproc=yes
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 ac_header_preproc=no
7949 rm -f conftest.err conftest.$ac_ext
7950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7951 echo "${ECHO_T}$ac_header_preproc" >&6
7953 # So? What about this header?
7954 case $ac_header_compiler:$ac_header_preproc in
7955 yes:no )
7956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7961 cat <<\_ASBOX
7962 ## ------------------------------------ ##
7963 ## Report this to bug-autoconf@gnu.org. ##
7964 ## ------------------------------------ ##
7965 _ASBOX
7967 sed "s/^/$as_me: WARNING: /" >&2
7969 no:yes )
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7977 cat <<\_ASBOX
7978 ## ------------------------------------ ##
7979 ## Report this to bug-autoconf@gnu.org. ##
7980 ## ------------------------------------ ##
7981 _ASBOX
7983 sed "s/^/$as_me: WARNING: /" >&2
7985 esac
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 eval "$as_ac_Header=$ac_header_preproc"
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8004 done
8006 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8007 then
8009 for ac_header in GL/glext.h
8011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 echo "$as_me:$LINENO: checking for $ac_header" >&5
8013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 #include <GL/glx.h>
8026 #include <$ac_header>
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 eval "$as_ac_Header=yes"
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 eval "$as_ac_Header=no"
8047 rm -f conftest.$ac_objext conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8052 cat >>confdefs.h <<_ACEOF
8053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054 _ACEOF
8058 done
8060 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8061 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8062 if test "${wine_cv_opengl_version_OK+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 #include <GL/gl.h>
8074 main ()
8076 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8078 return 0;
8080 _ACEOF
8081 rm -f conftest.$ac_objext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8083 (eval $ac_compile) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 wine_cv_opengl_version_OK="yes"
8094 else
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 wine_cv_opengl_version_OK="no"
8101 rm -f conftest.$ac_objext conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8105 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8107 if test "$wine_cv_opengl_version_OK" = "yes"
8108 then
8109 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8110 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8111 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114 ac_check_lib_save_LIBS=$LIBS
8115 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8116 cat >conftest.$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 #ifdef __cplusplus
8126 extern "C"
8127 #endif
8128 /* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8130 char glXCreateContext ();
8132 main ()
8134 glXCreateContext ();
8136 return 0;
8138 _ACEOF
8139 rm -f conftest.$ac_objext conftest$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -s conftest$ac_exeext'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 (eval $ac_try) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 ac_cv_lib_GL_glXCreateContext=yes
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_cv_lib_GL_glXCreateContext=no
8158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8159 LIBS=$ac_check_lib_save_LIBS
8161 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8162 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8163 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8164 OPENGL_LIBS="-lGL"
8169 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8170 then
8171 OPENGLFILES='$(OPENGLFILES)'
8173 cat >>confdefs.h <<\_ACEOF
8174 #define HAVE_OPENGL 1
8175 _ACEOF
8178 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8179 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8180 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183 ac_check_lib_save_LIBS=$LIBS
8184 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8193 /* Override any gcc2 internal prototype to avoid an error. */
8194 #ifdef __cplusplus
8195 extern "C"
8196 #endif
8197 /* We use char because int might match the return type of a gcc2
8198 builtin and then its argument prototype would still apply. */
8199 char glXGetProcAddressARB ();
8201 main ()
8203 glXGetProcAddressARB ();
8205 return 0;
8207 _ACEOF
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_lib_GL_glXGetProcAddressARB=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_cv_lib_GL_glXGetProcAddressARB=no
8227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8230 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8231 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8232 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8234 cat >>confdefs.h <<\_ACEOF
8235 #define HAVE_GLX_GETPROCADDRESS 1
8236 _ACEOF
8241 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8242 then
8243 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8244 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8245 if test "${wine_cv_extension_prototypes+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 cat >conftest.$ac_ext <<_ACEOF
8249 #line $LINENO "configure"
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 #include <GL/gl.h>
8256 #ifdef HAVE_GL_GLEXT_H
8257 # include <GL/glext.h>
8258 #endif
8261 main ()
8263 PFNGLCOLORTABLEEXTPROC test_proc;
8265 return 0;
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 wine_cv_extension_prototypes="yes"
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 wine_cv_extension_prototypes="no"
8288 rm -f conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8292 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8293 if test "$wine_cv_extension_prototypes" = "yes"
8294 then
8296 cat >>confdefs.h <<\_ACEOF
8297 #define HAVE_GLEXT_PROTOTYPES 1
8298 _ACEOF
8304 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8305 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8306 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 ac_check_lib_save_LIBS=$LIBS
8310 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8311 $LIBS"
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line $LINENO "configure"
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8326 char gluLookAt ();
8328 main ()
8330 gluLookAt ();
8332 return 0;
8334 _ACEOF
8335 rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8337 (eval $ac_link) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 ac_cv_lib_GLU_gluLookAt=yes
8348 else
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_lib_GLU_gluLookAt=no
8354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8357 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8358 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8359 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8360 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8361 GLU32FILES='$(GLU32FILES)'
8369 NASLIBS=""
8372 for ac_header in audio/audiolib.h
8374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo "$as_me:$LINENO: checking for $ac_header" >&5
8377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8383 else
8384 # Is the header compilable?
8385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 #include <$ac_header>
8396 _ACEOF
8397 rm -f conftest.$ac_objext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -s conftest.$ac_objext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_header_compiler=yes
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 ac_header_compiler=no
8416 rm -f conftest.$ac_objext conftest.$ac_ext
8417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8418 echo "${ECHO_T}$ac_header_compiler" >&6
8420 # Is the header present?
8421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 #include <$ac_header>
8431 _ACEOF
8432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } >/dev/null; then
8440 if test -s conftest.err; then
8441 ac_cpp_err=$ac_c_preproc_warn_flag
8442 else
8443 ac_cpp_err=
8445 else
8446 ac_cpp_err=yes
8448 if test -z "$ac_cpp_err"; then
8449 ac_header_preproc=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_header_preproc=no
8456 rm -f conftest.err conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8458 echo "${ECHO_T}$ac_header_preproc" >&6
8460 # So? What about this header?
8461 case $ac_header_compiler:$ac_header_preproc in
8462 yes:no )
8463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8468 cat <<\_ASBOX
8469 ## ------------------------------------ ##
8470 ## Report this to bug-autoconf@gnu.org. ##
8471 ## ------------------------------------ ##
8472 _ASBOX
8474 sed "s/^/$as_me: WARNING: /" >&2
8476 no:yes )
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484 cat <<\_ASBOX
8485 ## ------------------------------------ ##
8486 ## Report this to bug-autoconf@gnu.org. ##
8487 ## ------------------------------------ ##
8488 _ASBOX
8490 sed "s/^/$as_me: WARNING: /" >&2
8492 esac
8493 echo "$as_me:$LINENO: checking for $ac_header" >&5
8494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498 eval "$as_ac_Header=$ac_header_preproc"
8500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8505 cat >>confdefs.h <<_ACEOF
8506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8507 _ACEOF
8509 for ac_header in audio/soundlib.h
8511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8512 echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 cat >conftest.$ac_ext <<_ACEOF
8518 #line $LINENO "configure"
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <audio/audiolib.h>
8526 #include <$ac_header>
8527 _ACEOF
8528 rm -f conftest.$ac_objext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -s conftest.$ac_objext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 eval "$as_ac_Header=yes"
8541 else
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8545 eval "$as_ac_Header=no"
8547 rm -f conftest.$ac_objext conftest.$ac_ext
8549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554 _ACEOF
8558 done
8560 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8561 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8562 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 ac_check_lib_save_LIBS=$LIBS
8566 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8567 cat >conftest.$ac_ext <<_ACEOF
8568 #line $LINENO "configure"
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8575 /* Override any gcc2 internal prototype to avoid an error. */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8581 char AuCreateFlow ();
8583 main ()
8585 AuCreateFlow ();
8587 return 0;
8589 _ACEOF
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592 (eval $ac_link) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -s conftest$ac_exeext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 ac_cv_lib_audio_AuCreateFlow=yes
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 ac_cv_lib_audio_AuCreateFlow=no
8609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8613 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8614 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8616 cat >>confdefs.h <<\_ACEOF
8617 #define HAVE_NAS 1
8618 _ACEOF
8620 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8625 done
8628 CPPFLAGS="$ac_save_CPPFLAGS"
8629 XFILES='$(XFILES)'
8630 else
8631 XLIB=""
8632 X_CFLAGS=""
8633 X_LIBS=""
8636 CURSESLIBS=""
8637 if test "x$with_curses" != "xno"
8638 then
8640 for ac_header in ncurses.h
8642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8644 echo "$as_me:$LINENO: checking for $ac_header" >&5
8645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8651 else
8652 # Is the header compilable?
8653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line $LINENO "configure"
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8663 #include <$ac_header>
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_header_compiler=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_header_compiler=no
8684 rm -f conftest.$ac_objext conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8686 echo "${ECHO_T}$ac_header_compiler" >&6
8688 # Is the header present?
8689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 #include <$ac_header>
8699 _ACEOF
8700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } >/dev/null; then
8708 if test -s conftest.err; then
8709 ac_cpp_err=$ac_c_preproc_warn_flag
8710 else
8711 ac_cpp_err=
8713 else
8714 ac_cpp_err=yes
8716 if test -z "$ac_cpp_err"; then
8717 ac_header_preproc=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_header_preproc=no
8724 rm -f conftest.err conftest.$ac_ext
8725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8726 echo "${ECHO_T}$ac_header_preproc" >&6
8728 # So? What about this header?
8729 case $ac_header_compiler:$ac_header_preproc in
8730 yes:no )
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8736 cat <<\_ASBOX
8737 ## ------------------------------------ ##
8738 ## Report this to bug-autoconf@gnu.org. ##
8739 ## ------------------------------------ ##
8740 _ASBOX
8742 sed "s/^/$as_me: WARNING: /" >&2
8744 no:yes )
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8752 cat <<\_ASBOX
8753 ## ------------------------------------ ##
8754 ## Report this to bug-autoconf@gnu.org. ##
8755 ## ------------------------------------ ##
8756 _ASBOX
8758 sed "s/^/$as_me: WARNING: /" >&2
8760 esac
8761 echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 eval "$as_ac_Header=$ac_header_preproc"
8768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 _ACEOF
8776 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8777 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8778 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 ac_check_lib_save_LIBS=$LIBS
8782 LIBS="-lncurses $LIBS"
8783 cat >conftest.$ac_ext <<_ACEOF
8784 #line $LINENO "configure"
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8791 /* Override any gcc2 internal prototype to avoid an error. */
8792 #ifdef __cplusplus
8793 extern "C"
8794 #endif
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8797 char waddch ();
8799 main ()
8801 waddch ();
8803 return 0;
8805 _ACEOF
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_lib_ncurses_waddch=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_cv_lib_ncurses_waddch=no
8825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8828 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8829 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8830 if test $ac_cv_lib_ncurses_waddch = yes; then
8832 cat >>confdefs.h <<\_ACEOF
8833 #define HAVE_LIBNCURSES 1
8834 _ACEOF
8836 CURSESLIBS="-lncurses"
8837 else
8839 for ac_header in curses.h
8841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8843 echo "$as_me:$LINENO: checking for $ac_header" >&5
8844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8850 else
8851 # Is the header compilable?
8852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line $LINENO "configure"
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861 $ac_includes_default
8862 #include <$ac_header>
8863 _ACEOF
8864 rm -f conftest.$ac_objext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866 (eval $ac_compile) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -s conftest.$ac_objext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_header_compiler=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_header_compiler=no
8883 rm -f conftest.$ac_objext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8885 echo "${ECHO_T}$ac_header_compiler" >&6
8887 # Is the header present?
8888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8891 #line $LINENO "configure"
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 #include <$ac_header>
8898 _ACEOF
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev/null; then
8907 if test -s conftest.err; then
8908 ac_cpp_err=$ac_c_preproc_warn_flag
8909 else
8910 ac_cpp_err=
8912 else
8913 ac_cpp_err=yes
8915 if test -z "$ac_cpp_err"; then
8916 ac_header_preproc=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_header_preproc=no
8923 rm -f conftest.err conftest.$ac_ext
8924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8925 echo "${ECHO_T}$ac_header_preproc" >&6
8927 # So? What about this header?
8928 case $ac_header_compiler:$ac_header_preproc in
8929 yes:no )
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8935 cat <<\_ASBOX
8936 ## ------------------------------------ ##
8937 ## Report this to bug-autoconf@gnu.org. ##
8938 ## ------------------------------------ ##
8939 _ASBOX
8941 sed "s/^/$as_me: WARNING: /" >&2
8943 no:yes )
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8951 cat <<\_ASBOX
8952 ## ------------------------------------ ##
8953 ## Report this to bug-autoconf@gnu.org. ##
8954 ## ------------------------------------ ##
8955 _ASBOX
8957 sed "s/^/$as_me: WARNING: /" >&2
8959 esac
8960 echo "$as_me:$LINENO: checking for $ac_header" >&5
8961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 eval "$as_ac_Header=$ac_header_preproc"
8967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8972 cat >>confdefs.h <<_ACEOF
8973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8974 _ACEOF
8975 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8976 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8977 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980 ac_check_lib_save_LIBS=$LIBS
8981 LIBS="-lcurses $LIBS"
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8990 /* Override any gcc2 internal prototype to avoid an error. */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
8996 char waddch ();
8998 main ()
9000 waddch ();
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_lib_curses_waddch=yes
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_cv_lib_curses_waddch=no
9024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9025 LIBS=$ac_check_lib_save_LIBS
9027 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9028 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9029 if test $ac_cv_lib_curses_waddch = yes; then
9031 cat >>confdefs.h <<\_ACEOF
9032 #define HAVE_LIBCURSES 1
9033 _ACEOF
9035 CURSESLIBS="-lcurses"
9040 done
9046 done
9048 saved_libs="$LIBS"
9049 LIBS="$CURSESLIBS $LIBS"
9052 for ac_func in getbkgd resizeterm
9054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9055 echo "$as_me:$LINENO: checking for $ac_func" >&5
9056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9057 if eval "test \"\${$as_ac_var+set}\" = set"; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* System header to define __stub macros and hopefully few prototypes,
9068 which can conflict with char $ac_func (); below.
9069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9070 <limits.h> exists even on freestanding compilers. */
9071 #ifdef __STDC__
9072 # include <limits.h>
9073 #else
9074 # include <assert.h>
9075 #endif
9076 /* Override any gcc2 internal prototype to avoid an error. */
9077 #ifdef __cplusplus
9078 extern "C"
9080 #endif
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9083 char $ac_func ();
9084 /* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 choke me
9089 #else
9090 char (*f) () = $ac_func;
9091 #endif
9092 #ifdef __cplusplus
9094 #endif
9097 main ()
9099 return f != $ac_func;
9101 return 0;
9103 _ACEOF
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 eval "$as_ac_var=yes"
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 eval "$as_ac_var=no"
9123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9127 if test `eval echo '${'$as_ac_var'}'` = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 _ACEOF
9133 done
9135 LIBS="$saved_libs"
9139 # Extract the first word of "sane-config", so it can be a program name with args.
9140 set dummy sane-config; ac_word=$2
9141 echo "$as_me:$LINENO: checking for $ac_word" >&5
9142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9143 if test "${ac_cv_prog_sane_devel+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 if test -n "$sane_devel"; then
9147 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9148 else
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9156 ac_cv_prog_sane_devel="sane-config"
9157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9163 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9166 sane_devel=$ac_cv_prog_sane_devel
9167 if test -n "$sane_devel"; then
9168 echo "$as_me:$LINENO: result: $sane_devel" >&5
9169 echo "${ECHO_T}$sane_devel" >&6
9170 else
9171 echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9175 if test "$sane_devel" = "no"
9176 then
9177 SANELIBS=""
9178 SANEINCL=""
9179 else
9180 SANELIBS="`$sane_devel --libs`"
9181 SANEINCL="`$sane_devel --cflags`"
9182 ac_save_CPPFLAGS="$CPPFLAGS"
9183 ac_save_LIBS="$LIBS"
9184 CPPFLAGS="$CPPFLAGS $SANEINCL"
9185 LIBS="$LIBS $SANELIBS"
9186 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9187 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9188 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9189 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9193 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9194 else
9195 # Is the header compilable?
9196 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9197 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9199 #line $LINENO "configure"
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 #include <sane/sane.h>
9207 _ACEOF
9208 rm -f conftest.$ac_objext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210 (eval $ac_compile) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_header_compiler=yes
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_header_compiler=no
9227 rm -f conftest.$ac_objext conftest.$ac_ext
9228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229 echo "${ECHO_T}$ac_header_compiler" >&6
9231 # Is the header present?
9232 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9233 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 #include <sane/sane.h>
9242 _ACEOF
9243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } >/dev/null; then
9251 if test -s conftest.err; then
9252 ac_cpp_err=$ac_c_preproc_warn_flag
9253 else
9254 ac_cpp_err=
9256 else
9257 ac_cpp_err=yes
9259 if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_preproc=no
9267 rm -f conftest.err conftest.$ac_ext
9268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9269 echo "${ECHO_T}$ac_header_preproc" >&6
9271 # So? What about this header?
9272 case $ac_header_compiler:$ac_header_preproc in
9273 yes:no )
9274 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9275 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9279 cat <<\_ASBOX
9280 ## ------------------------------------ ##
9281 ## Report this to bug-autoconf@gnu.org. ##
9282 ## ------------------------------------ ##
9283 _ASBOX
9285 sed "s/^/$as_me: WARNING: /" >&2
9287 no:yes )
9288 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9289 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9291 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9293 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9295 cat <<\_ASBOX
9296 ## ------------------------------------ ##
9297 ## Report this to bug-autoconf@gnu.org. ##
9298 ## ------------------------------------ ##
9299 _ASBOX
9301 sed "s/^/$as_me: WARNING: /" >&2
9303 esac
9304 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9305 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9306 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 ac_cv_header_sane_sane_h=$ac_header_preproc
9311 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9312 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9315 if test $ac_cv_header_sane_sane_h = yes; then
9316 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9317 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9318 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 ac_check_lib_save_LIBS=$LIBS
9322 LIBS="-lsane $LIBS"
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9331 /* Override any gcc2 internal prototype to avoid an error. */
9332 #ifdef __cplusplus
9333 extern "C"
9334 #endif
9335 /* We use char because int might match the return type of a gcc2
9336 builtin and then its argument prototype would still apply. */
9337 char sane_open ();
9339 main ()
9341 sane_open ();
9343 return 0;
9345 _ACEOF
9346 rm -f conftest.$ac_objext conftest$ac_exeext
9347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9348 (eval $ac_link) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 ac_cv_lib_sane_sane_open=yes
9359 else
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9363 ac_cv_lib_sane_sane_open=no
9365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9368 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9369 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9370 if test $ac_cv_lib_sane_sane_open = yes; then
9372 cat >>confdefs.h <<\_ACEOF
9373 #define HAVE_SANE 1
9374 _ACEOF
9376 else
9377 SANELIBS=""
9378 SANEINCL=""
9381 else
9382 SANELIBS=""
9383 SANEINCL=""
9387 LIBS="$ac_save_LIBS"
9388 CPPFLAGS="$ac_save_CPPFLAGS"
9394 for ac_header in unicode/ubidi.h
9396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9398 echo "$as_me:$LINENO: checking for $ac_header" >&5
9399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9405 else
9406 # Is the header compilable?
9407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9411 /* confdefs.h. */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 $ac_includes_default
9417 #include <$ac_header>
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -s conftest.$ac_objext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9431 ac_header_compiler=yes
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_header_compiler=no
9438 rm -f conftest.$ac_objext conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9440 echo "${ECHO_T}$ac_header_compiler" >&6
9442 # Is the header present?
9443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9446 #line $LINENO "configure"
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 #include <$ac_header>
9453 _ACEOF
9454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } >/dev/null; then
9462 if test -s conftest.err; then
9463 ac_cpp_err=$ac_c_preproc_warn_flag
9464 else
9465 ac_cpp_err=
9467 else
9468 ac_cpp_err=yes
9470 if test -z "$ac_cpp_err"; then
9471 ac_header_preproc=yes
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_header_preproc=no
9478 rm -f conftest.err conftest.$ac_ext
9479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9480 echo "${ECHO_T}$ac_header_preproc" >&6
9482 # So? What about this header?
9483 case $ac_header_compiler:$ac_header_preproc in
9484 yes:no )
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9490 cat <<\_ASBOX
9491 ## ------------------------------------ ##
9492 ## Report this to bug-autoconf@gnu.org. ##
9493 ## ------------------------------------ ##
9494 _ASBOX
9496 sed "s/^/$as_me: WARNING: /" >&2
9498 no:yes )
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9506 cat <<\_ASBOX
9507 ## ------------------------------------ ##
9508 ## Report this to bug-autoconf@gnu.org. ##
9509 ## ------------------------------------ ##
9510 _ASBOX
9512 sed "s/^/$as_me: WARNING: /" >&2
9514 esac
9515 echo "$as_me:$LINENO: checking for $ac_header" >&5
9516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 eval "$as_ac_Header=$ac_header_preproc"
9522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9529 _ACEOF
9533 done
9535 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9536 then
9537 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9538 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9539 if test "${ac_cv_lib_icu+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 saved_libs="$LIBS"
9543 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9544 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9545 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9546 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9547 cat >conftest.$ac_ext <<_ACEOF
9548 #line $LINENO "configure"
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 #include <unicode/ubidi.h>
9556 main ()
9558 ubidi_open()
9560 return 0;
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_icu="yes"
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_cv_lib_icu="no"
9582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9583 LIBS="$saved_libs"
9585 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9586 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9587 if test "$ac_cv_lib_icu" = "yes"
9588 then
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_ICU 1
9592 _ACEOF
9594 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9599 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9600 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9601 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 ac_check_lib_save_LIBS=$LIBS
9605 LIBS="-lfreetype $X_LIBS $LIBS"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9620 char FT_Init_FreeType ();
9622 main ()
9624 FT_Init_FreeType ();
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_lib_freetype_FT_Init_FreeType=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_freetype_FT_Init_FreeType=no
9648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9652 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9653 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9654 ft_lib=yes
9655 else
9656 ft_lib=no
9659 if test "$ft_lib" = "no"
9660 then
9661 FREETYPEINCL=""
9662 wine_cv_msg_freetype=no
9663 else
9664 # Extract the first word of "freetype-config", so it can be a program name with args.
9665 set dummy freetype-config; ac_word=$2
9666 echo "$as_me:$LINENO: checking for $ac_word" >&5
9667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9668 if test "${ac_cv_prog_ft_devel+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 if test -n "$ft_devel"; then
9672 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9673 else
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_prog_ft_devel="freetype-config"
9682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9685 done
9686 done
9688 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9691 ft_devel=$ac_cv_prog_ft_devel
9692 if test -n "$ft_devel"; then
9693 echo "$as_me:$LINENO: result: $ft_devel" >&5
9694 echo "${ECHO_T}$ft_devel" >&6
9695 else
9696 echo "$as_me:$LINENO: result: no" >&5
9697 echo "${ECHO_T}no" >&6
9700 if test "$ft_devel" = "no"
9701 then
9702 # Extract the first word of "freetype2-config", so it can be a program name with args.
9703 set dummy freetype2-config; ac_word=$2
9704 echo "$as_me:$LINENO: checking for $ac_word" >&5
9705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9706 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709 if test -n "$ft_devel2"; then
9710 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719 ac_cv_prog_ft_devel2="freetype2-config"
9720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9723 done
9724 done
9726 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9729 ft_devel2=$ac_cv_prog_ft_devel2
9730 if test -n "$ft_devel2"; then
9731 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9732 echo "${ECHO_T}$ft_devel2" >&6
9733 else
9734 echo "$as_me:$LINENO: result: no" >&5
9735 echo "${ECHO_T}no" >&6
9738 if test "$ft_devel2" = "freetype2-config"
9739 then
9740 ft_devel=$ft_devel2
9743 if test "$ft_devel" = "no"
9744 then
9745 FREETYPEINCL=""
9746 wine_cv_msg_freetype=yes
9747 else
9748 FREETYPEINCL=`$ft_devel --cflags`
9749 ac_save_CPPFLAGS="$CPPFLAGS"
9750 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9759 for ac_header in freetype/freetype.h \
9760 freetype/ftglyph.h \
9761 freetype/tttables.h \
9762 freetype/ftnames.h \
9763 freetype/ftsnames.h \
9764 freetype/ttnameid.h \
9765 freetype/ftoutln.h \
9766 freetype/internal/sfnt.h
9768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9770 echo "$as_me:$LINENO: checking for $ac_header" >&5
9771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9777 else
9778 # Is the header compilable?
9779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 #include <$ac_header>
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -s conftest.$ac_objext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_header_compiler=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_header_compiler=no
9810 rm -f conftest.$ac_objext conftest.$ac_ext
9811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9812 echo "${ECHO_T}$ac_header_compiler" >&6
9814 # Is the header present?
9815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 #include <$ac_header>
9825 _ACEOF
9826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } >/dev/null; then
9834 if test -s conftest.err; then
9835 ac_cpp_err=$ac_c_preproc_warn_flag
9836 else
9837 ac_cpp_err=
9839 else
9840 ac_cpp_err=yes
9842 if test -z "$ac_cpp_err"; then
9843 ac_header_preproc=yes
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_header_preproc=no
9850 rm -f conftest.err conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9852 echo "${ECHO_T}$ac_header_preproc" >&6
9854 # So? What about this header?
9855 case $ac_header_compiler:$ac_header_preproc in
9856 yes:no )
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9862 cat <<\_ASBOX
9863 ## ------------------------------------ ##
9864 ## Report this to bug-autoconf@gnu.org. ##
9865 ## ------------------------------------ ##
9866 _ASBOX
9868 sed "s/^/$as_me: WARNING: /" >&2
9870 no:yes )
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9878 cat <<\_ASBOX
9879 ## ------------------------------------ ##
9880 ## Report this to bug-autoconf@gnu.org. ##
9881 ## ------------------------------------ ##
9882 _ASBOX
9884 sed "s/^/$as_me: WARNING: /" >&2
9886 esac
9887 echo "$as_me:$LINENO: checking for $ac_header" >&5
9888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 eval "$as_ac_Header=$ac_header_preproc"
9894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9899 cat >>confdefs.h <<_ACEOF
9900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901 _ACEOF
9905 done
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 #include <ft2build.h>
9915 #include <freetype/fttrigon.h>
9916 _ACEOF
9917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } >/dev/null; then
9925 if test -s conftest.err; then
9926 ac_cpp_err=$ac_c_preproc_warn_flag
9927 else
9928 ac_cpp_err=
9930 else
9931 ac_cpp_err=yes
9933 if test -z "$ac_cpp_err"; then
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_FREETYPE_FTTRIGON_H 1
9937 _ACEOF
9939 wine_cv_fttrigon=yes
9940 else
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9944 wine_cv_fttrigon=no
9946 rm -f conftest.err conftest.$ac_ext
9947 CPPFLAGS="$ac_save_CPPFLAGS"
9948 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9949 then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_FREETYPE 1
9953 _ACEOF
9955 wine_cv_msg_freetype=no
9956 else
9957 FREETYPEINCL=""
9958 wine_cv_msg_freetype=yes
9964 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9965 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9966 if test "${ac_cv_c_ppdev+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 #line $LINENO "configure"
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 #include <linux/ppdev.h>
9978 main ()
9980 ioctl (1,PPCLAIM,0)
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -s conftest.$ac_objext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_c_ppdev="yes"
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_c_ppdev="no"
10004 rm -f conftest.$ac_objext conftest.$ac_ext
10007 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10008 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10009 if test "$ac_cv_c_ppdev" = "yes"
10010 then
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_PPDEV 1
10014 _ACEOF
10018 echo "$as_me:$LINENO: checking for va_copy" >&5
10019 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10020 if test "${ac_cv_c_va_copy+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 cat >conftest.$ac_ext <<_ACEOF
10024 #line $LINENO "configure"
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 #include <stdarg.h>
10032 main ()
10034 va_list ap1, ap2;
10035 va_copy(ap1,ap2);
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_c_va_copy="yes"
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_c_va_copy="no"
10060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10063 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10064 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10065 if test "$ac_cv_c_va_copy" = "yes"
10066 then
10068 cat >>confdefs.h <<\_ACEOF
10069 #define HAVE_VA_COPY 1
10070 _ACEOF
10073 echo "$as_me:$LINENO: checking for __va_copy" >&5
10074 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10075 if test "${ac_cv_c___va_copy+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #include <stdarg.h>
10087 main ()
10089 va_list ap1, ap2;
10090 __va_copy(ap1,ap2);
10093 return 0;
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098 (eval $ac_link) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_cv_c___va_copy="yes"
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_c___va_copy="no"
10115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10118 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10119 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10120 if test "$ac_cv_c___va_copy" = "yes"
10121 then
10123 cat >>confdefs.h <<\_ACEOF
10124 #define HAVE___VA_COPY 1
10125 _ACEOF
10129 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10130 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10131 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #define _GNU_SOURCE
10142 #include <pthread.h>
10145 main ()
10147 if ((pthread_rwlock_t *) 0)
10148 return 0;
10149 if (sizeof (pthread_rwlock_t))
10150 return 0;
10152 return 0;
10154 _ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157 (eval $ac_compile) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -s conftest.$ac_objext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_type_pthread_rwlock_t=yes
10168 else
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_type_pthread_rwlock_t=no
10174 rm -f conftest.$ac_objext conftest.$ac_ext
10176 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10177 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10178 if test $ac_cv_type_pthread_rwlock_t = yes; then
10180 cat >>confdefs.h <<_ACEOF
10181 #define HAVE_PTHREAD_RWLOCK_T 1
10182 _ACEOF
10186 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10187 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10188 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 #line $LINENO "configure"
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #define _GNU_SOURCE
10199 #include <pthread.h>
10202 main ()
10204 if ((pthread_rwlockattr_t *) 0)
10205 return 0;
10206 if (sizeof (pthread_rwlockattr_t))
10207 return 0;
10209 return 0;
10211 _ACEOF
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214 (eval $ac_compile) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_cv_type_pthread_rwlockattr_t=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_type_pthread_rwlockattr_t=no
10231 rm -f conftest.$ac_objext conftest.$ac_ext
10233 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10234 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10235 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10237 cat >>confdefs.h <<_ACEOF
10238 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10239 _ACEOF
10248 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10252 echo "$as_me:$LINENO: checking for $ac_header" >&5
10253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10259 else
10260 # Is the header compilable?
10261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 $ac_includes_default
10271 #include <$ac_header>
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -s conftest.$ac_objext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_header_compiler=yes
10286 else
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 ac_header_compiler=no
10292 rm -f conftest.$ac_objext conftest.$ac_ext
10293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 echo "${ECHO_T}$ac_header_compiler" >&6
10296 # Is the header present?
10297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10300 #line $LINENO "configure"
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 #include <$ac_header>
10307 _ACEOF
10308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } >/dev/null; then
10316 if test -s conftest.err; then
10317 ac_cpp_err=$ac_c_preproc_warn_flag
10318 else
10319 ac_cpp_err=
10321 else
10322 ac_cpp_err=yes
10324 if test -z "$ac_cpp_err"; then
10325 ac_header_preproc=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_header_preproc=no
10332 rm -f conftest.err conftest.$ac_ext
10333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10334 echo "${ECHO_T}$ac_header_preproc" >&6
10336 # So? What about this header?
10337 case $ac_header_compiler:$ac_header_preproc in
10338 yes:no )
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 cat <<\_ASBOX
10345 ## ------------------------------------ ##
10346 ## Report this to bug-autoconf@gnu.org. ##
10347 ## ------------------------------------ ##
10348 _ASBOX
10350 sed "s/^/$as_me: WARNING: /" >&2
10352 no:yes )
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10360 cat <<\_ASBOX
10361 ## ------------------------------------ ##
10362 ## Report this to bug-autoconf@gnu.org. ##
10363 ## ------------------------------------ ##
10364 _ASBOX
10366 sed "s/^/$as_me: WARNING: /" >&2
10368 esac
10369 echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 eval "$as_ac_Header=$ac_header_preproc"
10376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10381 cat >>confdefs.h <<_ACEOF
10382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10383 _ACEOF
10384 break
10387 done
10390 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10391 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10392 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 cat >conftest.$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 #if defined(HAVE_SYS_SOUNDCARD_H)
10404 #include <sys/soundcard.h>
10405 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10406 #include <machine/soundcard.h>
10407 #elif defined(HAVE_SOUNDCARD_H)
10408 #include <soundcard.h>
10409 #endif
10412 main ()
10416 /* check for one of the Open Sound System specific SNDCTL_ defines */
10417 #if !defined(SNDCTL_DSP_STEREO)
10418 #error No open sound system
10419 #endif
10422 return 0;
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
10431 { ac_try='test -s conftest.$ac_objext'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_cv_c_opensoundsystem="yes"
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 ac_cv_c_opensoundsystem="no"
10444 rm -f conftest.$ac_objext conftest.$ac_ext
10446 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10447 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10449 if test "$ac_cv_c_opensoundsystem" = "yes"
10450 then
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_OSS 1
10454 _ACEOF
10458 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10459 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10460 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 cat >conftest.$ac_ext <<_ACEOF
10464 #line $LINENO "configure"
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10471 #if defined(HAVE_SYS_SOUNDCARD_H)
10472 #include <sys/soundcard.h>
10473 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10474 #include <machine/soundcard.h>
10475 #elif defined(HAVE_SOUNDCARD_H)
10476 #include <soundcard.h>
10477 #endif
10480 main ()
10484 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10485 #if !defined(SNDCTL_SEQ_SYNC)
10486 #error No open sound system MIDI interface
10487 #endif
10490 return 0;
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -s conftest.$ac_objext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_c_opensoundsystem_midi="yes"
10506 else
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10510 ac_cv_c_opensoundsystem_midi="no"
10512 rm -f conftest.$ac_objext conftest.$ac_ext
10514 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10515 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10517 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10518 then
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_OSS_MIDI 1
10522 _ACEOF
10526 # Extract the first word of "artsc-config", so it can be a program name with args.
10527 set dummy artsc-config; ac_word=$2
10528 echo "$as_me:$LINENO: checking for $ac_word" >&5
10529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10530 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533 case $ARTSCCONFIG in
10534 [\\/]* | ?:[\\/]*)
10535 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10549 done
10550 done
10553 esac
10555 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10557 if test -n "$ARTSCCONFIG"; then
10558 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10559 echo "${ECHO_T}$ARTSCCONFIG" >&6
10560 else
10561 echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6
10565 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10566 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10567 if test "${ac_cv_c_artsserver+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10571 then
10572 ac_cv_c_artsserver=no
10573 else
10574 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10575 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10576 ac_cv_c_artsserver=no
10577 save_CFLAGS="$CFLAGS"
10578 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 #line $LINENO "configure"
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10587 #include <artsc.h>
10590 main ()
10593 arts_stream_t stream;
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10612 ac_cv_c_artsserver=yes
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 CFLAGS="$save_CFLAGS"
10623 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10624 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10626 if test "$ac_cv_c_artsserver" = "yes"
10627 then
10628 ARTSLIBS=$ARTSC_LIBS
10630 ARTSINCL=$ARTSC_CFLAGS
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_ARTS 1
10636 _ACEOF
10640 ALSALIBS=""
10644 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10648 echo "$as_me:$LINENO: checking for $ac_header" >&5
10649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10655 else
10656 # Is the header compilable?
10657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 $ac_includes_default
10667 #include <$ac_header>
10668 _ACEOF
10669 rm -f conftest.$ac_objext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671 (eval $ac_compile) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
10675 { ac_try='test -s conftest.$ac_objext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_header_compiler=yes
10682 else
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_header_compiler=no
10688 rm -f conftest.$ac_objext conftest.$ac_ext
10689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10690 echo "${ECHO_T}$ac_header_compiler" >&6
10692 # Is the header present?
10693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10695 cat >conftest.$ac_ext <<_ACEOF
10696 #line $LINENO "configure"
10697 /* confdefs.h. */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 #include <$ac_header>
10703 _ACEOF
10704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } >/dev/null; then
10712 if test -s conftest.err; then
10713 ac_cpp_err=$ac_c_preproc_warn_flag
10714 else
10715 ac_cpp_err=
10717 else
10718 ac_cpp_err=yes
10720 if test -z "$ac_cpp_err"; then
10721 ac_header_preproc=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_header_preproc=no
10728 rm -f conftest.err conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10730 echo "${ECHO_T}$ac_header_preproc" >&6
10732 # So? What about this header?
10733 case $ac_header_compiler:$ac_header_preproc in
10734 yes:no )
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10740 cat <<\_ASBOX
10741 ## ------------------------------------ ##
10742 ## Report this to bug-autoconf@gnu.org. ##
10743 ## ------------------------------------ ##
10744 _ASBOX
10746 sed "s/^/$as_me: WARNING: /" >&2
10748 no:yes )
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10756 cat <<\_ASBOX
10757 ## ------------------------------------ ##
10758 ## Report this to bug-autoconf@gnu.org. ##
10759 ## ------------------------------------ ##
10760 _ASBOX
10762 sed "s/^/$as_me: WARNING: /" >&2
10764 esac
10765 echo "$as_me:$LINENO: checking for $ac_header" >&5
10766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 eval "$as_ac_Header=$ac_header_preproc"
10772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10779 _ACEOF
10780 break
10783 done
10785 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10786 then
10787 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10788 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10789 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lasound $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 #line $LINENO "configure"
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10802 /* Override any gcc2 internal prototype to avoid an error. */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 /* We use char because int might match the return type of a gcc2
10807 builtin and then its argument prototype would still apply. */
10808 char snd_pcm_open ();
10810 main ()
10812 snd_pcm_open ();
10814 return 0;
10816 _ACEOF
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819 (eval $ac_link) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_lib_asound_snd_pcm_open=yes
10830 else
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 ac_cv_lib_asound_snd_pcm_open=no
10836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10837 LIBS=$ac_check_lib_save_LIBS
10839 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10840 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10841 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10843 cat >>confdefs.h <<\_ACEOF
10844 #define HAVE_ALSA 1
10845 _ACEOF
10847 ALSALIBS="-lasound"
10853 AUDIOIOLIBS=""
10856 for ac_header in libaudioio.h
10858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10860 echo "$as_me:$LINENO: checking for $ac_header" >&5
10861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10867 else
10868 # Is the header compilable?
10869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 $ac_includes_default
10879 #include <$ac_header>
10880 _ACEOF
10881 rm -f conftest.$ac_objext
10882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10883 (eval $ac_compile) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -s conftest.$ac_objext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_header_compiler=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 ac_header_compiler=no
10900 rm -f conftest.$ac_objext conftest.$ac_ext
10901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 echo "${ECHO_T}$ac_header_compiler" >&6
10904 # Is the header present?
10905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <$ac_header>
10915 _ACEOF
10916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } >/dev/null; then
10924 if test -s conftest.err; then
10925 ac_cpp_err=$ac_c_preproc_warn_flag
10926 else
10927 ac_cpp_err=
10929 else
10930 ac_cpp_err=yes
10932 if test -z "$ac_cpp_err"; then
10933 ac_header_preproc=yes
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_header_preproc=no
10940 rm -f conftest.err conftest.$ac_ext
10941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 echo "${ECHO_T}$ac_header_preproc" >&6
10944 # So? What about this header?
10945 case $ac_header_compiler:$ac_header_preproc in
10946 yes:no )
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10952 cat <<\_ASBOX
10953 ## ------------------------------------ ##
10954 ## Report this to bug-autoconf@gnu.org. ##
10955 ## ------------------------------------ ##
10956 _ASBOX
10958 sed "s/^/$as_me: WARNING: /" >&2
10960 no:yes )
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10968 cat <<\_ASBOX
10969 ## ------------------------------------ ##
10970 ## Report this to bug-autoconf@gnu.org. ##
10971 ## ------------------------------------ ##
10972 _ASBOX
10974 sed "s/^/$as_me: WARNING: /" >&2
10976 esac
10977 echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982 eval "$as_ac_Header=$ac_header_preproc"
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10991 _ACEOF
10992 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10993 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10994 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997 ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-laudioio $LIBS"
10999 cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11007 /* Override any gcc2 internal prototype to avoid an error. */
11008 #ifdef __cplusplus
11009 extern "C"
11010 #endif
11011 /* We use char because int might match the return type of a gcc2
11012 builtin and then its argument prototype would still apply. */
11013 char AudioIOGetVersion ();
11015 main ()
11017 AudioIOGetVersion ();
11019 return 0;
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_audioio_AudioIOGetVersion=yes
11035 else
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_lib_audioio_AudioIOGetVersion=no
11041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11042 LIBS=$ac_check_lib_save_LIBS
11044 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11045 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11046 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11047 AUDIOIOLIBS="-laudioio"
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LIBAUDIOIO 1
11051 _ACEOF
11057 done
11061 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
11062 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
11063 if test "${ac_cv_mmap64_works+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066 if test "$cross_compiling" = yes; then
11067 ac_cv_mmap64_works="no"
11068 else
11069 cat >conftest.$ac_ext <<_ACEOF
11070 #line $LINENO "configure"
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11077 #define _FILE_OFFSET_BITS 64
11078 #include <stdio.h>
11079 #include <unistd.h>
11080 #include <fcntl.h>
11081 #include <sys/mman.h>
11082 #include <errno.h>
11084 int main(int argc,char **argv) {
11085 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11086 if (fd == -1) exit(1);
11088 unlink("conftest.map");
11090 write(fd,"test",4);
11092 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11093 (errno == EINVAL)
11095 exit(1);
11097 close(fd);
11098 fprintf(stderr,"success!\n");
11099 exit(0);
11103 _ACEOF
11104 rm -f conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_mmap64_works="yes"
11116 else
11117 echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ( exit $ac_status )
11122 ac_cv_mmap64_works="no"
11124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11127 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
11128 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
11130 if test "$ac_cv_mmap64_works" = "yes"
11131 then
11133 cat >>confdefs.h <<\_ACEOF
11134 #define _FILE_OFFSET_BITS 64
11135 _ACEOF
11140 EXTRACFLAGS=""
11142 if test "x${GCC}" = "xyes"
11143 then
11144 EXTRACFLAGS=-Wall
11146 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11147 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11148 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151 if test "$cross_compiling" = yes; then
11152 ac_cv_c_gcc_strength_bug="yes"
11153 else
11154 cat >conftest.$ac_ext <<_ACEOF
11155 #line $LINENO "configure"
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11162 int L[4] = {0,1,2,3};
11163 int main(void) {
11164 static int Array[3];
11165 unsigned int B = 3;
11166 int i;
11167 for(i=0; i<B; i++) Array[i] = i - 3;
11168 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11169 L[i] = 4;
11171 exit( Array[1] != -2 || L[2] != 3);
11173 _ACEOF
11174 rm -f conftest$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_c_gcc_strength_bug="no"
11186 else
11187 echo "$as_me: program exited with status $ac_status" >&5
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ( exit $ac_status )
11192 ac_cv_c_gcc_strength_bug="yes"
11194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11197 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11198 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11199 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11200 then
11201 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11204 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11205 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11206 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 ac_wine_try_cflags_saved=$CFLAGS
11210 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11211 cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11220 main ()
11224 return 0;
11226 _ACEOF
11227 rm -f conftest.$ac_objext conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -s conftest$ac_exeext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_c_gcc_stack_boundary="yes"
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_cv_c_gcc_stack_boundary="no"
11246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11247 CFLAGS=$ac_wine_try_cflags_saved
11249 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11250 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11251 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11252 then
11253 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11256 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11257 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11258 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261 ac_wine_try_cflags_saved=$CFLAGS
11262 CFLAGS="$CFLAGS -fno-strict-aliasing"
11263 cat >conftest.$ac_ext <<_ACEOF
11264 #line $LINENO "configure"
11265 /* confdefs.h. */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11272 main ()
11276 return 0;
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_c_gcc_no_strict_aliasing="yes"
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_cv_c_gcc_no_strict_aliasing="no"
11298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 CFLAGS=$ac_wine_try_cflags_saved
11301 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11302 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11303 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11304 then
11305 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11308 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11309 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11310 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313 ac_wine_try_cflags_saved=$CFLAGS
11314 CFLAGS="$CFLAGS -gstabs+"
11315 cat >conftest.$ac_ext <<_ACEOF
11316 #line $LINENO "configure"
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11324 main ()
11328 return 0;
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_c_gcc_gstabs="yes"
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_cv_c_gcc_gstabs="no"
11350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11351 CFLAGS=$ac_wine_try_cflags_saved
11353 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11354 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11355 if test "$ac_cv_c_gcc_gstabs" = "yes"
11356 then
11357 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11360 saved_CFLAGS="$CFLAGS"
11361 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11362 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11363 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11364 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 cat >conftest.$ac_ext <<_ACEOF
11368 #line $LINENO "configure"
11369 /* confdefs.h. */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 #include <string.h>
11376 main ()
11380 return 0;
11382 _ACEOF
11383 rm -f conftest.$ac_objext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_c_string_h_warnings=no
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_cv_c_string_h_warnings=yes
11402 rm -f conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11405 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11406 CFLAGS="$saved_CFLAGS"
11407 if test "$ac_cv_c_string_h_warnings" = "no"
11408 then
11409 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11414 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11415 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11416 if test "${ac_cv_asm_func_def+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 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"); }
11429 main ()
11433 return 0;
11435 _ACEOF
11436 rm -f conftest.$ac_objext conftest$ac_exeext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_asm_func_def=".def"
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 cat >conftest.$ac_ext <<_ACEOF
11454 #line $LINENO "configure"
11455 /* confdefs.h. */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11463 main ()
11467 return 0;
11469 _ACEOF
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_asm_func_def=".type @function"
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 cat >conftest.$ac_ext <<_ACEOF
11488 #line $LINENO "configure"
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11497 main ()
11501 return 0;
11503 _ACEOF
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_asm_func_def=".type 2"
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_cv_asm_func_def="unknown"
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11530 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11534 case "$ac_cv_asm_func_def" in
11535 ".def")
11536 cat >>confdefs.h <<\_ACEOF
11537 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11538 _ACEOF
11540 ".type @function")
11541 cat >>confdefs.h <<\_ACEOF
11542 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11543 _ACEOF
11545 ".type 2")
11546 cat >>confdefs.h <<\_ACEOF
11547 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11548 _ACEOF
11551 cat >>confdefs.h <<\_ACEOF
11552 #define __ASM_FUNC(name) ""
11553 _ACEOF
11555 esac
11558 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11559 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11560 if test "${ac_cv_c_extern_prefix+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563 cat >conftest.$ac_ext <<_ACEOF
11564 #line $LINENO "configure"
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11571 extern int ac_test;
11573 main ()
11575 if (ac_test) return 1
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_cv_c_extern_prefix="yes"
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_cv_c_extern_prefix="no"
11599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11602 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11606 if test "$ac_cv_c_extern_prefix" = "yes"
11607 then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define __ASM_NAME(name) "_" name
11610 _ACEOF
11612 else
11613 cat >>confdefs.h <<\_ACEOF
11614 #define __ASM_NAME(name) name
11615 _ACEOF
11620 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11621 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11622 if test "${ac_cv_c_asm_string+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11635 main ()
11639 return 0;
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 ac_cv_c_asm_string="yes"
11655 else
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 ac_cv_c_asm_string="no"
11661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11663 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11664 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11665 if test "$ac_cv_c_asm_string" = "yes"
11666 then
11668 cat >>confdefs.h <<\_ACEOF
11669 #define __ASM_STRING ".string"
11670 _ACEOF
11672 else
11673 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11674 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11675 if test "${ac_cv_c_asm_asciz+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 cat >conftest.$ac_ext <<_ACEOF
11679 #line $LINENO "configure"
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11688 main ()
11692 return 0;
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -s conftest$ac_exeext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_c_asm_asciz="yes"
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_c_asm_asciz="no"
11714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11717 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11718 if test "$ac_cv_c_asm_asciz" = "yes"
11719 then
11720 cat >>confdefs.h <<\_ACEOF
11721 #define __ASM_STRING ".asciz"
11722 _ACEOF
11724 else
11725 cat >>confdefs.h <<\_ACEOF
11726 #define __ASM_STRING ".ascii"
11727 _ACEOF
11733 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11734 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11735 if test "${ac_cv_c_asm_short+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 cat >conftest.$ac_ext <<_ACEOF
11739 #line $LINENO "configure"
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11748 main ()
11752 return 0;
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757 (eval $ac_link) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_cv_c_asm_short="yes"
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ac_cv_c_asm_short="no"
11774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11776 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11777 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11778 if test "$ac_cv_c_asm_short" = "yes"
11779 then
11781 cat >>confdefs.h <<\_ACEOF
11782 #define __ASM_SHORT ".short"
11783 _ACEOF
11785 else
11786 cat >>confdefs.h <<\_ACEOF
11787 #define __ASM_SHORT ".half"
11788 _ACEOF
11793 DLLEXT=""
11795 DLLFLAGS="-D_REENTRANT"
11797 DLLIBS=""
11799 LDSHARED=""
11801 LDDLL=""
11803 LIBEXT="so"
11805 IMPLIBEXT="def"
11808 case $host_os in
11809 cygwin*|mingw32*)
11810 if test -n "$ac_tool_prefix"; then
11811 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11812 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11813 echo "$as_me:$LINENO: checking for $ac_word" >&5
11814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11815 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818 if test -n "$DLLTOOL"; then
11819 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11837 DLLTOOL=$ac_cv_prog_DLLTOOL
11838 if test -n "$DLLTOOL"; then
11839 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11840 echo "${ECHO_T}$DLLTOOL" >&6
11841 else
11842 echo "$as_me:$LINENO: result: no" >&5
11843 echo "${ECHO_T}no" >&6
11847 if test -z "$ac_cv_prog_DLLTOOL"; then
11848 ac_ct_DLLTOOL=$DLLTOOL
11849 # Extract the first word of "dlltool", so it can be a program name with args.
11850 set dummy dlltool; ac_word=$2
11851 echo "$as_me:$LINENO: checking for $ac_word" >&5
11852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11853 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856 if test -n "$ac_ct_DLLTOOL"; then
11857 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11858 else
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11866 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11870 done
11871 done
11873 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11876 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11877 if test -n "$ac_ct_DLLTOOL"; then
11878 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11879 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11880 else
11881 echo "$as_me:$LINENO: result: no" >&5
11882 echo "${ECHO_T}no" >&6
11885 DLLTOOL=$ac_ct_DLLTOOL
11886 else
11887 DLLTOOL="$ac_cv_prog_DLLTOOL"
11890 if test -n "$ac_tool_prefix"; then
11891 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11892 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11893 echo "$as_me:$LINENO: checking for $ac_word" >&5
11894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11895 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898 if test -n "$DLLWRAP"; then
11899 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11900 else
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11908 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11912 done
11913 done
11917 DLLWRAP=$ac_cv_prog_DLLWRAP
11918 if test -n "$DLLWRAP"; then
11919 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11920 echo "${ECHO_T}$DLLWRAP" >&6
11921 else
11922 echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6
11927 if test -z "$ac_cv_prog_DLLWRAP"; then
11928 ac_ct_DLLWRAP=$DLLWRAP
11929 # Extract the first word of "dllwrap", so it can be a program name with args.
11930 set dummy dllwrap; ac_word=$2
11931 echo "$as_me:$LINENO: checking for $ac_word" >&5
11932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11933 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 if test -n "$ac_ct_DLLWRAP"; then
11937 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11950 done
11951 done
11953 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11956 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11957 if test -n "$ac_ct_DLLWRAP"; then
11958 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11959 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11960 else
11961 echo "$as_me:$LINENO: result: no" >&5
11962 echo "${ECHO_T}no" >&6
11965 DLLWRAP=$ac_ct_DLLWRAP
11966 else
11967 DLLWRAP="$ac_cv_prog_DLLWRAP"
11970 if test "$DLLWRAP" = "false"; then
11971 LIBEXT="a"
11972 else
11973 LIBEXT="dll"
11975 IMPLIBEXT="a"
11979 for ac_header in dlfcn.h
11981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11983 echo "$as_me:$LINENO: checking for $ac_header" >&5
11984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11990 else
11991 # Is the header compilable?
11992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11994 cat >conftest.$ac_ext <<_ACEOF
11995 #line $LINENO "configure"
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12002 #include <$ac_header>
12003 _ACEOF
12004 rm -f conftest.$ac_objext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12006 (eval $ac_compile) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -s conftest.$ac_objext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_header_compiler=yes
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_header_compiler=no
12023 rm -f conftest.$ac_objext conftest.$ac_ext
12024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12025 echo "${ECHO_T}$ac_header_compiler" >&6
12027 # Is the header present?
12028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12030 cat >conftest.$ac_ext <<_ACEOF
12031 #line $LINENO "configure"
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 #include <$ac_header>
12038 _ACEOF
12039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } >/dev/null; then
12047 if test -s conftest.err; then
12048 ac_cpp_err=$ac_c_preproc_warn_flag
12049 else
12050 ac_cpp_err=
12052 else
12053 ac_cpp_err=yes
12055 if test -z "$ac_cpp_err"; then
12056 ac_header_preproc=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_header_preproc=no
12063 rm -f conftest.err conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065 echo "${ECHO_T}$ac_header_preproc" >&6
12067 # So? What about this header?
12068 case $ac_header_compiler:$ac_header_preproc in
12069 yes:no )
12070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12075 cat <<\_ASBOX
12076 ## ------------------------------------ ##
12077 ## Report this to bug-autoconf@gnu.org. ##
12078 ## ------------------------------------ ##
12079 _ASBOX
12081 sed "s/^/$as_me: WARNING: /" >&2
12083 no:yes )
12084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12091 cat <<\_ASBOX
12092 ## ------------------------------------ ##
12093 ## Report this to bug-autoconf@gnu.org. ##
12094 ## ------------------------------------ ##
12095 _ASBOX
12097 sed "s/^/$as_me: WARNING: /" >&2
12099 esac
12100 echo "$as_me:$LINENO: checking for $ac_header" >&5
12101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 eval "$as_ac_Header=$ac_header_preproc"
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114 _ACEOF
12116 for ac_func in dlopen
12118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12119 echo "$as_me:$LINENO: checking for $ac_func" >&5
12120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12121 if eval "test \"\${$as_ac_var+set}\" = set"; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124 cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* System header to define __stub macros and hopefully few prototypes,
12132 which can conflict with char $ac_func (); below.
12133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12134 <limits.h> exists even on freestanding compilers. */
12135 #ifdef __STDC__
12136 # include <limits.h>
12137 #else
12138 # include <assert.h>
12139 #endif
12140 /* Override any gcc2 internal prototype to avoid an error. */
12141 #ifdef __cplusplus
12142 extern "C"
12144 #endif
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12147 char $ac_func ();
12148 /* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12152 choke me
12153 #else
12154 char (*f) () = $ac_func;
12155 #endif
12156 #ifdef __cplusplus
12158 #endif
12161 main ()
12163 return f != $ac_func;
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -s conftest$ac_exeext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 eval "$as_ac_var=yes"
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 eval "$as_ac_var=no"
12187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12191 if test `eval echo '${'$as_ac_var'}'` = yes; then
12192 cat >>confdefs.h <<_ACEOF
12193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12194 _ACEOF
12196 else
12197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 ac_check_lib_save_LIBS=$LIBS
12203 LIBS="-ldl $LIBS"
12204 cat >conftest.$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12212 /* Override any gcc2 internal prototype to avoid an error. */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 /* We use char because int might match the return type of a gcc2
12217 builtin and then its argument prototype would still apply. */
12218 char dlopen ();
12220 main ()
12222 dlopen ();
12224 return 0;
12226 _ACEOF
12227 rm -f conftest.$ac_objext conftest$ac_exeext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229 (eval $ac_link) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_lib_dl_dlopen=yes
12240 else
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_cv_lib_dl_dlopen=no
12246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12249 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12250 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12251 if test $ac_cv_lib_dl_dlopen = yes; then
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_DLOPEN 1
12255 _ACEOF
12257 DLLIBS="-ldl"
12258 else
12259 LIBEXT="a"
12263 done
12265 else
12266 LIBEXT="a"
12269 done
12272 if test "$LIBEXT" = "so"
12273 then
12274 DLLFLAGS="$DLLFLAGS -fPIC"
12275 DLLEXT=".so"
12276 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12277 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12278 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281 ac_wine_try_cflags_saved=$CFLAGS
12282 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12292 main ()
12296 return 0;
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_c_dll_gnuelf="yes"
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_cv_c_dll_gnuelf="no"
12318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12319 CFLAGS=$ac_wine_try_cflags_saved
12321 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12322 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12323 if test "$ac_cv_c_dll_gnuelf" = "yes"
12324 then
12325 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12326 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
12327 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12328 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12329 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 ac_wine_try_cflags_saved=$CFLAGS
12333 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12343 main ()
12347 return 0;
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_c_dll_zdefs="yes"
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_c_dll_zdefs="no"
12369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12370 CFLAGS=$ac_wine_try_cflags_saved
12372 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12373 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12374 if test "$ac_cv_c_dll_zdefs" = "yes"
12375 then
12376 LDDLL="$LDDLL,-z,defs"
12378 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12379 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12380 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383 saved_CFLAGS="$CFLAGS"
12384 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12385 if test "$cross_compiling" = yes; then
12386 ac_cv_ld_reloc_exec="no"
12387 else
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line $LINENO "configure"
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <unistd.h>
12396 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12397 _ACEOF
12398 rm -f conftest$ac_exeext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400 (eval $ac_link) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_ld_reloc_exec="yes"
12410 else
12411 echo "$as_me: program exited with status $ac_status" >&5
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ( exit $ac_status )
12416 ac_cv_ld_reloc_exec="no"
12418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12420 CFLAGS="$saved_CFLAGS"
12422 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12423 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12424 if test "$ac_cv_ld_reloc_exec" = "yes"
12425 then
12426 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12429 else
12430 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12431 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12432 if test "${ac_cv_c_dll_unixware+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 else
12435 ac_wine_try_cflags_saved=$CFLAGS
12436 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12437 cat >conftest.$ac_ext <<_ACEOF
12438 #line $LINENO "configure"
12439 /* confdefs.h. */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12446 main ()
12450 return 0;
12452 _ACEOF
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455 (eval $ac_link) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_c_dll_unixware="yes"
12466 else
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_c_dll_unixware="no"
12472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12473 CFLAGS=$ac_wine_try_cflags_saved
12475 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12476 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12477 if test "$ac_cv_c_dll_unixware" = "yes"
12478 then
12479 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12480 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12485 CROSSTEST=""
12487 if test "$cross_compiling" = "no"
12488 then
12489 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12491 # Extract the first word of "$ac_prog", so it can be a program name with args.
12492 set dummy $ac_prog; ac_word=$2
12493 echo "$as_me:$LINENO: checking for $ac_word" >&5
12494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12495 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498 if test -n "$CROSSCC"; then
12499 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12500 else
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_prog_CROSSCC="$ac_prog"
12509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12512 done
12513 done
12517 CROSSCC=$ac_cv_prog_CROSSCC
12518 if test -n "$CROSSCC"; then
12519 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12520 echo "${ECHO_T}$CROSSCC" >&6
12521 else
12522 echo "$as_me:$LINENO: result: no" >&5
12523 echo "${ECHO_T}no" >&6
12526 test -n "$CROSSCC" && break
12527 done
12528 test -n "$CROSSCC" || CROSSCC="false"
12530 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12532 # Extract the first word of "$ac_prog", so it can be a program name with args.
12533 set dummy $ac_prog; ac_word=$2
12534 echo "$as_me:$LINENO: checking for $ac_word" >&5
12535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12536 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539 if test -n "$DLLTOOL"; then
12540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12541 else
12542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543 for as_dir in $PATH
12545 IFS=$as_save_IFS
12546 test -z "$as_dir" && as_dir=.
12547 for ac_exec_ext in '' $ac_executable_extensions; do
12548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12549 ac_cv_prog_DLLTOOL="$ac_prog"
12550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12551 break 2
12553 done
12554 done
12558 DLLTOOL=$ac_cv_prog_DLLTOOL
12559 if test -n "$DLLTOOL"; then
12560 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12561 echo "${ECHO_T}$DLLTOOL" >&6
12562 else
12563 echo "$as_me:$LINENO: result: no" >&5
12564 echo "${ECHO_T}no" >&6
12567 test -n "$DLLTOOL" && break
12568 done
12569 test -n "$DLLTOOL" || DLLTOOL="false"
12571 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12573 # Extract the first word of "$ac_prog", so it can be a program name with args.
12574 set dummy $ac_prog; ac_word=$2
12575 echo "$as_me:$LINENO: checking for $ac_word" >&5
12576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12577 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580 if test -n "$CROSSWINDRES"; then
12581 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12582 else
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_CROSSWINDRES="$ac_prog"
12591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12594 done
12595 done
12599 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12600 if test -n "$CROSSWINDRES"; then
12601 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12602 echo "${ECHO_T}$CROSSWINDRES" >&6
12603 else
12604 echo "$as_me:$LINENO: result: no" >&5
12605 echo "${ECHO_T}no" >&6
12608 test -n "$CROSSWINDRES" && break
12609 done
12610 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12612 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12615 esac
12617 if test "$LIBEXT" = "a"; then
12618 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12619 It is currently not possible to build Wine without shared library
12620 (.so) support to allow transparent switch between .so and .dll files.
12621 If you are using Linux, you will need a newer binutils.
12622 " >&5
12623 echo "$as_me: error: could not find a way to build shared libraries.
12624 It is currently not possible to build Wine without shared library
12625 (.so) support to allow transparent switch between .so and .dll files.
12626 If you are using Linux, you will need a newer binutils.
12627 " >&2;}
12628 { (exit 1); exit 1; }; }
12631 case $build_os in
12632 cygwin*|mingw32*)
12633 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12636 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12638 esac
12640 CRTLIBS=""
12642 case $host_os in
12643 mingw32*)
12644 CRTLIBS="-lmsvcrt" ;;
12645 esac
12648 if test "$LIBEXT" = "so"
12649 then
12650 # Extract the first word of "ldd", so it can be a program name with args.
12651 set dummy ldd; ac_word=$2
12652 echo "$as_me:$LINENO: checking for $ac_word" >&5
12653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12654 if test "${ac_cv_path_LDD+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 case $LDD in
12658 [\\/]* | ?:[\\/]*)
12659 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 as_dummy="/sbin:/usr/sbin:$PATH"
12664 for as_dir in $as_dummy
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12674 done
12675 done
12677 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12679 esac
12681 LDD=$ac_cv_path_LDD
12683 if test -n "$LDD"; then
12684 echo "$as_me:$LINENO: result: $LDD" >&5
12685 echo "${ECHO_T}$LDD" >&6
12686 else
12687 echo "$as_me:$LINENO: result: no" >&5
12688 echo "${ECHO_T}no" >&6
12692 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12693 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12694 if test "${ac_cv_lib_soname_X11+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 ac_get_soname_save_LIBS=$LIBS
12698 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 /* confdefs.h. */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 /* Override any gcc2 internal prototype to avoid an error. */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char XCreateWindow ();
12715 main ()
12717 XCreateWindow ();
12719 return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -s conftest$ac_exeext'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; }; then
12734 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
12735 if test "x$ac_cv_lib_soname_X11" = "x"
12736 then
12737 ac_cv_lib_soname_X11="libX11.so"
12739 else
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ac_cv_lib_soname_X11="libX11.so"
12745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_get_soname_save_LIBS
12748 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12749 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12750 if test "x$ac_cv_lib_soname_X11" != xNONE
12751 then
12752 cat >>confdefs.h <<_ACEOF
12753 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12754 _ACEOF
12757 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12758 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12759 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 else
12762 ac_get_soname_save_LIBS=$LIBS
12763 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line $LINENO "configure"
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12772 /* Override any gcc2 internal prototype to avoid an error. */
12773 #ifdef __cplusplus
12774 extern "C"
12775 #endif
12776 /* We use char because int might match the return type of a gcc2
12777 builtin and then its argument prototype would still apply. */
12778 char XextCreateExtension ();
12780 main ()
12782 XextCreateExtension ();
12784 return 0;
12786 _ACEOF
12787 rm -f conftest.$ac_objext conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
12800 if test "x$ac_cv_lib_soname_Xext" = "x"
12801 then
12802 ac_cv_lib_soname_Xext="libXext.so"
12804 else
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_cv_lib_soname_Xext="libXext.so"
12810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_get_soname_save_LIBS
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12814 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12815 if test "x$ac_cv_lib_soname_Xext" != xNONE
12816 then
12817 cat >>confdefs.h <<_ACEOF
12818 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12819 _ACEOF
12822 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12823 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12824 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827 ac_get_soname_save_LIBS=$LIBS
12828 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12829 cat >conftest.$ac_ext <<_ACEOF
12830 #line $LINENO "configure"
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12837 /* Override any gcc2 internal prototype to avoid an error. */
12838 #ifdef __cplusplus
12839 extern "C"
12840 #endif
12841 /* We use char because int might match the return type of a gcc2
12842 builtin and then its argument prototype would still apply. */
12843 char XRenderQueryExtension ();
12845 main ()
12847 XRenderQueryExtension ();
12849 return 0;
12851 _ACEOF
12852 rm -f conftest.$ac_objext conftest$ac_exeext
12853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12854 (eval $ac_link) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -s conftest$ac_exeext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
12865 if test "x$ac_cv_lib_soname_Xrender" = "x"
12866 then
12867 ac_cv_lib_soname_Xrender="libXrender.so"
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_cv_lib_soname_Xrender="libXrender.so"
12875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_get_soname_save_LIBS
12878 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12879 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12880 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12881 then
12882 cat >>confdefs.h <<_ACEOF
12883 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12884 _ACEOF
12887 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12888 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12889 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892 ac_get_soname_save_LIBS=$LIBS
12893 LIBS="-lfreetype $X_LIBS $LIBS"
12894 cat >conftest.$ac_ext <<_ACEOF
12895 #line $LINENO "configure"
12896 /* confdefs.h. */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12902 /* Override any gcc2 internal prototype to avoid an error. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12908 char FT_Init_FreeType ();
12910 main ()
12912 FT_Init_FreeType ();
12914 return 0;
12916 _ACEOF
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919 (eval $ac_link) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
12930 if test "x$ac_cv_lib_soname_freetype" = "x"
12931 then
12932 ac_cv_lib_soname_freetype="libfreetype.so"
12934 else
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_cv_lib_soname_freetype="libfreetype.so"
12940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12941 LIBS=$ac_get_soname_save_LIBS
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12944 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12945 if test "x$ac_cv_lib_soname_freetype" != xNONE
12946 then
12947 cat >>confdefs.h <<_ACEOF
12948 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12949 _ACEOF
12952 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12953 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12954 if test "${ac_cv_lib_soname_GL+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 ac_get_soname_save_LIBS=$LIBS
12958 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12959 cat >conftest.$ac_ext <<_ACEOF
12960 #line $LINENO "configure"
12961 /* confdefs.h. */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12967 /* Override any gcc2 internal prototype to avoid an error. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 /* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12973 char glXQueryExtension ();
12975 main ()
12977 glXQueryExtension ();
12979 return 0;
12981 _ACEOF
12982 rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12984 (eval $ac_link) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest$ac_exeext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
12995 if test "x$ac_cv_lib_soname_GL" = "x"
12996 then
12997 ac_cv_lib_soname_GL="libGL.so"
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_cv_lib_soname_GL="libGL.so"
13005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13006 LIBS=$ac_get_soname_save_LIBS
13008 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
13009 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
13010 if test "x$ac_cv_lib_soname_GL" != xNONE
13011 then
13012 cat >>confdefs.h <<_ACEOF
13013 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
13014 _ACEOF
13017 echo "$as_me:$LINENO: checking for -lcups soname" >&5
13018 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
13019 if test "${ac_cv_lib_soname_cups+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 ac_get_soname_save_LIBS=$LIBS
13023 LIBS="-lcups $LIBS"
13024 cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 /* Override any gcc2 internal prototype to avoid an error. */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 /* We use char because int might match the return type of a gcc2
13037 builtin and then its argument prototype would still apply. */
13038 char cupsGetDefault ();
13040 main ()
13042 cupsGetDefault ();
13044 return 0;
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -s conftest$ac_exeext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
13060 if test "x$ac_cv_lib_soname_cups" = "x"
13061 then
13062 ac_cv_lib_soname_cups="libcups.so"
13064 else
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ac_cv_lib_soname_cups="libcups.so"
13070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13071 LIBS=$ac_get_soname_save_LIBS
13073 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13074 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13075 if test "x$ac_cv_lib_soname_cups" != xNONE
13076 then
13077 cat >>confdefs.h <<_ACEOF
13078 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13079 _ACEOF
13082 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13083 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13084 if test "${ac_cv_lib_soname_jack+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087 ac_get_soname_save_LIBS=$LIBS
13088 LIBS="-ljack $LIBS"
13089 cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13097 /* Override any gcc2 internal prototype to avoid an error. */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 /* We use char because int might match the return type of a gcc2
13102 builtin and then its argument prototype would still apply. */
13103 char jack_client_new ();
13105 main ()
13107 jack_client_new ();
13109 return 0;
13111 _ACEOF
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114 (eval $ac_link) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
13125 if test "x$ac_cv_lib_soname_jack" = "x"
13126 then
13127 ac_cv_lib_soname_jack="libjack.so"
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_cv_lib_soname_jack="libjack.so"
13135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_get_soname_save_LIBS
13138 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13139 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13140 if test "x$ac_cv_lib_soname_jack" != xNONE
13141 then
13142 cat >>confdefs.h <<_ACEOF
13143 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13144 _ACEOF
13147 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13148 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13149 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 ac_get_soname_save_LIBS=$LIBS
13153 LIBS="-lssl $LIBS"
13154 cat >conftest.$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13162 /* Override any gcc2 internal prototype to avoid an error. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 /* We use char because int might match the return type of a gcc2
13167 builtin and then its argument prototype would still apply. */
13168 char SSL_library_init ();
13170 main ()
13172 SSL_library_init ();
13174 return 0;
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13179 (eval $ac_link) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -s conftest$ac_exeext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
13190 if test "x$ac_cv_lib_soname_ssl" = "x"
13191 then
13192 ac_cv_lib_soname_ssl="libssl.so"
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_cv_lib_soname_ssl="libssl.so"
13200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_get_soname_save_LIBS
13203 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13204 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13205 if test "x$ac_cv_lib_soname_ssl" != xNONE
13206 then
13207 cat >>confdefs.h <<_ACEOF
13208 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13209 _ACEOF
13212 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13213 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13214 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217 ac_get_soname_save_LIBS=$LIBS
13218 LIBS="-lcrypto $LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13220 #line $LINENO "configure"
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13227 /* Override any gcc2 internal prototype to avoid an error. */
13228 #ifdef __cplusplus
13229 extern "C"
13230 #endif
13231 /* We use char because int might match the return type of a gcc2
13232 builtin and then its argument prototype would still apply. */
13233 char BIO_new_socket ();
13235 main ()
13237 BIO_new_socket ();
13239 return 0;
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
13255 if test "x$ac_cv_lib_soname_crypto" = "x"
13256 then
13257 ac_cv_lib_soname_crypto="libcrypto.so"
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_cv_lib_soname_crypto="libcrypto.so"
13265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_get_soname_save_LIBS
13268 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13269 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13270 if test "x$ac_cv_lib_soname_crypto" != xNONE
13271 then
13272 cat >>confdefs.h <<_ACEOF
13273 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13274 _ACEOF
13277 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13278 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13279 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 ac_get_soname_save_LIBS=$LIBS
13283 LIBS="-lncurses $LIBS"
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13292 /* Override any gcc2 internal prototype to avoid an error. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 /* We use char because int might match the return type of a gcc2
13297 builtin and then its argument prototype would still apply. */
13298 char waddch ();
13300 main ()
13302 waddch ();
13304 return 0;
13306 _ACEOF
13307 rm -f conftest.$ac_objext conftest$ac_exeext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13309 (eval $ac_link) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
13320 if test "x$ac_cv_lib_soname_ncurses" = "x"
13321 then
13322 ac_cv_lib_soname_ncurses="libncurses.so"
13324 else
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_cv_lib_soname_ncurses="libncurses.so"
13330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13331 LIBS=$ac_get_soname_save_LIBS
13333 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13334 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13335 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13336 then
13337 cat >>confdefs.h <<_ACEOF
13338 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13339 _ACEOF
13342 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13343 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13344 if test "${ac_cv_lib_soname_curses+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347 ac_get_soname_save_LIBS=$LIBS
13348 LIBS="-lcurses $LIBS"
13349 cat >conftest.$ac_ext <<_ACEOF
13350 #line $LINENO "configure"
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13357 /* Override any gcc2 internal prototype to avoid an error. */
13358 #ifdef __cplusplus
13359 extern "C"
13360 #endif
13361 /* We use char because int might match the return type of a gcc2
13362 builtin and then its argument prototype would still apply. */
13363 char waddch ();
13365 main ()
13367 waddch ();
13369 return 0;
13371 _ACEOF
13372 rm -f conftest.$ac_objext conftest$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374 (eval $ac_link) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -s conftest$ac_exeext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
13385 if test "x$ac_cv_lib_soname_curses" = "x"
13386 then
13387 ac_cv_lib_soname_curses="libcurses.so"
13389 else
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ac_cv_lib_soname_curses="libcurses.so"
13395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_get_soname_save_LIBS
13398 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13399 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13400 if test "x$ac_cv_lib_soname_curses" != xNONE
13401 then
13402 cat >>confdefs.h <<_ACEOF
13403 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13404 _ACEOF
13410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13411 # for constant arguments. Useless!
13412 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13413 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13414 if test "${ac_cv_working_alloca_h+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line $LINENO "configure"
13419 /* confdefs.h. */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13424 #include <alloca.h>
13426 main ()
13428 char *p = (char *) alloca (2 * sizeof (int));
13430 return 0;
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -s conftest$ac_exeext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_working_alloca_h=yes
13446 else
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_cv_working_alloca_h=no
13452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13456 if test $ac_cv_working_alloca_h = yes; then
13458 cat >>confdefs.h <<\_ACEOF
13459 #define HAVE_ALLOCA_H 1
13460 _ACEOF
13464 echo "$as_me:$LINENO: checking for alloca" >&5
13465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13466 if test "${ac_cv_func_alloca_works+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 cat >conftest.$ac_ext <<_ACEOF
13470 #line $LINENO "configure"
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 #ifdef __GNUC__
13477 # define alloca __builtin_alloca
13478 #else
13479 # ifdef _MSC_VER
13480 # include <malloc.h>
13481 # define alloca _alloca
13482 # else
13483 # if HAVE_ALLOCA_H
13484 # include <alloca.h>
13485 # else
13486 # ifdef _AIX
13487 #pragma alloca
13488 # else
13489 # ifndef alloca /* predefined by HP cc +Olibcalls */
13490 char *alloca ();
13491 # endif
13492 # endif
13493 # endif
13494 # endif
13495 #endif
13498 main ()
13500 char *p = (char *) alloca (1);
13502 return 0;
13504 _ACEOF
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_func_alloca_works=yes
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_func_alloca_works=no
13524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13527 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13529 if test $ac_cv_func_alloca_works = yes; then
13531 cat >>confdefs.h <<\_ACEOF
13532 #define HAVE_ALLOCA 1
13533 _ACEOF
13535 else
13536 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13537 # that cause trouble. Some versions do not even contain alloca or
13538 # contain a buggy version. If you still want to use their alloca,
13539 # use ar to extract alloca.o from them instead of compiling alloca.c.
13541 ALLOCA=alloca.$ac_objext
13543 cat >>confdefs.h <<\_ACEOF
13544 #define C_ALLOCA 1
13545 _ACEOF
13548 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13549 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13550 if test "${ac_cv_os_cray+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 cat >conftest.$ac_ext <<_ACEOF
13554 #line $LINENO "configure"
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #if defined(CRAY) && ! defined(CRAY2)
13561 webecray
13562 #else
13563 wenotbecray
13564 #endif
13566 _ACEOF
13567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13568 $EGREP "webecray" >/dev/null 2>&1; then
13569 ac_cv_os_cray=yes
13570 else
13571 ac_cv_os_cray=no
13573 rm -f conftest*
13576 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13577 echo "${ECHO_T}$ac_cv_os_cray" >&6
13578 if test $ac_cv_os_cray = yes; then
13579 for ac_func in _getb67 GETB67 getb67; do
13580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13581 echo "$as_me:$LINENO: checking for $ac_func" >&5
13582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13583 if eval "test \"\${$as_ac_var+set}\" = set"; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 /* System header to define __stub macros and hopefully few prototypes,
13594 which can conflict with char $ac_func (); below.
13595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13596 <limits.h> exists even on freestanding compilers. */
13597 #ifdef __STDC__
13598 # include <limits.h>
13599 #else
13600 # include <assert.h>
13601 #endif
13602 /* Override any gcc2 internal prototype to avoid an error. */
13603 #ifdef __cplusplus
13604 extern "C"
13606 #endif
13607 /* We use char because int might match the return type of a gcc2
13608 builtin and then its argument prototype would still apply. */
13609 char $ac_func ();
13610 /* The GNU C library defines this for functions which it implements
13611 to always fail with ENOSYS. Some functions are actually named
13612 something starting with __ and the normal name is an alias. */
13613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13614 choke me
13615 #else
13616 char (*f) () = $ac_func;
13617 #endif
13618 #ifdef __cplusplus
13620 #endif
13623 main ()
13625 return f != $ac_func;
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -s conftest$ac_exeext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 eval "$as_ac_var=yes"
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 eval "$as_ac_var=no"
13649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13653 if test `eval echo '${'$as_ac_var'}'` = yes; then
13655 cat >>confdefs.h <<_ACEOF
13656 #define CRAY_STACKSEG_END $ac_func
13657 _ACEOF
13659 break
13662 done
13665 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13666 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13667 if test "${ac_cv_c_stack_direction+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 if test "$cross_compiling" = yes; then
13671 ac_cv_c_stack_direction=0
13672 else
13673 cat >conftest.$ac_ext <<_ACEOF
13674 #line $LINENO "configure"
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13681 find_stack_direction ()
13683 static char *addr = 0;
13684 auto char dummy;
13685 if (addr == 0)
13687 addr = &dummy;
13688 return find_stack_direction ();
13690 else
13691 return (&dummy > addr) ? 1 : -1;
13695 main ()
13697 exit (find_stack_direction () < 0);
13699 _ACEOF
13700 rm -f conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_c_stack_direction=1
13712 else
13713 echo "$as_me: program exited with status $ac_status" >&5
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ( exit $ac_status )
13718 ac_cv_c_stack_direction=-1
13720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13723 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13724 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13726 cat >>confdefs.h <<_ACEOF
13727 #define STACK_DIRECTION $ac_cv_c_stack_direction
13728 _ACEOF
13784 for ac_func in \
13785 _lwp_create \
13786 _lwp_self \
13787 _pclose \
13788 _popen \
13789 _snprintf \
13790 _spawnvp \
13791 _stricmp \
13792 _strnicmp \
13793 _vsnprintf \
13794 chsize \
13795 clone \
13796 finite \
13797 fpclass \
13798 ftruncate \
13799 ftruncate64 \
13800 getnetbyaddr \
13801 getnetbyname \
13802 getopt_long \
13803 getpagesize \
13804 getprotobyname \
13805 getprotobynumber \
13806 getpwuid \
13807 getservbyport \
13808 gettimeofday \
13809 inet_network \
13810 lseek64 \
13811 lstat \
13812 memmove \
13813 mmap \
13814 pclose \
13815 popen \
13816 pread \
13817 pwrite \
13818 rfork \
13819 select \
13820 sendmsg \
13821 settimeofday \
13822 sigaltstack \
13823 snprintf \
13824 spawnvp \
13825 statfs \
13826 strcasecmp \
13827 strerror \
13828 strncasecmp \
13829 tcgetattr \
13830 timegm \
13831 usleep \
13832 vfscanf \
13833 vsnprintf \
13834 wait4 \
13835 waitpid \
13838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 echo "$as_me:$LINENO: checking for $ac_func" >&5
13840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13841 if eval "test \"\${$as_ac_var+set}\" = set"; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844 cat >conftest.$ac_ext <<_ACEOF
13845 #line $LINENO "configure"
13846 /* confdefs.h. */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char $ac_func (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13855 #ifdef __STDC__
13856 # include <limits.h>
13857 #else
13858 # include <assert.h>
13859 #endif
13860 /* Override any gcc2 internal prototype to avoid an error. */
13861 #ifdef __cplusplus
13862 extern "C"
13864 #endif
13865 /* We use char because int might match the return type of a gcc2
13866 builtin and then its argument prototype would still apply. */
13867 char $ac_func ();
13868 /* The GNU C library defines this for functions which it implements
13869 to always fail with ENOSYS. Some functions are actually named
13870 something starting with __ and the normal name is an alias. */
13871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13872 choke me
13873 #else
13874 char (*f) () = $ac_func;
13875 #endif
13876 #ifdef __cplusplus
13878 #endif
13881 main ()
13883 return f != $ac_func;
13885 return 0;
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 eval "$as_ac_var=yes"
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 eval "$as_ac_var=no"
13907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13911 if test `eval echo '${'$as_ac_var'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13914 _ACEOF
13917 done
14000 for ac_header in \
14001 arpa/inet.h \
14002 arpa/nameser.h \
14003 cups/cups.h \
14004 direct.h \
14005 elf.h \
14006 float.h \
14007 getopt.h \
14008 ieeefp.h \
14009 io.h \
14010 jack/jack.h \
14011 libio.h \
14012 libutil.h \
14013 link.h \
14014 linux/cdrom.h \
14015 linux/hdreg.h \
14016 linux/input.h \
14017 linux/joystick.h \
14018 linux/major.h \
14019 linux/param.h \
14020 linux/serial.h \
14021 linux/ucdrom.h \
14022 machine/cpu.h \
14023 netdb.h \
14024 netinet/in.h \
14025 netinet/in_systm.h \
14026 netinet/tcp.h \
14027 netinet/tcp_fsm.h \
14028 openssl/ssl.h \
14029 process.h \
14030 pthread.h \
14031 pty.h \
14032 pwd.h \
14033 regex.h \
14034 sched.h \
14035 scsi/sg.h \
14036 scsi/scsi.h \
14037 scsi/scsi_ioctl.h \
14038 socket.h \
14039 stdint.h \
14040 strings.h \
14041 sys/cdio.h \
14042 sys/errno.h \
14043 sys/file.h \
14044 sys/filio.h \
14045 sys/inttypes.h \
14046 sys/ioctl.h \
14047 sys/ipc.h \
14048 sys/link.h \
14049 sys/lwp.h \
14050 sys/mman.h \
14051 sys/modem.h \
14052 sys/msg.h \
14053 sys/param.h \
14054 sys/poll.h \
14055 sys/ptrace.h \
14056 sys/reg.h \
14057 sys/scsiio.h \
14058 sys/shm.h \
14059 sys/signal.h \
14060 sys/socket.h \
14061 sys/sockio.h \
14062 sys/statfs.h \
14063 sys/strtio.h \
14064 sys/syscall.h \
14065 sys/sysctl.h \
14066 sys/time.h \
14067 sys/times.h \
14068 sys/uio.h \
14069 sys/un.h \
14070 sys/v86.h \
14071 sys/v86intr.h \
14072 sys/vfs.h \
14073 sys/vm86.h \
14074 sys/wait.h \
14075 syscall.h \
14076 termios.h \
14077 unistd.h \
14078 utime.h \
14079 valgrind/memcheck.h
14082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14084 echo "$as_me:$LINENO: checking for $ac_header" >&5
14085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14091 else
14092 # Is the header compilable?
14093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14095 cat >conftest.$ac_ext <<_ACEOF
14096 #line $LINENO "configure"
14097 /* confdefs.h. */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14103 #include <$ac_header>
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_header_compiler=yes
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_header_compiler=no
14124 rm -f conftest.$ac_objext conftest.$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14126 echo "${ECHO_T}$ac_header_compiler" >&6
14128 # Is the header present?
14129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14131 cat >conftest.$ac_ext <<_ACEOF
14132 #line $LINENO "configure"
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 #include <$ac_header>
14139 _ACEOF
14140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } >/dev/null; then
14148 if test -s conftest.err; then
14149 ac_cpp_err=$ac_c_preproc_warn_flag
14150 else
14151 ac_cpp_err=
14153 else
14154 ac_cpp_err=yes
14156 if test -z "$ac_cpp_err"; then
14157 ac_header_preproc=yes
14158 else
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_header_preproc=no
14164 rm -f conftest.err conftest.$ac_ext
14165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14166 echo "${ECHO_T}$ac_header_preproc" >&6
14168 # So? What about this header?
14169 case $ac_header_compiler:$ac_header_preproc in
14170 yes:no )
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176 cat <<\_ASBOX
14177 ## ------------------------------------ ##
14178 ## Report this to bug-autoconf@gnu.org. ##
14179 ## ------------------------------------ ##
14180 _ASBOX
14182 sed "s/^/$as_me: WARNING: /" >&2
14184 no:yes )
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14192 cat <<\_ASBOX
14193 ## ------------------------------------ ##
14194 ## Report this to bug-autoconf@gnu.org. ##
14195 ## ------------------------------------ ##
14196 _ASBOX
14198 sed "s/^/$as_me: WARNING: /" >&2
14200 esac
14201 echo "$as_me:$LINENO: checking for $ac_header" >&5
14202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 eval "$as_ac_Header=$ac_header_preproc"
14208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14213 cat >>confdefs.h <<_ACEOF
14214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215 _ACEOF
14219 done
14221 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14222 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14223 if test "${ac_cv_header_stat_broken+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14228 /* confdefs.h. */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14234 #include <sys/stat.h>
14236 #if defined(S_ISBLK) && defined(S_IFDIR)
14237 # if S_ISBLK (S_IFDIR)
14238 You lose.
14239 # endif
14240 #endif
14242 #if defined(S_ISBLK) && defined(S_IFCHR)
14243 # if S_ISBLK (S_IFCHR)
14244 You lose.
14245 # endif
14246 #endif
14248 #if defined(S_ISLNK) && defined(S_IFREG)
14249 # if S_ISLNK (S_IFREG)
14250 You lose.
14251 # endif
14252 #endif
14254 #if defined(S_ISSOCK) && defined(S_IFREG)
14255 # if S_ISSOCK (S_IFREG)
14256 You lose.
14257 # endif
14258 #endif
14260 _ACEOF
14261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14262 $EGREP "You lose" >/dev/null 2>&1; then
14263 ac_cv_header_stat_broken=yes
14264 else
14265 ac_cv_header_stat_broken=no
14267 rm -f conftest*
14270 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14271 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14272 if test $ac_cv_header_stat_broken = yes; then
14274 cat >>confdefs.h <<\_ACEOF
14275 #define STAT_MACROS_BROKEN 1
14276 _ACEOF
14284 for ac_header in sys/mount.h sys/user.h
14286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14287 echo "$as_me:$LINENO: checking for $ac_header" >&5
14288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 #include <sys/types.h>
14300 #if HAVE_SYS_PARAM_H
14301 # include <sys/param.h>
14302 #endif
14304 #include <$ac_header>
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 eval "$as_ac_Header=yes"
14319 else
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14323 eval "$as_ac_Header=no"
14325 rm -f conftest.$ac_objext conftest.$ac_ext
14327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14330 cat >>confdefs.h <<_ACEOF
14331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14332 _ACEOF
14336 done
14344 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14347 echo "$as_me:$LINENO: checking for $ac_header" >&5
14348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 cat >conftest.$ac_ext <<_ACEOF
14353 #line $LINENO "configure"
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 #include <sys/types.h>
14360 #if HAVE_SYS_SOCKET_H
14361 # include <sys/socket.h>
14362 #endif
14364 #include <$ac_header>
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14378 eval "$as_ac_Header=yes"
14379 else
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 eval "$as_ac_Header=no"
14385 rm -f conftest.$ac_objext conftest.$ac_ext
14387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14390 cat >>confdefs.h <<_ACEOF
14391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14392 _ACEOF
14396 done
14400 for ac_header in resolv.h
14402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14403 echo "$as_me:$LINENO: checking for $ac_header" >&5
14404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 #include <sys/types.h>
14416 #if HAVE_SYS_SOCKET_H
14417 # include <sys/socket.h>
14418 #endif
14419 #if HAVE_NETINET_IN_H
14420 # include <netinet/in.h>
14421 #endif
14423 #include <$ac_header>
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 eval "$as_ac_Header=yes"
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 eval "$as_ac_Header=no"
14444 rm -f conftest.$ac_objext conftest.$ac_ext
14446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14449 cat >>confdefs.h <<_ACEOF
14450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14451 _ACEOF
14455 done
14459 for ac_header in netinet/ip.h
14461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14462 echo "$as_me:$LINENO: checking for $ac_header" >&5
14463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #include <sys/types.h>
14475 #if HAVE_SYS_SOCKET_H
14476 # include <sys/socket.h>
14477 #endif
14478 #if HAVE_NETINET_IN_SYSTM_H
14479 # include <netinet/in_systm.h>
14480 #endif
14482 #include <$ac_header>
14483 _ACEOF
14484 rm -f conftest.$ac_objext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14486 (eval $ac_compile) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 eval "$as_ac_Header=yes"
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 eval "$as_ac_Header=no"
14503 rm -f conftest.$ac_objext conftest.$ac_ext
14505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14508 cat >>confdefs.h <<_ACEOF
14509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14510 _ACEOF
14514 done
14518 for ac_header in ucontext.h
14520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14521 echo "$as_me:$LINENO: checking for $ac_header" >&5
14522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14528 /* confdefs.h. */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 #include <signal.h>
14535 #include <$ac_header>
14536 _ACEOF
14537 rm -f conftest.$ac_objext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 eval "$as_ac_Header=yes"
14550 else
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 eval "$as_ac_Header=no"
14556 rm -f conftest.$ac_objext conftest.$ac_ext
14558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14563 _ACEOF
14567 done
14571 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14572 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14573 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576 cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14578 /* confdefs.h. */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 #include <sys/types.h>
14584 #ifdef HAVE_SYS_SOCKET_H
14585 # include <sys/socket.h>
14586 #endif
14587 #include <netipx/ipx.h>
14589 main ()
14591 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14593 return 0;
14595 _ACEOF
14596 rm -f conftest.$ac_objext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14598 (eval $ac_compile) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14608 ac_cv_c_ipx_gnu="yes"
14609 else
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_cv_c_ipx_gnu="no"
14615 rm -f conftest.$ac_objext conftest.$ac_ext
14618 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14619 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14620 if test "$ac_cv_c_ipx_gnu" = "yes"
14621 then
14623 cat >>confdefs.h <<\_ACEOF
14624 #define HAVE_IPX_GNU 1
14625 _ACEOF
14629 if test "$ac_cv_c_ipx_gnu" = "no"
14630 then
14631 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14632 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14633 if test "${ac_cv_c_ipx_linux+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14635 else
14636 cat >conftest.$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 #include <sys/types.h>
14644 #ifdef HAVE_SYS_SOCKET_H
14645 # include <sys/socket.h>
14646 #endif
14647 #include <asm/types.h>
14648 #include <linux/ipx.h>
14650 main ()
14652 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14654 return 0;
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } &&
14663 { ac_try='test -s conftest.$ac_objext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_cv_c_ipx_linux="yes"
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_c_ipx_linux="no"
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14680 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14681 if test "$ac_cv_c_ipx_linux" = "yes"
14682 then
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_IPX_LINUX 1
14686 _ACEOF
14692 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14693 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14694 if test "${ac_cv_c_const+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697 cat >conftest.$ac_ext <<_ACEOF
14698 #line $LINENO "configure"
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14706 main ()
14708 /* FIXME: Include the comments suggested by Paul. */
14709 #ifndef __cplusplus
14710 /* Ultrix mips cc rejects this. */
14711 typedef int charset[2];
14712 const charset x;
14713 /* SunOS 4.1.1 cc rejects this. */
14714 char const *const *ccp;
14715 char **p;
14716 /* NEC SVR4.0.2 mips cc rejects this. */
14717 struct point {int x, y;};
14718 static struct point const zero = {0,0};
14719 /* AIX XL C 1.02.0.0 rejects this.
14720 It does not let you subtract one const X* pointer from another in
14721 an arm of an if-expression whose if-part is not a constant
14722 expression */
14723 const char *g = "string";
14724 ccp = &g + (g ? g-g : 0);
14725 /* HPUX 7.0 cc rejects these. */
14726 ++ccp;
14727 p = (char**) ccp;
14728 ccp = (char const *const *) p;
14729 { /* SCO 3.2v4 cc rejects this. */
14730 char *t;
14731 char const *s = 0 ? (char *) 0 : (char const *) 0;
14733 *t++ = 0;
14735 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14736 int x[] = {25, 17};
14737 const int *foo = &x[0];
14738 ++foo;
14740 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14741 typedef const int *iptr;
14742 iptr p = 0;
14743 ++p;
14745 { /* AIX XL C 1.02.0.0 rejects this saying
14746 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14747 struct s { int j; const int *ap[3]; };
14748 struct s *b; b->j = 5;
14750 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14751 const int foo = 10;
14753 #endif
14756 return 0;
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>&5
14762 ac_status=$?
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_c_const=yes
14772 else
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 ac_cv_c_const=no
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14780 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14781 echo "${ECHO_T}$ac_cv_c_const" >&6
14782 if test $ac_cv_c_const = no; then
14784 cat >>confdefs.h <<\_ACEOF
14785 #define const
14786 _ACEOF
14790 echo "$as_me:$LINENO: checking for inline" >&5
14791 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14792 if test "${ac_cv_c_inline+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 ac_cv_c_inline=no
14796 for ac_kw in inline __inline__ __inline; do
14797 cat >conftest.$ac_ext <<_ACEOF
14798 #line $LINENO "configure"
14799 /* confdefs.h. */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #ifndef __cplusplus
14805 typedef int foo_t;
14806 static $ac_kw foo_t static_foo () {return 0; }
14807 $ac_kw foo_t foo () {return 0; }
14808 #endif
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813 (eval $ac_compile) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_cv_c_inline=$ac_kw; break
14824 else
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14829 rm -f conftest.$ac_objext conftest.$ac_ext
14830 done
14833 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14834 echo "${ECHO_T}$ac_cv_c_inline" >&6
14835 case $ac_cv_c_inline in
14836 inline | yes) ;;
14838 cat >>confdefs.h <<\_ACEOF
14839 #define inline
14840 _ACEOF
14842 *) cat >>confdefs.h <<_ACEOF
14843 #define inline $ac_cv_c_inline
14844 _ACEOF
14846 esac
14848 echo "$as_me:$LINENO: checking for mode_t" >&5
14849 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14850 if test "${ac_cv_type_mode_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 cat >conftest.$ac_ext <<_ACEOF
14854 #line $LINENO "configure"
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14862 main ()
14864 if ((mode_t *) 0)
14865 return 0;
14866 if (sizeof (mode_t))
14867 return 0;
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_type_mode_t=yes
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_cv_type_mode_t=no
14891 rm -f conftest.$ac_objext conftest.$ac_ext
14893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14895 if test $ac_cv_type_mode_t = yes; then
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_MODE_T 1
14899 _ACEOF
14903 echo "$as_me:$LINENO: checking for off_t" >&5
14904 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14905 if test "${ac_cv_type_off_t+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908 cat >conftest.$ac_ext <<_ACEOF
14909 #line $LINENO "configure"
14910 /* confdefs.h. */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 $ac_includes_default
14917 main ()
14919 if ((off_t *) 0)
14920 return 0;
14921 if (sizeof (off_t))
14922 return 0;
14924 return 0;
14926 _ACEOF
14927 rm -f conftest.$ac_objext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929 (eval $ac_compile) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_type_off_t=yes
14940 else
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_cv_type_off_t=no
14946 rm -f conftest.$ac_objext conftest.$ac_ext
14948 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14949 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14950 if test $ac_cv_type_off_t = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953 #define HAVE_OFF_T 1
14954 _ACEOF
14958 echo "$as_me:$LINENO: checking for pid_t" >&5
14959 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14960 if test "${ac_cv_type_pid_t+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 $ac_includes_default
14972 main ()
14974 if ((pid_t *) 0)
14975 return 0;
14976 if (sizeof (pid_t))
14977 return 0;
14979 return 0;
14981 _ACEOF
14982 rm -f conftest.$ac_objext
14983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -s conftest.$ac_objext'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_cv_type_pid_t=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_cv_type_pid_t=no
15001 rm -f conftest.$ac_objext conftest.$ac_ext
15003 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15004 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15005 if test $ac_cv_type_pid_t = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_PID_T 1
15009 _ACEOF
15013 echo "$as_me:$LINENO: checking for size_t" >&5
15014 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15015 if test "${ac_cv_type_size_t+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018 cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 $ac_includes_default
15027 main ()
15029 if ((size_t *) 0)
15030 return 0;
15031 if (sizeof (size_t))
15032 return 0;
15034 return 0;
15036 _ACEOF
15037 rm -f conftest.$ac_objext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15039 (eval $ac_compile) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_type_size_t=yes
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_type_size_t=no
15056 rm -f conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15059 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15060 if test $ac_cv_type_size_t = yes; then
15062 cat >>confdefs.h <<_ACEOF
15063 #define HAVE_SIZE_T 1
15064 _ACEOF
15068 echo "$as_me:$LINENO: checking for ssize_t" >&5
15069 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15070 if test "${ac_cv_type_ssize_t+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073 cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15082 main ()
15084 if ((ssize_t *) 0)
15085 return 0;
15086 if (sizeof (ssize_t))
15087 return 0;
15089 return 0;
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_type_ssize_t=yes
15105 else
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_cv_type_ssize_t=no
15111 rm -f conftest.$ac_objext conftest.$ac_ext
15113 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15114 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15115 if test $ac_cv_type_ssize_t = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_SSIZE_T 1
15119 _ACEOF
15124 echo "$as_me:$LINENO: checking for long long" >&5
15125 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15126 if test "${ac_cv_type_long_long+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 else
15129 cat >conftest.$ac_ext <<_ACEOF
15130 #line $LINENO "configure"
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 $ac_includes_default
15138 main ()
15140 if ((long long *) 0)
15141 return 0;
15142 if (sizeof (long long))
15143 return 0;
15145 return 0;
15147 _ACEOF
15148 rm -f conftest.$ac_objext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150 (eval $ac_compile) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_type_long_long=yes
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_cv_type_long_long=no
15167 rm -f conftest.$ac_objext conftest.$ac_ext
15169 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15170 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15172 echo "$as_me:$LINENO: checking size of long long" >&5
15173 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15174 if test "${ac_cv_sizeof_long_long+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177 if test "$ac_cv_type_long_long" = yes; then
15178 # The cast to unsigned long works around a bug in the HP C Compiler
15179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15181 # This bug is HP SR number 8606223364.
15182 if test "$cross_compiling" = yes; then
15183 # Depending upon the size, compute the lo and hi bounds.
15184 cat >conftest.$ac_ext <<_ACEOF
15185 #line $LINENO "configure"
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 $ac_includes_default
15193 main ()
15195 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15196 test_array [0] = 0
15199 return 0;
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204 (eval $ac_compile) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_lo=0 ac_mid=0
15215 while :; do
15216 cat >conftest.$ac_ext <<_ACEOF
15217 #line $LINENO "configure"
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 $ac_includes_default
15225 main ()
15227 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15228 test_array [0] = 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_hi=$ac_mid; break
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 ac_lo=`expr $ac_mid + 1`
15252 if test $ac_lo -le $ac_mid; then
15253 ac_lo= ac_hi=
15254 break
15256 ac_mid=`expr 2 '*' $ac_mid + 1`
15258 rm -f conftest.$ac_objext conftest.$ac_ext
15259 done
15260 else
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 cat >conftest.$ac_ext <<_ACEOF
15265 #line $LINENO "configure"
15266 /* confdefs.h. */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 $ac_includes_default
15273 main ()
15275 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15276 test_array [0] = 0
15279 return 0;
15281 _ACEOF
15282 rm -f conftest.$ac_objext
15283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15284 (eval $ac_compile) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -s conftest.$ac_objext'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_hi=-1 ac_mid=-1
15295 while :; do
15296 cat >conftest.$ac_ext <<_ACEOF
15297 #line $LINENO "configure"
15298 /* confdefs.h. */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 $ac_includes_default
15305 main ()
15307 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15308 test_array [0] = 0
15311 return 0;
15313 _ACEOF
15314 rm -f conftest.$ac_objext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15316 (eval $ac_compile) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_lo=$ac_mid; break
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_hi=`expr '(' $ac_mid ')' - 1`
15332 if test $ac_mid -le $ac_hi; then
15333 ac_lo= ac_hi=
15334 break
15336 ac_mid=`expr 2 '*' $ac_mid`
15338 rm -f conftest.$ac_objext conftest.$ac_ext
15339 done
15340 else
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_lo= ac_hi=
15346 rm -f conftest.$ac_objext conftest.$ac_ext
15348 rm -f conftest.$ac_objext conftest.$ac_ext
15349 # Binary search between lo and hi bounds.
15350 while test "x$ac_lo" != "x$ac_hi"; do
15351 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 $ac_includes_default
15361 main ()
15363 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15364 test_array [0] = 0
15367 return 0;
15369 _ACEOF
15370 rm -f conftest.$ac_objext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15372 (eval $ac_compile) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_hi=$ac_mid
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_lo=`expr '(' $ac_mid ')' + 1`
15389 rm -f conftest.$ac_objext conftest.$ac_ext
15390 done
15391 case $ac_lo in
15392 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15393 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15394 See \`config.log' for more details." >&5
15395 echo "$as_me: error: cannot compute sizeof (long long), 77
15396 See \`config.log' for more details." >&2;}
15397 { (exit 1); exit 1; }; } ;;
15398 esac
15399 else
15400 if test "$cross_compiling" = yes; then
15401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15402 See \`config.log' for more details." >&5
15403 echo "$as_me: error: cannot run test program while cross compiling
15404 See \`config.log' for more details." >&2;}
15405 { (exit 1); exit 1; }; }
15406 else
15407 cat >conftest.$ac_ext <<_ACEOF
15408 #line $LINENO "configure"
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 $ac_includes_default
15415 long longval () { return (long) (sizeof (long long)); }
15416 unsigned long ulongval () { return (long) (sizeof (long long)); }
15417 #include <stdio.h>
15418 #include <stdlib.h>
15420 main ()
15423 FILE *f = fopen ("conftest.val", "w");
15424 if (! f)
15425 exit (1);
15426 if (((long) (sizeof (long long))) < 0)
15428 long i = longval ();
15429 if (i != ((long) (sizeof (long long))))
15430 exit (1);
15431 fprintf (f, "%ld\n", i);
15433 else
15435 unsigned long i = ulongval ();
15436 if (i != ((long) (sizeof (long long))))
15437 exit (1);
15438 fprintf (f, "%lu\n", i);
15440 exit (ferror (f) || fclose (f) != 0);
15443 return 0;
15445 _ACEOF
15446 rm -f conftest$ac_exeext
15447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15448 (eval $ac_link) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_sizeof_long_long=`cat conftest.val`
15458 else
15459 echo "$as_me: program exited with status $ac_status" >&5
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ( exit $ac_status )
15464 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15465 See \`config.log' for more details." >&5
15466 echo "$as_me: error: cannot compute sizeof (long long), 77
15467 See \`config.log' for more details." >&2;}
15468 { (exit 1); exit 1; }; }
15470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15473 rm -f conftest.val
15474 else
15475 ac_cv_sizeof_long_long=0
15478 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15479 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15480 cat >>confdefs.h <<_ACEOF
15481 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15482 _ACEOF
15486 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15487 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15488 if test "${wine_cv_linux_input_h+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491 cat >conftest.$ac_ext <<_ACEOF
15492 #line $LINENO "configure"
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15499 #include <linux/input.h>
15502 main ()
15505 int foo = EVIOCGBIT(EV_ABS,42);
15506 int bar = BTN_PINKIE;
15507 int fortytwo = 42;
15510 return 0;
15512 _ACEOF
15513 rm -f conftest.$ac_objext
15514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515 (eval $ac_compile) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -s conftest.$ac_objext'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15522 ac_status=$?
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15525 wine_cv_linux_input_h=yes
15526 else
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15530 wine_cv_linux_input_h=no
15532 rm -f conftest.$ac_objext conftest.$ac_ext
15535 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15536 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15537 if test "$wine_cv_linux_input_h" = "yes"
15538 then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE_CORRECT_LINUXINPUT_H 1
15542 _ACEOF
15547 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15548 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15549 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15560 #include <netdb.h>
15563 main ()
15566 char *name=NULL;
15567 struct hostent he;
15568 struct hostent *result;
15569 char *buf=NULL;
15570 int bufsize=0;
15571 int res,errnr;
15572 char *addr=NULL;
15573 int addrlen=0;
15574 int addrtype=0;
15575 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15576 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -s conftest.$ac_objext'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 wine_cv_linux_gethostbyname_r_6=yes
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 wine_cv_linux_gethostbyname_r_6=no
15602 rm -f conftest.$ac_objext conftest.$ac_ext
15605 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15606 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15607 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15608 then
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15612 _ACEOF
15616 if test "$ac_cv_header_linux_joystick_h" = "yes"
15617 then
15618 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15619 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15620 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623 cat >conftest.$ac_ext <<_ACEOF
15624 #line $LINENO "configure"
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 #include <sys/ioctl.h>
15632 #include <linux/joystick.h>
15634 struct js_event blub;
15635 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15636 #error "no 2.2 header"
15637 #endif
15640 main ()
15642 /*empty*/
15644 return 0;
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649 (eval $ac_compile) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 wine_cv_linux_joystick_22_api=yes
15660 else
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 wine_cv_linux_joystick_22_api=no
15666 rm -f conftest.$ac_objext conftest.$ac_ext
15669 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15670 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15671 if test "$wine_cv_linux_joystick_22_api" = "yes"
15672 then
15674 cat >>confdefs.h <<\_ACEOF
15675 #define HAVE_LINUX_22_JOYSTICK_API 1
15676 _ACEOF
15682 if test "$ac_cv_header_sys_vfs_h" = "yes"
15683 then
15684 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15685 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15686 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689 cat >conftest.$ac_ext <<_ACEOF
15690 #line $LINENO "configure"
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 #include <sys/types.h>
15698 #ifdef HAVE_SYS_PARAM_H
15699 # include <sys/param.h>
15700 #endif
15701 #include <sys/vfs.h>
15704 main ()
15707 struct statfs stfs;
15709 memset(&stfs,0,sizeof(stfs));
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest.$ac_objext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 wine_cv_sys_vfs_has_statfs=yes
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 wine_cv_sys_vfs_has_statfs=no
15735 rm -f conftest.$ac_objext conftest.$ac_ext
15738 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15739 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15740 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15741 then
15743 cat >>confdefs.h <<\_ACEOF
15744 #define STATFS_DEFINED_BY_SYS_VFS 1
15745 _ACEOF
15750 if test "$ac_cv_header_sys_statfs_h" = "yes"
15751 then
15752 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15753 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15754 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757 cat >conftest.$ac_ext <<_ACEOF
15758 #line $LINENO "configure"
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15765 #include <sys/types.h>
15766 #ifdef HAVE_SYS_PARAM_H
15767 # include <sys/param.h>
15768 #endif
15769 #include <sys/statfs.h>
15772 main ()
15775 struct statfs stfs;
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 wine_cv_sys_statfs_has_statfs=yes
15794 else
15795 echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 wine_cv_sys_statfs_has_statfs=no
15801 rm -f conftest.$ac_objext conftest.$ac_ext
15804 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15805 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15806 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15807 then
15809 cat >>confdefs.h <<\_ACEOF
15810 #define STATFS_DEFINED_BY_SYS_STATFS 1
15811 _ACEOF
15816 if test "$ac_cv_header_sys_mount_h" = "yes"
15817 then
15818 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15819 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15820 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823 cat >conftest.$ac_ext <<_ACEOF
15824 #line $LINENO "configure"
15825 /* confdefs.h. */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15831 #include <sys/types.h>
15832 #ifdef HAVE_SYS_PARAM_H
15833 # include <sys/param.h>
15834 #endif
15835 #include <sys/mount.h>
15838 main ()
15841 struct statfs stfs;
15844 return 0;
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 wine_cv_sys_mount_has_statfs=yes
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 wine_cv_sys_mount_has_statfs=no
15867 rm -f conftest.$ac_objext conftest.$ac_ext
15870 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15871 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15872 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15873 then
15875 cat >>confdefs.h <<\_ACEOF
15876 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15877 _ACEOF
15883 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15884 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15885 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888 cat >conftest.$ac_ext <<_ACEOF
15889 #line $LINENO "configure"
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <sys/types.h>
15896 #ifdef HAVE_SYS_PARAM_H
15897 # include <sys/param.h>
15898 #endif
15899 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15900 # include <sys/mount.h>
15901 #else
15902 # ifdef STATFS_DEFINED_BY_SYS_VFS
15903 # include <sys/vfs.h>
15904 # else
15905 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15906 # include <sys/statfs.h>
15907 # endif
15908 # endif
15909 #endif
15912 main ()
15914 static struct statfs ac_aggr;
15915 if (ac_aggr.f_bfree)
15916 return 0;
15918 return 0;
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923 (eval $ac_compile) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_cv_member_struct_statfs_f_bfree=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 cat >conftest.$ac_ext <<_ACEOF
15939 #line $LINENO "configure"
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <sys/types.h>
15946 #ifdef HAVE_SYS_PARAM_H
15947 # include <sys/param.h>
15948 #endif
15949 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15950 # include <sys/mount.h>
15951 #else
15952 # ifdef STATFS_DEFINED_BY_SYS_VFS
15953 # include <sys/vfs.h>
15954 # else
15955 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15956 # include <sys/statfs.h>
15957 # endif
15958 # endif
15959 #endif
15962 main ()
15964 static struct statfs ac_aggr;
15965 if (sizeof ac_aggr.f_bfree)
15966 return 0;
15968 return 0;
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_cv_member_struct_statfs_f_bfree=yes
15984 else
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_cv_member_struct_statfs_f_bfree=no
15990 rm -f conftest.$ac_objext conftest.$ac_ext
15992 rm -f conftest.$ac_objext conftest.$ac_ext
15994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15995 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15996 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_STRUCT_STATFS_F_BFREE 1
16000 _ACEOF
16004 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16005 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16006 if test "${ac_cv_member_struct_statfs_f_bavail+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. */
16016 #include <sys/types.h>
16017 #ifdef HAVE_SYS_PARAM_H
16018 # include <sys/param.h>
16019 #endif
16020 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16021 # include <sys/mount.h>
16022 #else
16023 # ifdef STATFS_DEFINED_BY_SYS_VFS
16024 # include <sys/vfs.h>
16025 # else
16026 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16027 # include <sys/statfs.h>
16028 # endif
16029 # endif
16030 #endif
16033 main ()
16035 static struct statfs ac_aggr;
16036 if (ac_aggr.f_bavail)
16037 return 0;
16039 return 0;
16041 _ACEOF
16042 rm -f conftest.$ac_objext
16043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16044 (eval $ac_compile) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -s conftest.$ac_objext'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_cv_member_struct_statfs_f_bavail=yes
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 cat >conftest.$ac_ext <<_ACEOF
16060 #line $LINENO "configure"
16061 /* confdefs.h. */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 #include <sys/types.h>
16067 #ifdef HAVE_SYS_PARAM_H
16068 # include <sys/param.h>
16069 #endif
16070 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16071 # include <sys/mount.h>
16072 #else
16073 # ifdef STATFS_DEFINED_BY_SYS_VFS
16074 # include <sys/vfs.h>
16075 # else
16076 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16077 # include <sys/statfs.h>
16078 # endif
16079 # endif
16080 #endif
16083 main ()
16085 static struct statfs ac_aggr;
16086 if (sizeof ac_aggr.f_bavail)
16087 return 0;
16089 return 0;
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16094 (eval $ac_compile) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_cv_member_struct_statfs_f_bavail=yes
16105 else
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_cv_member_struct_statfs_f_bavail=no
16111 rm -f conftest.$ac_objext conftest.$ac_ext
16113 rm -f conftest.$ac_objext conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16116 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16117 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16121 _ACEOF
16127 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16128 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16129 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132 cat >conftest.$ac_ext <<_ACEOF
16133 #line $LINENO "configure"
16134 /* confdefs.h. */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 #include <sys/types.h>
16140 #ifdef HAVE_SYS_SOCKET_H
16141 # include <sys/socket.h>
16142 #endif
16143 #ifdef HAVE_SYS_UN_H
16144 # include <sys/un.h>
16145 #endif
16148 main ()
16150 static struct msghdr ac_aggr;
16151 if (ac_aggr.msg_accrights)
16152 return 0;
16154 return 0;
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -s conftest.$ac_objext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_cv_member_struct_msghdr_msg_accrights=yes
16170 else
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16174 cat >conftest.$ac_ext <<_ACEOF
16175 #line $LINENO "configure"
16176 /* confdefs.h. */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 # include <sys/socket.h>
16184 #endif
16185 #ifdef HAVE_SYS_UN_H
16186 # include <sys/un.h>
16187 #endif
16190 main ()
16192 static struct msghdr ac_aggr;
16193 if (sizeof ac_aggr.msg_accrights)
16194 return 0;
16196 return 0;
16198 _ACEOF
16199 rm -f conftest.$ac_objext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_member_struct_msghdr_msg_accrights=yes
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_cv_member_struct_msghdr_msg_accrights=no
16218 rm -f conftest.$ac_objext conftest.$ac_ext
16220 rm -f conftest.$ac_objext conftest.$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16223 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16224 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16228 _ACEOF
16232 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16233 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16234 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 #include <sys/types.h>
16245 #ifdef HAVE_SYS_SOCKET_H
16246 # include <sys/socket.h>
16247 #endif
16248 #ifdef HAVE_SYS_UN_H
16249 # include <sys/un.h>
16250 #endif
16253 main ()
16255 static struct sockaddr ac_aggr;
16256 if (ac_aggr.sa_len)
16257 return 0;
16259 return 0;
16261 _ACEOF
16262 rm -f conftest.$ac_objext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16264 (eval $ac_compile) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -s conftest.$ac_objext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_member_struct_sockaddr_sa_len=yes
16275 else
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 cat >conftest.$ac_ext <<_ACEOF
16280 #line $LINENO "configure"
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <sys/types.h>
16287 #ifdef HAVE_SYS_SOCKET_H
16288 # include <sys/socket.h>
16289 #endif
16290 #ifdef HAVE_SYS_UN_H
16291 # include <sys/un.h>
16292 #endif
16295 main ()
16297 static struct sockaddr ac_aggr;
16298 if (sizeof ac_aggr.sa_len)
16299 return 0;
16301 return 0;
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -s conftest.$ac_objext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_cv_member_struct_sockaddr_sa_len=yes
16317 else
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 ac_cv_member_struct_sockaddr_sa_len=no
16323 rm -f conftest.$ac_objext conftest.$ac_ext
16325 rm -f conftest.$ac_objext conftest.$ac_ext
16327 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16328 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16329 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16333 _ACEOF
16337 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16338 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16339 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342 cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16344 /* confdefs.h. */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 #include <sys/types.h>
16350 #ifdef HAVE_SYS_SOCKET_H
16351 # include <sys/socket.h>
16352 #endif
16353 #ifdef HAVE_SYS_UN_H
16354 # include <sys/un.h>
16355 #endif
16358 main ()
16360 static struct sockaddr_un ac_aggr;
16361 if (ac_aggr.sun_len)
16362 return 0;
16364 return 0;
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369 (eval $ac_compile) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -s conftest.$ac_objext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_member_struct_sockaddr_un_sun_len=yes
16380 else
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
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 sockaddr_un ac_aggr;
16403 if (sizeof ac_aggr.sun_len)
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_sockaddr_un_sun_len=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_cv_member_struct_sockaddr_un_sun_len=no
16428 rm -f conftest.$ac_objext conftest.$ac_ext
16430 rm -f conftest.$ac_objext conftest.$ac_ext
16432 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16433 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16434 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16438 _ACEOF
16444 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16445 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16446 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449 cat >conftest.$ac_ext <<_ACEOF
16450 #line $LINENO "configure"
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <signal.h>
16459 main ()
16461 static siginfo_t ac_aggr;
16462 if (ac_aggr.si_fd)
16463 return 0;
16465 return 0;
16467 _ACEOF
16468 rm -f conftest.$ac_objext
16469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16470 (eval $ac_compile) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -s conftest.$ac_objext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_cv_member_siginfo_t_si_fd=yes
16481 else
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 cat >conftest.$ac_ext <<_ACEOF
16486 #line $LINENO "configure"
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 #include <signal.h>
16495 main ()
16497 static siginfo_t ac_aggr;
16498 if (sizeof ac_aggr.si_fd)
16499 return 0;
16501 return 0;
16503 _ACEOF
16504 rm -f conftest.$ac_objext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_cv_member_siginfo_t_si_fd=yes
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ac_cv_member_siginfo_t_si_fd=no
16523 rm -f conftest.$ac_objext conftest.$ac_ext
16525 rm -f conftest.$ac_objext conftest.$ac_ext
16527 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16528 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16529 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define HAVE_SIGINFO_T_SI_FD 1
16533 _ACEOF
16539 echo "$as_me:$LINENO: checking for struct option.name" >&5
16540 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16541 if test "${ac_cv_member_struct_option_name+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544 cat >conftest.$ac_ext <<_ACEOF
16545 #line $LINENO "configure"
16546 /* confdefs.h. */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 #ifdef HAVE_GETOPT_H
16552 #include <getopt.h>
16553 #endif
16556 main ()
16558 static struct option ac_aggr;
16559 if (ac_aggr.name)
16560 return 0;
16562 return 0;
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -s conftest.$ac_objext'
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
16577 ac_cv_member_struct_option_name=yes
16578 else
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 cat >conftest.$ac_ext <<_ACEOF
16583 #line $LINENO "configure"
16584 /* confdefs.h. */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16589 #ifdef HAVE_GETOPT_H
16590 #include <getopt.h>
16591 #endif
16594 main ()
16596 static struct option ac_aggr;
16597 if (sizeof ac_aggr.name)
16598 return 0;
16600 return 0;
16602 _ACEOF
16603 rm -f conftest.$ac_objext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16605 (eval $ac_compile) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -s conftest.$ac_objext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_member_struct_option_name=yes
16616 else
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_cv_member_struct_option_name=no
16622 rm -f conftest.$ac_objext conftest.$ac_ext
16624 rm -f conftest.$ac_objext conftest.$ac_ext
16626 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16627 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16628 if test $ac_cv_member_struct_option_name = yes; then
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_STRUCT_OPTION_NAME 1
16632 _ACEOF
16638 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16639 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16640 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643 cat >conftest.$ac_ext <<_ACEOF
16644 #line $LINENO "configure"
16645 /* confdefs.h. */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 $ac_includes_default
16652 main ()
16654 static struct stat ac_aggr;
16655 if (ac_aggr.st_blocks)
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_stat_st_blocks=yes
16674 else
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 cat >conftest.$ac_ext <<_ACEOF
16679 #line $LINENO "configure"
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 $ac_includes_default
16687 main ()
16689 static struct stat ac_aggr;
16690 if (sizeof ac_aggr.st_blocks)
16691 return 0;
16693 return 0;
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16698 (eval $ac_compile) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -s conftest.$ac_objext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_cv_member_struct_stat_st_blocks=yes
16709 else
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ac_cv_member_struct_stat_st_blocks=no
16715 rm -f conftest.$ac_objext conftest.$ac_ext
16717 rm -f conftest.$ac_objext conftest.$ac_ext
16719 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16720 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16721 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16725 _ACEOF
16732 case $host_cpu in
16733 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16734 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16735 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 else
16738 cat >conftest.$ac_ext <<_ACEOF
16739 #line $LINENO "configure"
16740 /* confdefs.h. */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 #ifndef __i386__
16747 #endif
16748 _ACEOF
16749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16750 $EGREP "yes" >/dev/null 2>&1; then
16751 ac_cv_cpp_def___i386__=yes
16752 else
16753 ac_cv_cpp_def___i386__=no
16755 rm -f conftest*
16758 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16759 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16760 if test $ac_cv_cpp_def___i386__ = yes; then
16761 CFLAGS="$CFLAGS -D__i386__"
16762 LINTFLAGS="$LINTFLAGS -D__i386__"
16765 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16766 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16767 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770 cat >conftest.$ac_ext <<_ACEOF
16771 #line $LINENO "configure"
16772 /* confdefs.h. */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 #ifndef __ALPHA__
16779 #endif
16780 _ACEOF
16781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16782 $EGREP "yes" >/dev/null 2>&1; then
16783 ac_cv_cpp_def___ALPHA__=yes
16784 else
16785 ac_cv_cpp_def___ALPHA__=no
16787 rm -f conftest*
16790 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16791 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16792 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16793 CFLAGS="$CFLAGS -D__ALPHA__"
16794 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16797 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16798 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16799 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802 cat >conftest.$ac_ext <<_ACEOF
16803 #line $LINENO "configure"
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 #ifndef __sparc__
16811 #endif
16812 _ACEOF
16813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16814 $EGREP "yes" >/dev/null 2>&1; then
16815 ac_cv_cpp_def___sparc__=yes
16816 else
16817 ac_cv_cpp_def___sparc__=no
16819 rm -f conftest*
16822 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16823 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16824 if test $ac_cv_cpp_def___sparc__ = yes; then
16825 CFLAGS="$CFLAGS -D__sparc__"
16826 LINTFLAGS="$LINTFLAGS -D__sparc__"
16829 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16830 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16831 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
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 #ifndef __powerpc__
16843 #endif
16844 _ACEOF
16845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16846 $EGREP "yes" >/dev/null 2>&1; then
16847 ac_cv_cpp_def___powerpc__=yes
16848 else
16849 ac_cv_cpp_def___powerpc__=no
16851 rm -f conftest*
16854 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16855 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16856 if test $ac_cv_cpp_def___powerpc__ = yes; then
16857 CFLAGS="$CFLAGS -D__powerpc__"
16858 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16861 esac
16863 case $host_vendor in
16864 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16865 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16866 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 cat >conftest.$ac_ext <<_ACEOF
16870 #line $LINENO "configure"
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 #ifndef __sun__
16878 #endif
16879 _ACEOF
16880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16881 $EGREP "yes" >/dev/null 2>&1; then
16882 ac_cv_cpp_def___sun__=yes
16883 else
16884 ac_cv_cpp_def___sun__=no
16886 rm -f conftest*
16889 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16890 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16891 if test $ac_cv_cpp_def___sun__ = yes; then
16892 CFLAGS="$CFLAGS -D__sun__"
16893 LINTFLAGS="$LINTFLAGS -D__sun__"
16896 esac
16902 ac_config_commands="$ac_config_commands controls"
16904 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16906 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16908 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16910 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16912 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16914 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16916 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16918 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16920 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16922 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16924 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16926 ac_config_commands="$ac_config_commands dlls/kernel/messages"
16928 ac_config_commands="$ac_config_commands dlls/user/dde"
16930 ac_config_commands="$ac_config_commands dlls/user/resources"
16932 ac_config_commands="$ac_config_commands dlls/wineps/data"
16934 ac_config_commands="$ac_config_commands files"
16936 ac_config_commands="$ac_config_commands graphics"
16938 ac_config_commands="$ac_config_commands graphics/x11drv"
16940 ac_config_commands="$ac_config_commands include/wine"
16942 ac_config_commands="$ac_config_commands loader"
16944 ac_config_commands="$ac_config_commands memory"
16946 ac_config_commands="$ac_config_commands misc"
16948 ac_config_commands="$ac_config_commands msdos"
16950 ac_config_commands="$ac_config_commands objects"
16952 ac_config_commands="$ac_config_commands programs/regapi/tests"
16954 ac_config_commands="$ac_config_commands programs/regedit/tests"
16956 ac_config_commands="$ac_config_commands scheduler"
16958 ac_config_commands="$ac_config_commands windows"
16961 MAKE_RULES=Make.rules
16964 MAKE_DLL_RULES=dlls/Makedll.rules
16967 MAKE_TEST_RULES=dlls/Maketest.rules
16970 MAKE_LIB_RULES=libs/Makelib.rules
16973 MAKE_PROG_RULES=programs/Makeprog.rules
16976 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/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/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/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 miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/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"
16979 cat >confcache <<\_ACEOF
16980 # This file is a shell script that caches the results of configure
16981 # tests run on this system so they can be shared between configure
16982 # scripts and configure runs, see configure's option --config-cache.
16983 # It is not useful on other systems. If it contains results you don't
16984 # want to keep, you may remove or edit it.
16986 # config.status only pays attention to the cache file if you give it
16987 # the --recheck option to rerun configure.
16989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16991 # following values.
16993 _ACEOF
16995 # The following way of writing the cache mishandles newlines in values,
16996 # but we know of no workaround that is simple, portable, and efficient.
16997 # So, don't put newlines in cache variables' values.
16998 # Ultrix sh set writes to stderr and can't be redirected directly,
16999 # and sets the high bit in the cache file unless we assign to the vars.
17001 (set) 2>&1 |
17002 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17003 *ac_space=\ *)
17004 # `set' does not quote correctly, so add quotes (double-quote
17005 # substitution turns \\\\ into \\, and sed turns \\ into \).
17006 sed -n \
17007 "s/'/'\\\\''/g;
17008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17011 # `set' quotes correctly as required by POSIX, so do not add quotes.
17012 sed -n \
17013 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17015 esac;
17017 sed '
17018 t clear
17019 : clear
17020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17021 t end
17022 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17023 : end' >>confcache
17024 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17025 if test -w $cache_file; then
17026 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17027 cat confcache >$cache_file
17028 else
17029 echo "not updating unwritable cache $cache_file"
17032 rm -f confcache
17034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17035 # Let make expand exec_prefix.
17036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17040 # trailing colons and then remove the whole line if VPATH becomes empty
17041 # (actually we leave an empty line to preserve line numbers).
17042 if test "x$srcdir" = x.; then
17043 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17044 s/:*\$(srcdir):*/:/;
17045 s/:*\${srcdir}:*/:/;
17046 s/:*@srcdir@:*/:/;
17047 s/^\([^=]*=[ ]*\):*/\1/;
17048 s/:*$//;
17049 s/^[^=]*=[ ]*$//;
17053 DEFS=-DHAVE_CONFIG_H
17055 ac_libobjs=
17056 ac_ltlibobjs=
17057 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17058 # 1. Remove the extension, and $U if already installed.
17059 ac_i=`echo "$ac_i" |
17060 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17061 # 2. Add them.
17062 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17063 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17064 done
17065 LIBOBJS=$ac_libobjs
17067 LTLIBOBJS=$ac_ltlibobjs
17071 : ${CONFIG_STATUS=./config.status}
17072 ac_clean_files_save=$ac_clean_files
17073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17074 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17075 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17076 cat >$CONFIG_STATUS <<_ACEOF
17077 #! $SHELL
17078 # Generated by $as_me.
17079 # Run this file to recreate the current configuration.
17080 # Compiler output produced by configure, useful for debugging
17081 # configure, is in config.log if it exists.
17083 debug=false
17084 ac_cs_recheck=false
17085 ac_cs_silent=false
17086 SHELL=\${CONFIG_SHELL-$SHELL}
17087 _ACEOF
17089 cat >>$CONFIG_STATUS <<\_ACEOF
17090 ## --------------------- ##
17091 ## M4sh Initialization. ##
17092 ## --------------------- ##
17094 # Be Bourne compatible
17095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17096 emulate sh
17097 NULLCMD=:
17098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17099 # is contrary to our usage. Disable this feature.
17100 alias -g '${1+"$@"}'='"$@"'
17101 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17102 set -o posix
17105 # Support unset when possible.
17106 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17107 as_unset=unset
17108 else
17109 as_unset=false
17113 # Work around bugs in pre-3.0 UWIN ksh.
17114 $as_unset ENV MAIL MAILPATH
17115 PS1='$ '
17116 PS2='> '
17117 PS4='+ '
17119 # NLS nuisances.
17120 for as_var in \
17121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17123 LC_TELEPHONE LC_TIME
17125 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17126 eval $as_var=C; export $as_var
17127 else
17128 $as_unset $as_var
17130 done
17132 # Required to use basename.
17133 if expr a : '\(a\)' >/dev/null 2>&1; then
17134 as_expr=expr
17135 else
17136 as_expr=false
17139 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17140 as_basename=basename
17141 else
17142 as_basename=false
17146 # Name of the executable.
17147 as_me=`$as_basename "$0" ||
17148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17149 X"$0" : 'X\(//\)$' \| \
17150 X"$0" : 'X\(/\)$' \| \
17151 . : '\(.\)' 2>/dev/null ||
17152 echo X/"$0" |
17153 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17154 /^X\/\(\/\/\)$/{ s//\1/; q; }
17155 /^X\/\(\/\).*/{ s//\1/; q; }
17156 s/.*/./; q'`
17159 # PATH needs CR, and LINENO needs CR and PATH.
17160 # Avoid depending upon Character Ranges.
17161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17164 as_cr_digits='0123456789'
17165 as_cr_alnum=$as_cr_Letters$as_cr_digits
17167 # The user is always right.
17168 if test "${PATH_SEPARATOR+set}" != set; then
17169 echo "#! /bin/sh" >conf$$.sh
17170 echo "exit 0" >>conf$$.sh
17171 chmod +x conf$$.sh
17172 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17173 PATH_SEPARATOR=';'
17174 else
17175 PATH_SEPARATOR=:
17177 rm -f conf$$.sh
17181 as_lineno_1=$LINENO
17182 as_lineno_2=$LINENO
17183 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17184 test "x$as_lineno_1" != "x$as_lineno_2" &&
17185 test "x$as_lineno_3" = "x$as_lineno_2" || {
17186 # Find who we are. Look in the path if we contain no path at all
17187 # relative or not.
17188 case $0 in
17189 *[\\/]* ) as_myself=$0 ;;
17190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17191 for as_dir in $PATH
17193 IFS=$as_save_IFS
17194 test -z "$as_dir" && as_dir=.
17195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17196 done
17199 esac
17200 # We did not find ourselves, most probably we were run as `sh COMMAND'
17201 # in which case we are not to be found in the path.
17202 if test "x$as_myself" = x; then
17203 as_myself=$0
17205 if test ! -f "$as_myself"; then
17206 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17207 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17208 { (exit 1); exit 1; }; }
17210 case $CONFIG_SHELL in
17212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17215 IFS=$as_save_IFS
17216 test -z "$as_dir" && as_dir=.
17217 for as_base in sh bash ksh sh5; do
17218 case $as_dir in
17220 if ("$as_dir/$as_base" -c '
17221 as_lineno_1=$LINENO
17222 as_lineno_2=$LINENO
17223 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17224 test "x$as_lineno_1" != "x$as_lineno_2" &&
17225 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17226 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17227 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17228 CONFIG_SHELL=$as_dir/$as_base
17229 export CONFIG_SHELL
17230 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17231 fi;;
17232 esac
17233 done
17234 done
17236 esac
17238 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17239 # uniformly replaced by the line number. The first 'sed' inserts a
17240 # line-number line before each line; the second 'sed' does the real
17241 # work. The second script uses 'N' to pair each line-number line
17242 # with the numbered line, and appends trailing '-' during
17243 # substitution so that $LINENO is not a special case at line end.
17244 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17245 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17246 sed '=' <$as_myself |
17247 sed '
17249 s,$,-,
17250 : loop
17251 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17252 t loop
17253 s,-$,,
17254 s,^['$as_cr_digits']*\n,,
17255 ' >$as_me.lineno &&
17256 chmod +x $as_me.lineno ||
17257 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17258 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17259 { (exit 1); exit 1; }; }
17261 # Don't try to exec as it changes $[0], causing all sort of problems
17262 # (the dirname of $[0] is not the place where we might find the
17263 # original and so on. Autoconf is especially sensible to this).
17264 . ./$as_me.lineno
17265 # Exit status is that of the last command.
17266 exit
17270 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17271 *c*,-n*) ECHO_N= ECHO_C='
17272 ' ECHO_T=' ' ;;
17273 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17274 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17275 esac
17277 if expr a : '\(a\)' >/dev/null 2>&1; then
17278 as_expr=expr
17279 else
17280 as_expr=false
17283 rm -f conf$$ conf$$.exe conf$$.file
17284 echo >conf$$.file
17285 if ln -s conf$$.file conf$$ 2>/dev/null; then
17286 # We could just check for DJGPP; but this test a) works b) is more generic
17287 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17288 if test -f conf$$.exe; then
17289 # Don't use ln at all; we don't have any links
17290 as_ln_s='cp -p'
17291 else
17292 as_ln_s='ln -s'
17294 elif ln conf$$.file conf$$ 2>/dev/null; then
17295 as_ln_s=ln
17296 else
17297 as_ln_s='cp -p'
17299 rm -f conf$$ conf$$.exe conf$$.file
17301 if mkdir -p . 2>/dev/null; then
17302 as_mkdir_p=:
17303 else
17304 as_mkdir_p=false
17307 as_executable_p="test -f"
17309 # Sed expression to map a string onto a valid CPP name.
17310 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17312 # Sed expression to map a string onto a valid variable name.
17313 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17316 # IFS
17317 # We need space, tab and new line, in precisely that order.
17318 as_nl='
17320 IFS=" $as_nl"
17322 # CDPATH.
17323 $as_unset CDPATH
17325 exec 6>&1
17327 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17328 # report actual input values of CONFIG_FILES etc. instead of their
17329 # values after options handling. Logging --version etc. is OK.
17330 exec 5>>config.log
17332 echo
17333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17334 ## Running $as_me. ##
17335 _ASBOX
17336 } >&5
17337 cat >&5 <<_CSEOF
17339 This file was extended by Wine $as_me 20030911, which was
17340 generated by GNU Autoconf 2.57. Invocation command line was
17342 CONFIG_FILES = $CONFIG_FILES
17343 CONFIG_HEADERS = $CONFIG_HEADERS
17344 CONFIG_LINKS = $CONFIG_LINKS
17345 CONFIG_COMMANDS = $CONFIG_COMMANDS
17346 $ $0 $@
17348 _CSEOF
17349 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17350 echo >&5
17351 _ACEOF
17353 # Files that config.status was made for.
17354 if test -n "$ac_config_files"; then
17355 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17358 if test -n "$ac_config_headers"; then
17359 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17362 if test -n "$ac_config_links"; then
17363 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17366 if test -n "$ac_config_commands"; then
17367 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17370 cat >>$CONFIG_STATUS <<\_ACEOF
17372 ac_cs_usage="\
17373 \`$as_me' instantiates files from templates according to the
17374 current configuration.
17376 Usage: $0 [OPTIONS] [FILE]...
17378 -h, --help print this help, then exit
17379 -V, --version print version number, then exit
17380 -q, --quiet do not print progress messages
17381 -d, --debug don't remove temporary files
17382 --recheck update $as_me by reconfiguring in the same conditions
17383 --file=FILE[:TEMPLATE]
17384 instantiate the configuration file FILE
17385 --header=FILE[:TEMPLATE]
17386 instantiate the configuration header FILE
17388 Configuration files:
17389 $config_files
17391 Configuration headers:
17392 $config_headers
17394 Configuration commands:
17395 $config_commands
17397 Report bugs to <bug-autoconf@gnu.org>."
17398 _ACEOF
17400 cat >>$CONFIG_STATUS <<_ACEOF
17401 ac_cs_version="\\
17402 Wine config.status 20030911
17403 configured by $0, generated by GNU Autoconf 2.57,
17404 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17406 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17407 Free Software Foundation, Inc.
17408 This config.status script is free software; the Free Software Foundation
17409 gives unlimited permission to copy, distribute and modify it."
17410 srcdir=$srcdir
17411 INSTALL="$INSTALL"
17412 _ACEOF
17414 cat >>$CONFIG_STATUS <<\_ACEOF
17415 # If no file are specified by the user, then we need to provide default
17416 # value. By we need to know if files were specified by the user.
17417 ac_need_defaults=:
17418 while test $# != 0
17420 case $1 in
17421 --*=*)
17422 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17423 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17424 ac_shift=:
17427 ac_option=$1
17428 ac_optarg=$2
17429 ac_shift=shift
17431 *) # This is not an option, so the user has probably given explicit
17432 # arguments.
17433 ac_option=$1
17434 ac_need_defaults=false;;
17435 esac
17437 case $ac_option in
17438 # Handling of the options.
17439 _ACEOF
17440 cat >>$CONFIG_STATUS <<\_ACEOF
17441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17442 ac_cs_recheck=: ;;
17443 --version | --vers* | -V )
17444 echo "$ac_cs_version"; exit 0 ;;
17445 --he | --h)
17446 # Conflict between --help and --header
17447 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17448 Try \`$0 --help' for more information." >&5
17449 echo "$as_me: error: ambiguous option: $1
17450 Try \`$0 --help' for more information." >&2;}
17451 { (exit 1); exit 1; }; };;
17452 --help | --hel | -h )
17453 echo "$ac_cs_usage"; exit 0 ;;
17454 --debug | --d* | -d )
17455 debug=: ;;
17456 --file | --fil | --fi | --f )
17457 $ac_shift
17458 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17459 ac_need_defaults=false;;
17460 --header | --heade | --head | --hea )
17461 $ac_shift
17462 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17463 ac_need_defaults=false;;
17464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17466 ac_cs_silent=: ;;
17468 # This is an error.
17469 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17470 Try \`$0 --help' for more information." >&5
17471 echo "$as_me: error: unrecognized option: $1
17472 Try \`$0 --help' for more information." >&2;}
17473 { (exit 1); exit 1; }; } ;;
17475 *) ac_config_targets="$ac_config_targets $1" ;;
17477 esac
17478 shift
17479 done
17481 ac_configure_extra_args=
17483 if $ac_cs_silent; then
17484 exec 6>/dev/null
17485 ac_configure_extra_args="$ac_configure_extra_args --silent"
17488 _ACEOF
17489 cat >>$CONFIG_STATUS <<_ACEOF
17490 if \$ac_cs_recheck; then
17491 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17492 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17495 _ACEOF
17501 cat >>$CONFIG_STATUS <<\_ACEOF
17502 for ac_config_target in $ac_config_targets
17504 case "$ac_config_target" in
17505 # Handling of arguments.
17506 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17507 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17508 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17509 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17510 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17511 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17512 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17513 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17514 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17515 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17516 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17517 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17518 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17519 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17520 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17521 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17522 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17523 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17524 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17525 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17526 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17527 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17528 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17529 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17530 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17531 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17532 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17533 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17534 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17535 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17536 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17537 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17538 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17539 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17540 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17541 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17542 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17543 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17544 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17545 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17546 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17547 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17548 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17549 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17550 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17551 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17552 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17553 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17554 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17555 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17556 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17557 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17558 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17559 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17560 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17561 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17562 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17563 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17564 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17565 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17566 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17567 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17568 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17569 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17570 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17571 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17572 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17573 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17574 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17575 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17576 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17577 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17578 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17579 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17580 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17581 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17582 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17583 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17584 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17585 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17586 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17587 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17588 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17589 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17590 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17591 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17592 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17593 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17594 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17595 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17596 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17597 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17598 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17599 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17600 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17601 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17602 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17603 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17604 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17605 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17606 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17607 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17608 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17609 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17610 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17611 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17612 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17613 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17614 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17615 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17616 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17617 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17618 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17619 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17620 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17621 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17622 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17623 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17624 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17625 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17626 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17627 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17628 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17629 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17630 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17631 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17632 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17633 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17634 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17635 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17636 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17637 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17638 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17639 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17640 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17641 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17642 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17643 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17644 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17645 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17646 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17647 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17648 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17649 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17650 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17651 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17652 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17653 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17654 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17655 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17656 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17657 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17658 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17659 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
17660 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17661 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17662 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17663 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17664 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17665 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17666 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17667 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17668 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17669 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17670 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17671 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17672 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17673 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17674 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17675 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17676 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17677 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17678 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17679 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17680 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17681 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17682 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17683 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17684 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17685 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17686 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17687 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17688 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17689 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17690 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17691 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17692 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17693 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17694 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17695 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17696 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17697 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17698 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17699 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17700 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17701 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17702 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17703 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17704 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17705 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17706 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17707 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17708 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17709 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17710 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17711 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17712 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17713 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17714 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17715 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17716 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17717 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17718 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17719 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
17720 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17721 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17722 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17723 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17724 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17725 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17726 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
17727 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17728 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17729 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17730 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17731 { (exit 1); exit 1; }; };;
17732 esac
17733 done
17735 # If the user did not use the arguments to specify the items to instantiate,
17736 # then the envvar interface is used. Set only those that are not.
17737 # We use the long form for the default assignment because of an extremely
17738 # bizarre bug on SunOS 4.1.3.
17739 if $ac_need_defaults; then
17740 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17741 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17745 # Have a temporary directory for convenience. Make it in the build tree
17746 # simply because there is no reason to put it here, and in addition,
17747 # creating and moving files from /tmp can sometimes cause problems.
17748 # Create a temporary directory, and hook for its removal unless debugging.
17749 $debug ||
17751 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17752 trap '{ (exit 1); exit 1; }' 1 2 13 15
17755 # Create a (secure) tmp directory for tmp files.
17758 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17759 test -n "$tmp" && test -d "$tmp"
17760 } ||
17762 tmp=./confstat$$-$RANDOM
17763 (umask 077 && mkdir $tmp)
17764 } ||
17766 echo "$me: cannot create a temporary directory in ." >&2
17767 { (exit 1); exit 1; }
17770 _ACEOF
17772 cat >>$CONFIG_STATUS <<_ACEOF
17775 # CONFIG_FILES section.
17778 # No need to generate the scripts if there are no CONFIG_FILES.
17779 # This happens for instance when ./config.status config.h
17780 if test -n "\$CONFIG_FILES"; then
17781 # Protect against being on the right side of a sed subst in config.status.
17782 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17783 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17784 s,@SHELL@,$SHELL,;t t
17785 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17786 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17787 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17788 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17789 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17790 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17791 s,@exec_prefix@,$exec_prefix,;t t
17792 s,@prefix@,$prefix,;t t
17793 s,@program_transform_name@,$program_transform_name,;t t
17794 s,@bindir@,$bindir,;t t
17795 s,@sbindir@,$sbindir,;t t
17796 s,@libexecdir@,$libexecdir,;t t
17797 s,@datadir@,$datadir,;t t
17798 s,@sysconfdir@,$sysconfdir,;t t
17799 s,@sharedstatedir@,$sharedstatedir,;t t
17800 s,@localstatedir@,$localstatedir,;t t
17801 s,@libdir@,$libdir,;t t
17802 s,@includedir@,$includedir,;t t
17803 s,@oldincludedir@,$oldincludedir,;t t
17804 s,@infodir@,$infodir,;t t
17805 s,@mandir@,$mandir,;t t
17806 s,@build_alias@,$build_alias,;t t
17807 s,@host_alias@,$host_alias,;t t
17808 s,@target_alias@,$target_alias,;t t
17809 s,@DEFS@,$DEFS,;t t
17810 s,@ECHO_C@,$ECHO_C,;t t
17811 s,@ECHO_N@,$ECHO_N,;t t
17812 s,@ECHO_T@,$ECHO_T,;t t
17813 s,@LIBS@,$LIBS,;t t
17814 s,@WIN16_FILES@,$WIN16_FILES,;t t
17815 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17816 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17817 s,@build@,$build,;t t
17818 s,@build_cpu@,$build_cpu,;t t
17819 s,@build_vendor@,$build_vendor,;t t
17820 s,@build_os@,$build_os,;t t
17821 s,@host@,$host,;t t
17822 s,@host_cpu@,$host_cpu,;t t
17823 s,@host_vendor@,$host_vendor,;t t
17824 s,@host_os@,$host_os,;t t
17825 s,@SET_MAKE@,$SET_MAKE,;t t
17826 s,@CC@,$CC,;t t
17827 s,@CFLAGS@,$CFLAGS,;t t
17828 s,@LDFLAGS@,$LDFLAGS,;t t
17829 s,@CPPFLAGS@,$CPPFLAGS,;t t
17830 s,@ac_ct_CC@,$ac_ct_CC,;t t
17831 s,@EXEEXT@,$EXEEXT,;t t
17832 s,@OBJEXT@,$OBJEXT,;t t
17833 s,@CPP@,$CPP,;t t
17834 s,@TOOLSDIR@,$TOOLSDIR,;t t
17835 s,@X_CFLAGS@,$X_CFLAGS,;t t
17836 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17837 s,@X_LIBS@,$X_LIBS,;t t
17838 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17839 s,@YACC@,$YACC,;t t
17840 s,@LEX@,$LEX,;t t
17841 s,@LEXLIB@,$LEXLIB,;t t
17842 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17843 s,@XYACC@,$XYACC,;t t
17844 s,@XLEX@,$XLEX,;t t
17845 s,@AS@,$AS,;t t
17846 s,@ac_ct_AS@,$ac_ct_AS,;t t
17847 s,@LD@,$LD,;t t
17848 s,@ac_ct_LD@,$ac_ct_LD,;t t
17849 s,@AR@,$AR,;t t
17850 s,@ac_ct_AR@,$ac_ct_AR,;t t
17851 s,@RANLIB@,$RANLIB,;t t
17852 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17853 s,@STRIP@,$STRIP,;t t
17854 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17855 s,@WINDRES@,$WINDRES,;t t
17856 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17857 s,@LN_S@,$LN_S,;t t
17858 s,@LN@,$LN,;t t
17859 s,@LDCONFIG@,$LDCONFIG,;t t
17860 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17861 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17862 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17863 s,@LINT@,$LINT,;t t
17864 s,@LINTFLAGS@,$LINTFLAGS,;t t
17865 s,@DB2HTML@,$DB2HTML,;t t
17866 s,@DB2PDF@,$DB2PDF,;t t
17867 s,@DB2PS@,$DB2PS,;t t
17868 s,@DB2TXT@,$DB2TXT,;t t
17869 s,@JPEGLIB@,$JPEGLIB,;t t
17870 s,@EGREP@,$EGREP,;t t
17871 s,@GIFLIB@,$GIFLIB,;t t
17872 s,@XLIB@,$XLIB,;t t
17873 s,@XFILES@,$XFILES,;t t
17874 s,@OPENGLFILES@,$OPENGLFILES,;t t
17875 s,@GLU32FILES@,$GLU32FILES,;t t
17876 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17877 s,@NASLIBS@,$NASLIBS,;t t
17878 s,@CURSESLIBS@,$CURSESLIBS,;t t
17879 s,@sane_devel@,$sane_devel,;t t
17880 s,@SANELIBS@,$SANELIBS,;t t
17881 s,@SANEINCL@,$SANEINCL,;t t
17882 s,@ICULIBS@,$ICULIBS,;t t
17883 s,@ft_devel@,$ft_devel,;t t
17884 s,@ft_devel2@,$ft_devel2,;t t
17885 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17886 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17887 s,@ARTSLIBS@,$ARTSLIBS,;t t
17888 s,@ARTSINCL@,$ARTSINCL,;t t
17889 s,@ALSALIBS@,$ALSALIBS,;t t
17890 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17891 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17892 s,@DLLEXT@,$DLLEXT,;t t
17893 s,@DLLFLAGS@,$DLLFLAGS,;t t
17894 s,@DLLIBS@,$DLLIBS,;t t
17895 s,@LDSHARED@,$LDSHARED,;t t
17896 s,@LDDLL@,$LDDLL,;t t
17897 s,@LIBEXT@,$LIBEXT,;t t
17898 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17899 s,@DLLTOOL@,$DLLTOOL,;t t
17900 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17901 s,@DLLWRAP@,$DLLWRAP,;t t
17902 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17903 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17904 s,@CROSSTEST@,$CROSSTEST,;t t
17905 s,@CROSSCC@,$CROSSCC,;t t
17906 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17907 s,@LDPATH@,$LDPATH,;t t
17908 s,@CRTLIBS@,$CRTLIBS,;t t
17909 s,@LDD@,$LDD,;t t
17910 s,@ALLOCA@,$ALLOCA,;t t
17911 s,@LIBOBJS@,$LIBOBJS,;t t
17912 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17913 /@MAKE_RULES@/r $MAKE_RULES
17914 s,@MAKE_RULES@,,;t t
17915 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17916 s,@MAKE_DLL_RULES@,,;t t
17917 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17918 s,@MAKE_TEST_RULES@,,;t t
17919 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17920 s,@MAKE_LIB_RULES@,,;t t
17921 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17922 s,@MAKE_PROG_RULES@,,;t t
17923 CEOF
17925 _ACEOF
17927 cat >>$CONFIG_STATUS <<\_ACEOF
17928 # Split the substitutions into bite-sized pieces for seds with
17929 # small command number limits, like on Digital OSF/1 and HP-UX.
17930 ac_max_sed_lines=48
17931 ac_sed_frag=1 # Number of current file.
17932 ac_beg=1 # First line for current file.
17933 ac_end=$ac_max_sed_lines # Line after last line for current file.
17934 ac_more_lines=:
17935 ac_sed_cmds=
17936 while $ac_more_lines; do
17937 if test $ac_beg -gt 1; then
17938 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17939 else
17940 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17942 if test ! -s $tmp/subs.frag; then
17943 ac_more_lines=false
17944 else
17945 # The purpose of the label and of the branching condition is to
17946 # speed up the sed processing (if there are no `@' at all, there
17947 # is no need to browse any of the substitutions).
17948 # These are the two extra sed commands mentioned above.
17949 (echo ':t
17950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17951 if test -z "$ac_sed_cmds"; then
17952 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17953 else
17954 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17956 ac_sed_frag=`expr $ac_sed_frag + 1`
17957 ac_beg=$ac_end
17958 ac_end=`expr $ac_end + $ac_max_sed_lines`
17960 done
17961 if test -z "$ac_sed_cmds"; then
17962 ac_sed_cmds=cat
17964 fi # test -n "$CONFIG_FILES"
17966 _ACEOF
17967 cat >>$CONFIG_STATUS <<\_ACEOF
17968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17970 case $ac_file in
17971 - | *:- | *:-:* ) # input from stdin
17972 cat >$tmp/stdin
17973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17977 * ) ac_file_in=$ac_file.in ;;
17978 esac
17980 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983 X"$ac_file" : 'X\(//\)[^/]' \| \
17984 X"$ac_file" : 'X\(//\)$' \| \
17985 X"$ac_file" : 'X\(/\)' \| \
17986 . : '\(.\)' 2>/dev/null ||
17987 echo X"$ac_file" |
17988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17990 /^X\(\/\/\)$/{ s//\1/; q; }
17991 /^X\(\/\).*/{ s//\1/; q; }
17992 s/.*/./; q'`
17993 { if $as_mkdir_p; then
17994 mkdir -p "$ac_dir"
17995 else
17996 as_dir="$ac_dir"
17997 as_dirs=
17998 while test ! -d "$as_dir"; do
17999 as_dirs="$as_dir $as_dirs"
18000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18002 X"$as_dir" : 'X\(//\)[^/]' \| \
18003 X"$as_dir" : 'X\(//\)$' \| \
18004 X"$as_dir" : 'X\(/\)' \| \
18005 . : '\(.\)' 2>/dev/null ||
18006 echo X"$as_dir" |
18007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18009 /^X\(\/\/\)$/{ s//\1/; q; }
18010 /^X\(\/\).*/{ s//\1/; q; }
18011 s/.*/./; q'`
18012 done
18013 test ! -n "$as_dirs" || mkdir $as_dirs
18014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18015 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18016 { (exit 1); exit 1; }; }; }
18018 ac_builddir=.
18020 if test "$ac_dir" != .; then
18021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18022 # A "../" for each directory in $ac_dir_suffix.
18023 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18024 else
18025 ac_dir_suffix= ac_top_builddir=
18028 case $srcdir in
18029 .) # No --srcdir option. We are building in place.
18030 ac_srcdir=.
18031 if test -z "$ac_top_builddir"; then
18032 ac_top_srcdir=.
18033 else
18034 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18035 fi ;;
18036 [\\/]* | ?:[\\/]* ) # Absolute path.
18037 ac_srcdir=$srcdir$ac_dir_suffix;
18038 ac_top_srcdir=$srcdir ;;
18039 *) # Relative path.
18040 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18041 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18042 esac
18043 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18044 # absolute.
18045 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18046 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18047 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18048 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18051 case $INSTALL in
18052 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18053 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18054 esac
18056 if test x"$ac_file" != x-; then
18057 { echo "$as_me:$LINENO: creating $ac_file" >&5
18058 echo "$as_me: creating $ac_file" >&6;}
18059 rm -f "$ac_file"
18061 # Let's still pretend it is `configure' which instantiates (i.e., don't
18062 # use $as_me), people would be surprised to read:
18063 # /* config.h. Generated by config.status. */
18064 if test x"$ac_file" = x-; then
18065 configure_input=
18066 else
18067 configure_input="$ac_file. "
18069 configure_input=$configure_input"Generated from `echo $ac_file_in |
18070 sed 's,.*/,,'` by configure."
18072 # First look for the input files in the build tree, otherwise in the
18073 # src tree.
18074 ac_file_inputs=`IFS=:
18075 for f in $ac_file_in; do
18076 case $f in
18077 -) echo $tmp/stdin ;;
18078 [\\/$]*)
18079 # Absolute (can't be DOS-style, as IFS=:)
18080 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18081 echo "$as_me: error: cannot find input file: $f" >&2;}
18082 { (exit 1); exit 1; }; }
18083 echo $f;;
18084 *) # Relative
18085 if test -f "$f"; then
18086 # Build tree
18087 echo $f
18088 elif test -f "$srcdir/$f"; then
18089 # Source tree
18090 echo $srcdir/$f
18091 else
18092 # /dev/null tree
18093 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18094 echo "$as_me: error: cannot find input file: $f" >&2;}
18095 { (exit 1); exit 1; }; }
18096 fi;;
18097 esac
18098 done` || { (exit 1); exit 1; }
18099 _ACEOF
18100 cat >>$CONFIG_STATUS <<_ACEOF
18101 sed "$ac_vpsub
18102 $extrasub
18103 _ACEOF
18104 cat >>$CONFIG_STATUS <<\_ACEOF
18106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18107 s,@configure_input@,$configure_input,;t t
18108 s,@srcdir@,$ac_srcdir,;t t
18109 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18110 s,@top_srcdir@,$ac_top_srcdir,;t t
18111 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18112 s,@builddir@,$ac_builddir,;t t
18113 s,@abs_builddir@,$ac_abs_builddir,;t t
18114 s,@top_builddir@,$ac_top_builddir,;t t
18115 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18116 s,@INSTALL@,$ac_INSTALL,;t t
18117 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18118 rm -f $tmp/stdin
18119 if test x"$ac_file" != x-; then
18120 mv $tmp/out $ac_file
18121 else
18122 cat $tmp/out
18123 rm -f $tmp/out
18126 done
18127 _ACEOF
18128 cat >>$CONFIG_STATUS <<\_ACEOF
18131 # CONFIG_HEADER section.
18134 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18135 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18137 # ac_d sets the value in "#define NAME VALUE" lines.
18138 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18139 ac_dB='[ ].*$,\1#\2'
18140 ac_dC=' '
18141 ac_dD=',;t'
18142 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18143 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18144 ac_uB='$,\1#\2define\3'
18145 ac_uC=' '
18146 ac_uD=',;t'
18148 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18150 case $ac_file in
18151 - | *:- | *:-:* ) # input from stdin
18152 cat >$tmp/stdin
18153 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18155 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18157 * ) ac_file_in=$ac_file.in ;;
18158 esac
18160 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18161 echo "$as_me: creating $ac_file" >&6;}
18163 # First look for the input files in the build tree, otherwise in the
18164 # src tree.
18165 ac_file_inputs=`IFS=:
18166 for f in $ac_file_in; do
18167 case $f in
18168 -) echo $tmp/stdin ;;
18169 [\\/$]*)
18170 # Absolute (can't be DOS-style, as IFS=:)
18171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18172 echo "$as_me: error: cannot find input file: $f" >&2;}
18173 { (exit 1); exit 1; }; }
18174 echo $f;;
18175 *) # Relative
18176 if test -f "$f"; then
18177 # Build tree
18178 echo $f
18179 elif test -f "$srcdir/$f"; then
18180 # Source tree
18181 echo $srcdir/$f
18182 else
18183 # /dev/null tree
18184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18185 echo "$as_me: error: cannot find input file: $f" >&2;}
18186 { (exit 1); exit 1; }; }
18187 fi;;
18188 esac
18189 done` || { (exit 1); exit 1; }
18190 # Remove the trailing spaces.
18191 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18193 _ACEOF
18195 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18196 # `conftest.undefs', that substitutes the proper values into
18197 # config.h.in to produce config.h. The first handles `#define'
18198 # templates, and the second `#undef' templates.
18199 # And first: Protect against being on the right side of a sed subst in
18200 # config.status. Protect against being in an unquoted here document
18201 # in config.status.
18202 rm -f conftest.defines conftest.undefs
18203 # Using a here document instead of a string reduces the quoting nightmare.
18204 # Putting comments in sed scripts is not portable.
18206 # `end' is used to avoid that the second main sed command (meant for
18207 # 0-ary CPP macros) applies to n-ary macro definitions.
18208 # See the Autoconf documentation for `clear'.
18209 cat >confdef2sed.sed <<\_ACEOF
18210 s/[\\&,]/\\&/g
18211 s,[\\$`],\\&,g
18212 t clear
18213 : clear
18214 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18215 t end
18216 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18217 : end
18218 _ACEOF
18219 # If some macros were called several times there might be several times
18220 # the same #defines, which is useless. Nevertheless, we may not want to
18221 # sort them, since we want the *last* AC-DEFINE to be honored.
18222 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18223 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18224 rm -f confdef2sed.sed
18226 # This sed command replaces #undef with comments. This is necessary, for
18227 # example, in the case of _POSIX_SOURCE, which is predefined and required
18228 # on some systems where configure will not decide to define it.
18229 cat >>conftest.undefs <<\_ACEOF
18230 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18231 _ACEOF
18233 # Break up conftest.defines because some shells have a limit on the size
18234 # of here documents, and old seds have small limits too (100 cmds).
18235 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18236 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18237 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18238 echo ' :' >>$CONFIG_STATUS
18239 rm -f conftest.tail
18240 while grep . conftest.defines >/dev/null
18242 # Write a limited-size here document to $tmp/defines.sed.
18243 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18244 # Speed up: don't consider the non `#define' lines.
18245 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18246 # Work around the forget-to-reset-the-flag bug.
18247 echo 't clr' >>$CONFIG_STATUS
18248 echo ': clr' >>$CONFIG_STATUS
18249 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18250 echo 'CEOF
18251 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18252 rm -f $tmp/in
18253 mv $tmp/out $tmp/in
18254 ' >>$CONFIG_STATUS
18255 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18256 rm -f conftest.defines
18257 mv conftest.tail conftest.defines
18258 done
18259 rm -f conftest.defines
18260 echo ' fi # grep' >>$CONFIG_STATUS
18261 echo >>$CONFIG_STATUS
18263 # Break up conftest.undefs because some shells have a limit on the size
18264 # of here documents, and old seds have small limits too (100 cmds).
18265 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18266 rm -f conftest.tail
18267 while grep . conftest.undefs >/dev/null
18269 # Write a limited-size here document to $tmp/undefs.sed.
18270 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18271 # Speed up: don't consider the non `#undef'
18272 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18273 # Work around the forget-to-reset-the-flag bug.
18274 echo 't clr' >>$CONFIG_STATUS
18275 echo ': clr' >>$CONFIG_STATUS
18276 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18277 echo 'CEOF
18278 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18279 rm -f $tmp/in
18280 mv $tmp/out $tmp/in
18281 ' >>$CONFIG_STATUS
18282 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18283 rm -f conftest.undefs
18284 mv conftest.tail conftest.undefs
18285 done
18286 rm -f conftest.undefs
18288 cat >>$CONFIG_STATUS <<\_ACEOF
18289 # Let's still pretend it is `configure' which instantiates (i.e., don't
18290 # use $as_me), people would be surprised to read:
18291 # /* config.h. Generated by config.status. */
18292 if test x"$ac_file" = x-; then
18293 echo "/* Generated by configure. */" >$tmp/config.h
18294 else
18295 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18297 cat $tmp/in >>$tmp/config.h
18298 rm -f $tmp/in
18299 if test x"$ac_file" != x-; then
18300 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18301 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18302 echo "$as_me: $ac_file is unchanged" >&6;}
18303 else
18304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18306 X"$ac_file" : 'X\(//\)[^/]' \| \
18307 X"$ac_file" : 'X\(//\)$' \| \
18308 X"$ac_file" : 'X\(/\)' \| \
18309 . : '\(.\)' 2>/dev/null ||
18310 echo X"$ac_file" |
18311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18313 /^X\(\/\/\)$/{ s//\1/; q; }
18314 /^X\(\/\).*/{ s//\1/; q; }
18315 s/.*/./; q'`
18316 { if $as_mkdir_p; then
18317 mkdir -p "$ac_dir"
18318 else
18319 as_dir="$ac_dir"
18320 as_dirs=
18321 while test ! -d "$as_dir"; do
18322 as_dirs="$as_dir $as_dirs"
18323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18325 X"$as_dir" : 'X\(//\)[^/]' \| \
18326 X"$as_dir" : 'X\(//\)$' \| \
18327 X"$as_dir" : 'X\(/\)' \| \
18328 . : '\(.\)' 2>/dev/null ||
18329 echo X"$as_dir" |
18330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18332 /^X\(\/\/\)$/{ s//\1/; q; }
18333 /^X\(\/\).*/{ s//\1/; q; }
18334 s/.*/./; q'`
18335 done
18336 test ! -n "$as_dirs" || mkdir $as_dirs
18337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18339 { (exit 1); exit 1; }; }; }
18341 rm -f $ac_file
18342 mv $tmp/config.h $ac_file
18344 else
18345 cat $tmp/config.h
18346 rm -f $tmp/config.h
18348 done
18349 _ACEOF
18350 cat >>$CONFIG_STATUS <<\_ACEOF
18353 # CONFIG_COMMANDS section.
18355 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18356 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18357 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18358 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18359 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18360 X"$ac_dest" : 'X\(//\)[^/]' \| \
18361 X"$ac_dest" : 'X\(//\)$' \| \
18362 X"$ac_dest" : 'X\(/\)' \| \
18363 . : '\(.\)' 2>/dev/null ||
18364 echo X"$ac_dest" |
18365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18367 /^X\(\/\/\)$/{ s//\1/; q; }
18368 /^X\(\/\).*/{ s//\1/; q; }
18369 s/.*/./; q'`
18370 ac_builddir=.
18372 if test "$ac_dir" != .; then
18373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18374 # A "../" for each directory in $ac_dir_suffix.
18375 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18376 else
18377 ac_dir_suffix= ac_top_builddir=
18380 case $srcdir in
18381 .) # No --srcdir option. We are building in place.
18382 ac_srcdir=.
18383 if test -z "$ac_top_builddir"; then
18384 ac_top_srcdir=.
18385 else
18386 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18387 fi ;;
18388 [\\/]* | ?:[\\/]* ) # Absolute path.
18389 ac_srcdir=$srcdir$ac_dir_suffix;
18390 ac_top_srcdir=$srcdir ;;
18391 *) # Relative path.
18392 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18393 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18394 esac
18395 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18396 # absolute.
18397 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18398 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18399 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18400 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18403 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18404 echo "$as_me: executing $ac_dest commands" >&6;}
18405 case $ac_dest in
18406 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18407 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18408 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18409 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18410 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18411 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18412 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18413 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18414 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18415 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18416 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18417 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18418 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18419 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18420 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18421 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18422 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18423 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18424 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18425 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18426 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18427 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18428 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18429 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18430 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18431 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18432 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18433 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18434 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18435 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18436 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18437 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18438 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18439 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18440 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18441 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18442 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18443 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18444 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18445 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18446 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
18447 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
18448 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
18449 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
18450 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18451 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18452 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
18453 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
18454 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18455 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18456 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
18457 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
18458 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18459 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18460 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
18461 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
18462 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18463 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18464 esac
18465 done
18466 _ACEOF
18468 cat >>$CONFIG_STATUS <<\_ACEOF
18470 { (exit 0); exit 0; }
18471 _ACEOF
18472 chmod +x $CONFIG_STATUS
18473 ac_clean_files=$ac_clean_files_save
18476 # configure is writing to config.log, and then calls config.status.
18477 # config.status does its own redirection, appending to config.log.
18478 # Unfortunately, on DOS this fails, as config.log is still kept open
18479 # by configure, so config.status won't be able to write to it; its
18480 # output is simply discarded. So we exec the FD to /dev/null,
18481 # effectively closing config.log, so it can be properly (re)opened and
18482 # appended to by config.status. When coming back to configure, we
18483 # need to make the FD available again.
18484 if test "$no_create" != yes; then
18485 ac_cs_success=:
18486 ac_config_status_args=
18487 test "$silent" = yes &&
18488 ac_config_status_args="$ac_config_status_args --quiet"
18489 exec 5>/dev/null
18490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18491 exec 5>>config.log
18492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18493 # would make configure fail if this is the last instruction.
18494 $ac_cs_success || { (exit 1); exit 1; }
18498 if test "$have_x" = "no"
18499 then
18500 echo
18501 echo "*** Warning: X development files not found. Wine will be built without"
18502 echo "*** X support, which currently does not work, and would probably not be"
18503 echo "*** what you want anyway. You will need to install devel packages of"
18504 echo "*** Xlib/Xfree86 at the very least."
18507 if test "$wine_cv_opengl_version_OK" = "no"
18508 then
18509 echo
18510 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18511 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18514 if test "$wine_cv_msg_freetype" = "yes"
18515 then
18516 echo
18517 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18518 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18519 echo "*** freetype-devel package (or its equivalent on your distribution) to"
18520 echo "*** enable Wine to use TrueType fonts."
18523 echo
18524 echo "Configure finished. Do 'make depend && make' to compile Wine."
18525 echo