Implement OpenThread() winapi call.
[wine/multimedia.git] / configure
blob1f82d023a6a868b43ed871ea184de3b038d6bd8f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for Wine 20020310.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="server/atom.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
184 PACKAGE_NAME='Wine'
185 PACKAGE_TARNAME='wine'
186 PACKAGE_VERSION='20020310'
187 PACKAGE_STRING='Wine 20020310'
188 PACKAGE_BUGREPORT=''
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
486 esac
487 done
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604 \`configure' configures Wine 20020310 to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
613 Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
626 cat <<EOF
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
655 cat <<\EOF
657 X features:
658 --x-includes=DIR X include files are in DIR
659 --x-libraries=DIR X library files are in DIR
661 System types:
662 --build=BUILD configure for building on BUILD [guessed]
663 --host=HOST build programs to run on HOST [BUILD]
664 --target=TARGET configure for building compilers for TARGET [HOST]
668 if test -n "$ac_init_help"; then
669 case $ac_init_help in
670 short | recursive ) echo "Configuration of Wine 20020310:";;
671 esac
672 cat <<\EOF
674 Optional Features:
675 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
676 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
677 --disable-debug compile out all debugging messages
678 --disable-trace compile out TRACE messages
679 --enable-opengl force usage of OpenGL even if the latter is
680 thread-safe via pthread
682 Optional Packages:
683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
685 --without-curses do not use curses
686 --without-reentrant-x compile for use with non-reentrant X libraries
687 --with-x use the X Window System
689 Some influential environment variables:
690 CC C compiler command
691 CFLAGS C compiler flags
692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
693 nonstandard directory <lib dir>
694 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
695 headers in a nonstandard directory <include dir>
696 CPP C preprocessor
698 Use these variables to override the choices made by `configure' or to help
699 it to find libraries and programs with nonstandard names/locations.
704 if test "$ac_init_help" = "recursive"; then
705 # If there are subdirs, report their specific --help.
706 ac_popdir=`pwd`
707 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 cd $ac_subdir
709 # A "../" for each directory in /$ac_subdir.
710 ac_dots=`echo $ac_subdir |
711 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 case $srcdir in
714 .) # No --srcdir option. We are building in place.
715 ac_sub_srcdir=$srcdir ;;
716 [\\/]* | ?:[\\/]* ) # Absolute path.
717 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 *) # Relative path.
719 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
720 esac
722 # Check for guested configure; otherwise get Cygnus style configure.
723 if test -f $ac_sub_srcdir/configure.gnu; then
724 echo
725 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
726 elif test -f $ac_sub_srcdir/configure; then
727 echo
728 $SHELL $ac_sub_srcdir/configure --help=recursive
729 elif test -f $ac_sub_srcdir/configure.ac ||
730 test -f $ac_sub_srcdir/configure.in; then
731 echo
732 $ac_configure --help
733 else
734 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
736 cd $ac_popdir
737 done
740 test -n "$ac_init_help" && exit 0
741 if $ac_init_version; then
742 cat <<\EOF
743 Wine configure 20020310
744 generated by GNU Autoconf 2.52
746 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
747 Free Software Foundation, Inc.
748 This configure script is free software; the Free Software Foundation
749 gives unlimited permission to copy, distribute and modify it.
751 exit 0
753 exec 5>config.log
754 cat >&5 <<EOF
755 This file contains any messages produced by compilers while
756 running configure, to aid debugging if configure makes a mistake.
758 It was created by Wine $as_me 20020310, which was
759 generated by GNU Autoconf 2.52. Invocation command line was
761 $ $0 $@
765 cat <<_ASUNAME
766 ## ---------- ##
767 ## Platform. ##
768 ## ---------- ##
770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
782 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
787 PATH = $PATH
789 _ASUNAME
790 } >&5
792 cat >&5 <<EOF
793 ## ------------ ##
794 ## Core tests. ##
795 ## ------------ ##
799 # Keep a trace of the command line.
800 # Strip out --no-create and --no-recursion so they do not pile up.
801 # Also quote any args containing shell meta-characters.
802 ac_configure_args=
803 ac_sep=
804 for ac_arg
806 case $ac_arg in
807 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
808 | --no-cr | --no-c) ;;
809 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
810 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
811 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
812 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
813 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
814 ac_sep=" " ;;
815 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
816 ac_sep=" " ;;
817 esac
818 # Get rid of the leading space.
819 done
821 # When interrupted or exit'd, cleanup temporary files, and complete
822 # config.log. We remove comments because anyway the quotes in there
823 # would cause problems or look ugly.
824 trap 'exit_status=$?
825 # Save into config.log some information that might help in debugging.
826 echo >&5
827 echo "## ----------------- ##" >&5
828 echo "## Cache variables. ##" >&5
829 echo "## ----------------- ##" >&5
830 echo >&5
831 # The following way of writing the cache mishandles newlines in values,
833 (set) 2>&1 |
834 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
835 *ac_space=\ *)
836 sed -n \
837 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
841 sed -n \
842 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
844 esac;
845 } >&5
846 sed "/^$/d" confdefs.h >conftest.log
847 if test -s conftest.log; then
848 echo >&5
849 echo "## ------------ ##" >&5
850 echo "## confdefs.h. ##" >&5
851 echo "## ------------ ##" >&5
852 echo >&5
853 cat conftest.log >&5
855 (echo; echo) >&5
856 test "$ac_signal" != 0 &&
857 echo "$as_me: caught signal $ac_signal" >&5
858 echo "$as_me: exit $exit_status" >&5
859 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
860 exit $exit_status
862 for ac_signal in 1 2 13 15; do
863 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 done
865 ac_signal=0
867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
868 rm -rf conftest* confdefs.h
869 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
870 echo >confdefs.h
872 # Let the site file select an alternate cache file if it wants to.
873 # Prefer explicitly selected file to automatically selected ones.
874 if test -z "$CONFIG_SITE"; then
875 if test "x$prefix" != xNONE; then
876 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
877 else
878 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
881 for ac_site_file in $CONFIG_SITE; do
882 if test -r "$ac_site_file"; then
883 { echo "$as_me:883: loading site script $ac_site_file" >&5
884 echo "$as_me: loading site script $ac_site_file" >&6;}
885 cat "$ac_site_file" >&5
886 . "$ac_site_file"
888 done
890 if test -r "$cache_file"; then
891 # Some versions of bash will fail to source /dev/null (special
892 # files actually), so we avoid doing that.
893 if test -f "$cache_file"; then
894 { echo "$as_me:894: loading cache $cache_file" >&5
895 echo "$as_me: loading cache $cache_file" >&6;}
896 case $cache_file in
897 [\\/]* | ?:[\\/]* ) . $cache_file;;
898 *) . ./$cache_file;;
899 esac
901 else
902 { echo "$as_me:902: creating cache $cache_file" >&5
903 echo "$as_me: creating cache $cache_file" >&6;}
904 >$cache_file
907 # Check that the precious variables saved in the cache have kept the same
908 # value.
909 ac_cache_corrupted=false
910 for ac_var in `(set) 2>&1 |
911 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
912 eval ac_old_set=\$ac_cv_env_${ac_var}_set
913 eval ac_new_set=\$ac_env_${ac_var}_set
914 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
915 eval ac_new_val="\$ac_env_${ac_var}_value"
916 case $ac_old_set,$ac_new_set in
917 set,)
918 { echo "$as_me:918: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
919 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
920 ac_cache_corrupted=: ;;
921 ,set)
922 { echo "$as_me:922: error: \`$ac_var' was not set in the previous run" >&5
923 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
924 ac_cache_corrupted=: ;;
925 ,);;
927 if test "x$ac_old_val" != "x$ac_new_val"; then
928 { echo "$as_me:928: error: \`$ac_var' has changed since the previous run:" >&5
929 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
930 { echo "$as_me:930: former value: $ac_old_val" >&5
931 echo "$as_me: former value: $ac_old_val" >&2;}
932 { echo "$as_me:932: current value: $ac_new_val" >&5
933 echo "$as_me: current value: $ac_new_val" >&2;}
934 ac_cache_corrupted=:
935 fi;;
936 esac
937 # Pass precious variables to config.status. It doesn't matter if
938 # we pass some twice (in addition to the command line arguments).
939 if test "$ac_new_set" = set; then
940 case $ac_new_val in
941 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
942 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
943 ac_configure_args="$ac_configure_args '$ac_arg'"
945 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 esac
949 done
950 if $ac_cache_corrupted; then
951 { echo "$as_me:951: error: changes in the environment can compromise the build" >&5
952 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
953 { { echo "$as_me:953: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
954 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
955 { (exit 1); exit 1; }; }
958 ac_ext=c
959 ac_cpp='$CPP $CPPFLAGS'
960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
965 *c*,-n*) ECHO_N= ECHO_C='
966 ' ECHO_T=' ' ;;
967 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
968 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
969 esac
970 echo "#! $SHELL" >conftest.sh
971 echo "exit 0" >>conftest.sh
972 chmod +x conftest.sh
973 if { (echo "$as_me:973: PATH=\".;.\"; conftest.sh") >&5
974 (PATH=".;."; conftest.sh) 2>&5
975 ac_status=$?
976 echo "$as_me:976: \$? = $ac_status" >&5
977 (exit $ac_status); }; then
978 ac_path_separator=';'
979 else
980 ac_path_separator=:
982 PATH_SEPARATOR="$ac_path_separator"
983 rm -f conftest.sh
985 ac_config_headers="$ac_config_headers include/config.h"
987 ac_aux_dir=
988 for ac_dir in tools $srcdir/tools; do
989 if test -f $ac_dir/install-sh; then
990 ac_aux_dir=$ac_dir
991 ac_install_sh="$ac_aux_dir/install-sh -c"
992 break
993 elif test -f $ac_dir/install.sh; then
994 ac_aux_dir=$ac_dir
995 ac_install_sh="$ac_aux_dir/install.sh -c"
996 break
997 elif test -f $ac_dir/shtool; then
998 ac_aux_dir=$ac_dir
999 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 break
1002 done
1003 if test -z "$ac_aux_dir"; then
1004 { { echo "$as_me:1004: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1005 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1006 { (exit 1); exit 1; }; }
1008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1010 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1012 LIBEXT=so # library type .so or .a
1014 # Check whether --enable-debug or --disable-debug was given.
1015 if test "${enable_debug+set}" = set; then
1016 enableval="$enable_debug"
1019 # Check whether --enable-trace or --disable-trace was given.
1020 if test "${enable_trace+set}" = set; then
1021 enableval="$enable_trace"
1024 # Check whether --enable-opengl or --disable-opengl was given.
1025 if test "${enable_opengl+set}" = set; then
1026 enableval="$enable_opengl"
1030 # Check whether --with-curses or --without-curses was given.
1031 if test "${with_curses+set}" = set; then
1032 withval="$with_curses"
1036 # Check whether --with-reentrant-x or --without-reentrant-x was given.
1037 if test "${with_reentrant_x+set}" = set; then
1038 withval="$with_reentrant_x"
1042 if test "x$enable_debug" = "xno"
1043 then
1045 cat >>confdefs.h <<\EOF
1046 #define NO_DEBUG_MSGS 1
1050 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1051 then
1053 cat >>confdefs.h <<\EOF
1054 #define NO_TRACE_MSGS 1
1059 # Make sure we can run config.sub.
1060 $ac_config_sub sun4 >/dev/null 2>&1 ||
1061 { { echo "$as_me:1061: error: cannot run $ac_config_sub" >&5
1062 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1063 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: checking build system type" >&5
1066 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1067 if test "${ac_cv_build+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
1069 else
1070 ac_cv_build_alias=$build_alias
1071 test -z "$ac_cv_build_alias" &&
1072 ac_cv_build_alias=`$ac_config_guess`
1073 test -z "$ac_cv_build_alias" &&
1074 { { echo "$as_me:1074: error: cannot guess build type; you must specify one" >&5
1075 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1076 { (exit 1); exit 1; }; }
1077 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1078 { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1079 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1080 { (exit 1); exit 1; }; }
1083 echo "$as_me:1083: result: $ac_cv_build" >&5
1084 echo "${ECHO_T}$ac_cv_build" >&6
1085 build=$ac_cv_build
1086 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1090 echo "$as_me:1090: checking host system type" >&5
1091 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1092 if test "${ac_cv_host+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1094 else
1095 ac_cv_host_alias=$host_alias
1096 test -z "$ac_cv_host_alias" &&
1097 ac_cv_host_alias=$ac_cv_build_alias
1098 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1099 { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1100 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1101 { (exit 1); exit 1; }; }
1104 echo "$as_me:1104: result: $ac_cv_host" >&5
1105 echo "${ECHO_T}$ac_cv_host" >&6
1106 host=$ac_cv_host
1107 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1111 echo "$as_me:1111: checking target system type" >&5
1112 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1113 if test "${ac_cv_target+set}" = set; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1115 else
1116 ac_cv_target_alias=$target_alias
1117 test "x$ac_cv_target_alias" = "x" &&
1118 ac_cv_target_alias=$ac_cv_host_alias
1119 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1120 { { echo "$as_me:1120: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1121 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1122 { (exit 1); exit 1; }; }
1125 echo "$as_me:1125: result: $ac_cv_target" >&5
1126 echo "${ECHO_T}$ac_cv_target" >&6
1127 target=$ac_cv_target
1128 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1129 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1130 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1132 # The aliases save the names the user supplied, while $host etc.
1133 # will get canonicalized.
1134 test -n "$target_alias" &&
1135 test "$program_prefix$program_suffix$program_transform_name" = \
1136 NONENONEs,x,x, &&
1137 program_prefix=${target_alias}-
1138 echo "$as_me:1138: checking whether ${MAKE-make} sets \${MAKE}" >&5
1139 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1140 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1141 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1142 echo $ECHO_N "(cached) $ECHO_C" >&6
1143 else
1144 cat >conftest.make <<\EOF
1145 all:
1146 @echo 'ac_maketemp="${MAKE}"'
1148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1149 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1150 if test -n "$ac_maketemp"; then
1151 eval ac_cv_prog_make_${ac_make}_set=yes
1152 else
1153 eval ac_cv_prog_make_${ac_make}_set=no
1155 rm -f conftest.make
1157 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1158 echo "$as_me:1158: result: yes" >&5
1159 echo "${ECHO_T}yes" >&6
1160 SET_MAKE=
1161 else
1162 echo "$as_me:1162: result: no" >&5
1163 echo "${ECHO_T}no" >&6
1164 SET_MAKE="MAKE=${MAKE-make}"
1167 ac_ext=c
1168 ac_cpp='$CPP $CPPFLAGS'
1169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1172 if test -n "$ac_tool_prefix"; then
1173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1175 echo "$as_me:1175: checking for $ac_word" >&5
1176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1177 if test "${ac_cv_prog_CC+set}" = set; then
1178 echo $ECHO_N "(cached) $ECHO_C" >&6
1179 else
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183 ac_save_IFS=$IFS; IFS=$ac_path_separator
1184 ac_dummy="$PATH"
1185 for ac_dir in $ac_dummy; do
1186 IFS=$ac_save_IFS
1187 test -z "$ac_dir" && ac_dir=.
1188 $as_executable_p "$ac_dir/$ac_word" || continue
1189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1190 echo "$as_me:1190: found $ac_dir/$ac_word" >&5
1191 break
1192 done
1196 CC=$ac_cv_prog_CC
1197 if test -n "$CC"; then
1198 echo "$as_me:1198: result: $CC" >&5
1199 echo "${ECHO_T}$CC" >&6
1200 else
1201 echo "$as_me:1201: result: no" >&5
1202 echo "${ECHO_T}no" >&6
1206 if test -z "$ac_cv_prog_CC"; then
1207 ac_ct_CC=$CC
1208 # Extract the first word of "gcc", so it can be a program name with args.
1209 set dummy gcc; ac_word=$2
1210 echo "$as_me:1210: checking for $ac_word" >&5
1211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1213 echo $ECHO_N "(cached) $ECHO_C" >&6
1214 else
1215 if test -n "$ac_ct_CC"; then
1216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1217 else
1218 ac_save_IFS=$IFS; IFS=$ac_path_separator
1219 ac_dummy="$PATH"
1220 for ac_dir in $ac_dummy; do
1221 IFS=$ac_save_IFS
1222 test -z "$ac_dir" && ac_dir=.
1223 $as_executable_p "$ac_dir/$ac_word" || continue
1224 ac_cv_prog_ac_ct_CC="gcc"
1225 echo "$as_me:1225: found $ac_dir/$ac_word" >&5
1226 break
1227 done
1231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1232 if test -n "$ac_ct_CC"; then
1233 echo "$as_me:1233: result: $ac_ct_CC" >&5
1234 echo "${ECHO_T}$ac_ct_CC" >&6
1235 else
1236 echo "$as_me:1236: result: no" >&5
1237 echo "${ECHO_T}no" >&6
1240 CC=$ac_ct_CC
1241 else
1242 CC="$ac_cv_prog_CC"
1245 if test -z "$CC"; then
1246 if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1248 set dummy ${ac_tool_prefix}cc; ac_word=$2
1249 echo "$as_me:1249: checking for $ac_word" >&5
1250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251 if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 else
1257 ac_save_IFS=$IFS; IFS=$ac_path_separator
1258 ac_dummy="$PATH"
1259 for ac_dir in $ac_dummy; do
1260 IFS=$ac_save_IFS
1261 test -z "$ac_dir" && ac_dir=.
1262 $as_executable_p "$ac_dir/$ac_word" || continue
1263 ac_cv_prog_CC="${ac_tool_prefix}cc"
1264 echo "$as_me:1264: found $ac_dir/$ac_word" >&5
1265 break
1266 done
1270 CC=$ac_cv_prog_CC
1271 if test -n "$CC"; then
1272 echo "$as_me:1272: result: $CC" >&5
1273 echo "${ECHO_T}$CC" >&6
1274 else
1275 echo "$as_me:1275: result: no" >&5
1276 echo "${ECHO_T}no" >&6
1280 if test -z "$ac_cv_prog_CC"; then
1281 ac_ct_CC=$CC
1282 # Extract the first word of "cc", so it can be a program name with args.
1283 set dummy cc; ac_word=$2
1284 echo "$as_me:1284: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 else
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 else
1292 ac_save_IFS=$IFS; IFS=$ac_path_separator
1293 ac_dummy="$PATH"
1294 for ac_dir in $ac_dummy; do
1295 IFS=$ac_save_IFS
1296 test -z "$ac_dir" && ac_dir=.
1297 $as_executable_p "$ac_dir/$ac_word" || continue
1298 ac_cv_prog_ac_ct_CC="cc"
1299 echo "$as_me:1299: found $ac_dir/$ac_word" >&5
1300 break
1301 done
1305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1306 if test -n "$ac_ct_CC"; then
1307 echo "$as_me:1307: result: $ac_ct_CC" >&5
1308 echo "${ECHO_T}$ac_ct_CC" >&6
1309 else
1310 echo "$as_me:1310: result: no" >&5
1311 echo "${ECHO_T}no" >&6
1314 CC=$ac_ct_CC
1315 else
1316 CC="$ac_cv_prog_CC"
1320 if test -z "$CC"; then
1321 # Extract the first word of "cc", so it can be a program name with args.
1322 set dummy cc; ac_word=$2
1323 echo "$as_me:1323: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 else
1331 ac_prog_rejected=no
1332 ac_save_IFS=$IFS; IFS=$ac_path_separator
1333 ac_dummy="$PATH"
1334 for ac_dir in $ac_dummy; do
1335 IFS=$ac_save_IFS
1336 test -z "$ac_dir" && ac_dir=.
1337 $as_executable_p "$ac_dir/$ac_word" || continue
1338 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1339 ac_prog_rejected=yes
1340 continue
1342 ac_cv_prog_CC="cc"
1343 echo "$as_me:1343: found $ac_dir/$ac_word" >&5
1344 break
1345 done
1347 if test $ac_prog_rejected = yes; then
1348 # We found a bogon in the path, so make sure we never use it.
1349 set dummy $ac_cv_prog_CC
1350 shift
1351 if test $# != 0; then
1352 # We chose a different compiler from the bogus one.
1353 # However, it has the same basename, so the bogon will be chosen
1354 # first if we set CC to just the basename; use the full file name.
1355 shift
1356 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1357 shift
1358 ac_cv_prog_CC="$@"
1363 CC=$ac_cv_prog_CC
1364 if test -n "$CC"; then
1365 echo "$as_me:1365: result: $CC" >&5
1366 echo "${ECHO_T}$CC" >&6
1367 else
1368 echo "$as_me:1368: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1373 if test -z "$CC"; then
1374 if test -n "$ac_tool_prefix"; then
1375 for ac_prog in cl
1377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1379 echo "$as_me:1379: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_CC+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 if test -n "$CC"; then
1385 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 else
1387 ac_save_IFS=$IFS; IFS=$ac_path_separator
1388 ac_dummy="$PATH"
1389 for ac_dir in $ac_dummy; do
1390 IFS=$ac_save_IFS
1391 test -z "$ac_dir" && ac_dir=.
1392 $as_executable_p "$ac_dir/$ac_word" || continue
1393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1394 echo "$as_me:1394: found $ac_dir/$ac_word" >&5
1395 break
1396 done
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402 echo "$as_me:1402: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405 echo "$as_me:1405: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$CC" && break
1410 done
1412 if test -z "$CC"; then
1413 ac_ct_CC=$CC
1414 for ac_prog in cl
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:1418: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425 else
1426 ac_save_IFS=$IFS; IFS=$ac_path_separator
1427 ac_dummy="$PATH"
1428 for ac_dir in $ac_dummy; do
1429 IFS=$ac_save_IFS
1430 test -z "$ac_dir" && ac_dir=.
1431 $as_executable_p "$ac_dir/$ac_word" || continue
1432 ac_cv_prog_ac_ct_CC="$ac_prog"
1433 echo "$as_me:1433: found $ac_dir/$ac_word" >&5
1434 break
1435 done
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441 echo "$as_me:1441: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1443 else
1444 echo "$as_me:1444: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1448 test -n "$ac_ct_CC" && break
1449 done
1451 CC=$ac_ct_CC
1456 test -z "$CC" && { { echo "$as_me:1456: error: no acceptable cc found in \$PATH" >&5
1457 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1458 { (exit 1); exit 1; }; }
1460 # Provide some information about the compiler.
1461 echo "$as_me:1461:" \
1462 "checking for C compiler version" >&5
1463 ac_compiler=`set X $ac_compile; echo $2`
1464 { (eval echo "$as_me:1464: \"$ac_compiler --version </dev/null >&5\"") >&5
1465 (eval $ac_compiler --version </dev/null >&5) 2>&5
1466 ac_status=$?
1467 echo "$as_me:1467: \$? = $ac_status" >&5
1468 (exit $ac_status); }
1469 { (eval echo "$as_me:1469: \"$ac_compiler -v </dev/null >&5\"") >&5
1470 (eval $ac_compiler -v </dev/null >&5) 2>&5
1471 ac_status=$?
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }
1474 { (eval echo "$as_me:1474: \"$ac_compiler -V </dev/null >&5\"") >&5
1475 (eval $ac_compiler -V </dev/null >&5) 2>&5
1476 ac_status=$?
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }
1480 cat >conftest.$ac_ext <<_ACEOF
1481 #line 1481 "configure"
1482 #include "confdefs.h"
1485 main ()
1489 return 0;
1491 _ACEOF
1492 ac_clean_files_save=$ac_clean_files
1493 ac_clean_files="$ac_clean_files a.out a.exe"
1494 # Try to create an executable without -o first, disregard a.out.
1495 # It will help us diagnose broken compilers, and finding out an intuition
1496 # of exeext.
1497 echo "$as_me:1497: checking for C compiler default output" >&5
1498 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1499 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1500 if { (eval echo "$as_me:1500: \"$ac_link_default\"") >&5
1501 (eval $ac_link_default) 2>&5
1502 ac_status=$?
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit $ac_status); }; then
1505 # Find the output, starting from the most likely. This scheme is
1506 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1507 # resort.
1508 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1509 ls a.out conftest 2>/dev/null;
1510 ls a.* conftest.* 2>/dev/null`; do
1511 case $ac_file in
1512 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1513 a.out ) # We found the default executable, but exeext='' is most
1514 # certainly right.
1515 break;;
1516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1517 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1518 export ac_cv_exeext
1519 break;;
1520 * ) break;;
1521 esac
1522 done
1523 else
1524 echo "$as_me: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1526 { { echo "$as_me:1526: error: C compiler cannot create executables" >&5
1527 echo "$as_me: error: C compiler cannot create executables" >&2;}
1528 { (exit 77); exit 77; }; }
1531 ac_exeext=$ac_cv_exeext
1532 echo "$as_me:1532: result: $ac_file" >&5
1533 echo "${ECHO_T}$ac_file" >&6
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether the C compiler works" >&5
1538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1540 # If not cross compiling, check that we can run a simple program.
1541 if test "$cross_compiling" != yes; then
1542 if { ac_try='./$ac_file'
1543 { (eval echo "$as_me:1543: \"$ac_try\"") >&5
1544 (eval $ac_try) 2>&5
1545 ac_status=$?
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; }; then
1548 cross_compiling=no
1549 else
1550 if test "$cross_compiling" = maybe; then
1551 cross_compiling=yes
1552 else
1553 { { echo "$as_me:1553: error: cannot run C compiled programs.
1554 If you meant to cross compile, use \`--host'." >&5
1555 echo "$as_me: error: cannot run C compiled programs.
1556 If you meant to cross compile, use \`--host'." >&2;}
1557 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: yes" >&5
1562 echo "${ECHO_T}yes" >&6
1564 rm -f a.out a.exe conftest$ac_cv_exeext
1565 ac_clean_files=$ac_clean_files_save
1566 # Check the compiler produces executables we can run. If not, either
1567 # the compiler is broken, or we cross compile.
1568 echo "$as_me:1568: checking whether we are cross compiling" >&5
1569 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1570 echo "$as_me:1570: result: $cross_compiling" >&5
1571 echo "${ECHO_T}$cross_compiling" >&6
1573 echo "$as_me:1573: checking for executable suffix" >&5
1574 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1575 if { (eval echo "$as_me:1575: \"$ac_link\"") >&5
1576 (eval $ac_link) 2>&5
1577 ac_status=$?
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit $ac_status); }; then
1580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1581 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1582 # work properly (i.e., refer to `conftest.exe'), while it won't with
1583 # `rm'.
1584 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1585 case $ac_file in
1586 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1587 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1588 export ac_cv_exeext
1589 break;;
1590 * ) break;;
1591 esac
1592 done
1593 else
1594 { { echo "$as_me:1594: error: cannot compute EXEEXT: cannot compile and link" >&5
1595 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1596 { (exit 1); exit 1; }; }
1599 rm -f conftest$ac_cv_exeext
1600 echo "$as_me:1600: result: $ac_cv_exeext" >&5
1601 echo "${ECHO_T}$ac_cv_exeext" >&6
1603 rm -f conftest.$ac_ext
1604 EXEEXT=$ac_cv_exeext
1605 ac_exeext=$EXEEXT
1606 echo "$as_me:1606: checking for object suffix" >&5
1607 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1608 if test "${ac_cv_objext+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 cat >conftest.$ac_ext <<_ACEOF
1612 #line 1612 "configure"
1613 #include "confdefs.h"
1616 main ()
1620 return 0;
1622 _ACEOF
1623 rm -f conftest.o conftest.obj
1624 if { (eval echo "$as_me:1624: \"$ac_compile\"") >&5
1625 (eval $ac_compile) 2>&5
1626 ac_status=$?
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }; then
1629 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1630 case $ac_file in
1631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1633 break;;
1634 esac
1635 done
1636 else
1637 echo "$as_me: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1639 { { echo "$as_me:1639: error: cannot compute OBJEXT: cannot compile" >&5
1640 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1641 { (exit 1); exit 1; }; }
1644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1646 echo "$as_me:1646: result: $ac_cv_objext" >&5
1647 echo "${ECHO_T}$ac_cv_objext" >&6
1648 OBJEXT=$ac_cv_objext
1649 ac_objext=$OBJEXT
1650 echo "$as_me:1650: checking whether we are using the GNU C compiler" >&5
1651 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1652 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 cat >conftest.$ac_ext <<_ACEOF
1656 #line 1656 "configure"
1657 #include "confdefs.h"
1660 main ()
1662 #ifndef __GNUC__
1663 choke me
1664 #endif
1667 return 0;
1669 _ACEOF
1670 rm -f conftest.$ac_objext
1671 if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5
1672 (eval $ac_compile) 2>&5
1673 ac_status=$?
1674 echo "$as_me:1674: \$? = $ac_status" >&5
1675 (exit $ac_status); } &&
1676 { ac_try='test -s conftest.$ac_objext'
1677 { (eval echo "$as_me:1677: \"$ac_try\"") >&5
1678 (eval $ac_try) 2>&5
1679 ac_status=$?
1680 echo "$as_me:1680: \$? = $ac_status" >&5
1681 (exit $ac_status); }; }; then
1682 ac_compiler_gnu=yes
1683 else
1684 echo "$as_me: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1686 ac_compiler_gnu=no
1688 rm -f conftest.$ac_objext conftest.$ac_ext
1689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1692 echo "$as_me:1692: result: $ac_cv_c_compiler_gnu" >&5
1693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1694 GCC=`test $ac_compiler_gnu = yes && echo yes`
1695 ac_test_CFLAGS=${CFLAGS+set}
1696 ac_save_CFLAGS=$CFLAGS
1697 CFLAGS="-g"
1698 echo "$as_me:1698: checking whether $CC accepts -g" >&5
1699 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1700 if test "${ac_cv_prog_cc_g+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 cat >conftest.$ac_ext <<_ACEOF
1704 #line 1704 "configure"
1705 #include "confdefs.h"
1708 main ()
1712 return 0;
1714 _ACEOF
1715 rm -f conftest.$ac_objext
1716 if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5
1717 (eval $ac_compile) 2>&5
1718 ac_status=$?
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); } &&
1721 { ac_try='test -s conftest.$ac_objext'
1722 { (eval echo "$as_me:1722: \"$ac_try\"") >&5
1723 (eval $ac_try) 2>&5
1724 ac_status=$?
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; }; then
1727 ac_cv_prog_cc_g=yes
1728 else
1729 echo "$as_me: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 ac_cv_prog_cc_g=no
1733 rm -f conftest.$ac_objext conftest.$ac_ext
1735 echo "$as_me:1735: result: $ac_cv_prog_cc_g" >&5
1736 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1737 if test "$ac_test_CFLAGS" = set; then
1738 CFLAGS=$ac_save_CFLAGS
1739 elif test $ac_cv_prog_cc_g = yes; then
1740 if test "$GCC" = yes; then
1741 CFLAGS="-g -O2"
1742 else
1743 CFLAGS="-g"
1745 else
1746 if test "$GCC" = yes; then
1747 CFLAGS="-O2"
1748 else
1749 CFLAGS=
1752 # Some people use a C++ compiler to compile C. Since we use `exit',
1753 # in C++ we need to declare it. In case someone uses the same compiler
1754 # for both compiling C and C++ we need to have the C++ compiler decide
1755 # the declaration of exit, since it's the most demanding environment.
1756 cat >conftest.$ac_ext <<_ACEOF
1757 #ifndef __cplusplus
1758 choke me
1759 #endif
1760 _ACEOF
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1764 ac_status=$?
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1769 (eval $ac_try) 2>&5
1770 ac_status=$?
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1773 for ac_declaration in \
1775 '#include <stdlib.h>' \
1776 'extern "C" void std::exit (int) throw (); using std::exit;' \
1777 'extern "C" void std::exit (int); using std::exit;' \
1778 'extern "C" void exit (int) throw ();' \
1779 'extern "C" void exit (int);' \
1780 'void exit (int);'
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1785 #include <stdlib.h>
1786 $ac_declaration
1788 main ()
1790 exit (42);
1792 return 0;
1794 _ACEOF
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1798 ac_status=$?
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1803 (eval $ac_try) 2>&5
1804 ac_status=$?
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1808 else
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 continue
1813 rm -f conftest.$ac_objext conftest.$ac_ext
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1817 $ac_declaration
1819 main ()
1821 exit (42);
1823 return 0;
1825 _ACEOF
1826 rm -f conftest.$ac_objext
1827 if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1829 ac_status=$?
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 break
1839 else
1840 echo "$as_me: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 rm -f conftest.$ac_objext conftest.$ac_ext
1844 done
1845 rm -f conftest*
1846 if test -n "$ac_declaration"; then
1847 echo '#ifdef __cplusplus' >>confdefs.h
1848 echo $ac_declaration >>confdefs.h
1849 echo '#endif' >>confdefs.h
1852 else
1853 echo "$as_me: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1856 rm -f conftest.$ac_objext conftest.$ac_ext
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 echo "$as_me:1868: checking how to run the C preprocessor" >&5
1869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1870 # On Suns, sometimes $CPP names a directory.
1871 if test -n "$CPP" && test -d "$CPP"; then
1872 CPP=
1874 if test -z "$CPP"; then
1875 if test "${ac_cv_prog_CPP+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 # Double quotes because CPP needs to be expanded
1879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1881 ac_preproc_ok=false
1882 for ac_c_preproc_warn_flag in '' yes
1884 # Use a header file that comes with gcc, so configuring glibc
1885 # with a fresh cross-compiler works.
1886 # On the NeXT, cc -E runs the code through the compiler's parser,
1887 # not just through cpp. "Syntax error" is here to catch this case.
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1891 #include <assert.h>
1892 Syntax error
1893 _ACEOF
1894 if { (eval echo "$as_me:1894: \"$ac_cpp conftest.$ac_ext\"") >&5
1895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1896 ac_status=$?
1897 egrep -v '^ *\+' conftest.er1 >conftest.err
1898 rm -f conftest.er1
1899 cat conftest.err >&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } >/dev/null; then
1902 if test -s conftest.err; then
1903 ac_cpp_err=$ac_c_preproc_warn_flag
1904 else
1905 ac_cpp_err=
1907 else
1908 ac_cpp_err=yes
1910 if test -z "$ac_cpp_err"; then
1912 else
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 # Broken: fails on valid input.
1916 continue
1918 rm -f conftest.err conftest.$ac_ext
1920 # OK, works on sane cases. Now check whether non-existent headers
1921 # can be detected and how.
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1925 #include <ac_nonexistent.h>
1926 _ACEOF
1927 if { (eval echo "$as_me:1927: \"$ac_cpp conftest.$ac_ext\"") >&5
1928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1929 ac_status=$?
1930 egrep -v '^ *\+' conftest.er1 >conftest.err
1931 rm -f conftest.er1
1932 cat conftest.err >&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } >/dev/null; then
1935 if test -s conftest.err; then
1936 ac_cpp_err=$ac_c_preproc_warn_flag
1937 else
1938 ac_cpp_err=
1940 else
1941 ac_cpp_err=yes
1943 if test -z "$ac_cpp_err"; then
1944 # Broken: success on invalid input.
1945 continue
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 # Passes both tests.
1950 ac_preproc_ok=:
1951 break
1953 rm -f conftest.err conftest.$ac_ext
1955 done
1956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1957 rm -f conftest.err conftest.$ac_ext
1958 if $ac_preproc_ok; then
1959 break
1962 done
1963 ac_cv_prog_CPP=$CPP
1966 CPP=$ac_cv_prog_CPP
1967 else
1968 ac_cv_prog_CPP=$CPP
1970 echo "$as_me:1970: result: $CPP" >&5
1971 echo "${ECHO_T}$CPP" >&6
1972 ac_preproc_ok=false
1973 for ac_c_preproc_warn_flag in '' yes
1975 # Use a header file that comes with gcc, so configuring glibc
1976 # with a fresh cross-compiler works.
1977 # On the NeXT, cc -E runs the code through the compiler's parser,
1978 # not just through cpp. "Syntax error" is here to catch this case.
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line 1980 "configure"
1981 #include "confdefs.h"
1982 #include <assert.h>
1983 Syntax error
1984 _ACEOF
1985 if { (eval echo "$as_me:1985: \"$ac_cpp conftest.$ac_ext\"") >&5
1986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1987 ac_status=$?
1988 egrep -v '^ *\+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } >/dev/null; then
1993 if test -s conftest.err; then
1994 ac_cpp_err=$ac_c_preproc_warn_flag
1995 else
1996 ac_cpp_err=
1998 else
1999 ac_cpp_err=yes
2001 if test -z "$ac_cpp_err"; then
2003 else
2004 echo "$as_me: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 # Broken: fails on valid input.
2007 continue
2009 rm -f conftest.err conftest.$ac_ext
2011 # OK, works on sane cases. Now check whether non-existent headers
2012 # can be detected and how.
2013 cat >conftest.$ac_ext <<_ACEOF
2014 #line 2014 "configure"
2015 #include "confdefs.h"
2016 #include <ac_nonexistent.h>
2017 _ACEOF
2018 if { (eval echo "$as_me:2018: \"$ac_cpp conftest.$ac_ext\"") >&5
2019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2020 ac_status=$?
2021 egrep -v '^ *\+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } >/dev/null; then
2026 if test -s conftest.err; then
2027 ac_cpp_err=$ac_c_preproc_warn_flag
2028 else
2029 ac_cpp_err=
2031 else
2032 ac_cpp_err=yes
2034 if test -z "$ac_cpp_err"; then
2035 # Broken: success on invalid input.
2036 continue
2037 else
2038 echo "$as_me: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 # Passes both tests.
2041 ac_preproc_ok=:
2042 break
2044 rm -f conftest.err conftest.$ac_ext
2046 done
2047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2048 rm -f conftest.err conftest.$ac_ext
2049 if $ac_preproc_ok; then
2051 else
2052 { { echo "$as_me:2052: error: C preprocessor \"$CPP\" fails sanity check" >&5
2053 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2054 { (exit 1); exit 1; }; }
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 echo "$as_me:2063: checking for X" >&5
2064 echo $ECHO_N "checking for X... $ECHO_C" >&6
2066 # Check whether --with-x or --without-x was given.
2067 if test "${with_x+set}" = set; then
2068 withval="$with_x"
2071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2072 if test "x$with_x" = xno; then
2073 # The user explicitly disabled X.
2074 have_x=disabled
2075 else
2076 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2077 # Both variables are already set.
2078 have_x=yes
2079 else
2080 if test "${ac_cv_have_x+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 # One or both of the vars are not set, and there is no cached value.
2084 ac_x_includes=no ac_x_libraries=no
2085 rm -fr conftest.dir
2086 if mkdir conftest.dir; then
2087 cd conftest.dir
2088 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2089 cat >Imakefile <<'EOF'
2090 acfindx:
2091 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2093 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2095 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2097 for ac_extension in a so sl; do
2098 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2099 test -f $ac_im_libdir/libX11.$ac_extension; then
2100 ac_im_usrlibdir=$ac_im_libdir; break
2102 done
2103 # Screen out bogus values from the imake configuration. They are
2104 # bogus both because they are the default anyway, and because
2105 # using them would break gcc on systems where it needs fixed includes.
2106 case $ac_im_incroot in
2107 /usr/include) ;;
2108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2109 esac
2110 case $ac_im_usrlibdir in
2111 /usr/lib | /lib) ;;
2112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2113 esac
2115 cd ..
2116 rm -fr conftest.dir
2119 # Standard set of common directories for X headers.
2120 # Check X11 before X11Rn because it is often a symlink to the current release.
2121 ac_x_header_dirs='
2122 /usr/X11/include
2123 /usr/X11R6/include
2124 /usr/X11R5/include
2125 /usr/X11R4/include
2127 /usr/include/X11
2128 /usr/include/X11R6
2129 /usr/include/X11R5
2130 /usr/include/X11R4
2132 /usr/local/X11/include
2133 /usr/local/X11R6/include
2134 /usr/local/X11R5/include
2135 /usr/local/X11R4/include
2137 /usr/local/include/X11
2138 /usr/local/include/X11R6
2139 /usr/local/include/X11R5
2140 /usr/local/include/X11R4
2142 /usr/X386/include
2143 /usr/x386/include
2144 /usr/XFree86/include/X11
2146 /usr/include
2147 /usr/local/include
2148 /usr/unsupported/include
2149 /usr/athena/include
2150 /usr/local/x11r5/include
2151 /usr/lpp/Xamples/include
2153 /usr/openwin/include
2154 /usr/openwin/share/include'
2156 if test "$ac_x_includes" = no; then
2157 # Guess where to find include files, by looking for Intrinsic.h.
2158 # First, try using that file with no special directory specified.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2162 #include <X11/Intrinsic.h>
2163 _ACEOF
2164 if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2166 ac_status=$?
2167 egrep -v '^ *\+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } >/dev/null; then
2172 if test -s conftest.err; then
2173 ac_cpp_err=$ac_c_preproc_warn_flag
2174 else
2175 ac_cpp_err=
2177 else
2178 ac_cpp_err=yes
2180 if test -z "$ac_cpp_err"; then
2181 # We can compile using X headers with no special include directory.
2182 ac_x_includes=
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 for ac_dir in $ac_x_header_dirs; do
2187 if test -r "$ac_dir/X11/Intrinsic.h"; then
2188 ac_x_includes=$ac_dir
2189 break
2191 done
2193 rm -f conftest.err conftest.$ac_ext
2194 fi # $ac_x_includes = no
2196 if test "$ac_x_libraries" = no; then
2197 # Check for the libraries.
2198 # See if we find them without any special options.
2199 # Don't add to $LIBS permanently.
2200 ac_save_LIBS=$LIBS
2201 LIBS="-lXt $LIBS"
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #line 2203 "configure"
2204 #include "confdefs.h"
2205 #include <X11/Intrinsic.h>
2207 main ()
2209 XtMalloc (0)
2211 return 0;
2213 _ACEOF
2214 rm -f conftest.$ac_objext conftest$ac_exeext
2215 if { (eval echo "$as_me:2215: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -s conftest$ac_exeext'
2221 { (eval echo "$as_me:2221: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:2224: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 LIBS=$ac_save_LIBS
2227 # We can link X programs with no special library path.
2228 ac_x_libraries=
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 LIBS=$ac_save_LIBS
2233 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2235 # Don't even attempt the hair of trying to link an X program!
2236 for ac_extension in a so sl; do
2237 if test -r $ac_dir/libXt.$ac_extension; then
2238 ac_x_libraries=$ac_dir
2239 break 2
2241 done
2242 done
2244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2245 fi # $ac_x_libraries = no
2247 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2248 # Didn't find X anywhere. Cache the known absence of X.
2249 ac_cv_have_x="have_x=no"
2250 else
2251 # Record where we found X for the cache.
2252 ac_cv_have_x="have_x=yes \
2253 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2258 eval "$ac_cv_have_x"
2259 fi # $with_x != no
2261 if test "$have_x" != yes; then
2262 echo "$as_me:2262: result: $have_x" >&5
2263 echo "${ECHO_T}$have_x" >&6
2264 no_x=yes
2265 else
2266 # If each of the values was on the command line, it overrides each guess.
2267 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2268 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2269 # Update the cache value to reflect the command line values.
2270 ac_cv_have_x="have_x=yes \
2271 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2272 echo "$as_me:2272: result: libraries $x_libraries, headers $x_includes" >&5
2273 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2276 if test "$no_x" = yes; then
2277 # Not all programs may use this symbol, but it does not hurt to define it.
2279 cat >>confdefs.h <<\EOF
2280 #define X_DISPLAY_MISSING 1
2283 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2284 else
2285 if test -n "$x_includes"; then
2286 X_CFLAGS="$X_CFLAGS -I$x_includes"
2289 # It would also be nice to do this for all -L options, not just this one.
2290 if test -n "$x_libraries"; then
2291 X_LIBS="$X_LIBS -L$x_libraries"
2292 # For Solaris; some versions of Sun CC require a space after -R and
2293 # others require no space. Words are not sufficient . . . .
2294 case `(uname -sr) 2>/dev/null` in
2295 "SunOS 5"*)
2296 echo "$as_me:2296: checking whether -R must be followed by a space" >&5
2297 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2298 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2299 cat >conftest.$ac_ext <<_ACEOF
2300 #line 2300 "configure"
2301 #include "confdefs.h"
2304 main ()
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { (eval echo "$as_me:2312: \"$ac_link\"") >&5
2313 (eval $ac_link) 2>&5
2314 ac_status=$?
2315 echo "$as_me:2315: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest$ac_exeext'
2318 { (eval echo "$as_me:2318: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:2321: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_R_nospace=yes
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 ac_R_nospace=no
2329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2330 if test $ac_R_nospace = yes; then
2331 echo "$as_me:2331: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2333 X_LIBS="$X_LIBS -R$x_libraries"
2334 else
2335 LIBS="$ac_xsave_LIBS -R $x_libraries"
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line 2337 "configure"
2338 #include "confdefs.h"
2341 main ()
2345 return 0;
2347 _ACEOF
2348 rm -f conftest.$ac_objext conftest$ac_exeext
2349 if { (eval echo "$as_me:2349: \"$ac_link\"") >&5
2350 (eval $ac_link) 2>&5
2351 ac_status=$?
2352 echo "$as_me:2352: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest$ac_exeext'
2355 { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 ac_R_space=yes
2361 else
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 ac_R_space=no
2366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2367 if test $ac_R_space = yes; then
2368 echo "$as_me:2368: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6
2370 X_LIBS="$X_LIBS -R $x_libraries"
2371 else
2372 echo "$as_me:2372: result: neither works" >&5
2373 echo "${ECHO_T}neither works" >&6
2376 LIBS=$ac_xsave_LIBS
2377 esac
2380 # Check for system-dependent libraries X programs must link with.
2381 # Do this before checking for the system-independent R6 libraries
2382 # (-lICE), since we may need -lsocket or whatever for X linking.
2384 if test "$ISC" = yes; then
2385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2386 else
2387 # Martyn Johnson says this is needed for Ultrix, if the X
2388 # libraries were built with DECnet support. And Karl Berry says
2389 # the Alpha needs dnet_stub (dnet does not exist).
2390 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line 2392 "configure"
2393 #include "confdefs.h"
2395 /* Override any gcc2 internal prototype to avoid an error. */
2396 #ifdef __cplusplus
2397 extern "C"
2398 #endif
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char XOpenDisplay ();
2403 main ()
2405 XOpenDisplay ();
2407 return 0;
2409 _ACEOF
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { (eval echo "$as_me:2411: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2413 ac_status=$?
2414 echo "$as_me:2414: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -s conftest$ac_exeext'
2417 { (eval echo "$as_me:2417: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:2420: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 echo "$as_me:2426: checking for dnet_ntoa in -ldnet" >&5
2427 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2428 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_check_lib_save_LIBS=$LIBS
2432 LIBS="-ldnet $LIBS"
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2437 /* Override any gcc2 internal prototype to avoid an error. */
2438 #ifdef __cplusplus
2439 extern "C"
2440 #endif
2441 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2443 char dnet_ntoa ();
2445 main ()
2447 dnet_ntoa ();
2449 return 0;
2451 _ACEOF
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { (eval echo "$as_me:2453: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2455 ac_status=$?
2456 echo "$as_me:2456: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest$ac_exeext'
2459 { (eval echo "$as_me:2459: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_lib_dnet_dnet_ntoa=yes
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2468 ac_cv_lib_dnet_dnet_ntoa=no
2470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2471 LIBS=$ac_check_lib_save_LIBS
2473 echo "$as_me:2473: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2474 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2475 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2479 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2480 echo "$as_me:2480: checking for dnet_ntoa in -ldnet_stub" >&5
2481 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2482 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 ac_check_lib_save_LIBS=$LIBS
2486 LIBS="-ldnet_stub $LIBS"
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line 2488 "configure"
2489 #include "confdefs.h"
2491 /* Override any gcc2 internal prototype to avoid an error. */
2492 #ifdef __cplusplus
2493 extern "C"
2494 #endif
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2497 char dnet_ntoa ();
2499 main ()
2501 dnet_ntoa ();
2503 return 0;
2505 _ACEOF
2506 rm -f conftest.$ac_objext conftest$ac_exeext
2507 if { (eval echo "$as_me:2507: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2509 ac_status=$?
2510 echo "$as_me:2510: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -s conftest$ac_exeext'
2513 { (eval echo "$as_me:2513: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:2516: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 ac_cv_lib_dnet_stub_dnet_ntoa=no
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 LIBS=$ac_check_lib_save_LIBS
2527 echo "$as_me:2527: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2528 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2529 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2536 LIBS="$ac_xsave_LIBS"
2538 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2539 # to get the SysV transport functions.
2540 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2541 # needs -lnsl.
2542 # The nsl library prevents programs from opening the X display
2543 # on Irix 5.2, according to T.E. Dickey.
2544 # The functions gethostbyname, getservbyname, and inet_addr are
2545 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2546 echo "$as_me:2546: checking for gethostbyname" >&5
2547 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2548 if test "${ac_cv_func_gethostbyname+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line 2552 "configure"
2553 #include "confdefs.h"
2554 /* System header to define __stub macros and hopefully few prototypes,
2555 which can conflict with char gethostbyname (); below. */
2556 #include <assert.h>
2557 /* Override any gcc2 internal prototype to avoid an error. */
2558 #ifdef __cplusplus
2559 extern "C"
2560 #endif
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563 char gethostbyname ();
2564 char (*f) ();
2567 main ()
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2573 choke me
2574 #else
2575 f = gethostbyname;
2576 #endif
2579 return 0;
2581 _ACEOF
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { (eval echo "$as_me:2583: \"$ac_link\"") >&5
2584 (eval $ac_link) 2>&5
2585 ac_status=$?
2586 echo "$as_me:2586: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:2589: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_func_gethostbyname=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 ac_cv_func_gethostbyname=no
2600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2602 echo "$as_me:2602: result: $ac_cv_func_gethostbyname" >&5
2603 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2605 if test $ac_cv_func_gethostbyname = no; then
2606 echo "$as_me:2606: checking for gethostbyname in -lnsl" >&5
2607 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2608 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 ac_check_lib_save_LIBS=$LIBS
2612 LIBS="-lnsl $LIBS"
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2617 /* Override any gcc2 internal prototype to avoid an error. */
2618 #ifdef __cplusplus
2619 extern "C"
2620 #endif
2621 /* We use char because int might match the return type of a gcc2
2622 builtin and then its argument prototype would still apply. */
2623 char gethostbyname ();
2625 main ()
2627 gethostbyname ();
2629 return 0;
2631 _ACEOF
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { (eval echo "$as_me:2633: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2635 ac_status=$?
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:2639: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:2642: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_lib_nsl_gethostbyname=yes
2645 else
2646 echo "$as_me: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 ac_cv_lib_nsl_gethostbyname=no
2650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2651 LIBS=$ac_check_lib_save_LIBS
2653 echo "$as_me:2653: result: $ac_cv_lib_nsl_gethostbyname" >&5
2654 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2655 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2656 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2659 if test $ac_cv_lib_nsl_gethostbyname = no; then
2660 echo "$as_me:2660: checking for gethostbyname in -lbsd" >&5
2661 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
2662 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 ac_check_lib_save_LIBS=$LIBS
2666 LIBS="-lbsd $LIBS"
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line 2668 "configure"
2669 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 #ifdef __cplusplus
2673 extern "C"
2674 #endif
2675 /* We use char because int might match the return type of a gcc2
2676 builtin and then its argument prototype would still apply. */
2677 char gethostbyname ();
2679 main ()
2681 gethostbyname ();
2683 return 0;
2685 _ACEOF
2686 rm -f conftest.$ac_objext conftest$ac_exeext
2687 if { (eval echo "$as_me:2687: \"$ac_link\"") >&5
2688 (eval $ac_link) 2>&5
2689 ac_status=$?
2690 echo "$as_me:2690: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:2693: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:2696: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_lib_bsd_gethostbyname=yes
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 ac_cv_lib_bsd_gethostbyname=no
2704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2705 LIBS=$ac_check_lib_save_LIBS
2707 echo "$as_me:2707: result: $ac_cv_lib_bsd_gethostbyname" >&5
2708 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
2709 if test $ac_cv_lib_bsd_gethostbyname = yes; then
2710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2716 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2717 # socket/setsockopt and other routines are undefined under SCO ODT
2718 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2719 # on later versions), says Simon Leinen: it contains gethostby*
2720 # variants that don't use the nameserver (or something). -lsocket
2721 # must be given before -lnsl if both are needed. We assume that
2722 # if connect needs -lnsl, so does gethostbyname.
2723 echo "$as_me:2723: checking for connect" >&5
2724 echo $ECHO_N "checking for connect... $ECHO_C" >&6
2725 if test "${ac_cv_func_connect+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line 2729 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char connect (); below. */
2733 #include <assert.h>
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 #ifdef __cplusplus
2736 extern "C"
2737 #endif
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2740 char connect ();
2741 char (*f) ();
2744 main ()
2746 /* The GNU C library defines this for functions which it implements
2747 to always fail with ENOSYS. Some functions are actually named
2748 something starting with __ and the normal name is an alias. */
2749 #if defined (__stub_connect) || defined (__stub___connect)
2750 choke me
2751 #else
2752 f = connect;
2753 #endif
2756 return 0;
2758 _ACEOF
2759 rm -f conftest.$ac_objext conftest$ac_exeext
2760 if { (eval echo "$as_me:2760: \"$ac_link\"") >&5
2761 (eval $ac_link) 2>&5
2762 ac_status=$?
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest$ac_exeext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_func_connect=yes
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 ac_cv_func_connect=no
2777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2779 echo "$as_me:2779: result: $ac_cv_func_connect" >&5
2780 echo "${ECHO_T}$ac_cv_func_connect" >&6
2782 if test $ac_cv_func_connect = no; then
2783 echo "$as_me:2783: checking for connect in -lsocket" >&5
2784 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2785 if test "${ac_cv_lib_socket_connect+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 ac_check_lib_save_LIBS=$LIBS
2789 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 #line 2791 "configure"
2792 #include "confdefs.h"
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 #ifdef __cplusplus
2796 extern "C"
2797 #endif
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2800 char connect ();
2802 main ()
2804 connect ();
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext conftest$ac_exeext
2810 if { (eval echo "$as_me:2810: \"$ac_link\"") >&5
2811 (eval $ac_link) 2>&5
2812 ac_status=$?
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -s conftest$ac_exeext'
2816 { (eval echo "$as_me:2816: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_cv_lib_socket_connect=yes
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 ac_cv_lib_socket_connect=no
2827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2828 LIBS=$ac_check_lib_save_LIBS
2830 echo "$as_me:2830: result: $ac_cv_lib_socket_connect" >&5
2831 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2832 if test $ac_cv_lib_socket_connect = yes; then
2833 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2838 # Guillermo Gomez says -lposix is necessary on A/UX.
2839 echo "$as_me:2839: checking for remove" >&5
2840 echo $ECHO_N "checking for remove... $ECHO_C" >&6
2841 if test "${ac_cv_func_remove+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 cat >conftest.$ac_ext <<_ACEOF
2845 #line 2845 "configure"
2846 #include "confdefs.h"
2847 /* System header to define __stub macros and hopefully few prototypes,
2848 which can conflict with char remove (); below. */
2849 #include <assert.h>
2850 /* Override any gcc2 internal prototype to avoid an error. */
2851 #ifdef __cplusplus
2852 extern "C"
2853 #endif
2854 /* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
2856 char remove ();
2857 char (*f) ();
2860 main ()
2862 /* The GNU C library defines this for functions which it implements
2863 to always fail with ENOSYS. Some functions are actually named
2864 something starting with __ and the normal name is an alias. */
2865 #if defined (__stub_remove) || defined (__stub___remove)
2866 choke me
2867 #else
2868 f = remove;
2869 #endif
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext conftest$ac_exeext
2876 if { (eval echo "$as_me:2876: \"$ac_link\"") >&5
2877 (eval $ac_link) 2>&5
2878 ac_status=$?
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest$ac_exeext'
2882 { (eval echo "$as_me:2882: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:2885: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_func_remove=yes
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2891 ac_cv_func_remove=no
2893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2895 echo "$as_me:2895: result: $ac_cv_func_remove" >&5
2896 echo "${ECHO_T}$ac_cv_func_remove" >&6
2898 if test $ac_cv_func_remove = no; then
2899 echo "$as_me:2899: checking for remove in -lposix" >&5
2900 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
2901 if test "${ac_cv_lib_posix_remove+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 ac_check_lib_save_LIBS=$LIBS
2905 LIBS="-lposix $LIBS"
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line 2907 "configure"
2908 #include "confdefs.h"
2910 /* Override any gcc2 internal prototype to avoid an error. */
2911 #ifdef __cplusplus
2912 extern "C"
2913 #endif
2914 /* We use char because int might match the return type of a gcc2
2915 builtin and then its argument prototype would still apply. */
2916 char remove ();
2918 main ()
2920 remove ();
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext conftest$ac_exeext
2926 if { (eval echo "$as_me:2926: \"$ac_link\"") >&5
2927 (eval $ac_link) 2>&5
2928 ac_status=$?
2929 echo "$as_me:2929: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest$ac_exeext'
2932 { (eval echo "$as_me:2932: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:2935: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_lib_posix_remove=yes
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2941 ac_cv_lib_posix_remove=no
2943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2944 LIBS=$ac_check_lib_save_LIBS
2946 echo "$as_me:2946: result: $ac_cv_lib_posix_remove" >&5
2947 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
2948 if test $ac_cv_lib_posix_remove = yes; then
2949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2954 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2955 echo "$as_me:2955: checking for shmat" >&5
2956 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
2957 if test "${ac_cv_func_shmat+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line 2961 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char shmat (); below. */
2965 #include <assert.h>
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 #ifdef __cplusplus
2968 extern "C"
2969 #endif
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2972 char shmat ();
2973 char (*f) ();
2976 main ()
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined (__stub_shmat) || defined (__stub___shmat)
2982 choke me
2983 #else
2984 f = shmat;
2985 #endif
2988 return 0;
2990 _ACEOF
2991 rm -f conftest.$ac_objext conftest$ac_exeext
2992 if { (eval echo "$as_me:2992: \"$ac_link\"") >&5
2993 (eval $ac_link) 2>&5
2994 ac_status=$?
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest$ac_exeext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_cv_func_shmat=yes
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3007 ac_cv_func_shmat=no
3009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3011 echo "$as_me:3011: result: $ac_cv_func_shmat" >&5
3012 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3014 if test $ac_cv_func_shmat = no; then
3015 echo "$as_me:3015: checking for shmat in -lipc" >&5
3016 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3017 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 ac_check_lib_save_LIBS=$LIBS
3021 LIBS="-lipc $LIBS"
3022 cat >conftest.$ac_ext <<_ACEOF
3023 #line 3023 "configure"
3024 #include "confdefs.h"
3026 /* Override any gcc2 internal prototype to avoid an error. */
3027 #ifdef __cplusplus
3028 extern "C"
3029 #endif
3030 /* We use char because int might match the return type of a gcc2
3031 builtin and then its argument prototype would still apply. */
3032 char shmat ();
3034 main ()
3036 shmat ();
3038 return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext conftest$ac_exeext
3042 if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
3043 (eval $ac_link) 2>&5
3044 ac_status=$?
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest$ac_exeext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_lib_ipc_shmat=yes
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 ac_cv_lib_ipc_shmat=no
3059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3060 LIBS=$ac_check_lib_save_LIBS
3062 echo "$as_me:3062: result: $ac_cv_lib_ipc_shmat" >&5
3063 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3064 if test $ac_cv_lib_ipc_shmat = yes; then
3065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3071 # Check for libraries that X11R6 Xt/Xaw programs need.
3072 ac_save_LDFLAGS=$LDFLAGS
3073 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3074 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3075 # check for ICE first), but we must link in the order -lSM -lICE or
3076 # we get undefined symbols. So assume we have SM if we have ICE.
3077 # These have to be linked with before -lX11, unlike the other
3078 # libraries we check for below, so use a different variable.
3079 # John Interrante, Karl Berry
3080 echo "$as_me:3080: checking for IceConnectionNumber in -lICE" >&5
3081 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3082 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085 ac_check_lib_save_LIBS=$LIBS
3086 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3091 /* Override any gcc2 internal prototype to avoid an error. */
3092 #ifdef __cplusplus
3093 extern "C"
3094 #endif
3095 /* We use char because int might match the return type of a gcc2
3096 builtin and then its argument prototype would still apply. */
3097 char IceConnectionNumber ();
3099 main ()
3101 IceConnectionNumber ();
3103 return 0;
3105 _ACEOF
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (eval echo "$as_me:3107: \"$ac_link\"") >&5
3108 (eval $ac_link) 2>&5
3109 ac_status=$?
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -s conftest$ac_exeext'
3113 { (eval echo "$as_me:3113: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_lib_ICE_IceConnectionNumber=yes
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3122 ac_cv_lib_ICE_IceConnectionNumber=no
3124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3125 LIBS=$ac_check_lib_save_LIBS
3127 echo "$as_me:3127: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3128 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3129 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3130 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3133 LDFLAGS=$ac_save_LDFLAGS
3137 for ac_prog in 'bison -y' byacc
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 echo "$as_me:3141: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_YACC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$YACC"; then
3147 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3148 else
3149 ac_save_IFS=$IFS; IFS=$ac_path_separator
3150 ac_dummy="$PATH"
3151 for ac_dir in $ac_dummy; do
3152 IFS=$ac_save_IFS
3153 test -z "$ac_dir" && ac_dir=.
3154 $as_executable_p "$ac_dir/$ac_word" || continue
3155 ac_cv_prog_YACC="$ac_prog"
3156 echo "$as_me:3156: found $ac_dir/$ac_word" >&5
3157 break
3158 done
3162 YACC=$ac_cv_prog_YACC
3163 if test -n "$YACC"; then
3164 echo "$as_me:3164: result: $YACC" >&5
3165 echo "${ECHO_T}$YACC" >&6
3166 else
3167 echo "$as_me:3167: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3171 test -n "$YACC" && break
3172 done
3173 test -n "$YACC" || YACC="yacc"
3175 for ac_prog in flex lex
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 echo "$as_me:3179: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_LEX+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test -n "$LEX"; then
3185 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3186 else
3187 ac_save_IFS=$IFS; IFS=$ac_path_separator
3188 ac_dummy="$PATH"
3189 for ac_dir in $ac_dummy; do
3190 IFS=$ac_save_IFS
3191 test -z "$ac_dir" && ac_dir=.
3192 $as_executable_p "$ac_dir/$ac_word" || continue
3193 ac_cv_prog_LEX="$ac_prog"
3194 echo "$as_me:3194: found $ac_dir/$ac_word" >&5
3195 break
3196 done
3200 LEX=$ac_cv_prog_LEX
3201 if test -n "$LEX"; then
3202 echo "$as_me:3202: result: $LEX" >&5
3203 echo "${ECHO_T}$LEX" >&6
3204 else
3205 echo "$as_me:3205: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 test -n "$LEX" && break
3210 done
3211 test -n "$LEX" || LEX=":"
3213 if test -z "$LEXLIB"
3214 then
3215 echo "$as_me:3215: checking for yywrap in -lfl" >&5
3216 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3217 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 ac_check_lib_save_LIBS=$LIBS
3221 LIBS="-lfl $LIBS"
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line 3223 "configure"
3224 #include "confdefs.h"
3226 /* Override any gcc2 internal prototype to avoid an error. */
3227 #ifdef __cplusplus
3228 extern "C"
3229 #endif
3230 /* We use char because int might match the return type of a gcc2
3231 builtin and then its argument prototype would still apply. */
3232 char yywrap ();
3234 main ()
3236 yywrap ();
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.$ac_objext conftest$ac_exeext
3242 if { (eval echo "$as_me:3242: \"$ac_link\"") >&5
3243 (eval $ac_link) 2>&5
3244 ac_status=$?
3245 echo "$as_me:3245: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest$ac_exeext'
3248 { (eval echo "$as_me:3248: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_lib_fl_yywrap=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 ac_cv_lib_fl_yywrap=no
3259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3260 LIBS=$ac_check_lib_save_LIBS
3262 echo "$as_me:3262: result: $ac_cv_lib_fl_yywrap" >&5
3263 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3264 if test $ac_cv_lib_fl_yywrap = yes; then
3265 LEXLIB="-lfl"
3266 else
3267 echo "$as_me:3267: checking for yywrap in -ll" >&5
3268 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3269 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 ac_check_lib_save_LIBS=$LIBS
3273 LIBS="-ll $LIBS"
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line 3275 "configure"
3276 #include "confdefs.h"
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 #ifdef __cplusplus
3280 extern "C"
3281 #endif
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284 char yywrap ();
3286 main ()
3288 yywrap ();
3290 return 0;
3292 _ACEOF
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:3294: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3296 ac_status=$?
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest$ac_exeext'
3300 { (eval echo "$as_me:3300: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_lib_l_yywrap=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ac_cv_lib_l_yywrap=no
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3314 echo "$as_me:3314: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3317 LEXLIB="-ll"
3324 if test "x$LEX" != "x:"; then
3325 echo "$as_me:3325: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 echo '%%
3333 %%' | $LEX
3334 if test -f lex.yy.c; then
3335 ac_cv_prog_lex_root=lex.yy
3336 elif test -f lexyy.c; then
3337 ac_cv_prog_lex_root=lexyy
3338 else
3339 { { echo "$as_me:3339: error: cannot find output from $LEX; giving up" >&5
3340 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3341 { (exit 1); exit 1; }; }
3344 echo "$as_me:3344: result: $ac_cv_prog_lex_root" >&5
3345 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3346 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3348 echo "$as_me:3348: checking whether yytext is a pointer" >&5
3349 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3350 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 # POSIX says lex can declare yytext either as a pointer or an array; the
3354 # default is implementation-dependent. Figure out which it is, since
3355 # not all implementations provide the %pointer and %array declarations.
3356 ac_cv_prog_lex_yytext_pointer=no
3357 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3358 ac_save_LIBS=$LIBS
3359 LIBS="$LIBS $LEXLIB"
3360 cat >conftest.$ac_ext <<_ACEOF
3361 `cat $LEX_OUTPUT_ROOT.c`
3362 _ACEOF
3363 rm -f conftest.$ac_objext conftest$ac_exeext
3364 if { (eval echo "$as_me:3364: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest$ac_exeext'
3370 { (eval echo "$as_me:3370: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:3373: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_lex_yytext_pointer=yes
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3381 LIBS=$ac_save_LIBS
3382 rm -f "${LEX_OUTPUT_ROOT}.c"
3385 echo "$as_me:3385: result: $ac_cv_prog_lex_yytext_pointer" >&5
3386 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3387 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3389 cat >>confdefs.h <<\EOF
3390 #define YYTEXT_POINTER 1
3397 for ac_prog in $YACC bison yacc
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 echo "$as_me:3401: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403 if test "${ac_cv_prog_XYACC+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 if test -n "$XYACC"; then
3407 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3408 else
3409 ac_save_IFS=$IFS; IFS=$ac_path_separator
3410 ac_dummy="$PATH"
3411 for ac_dir in $ac_dummy; do
3412 IFS=$ac_save_IFS
3413 test -z "$ac_dir" && ac_dir=.
3414 $as_executable_p "$ac_dir/$ac_word" || continue
3415 ac_cv_prog_XYACC="$ac_prog"
3416 echo "$as_me:3416: found $ac_dir/$ac_word" >&5
3417 break
3418 done
3422 XYACC=$ac_cv_prog_XYACC
3423 if test -n "$XYACC"; then
3424 echo "$as_me:3424: result: $XYACC" >&5
3425 echo "${ECHO_T}$XYACC" >&6
3426 else
3427 echo "$as_me:3427: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3431 test -n "$XYACC" && break
3432 done
3433 test -n "$XYACC" || XYACC="none"
3435 if test "$XYACC" = "none"
3436 then
3437 { { echo "$as_me:3437: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3438 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3439 { (exit 1); exit 1; }; }
3441 for ac_prog in $LEX flex lex
3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
3444 set dummy $ac_prog; ac_word=$2
3445 echo "$as_me:3445: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_XLEX+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$XLEX"; then
3451 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3452 else
3453 ac_save_IFS=$IFS; IFS=$ac_path_separator
3454 ac_dummy="$PATH"
3455 for ac_dir in $ac_dummy; do
3456 IFS=$ac_save_IFS
3457 test -z "$ac_dir" && ac_dir=.
3458 $as_executable_p "$ac_dir/$ac_word" || continue
3459 ac_cv_prog_XLEX="$ac_prog"
3460 echo "$as_me:3460: found $ac_dir/$ac_word" >&5
3461 break
3462 done
3466 XLEX=$ac_cv_prog_XLEX
3467 if test -n "$XLEX"; then
3468 echo "$as_me:3468: result: $XLEX" >&5
3469 echo "${ECHO_T}$XLEX" >&6
3470 else
3471 echo "$as_me:3471: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3475 test -n "$XLEX" && break
3476 done
3477 test -n "$XLEX" || XLEX="none"
3479 if test "$XLEX" = "none"
3480 then
3481 { { echo "$as_me:3481: error: no suitable lex found. Please install the 'flex' package." >&5
3482 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3483 { (exit 1); exit 1; }; }
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_RANLIB+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -n "$RANLIB"; then
3494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3495 else
3496 ac_save_IFS=$IFS; IFS=$ac_path_separator
3497 ac_dummy="$PATH"
3498 for ac_dir in $ac_dummy; do
3499 IFS=$ac_save_IFS
3500 test -z "$ac_dir" && ac_dir=.
3501 $as_executable_p "$ac_dir/$ac_word" || continue
3502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3503 echo "$as_me:3503: found $ac_dir/$ac_word" >&5
3504 break
3505 done
3509 RANLIB=$ac_cv_prog_RANLIB
3510 if test -n "$RANLIB"; then
3511 echo "$as_me:3511: result: $RANLIB" >&5
3512 echo "${ECHO_T}$RANLIB" >&6
3513 else
3514 echo "$as_me:3514: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3519 if test -z "$ac_cv_prog_RANLIB"; then
3520 ac_ct_RANLIB=$RANLIB
3521 # Extract the first word of "ranlib", so it can be a program name with args.
3522 set dummy ranlib; ac_word=$2
3523 echo "$as_me:3523: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 if test -n "$ac_ct_RANLIB"; then
3529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3530 else
3531 ac_save_IFS=$IFS; IFS=$ac_path_separator
3532 ac_dummy="$PATH"
3533 for ac_dir in $ac_dummy; do
3534 IFS=$ac_save_IFS
3535 test -z "$ac_dir" && ac_dir=.
3536 $as_executable_p "$ac_dir/$ac_word" || continue
3537 ac_cv_prog_ac_ct_RANLIB="ranlib"
3538 echo "$as_me:3538: found $ac_dir/$ac_word" >&5
3539 break
3540 done
3542 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3546 if test -n "$ac_ct_RANLIB"; then
3547 echo "$as_me:3547: result: $ac_ct_RANLIB" >&5
3548 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3549 else
3550 echo "$as_me:3550: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 RANLIB=$ac_ct_RANLIB
3555 else
3556 RANLIB="$ac_cv_prog_RANLIB"
3559 # Find a good install program. We prefer a C program (faster),
3560 # so one script is as good as another. But avoid the broken or
3561 # incompatible versions:
3562 # SysV /etc/install, /usr/sbin/install
3563 # SunOS /usr/etc/install
3564 # IRIX /sbin/install
3565 # AIX /bin/install
3566 # AmigaOS /C/install, which installs bootblocks on floppy discs
3567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570 # ./install, which can be erroneously created by make from ./install.sh.
3571 echo "$as_me:3571: checking for a BSD compatible install" >&5
3572 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3573 if test -z "$INSTALL"; then
3574 if test "${ac_cv_path_install+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 ac_save_IFS=$IFS; IFS=$ac_path_separator
3578 for ac_dir in $PATH; do
3579 IFS=$ac_save_IFS
3580 # Account for people who put trailing slashes in PATH elements.
3581 case $ac_dir/ in
3582 / | ./ | .// | /cC/* \
3583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3584 | /usr/ucb/* ) ;;
3586 # OSF1 and SCO ODT 3.0 have their own names for install.
3587 # Don't use installbsd from OSF since it installs stuff as root
3588 # by default.
3589 for ac_prog in ginstall scoinst install; do
3590 if $as_executable_p "$ac_dir/$ac_prog"; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3595 elif test $ac_prog = install &&
3596 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3599 else
3600 ac_cv_path_install="$ac_dir/$ac_prog -c"
3601 break 2
3604 done
3606 esac
3607 done
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3612 else
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
3617 INSTALL=$ac_install_sh
3620 echo "$as_me:3620: result: $INSTALL" >&5
3621 echo "${ECHO_T}$INSTALL" >&6
3623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624 # It thinks the first close brace ends the variable substitution.
3625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3631 echo "$as_me:3631: checking whether ln -s works" >&5
3632 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3633 LN_S=$as_ln_s
3634 if test "$LN_S" = "ln -s"; then
3635 echo "$as_me:3635: result: yes" >&5
3636 echo "${ECHO_T}yes" >&6
3637 else
3638 echo "$as_me:3638: result: no, using $LN_S" >&5
3639 echo "${ECHO_T}no, using $LN_S" >&6
3642 # Extract the first word of "c2man", so it can be a program name with args.
3643 set dummy c2man; ac_word=$2
3644 echo "$as_me:3644: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_prog_C2MAN+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 if test -n "$C2MAN"; then
3650 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
3651 else
3652 ac_save_IFS=$IFS; IFS=$ac_path_separator
3653 ac_dummy="$PATH"
3654 for ac_dir in $ac_dummy; do
3655 IFS=$ac_save_IFS
3656 test -z "$ac_dir" && ac_dir=.
3657 $as_executable_p "$ac_dir/$ac_word" || continue
3658 ac_cv_prog_C2MAN="c2man"
3659 echo "$as_me:3659: found $ac_dir/$ac_word" >&5
3660 break
3661 done
3663 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
3666 C2MAN=$ac_cv_prog_C2MAN
3667 if test -n "$C2MAN"; then
3668 echo "$as_me:3668: result: $C2MAN" >&5
3669 echo "${ECHO_T}$C2MAN" >&6
3670 else
3671 echo "$as_me:3671: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 # Extract the first word of "ldconfig", so it can be a program name with args.
3676 set dummy ldconfig; ac_word=$2
3677 echo "$as_me:3677: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 case $LDCONFIG in
3683 [\\/]* | ?:[\\/]*)
3684 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3687 ac_save_IFS=$IFS; IFS=$ac_path_separator
3688 ac_dummy="/sbin:/usr/sbin:$PATH"
3689 for ac_dir in $ac_dummy; do
3690 IFS=$ac_save_IFS
3691 test -z "$ac_dir" && ac_dir=.
3692 if $as_executable_p "$ac_dir/$ac_word"; then
3693 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3694 echo "$as_me:3694: found $ac_dir/$ac_word" >&5
3695 break
3697 done
3699 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
3701 esac
3703 LDCONFIG=$ac_cv_path_LDCONFIG
3705 if test -n "$LDCONFIG"; then
3706 echo "$as_me:3706: result: $LDCONFIG" >&5
3707 echo "${ECHO_T}$LDCONFIG" >&6
3708 else
3709 echo "$as_me:3709: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3713 for ac_prog in lclint lint
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_LINT+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$LINT"; then
3723 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3724 else
3725 ac_save_IFS=$IFS; IFS=$ac_path_separator
3726 ac_dummy="$PATH"
3727 for ac_dir in $ac_dummy; do
3728 IFS=$ac_save_IFS
3729 test -z "$ac_dir" && ac_dir=.
3730 $as_executable_p "$ac_dir/$ac_word" || continue
3731 ac_cv_prog_LINT="$ac_prog"
3732 echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3733 break
3734 done
3738 LINT=$ac_cv_prog_LINT
3739 if test -n "$LINT"; then
3740 echo "$as_me:3740: result: $LINT" >&5
3741 echo "${ECHO_T}$LINT" >&6
3742 else
3743 echo "$as_me:3743: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3747 test -n "$LINT" && break
3748 done
3750 if test "$LINT" = "lint"
3751 then
3752 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
3755 case $host_os in
3756 *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
3757 *) LDCOMBINE="ld -r" ;;
3758 esac
3760 echo "$as_me:3760: checking for sqrt in -lm" >&5
3761 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3762 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 ac_check_lib_save_LIBS=$LIBS
3766 LIBS="-lm $LIBS"
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #line 3768 "configure"
3769 #include "confdefs.h"
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 #ifdef __cplusplus
3773 extern "C"
3774 #endif
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char sqrt ();
3779 main ()
3781 sqrt ();
3783 return 0;
3785 _ACEOF
3786 rm -f conftest.$ac_objext conftest$ac_exeext
3787 if { (eval echo "$as_me:3787: \"$ac_link\"") >&5
3788 (eval $ac_link) 2>&5
3789 ac_status=$?
3790 echo "$as_me:3790: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:3793: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:3796: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_lib_m_sqrt=yes
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 ac_cv_lib_m_sqrt=no
3804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3805 LIBS=$ac_check_lib_save_LIBS
3807 echo "$as_me:3807: result: $ac_cv_lib_m_sqrt" >&5
3808 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3809 if test $ac_cv_lib_m_sqrt = yes; then
3810 cat >>confdefs.h <<EOF
3811 #define HAVE_LIBM 1
3814 LIBS="-lm $LIBS"
3818 echo "$as_me:3818: checking for i386_set_ldt in -li386" >&5
3819 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
3820 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 ac_check_lib_save_LIBS=$LIBS
3824 LIBS="-li386 $LIBS"
3825 cat >conftest.$ac_ext <<_ACEOF
3826 #line 3826 "configure"
3827 #include "confdefs.h"
3829 /* Override any gcc2 internal prototype to avoid an error. */
3830 #ifdef __cplusplus
3831 extern "C"
3832 #endif
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3835 char i386_set_ldt ();
3837 main ()
3839 i386_set_ldt ();
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (eval echo "$as_me:3845: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3847 ac_status=$?
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_lib_i386_i386_set_ldt=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 ac_cv_lib_i386_i386_set_ldt=no
3862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3863 LIBS=$ac_check_lib_save_LIBS
3865 echo "$as_me:3865: result: $ac_cv_lib_i386_i386_set_ldt" >&5
3866 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
3867 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
3868 cat >>confdefs.h <<EOF
3869 #define HAVE_LIBI386 1
3872 LIBS="-li386 $LIBS"
3876 echo "$as_me:3876: checking for _oss_ioctl in -lossaudio" >&5
3877 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3878 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-lossaudio $LIBS"
3883 cat >conftest.$ac_ext <<_ACEOF
3884 #line 3884 "configure"
3885 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 #ifdef __cplusplus
3889 extern "C"
3890 #endif
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3893 char _oss_ioctl ();
3895 main ()
3897 _oss_ioctl ();
3899 return 0;
3901 _ACEOF
3902 rm -f conftest.$ac_objext conftest$ac_exeext
3903 if { (eval echo "$as_me:3903: \"$ac_link\"") >&5
3904 (eval $ac_link) 2>&5
3905 ac_status=$?
3906 echo "$as_me:3906: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:3909: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:3912: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_lib_ossaudio__oss_ioctl=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3918 ac_cv_lib_ossaudio__oss_ioctl=no
3920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3921 LIBS=$ac_check_lib_save_LIBS
3923 echo "$as_me:3923: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3924 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3925 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3926 cat >>confdefs.h <<EOF
3927 #define HAVE_LIBOSSAUDIO 1
3930 LIBS="-lossaudio $LIBS"
3934 for ac_func in iswalnum
3936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3937 echo "$as_me:3937: checking for $ac_func" >&5
3938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3939 if eval "test \"\${$as_ac_var+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 cat >conftest.$ac_ext <<_ACEOF
3943 #line 3943 "configure"
3944 #include "confdefs.h"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func (); below. */
3947 #include <assert.h>
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 #ifdef __cplusplus
3950 extern "C"
3951 #endif
3952 /* We use char because int might match the return type of a gcc2
3953 builtin and then its argument prototype would still apply. */
3954 char $ac_func ();
3955 char (*f) ();
3958 main ()
3960 /* The GNU C library defines this for functions which it implements
3961 to always fail with ENOSYS. Some functions are actually named
3962 something starting with __ and the normal name is an alias. */
3963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3964 choke me
3965 #else
3966 f = $ac_func;
3967 #endif
3970 return 0;
3972 _ACEOF
3973 rm -f conftest.$ac_objext conftest$ac_exeext
3974 if { (eval echo "$as_me:3974: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>&5
3976 ac_status=$?
3977 echo "$as_me:3977: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest$ac_exeext'
3980 { (eval echo "$as_me:3980: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:3983: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 eval "$as_ac_var=yes"
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3989 eval "$as_ac_var=no"
3991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3993 echo "$as_me:3993: result: `eval echo '${'$as_ac_var'}'`" >&5
3994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3995 if test `eval echo '${'$as_ac_var'}'` = yes; then
3996 cat >>confdefs.h <<EOF
3997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4000 else
4002 echo "$as_me:4002: checking for iswalnum in -lw" >&5
4003 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4004 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 ac_check_lib_save_LIBS=$LIBS
4008 LIBS="-lw $LIBS"
4009 cat >conftest.$ac_ext <<_ACEOF
4010 #line 4010 "configure"
4011 #include "confdefs.h"
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 #ifdef __cplusplus
4015 extern "C"
4016 #endif
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4019 char iswalnum ();
4021 main ()
4023 iswalnum ();
4025 return 0;
4027 _ACEOF
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:4029: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4031 ac_status=$?
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -s conftest$ac_exeext'
4035 { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_lib_w_iswalnum=yes
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4044 ac_cv_lib_w_iswalnum=no
4046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4047 LIBS=$ac_check_lib_save_LIBS
4049 echo "$as_me:4049: result: $ac_cv_lib_w_iswalnum" >&5
4050 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4051 if test $ac_cv_lib_w_iswalnum = yes; then
4052 cat >>confdefs.h <<EOF
4053 #define HAVE_LIBW 1
4056 LIBS="-lw $LIBS"
4061 done
4063 for ac_func in gethostbyname
4065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4066 echo "$as_me:4066: checking for $ac_func" >&5
4067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4068 if eval "test \"\${$as_ac_var+set}\" = set"; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line 4072 "configure"
4073 #include "confdefs.h"
4074 /* System header to define __stub macros and hopefully few prototypes,
4075 which can conflict with char $ac_func (); below. */
4076 #include <assert.h>
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 #ifdef __cplusplus
4079 extern "C"
4080 #endif
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4083 char $ac_func ();
4084 char (*f) ();
4087 main ()
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4093 choke me
4094 #else
4095 f = $ac_func;
4096 #endif
4099 return 0;
4101 _ACEOF
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (eval echo "$as_me:4103: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>&5
4105 ac_status=$?
4106 echo "$as_me:4106: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:4109: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 eval "$as_ac_var=yes"
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4118 eval "$as_ac_var=no"
4120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4122 echo "$as_me:4122: result: `eval echo '${'$as_ac_var'}'`" >&5
4123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4124 if test `eval echo '${'$as_ac_var'}'` = yes; then
4125 cat >>confdefs.h <<EOF
4126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4129 else
4131 echo "$as_me:4131: checking for gethostbyname in -lnsl" >&5
4132 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4133 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 ac_check_lib_save_LIBS=$LIBS
4137 LIBS="-lnsl $LIBS"
4138 cat >conftest.$ac_ext <<_ACEOF
4139 #line 4139 "configure"
4140 #include "confdefs.h"
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 #ifdef __cplusplus
4144 extern "C"
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char gethostbyname ();
4150 main ()
4152 gethostbyname ();
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:4158: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:4164: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_lib_nsl_gethostbyname=yes
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 ac_cv_lib_nsl_gethostbyname=no
4175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4178 echo "$as_me:4178: result: $ac_cv_lib_nsl_gethostbyname" >&5
4179 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4180 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4181 cat >>confdefs.h <<EOF
4182 #define HAVE_LIBNSL 1
4185 LIBS="-lnsl $LIBS"
4190 done
4192 for ac_func in connect
4194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195 echo "$as_me:4195: checking for $ac_func" >&5
4196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line 4201 "configure"
4202 #include "confdefs.h"
4203 /* System header to define __stub macros and hopefully few prototypes,
4204 which can conflict with char $ac_func (); below. */
4205 #include <assert.h>
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char $ac_func ();
4213 char (*f) ();
4216 main ()
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4222 choke me
4223 #else
4224 f = $ac_func;
4225 #endif
4228 return 0;
4230 _ACEOF
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:4232: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4234 ac_status=$?
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:4238: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 eval "$as_ac_var=yes"
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 eval "$as_ac_var=no"
4249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251 echo "$as_me:4251: result: `eval echo '${'$as_ac_var'}'`" >&5
4252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4253 if test `eval echo '${'$as_ac_var'}'` = yes; then
4254 cat >>confdefs.h <<EOF
4255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4258 else
4260 echo "$as_me:4260: checking for connect in -lsocket" >&5
4261 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4262 if test "${ac_cv_lib_socket_connect+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 ac_check_lib_save_LIBS=$LIBS
4266 LIBS="-lsocket $LIBS"
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line 4268 "configure"
4269 #include "confdefs.h"
4271 /* Override any gcc2 internal prototype to avoid an error. */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char connect ();
4279 main ()
4281 connect ();
4283 return 0;
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:4287: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:4293: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_socket_connect=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 ac_cv_lib_socket_connect=no
4304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4305 LIBS=$ac_check_lib_save_LIBS
4307 echo "$as_me:4307: result: $ac_cv_lib_socket_connect" >&5
4308 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4309 if test $ac_cv_lib_socket_connect = yes; then
4310 cat >>confdefs.h <<EOF
4311 #define HAVE_LIBSOCKET 1
4314 LIBS="-lsocket $LIBS"
4319 done
4321 echo "$as_me:4321: checking for inet_aton in -lresolv" >&5
4322 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4323 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 ac_check_lib_save_LIBS=$LIBS
4327 LIBS="-lresolv $LIBS"
4328 cat >conftest.$ac_ext <<_ACEOF
4329 #line 4329 "configure"
4330 #include "confdefs.h"
4332 /* Override any gcc2 internal prototype to avoid an error. */
4333 #ifdef __cplusplus
4334 extern "C"
4335 #endif
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4338 char inet_aton ();
4340 main ()
4342 inet_aton ();
4344 return 0;
4346 _ACEOF
4347 rm -f conftest.$ac_objext conftest$ac_exeext
4348 if { (eval echo "$as_me:4348: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>&5
4350 ac_status=$?
4351 echo "$as_me:4351: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:4354: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:4357: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_lib_resolv_inet_aton=yes
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4363 ac_cv_lib_resolv_inet_aton=no
4365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4368 echo "$as_me:4368: result: $ac_cv_lib_resolv_inet_aton" >&5
4369 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4370 if test $ac_cv_lib_resolv_inet_aton = yes; then
4371 cat >>confdefs.h <<EOF
4372 #define HAVE_LIBRESOLV 1
4375 LIBS="-lresolv $LIBS"
4379 echo "$as_me:4379: checking for _xpg4_setrunelocale in -lxpg4" >&5
4380 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4381 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 ac_check_lib_save_LIBS=$LIBS
4385 LIBS="-lxpg4 $LIBS"
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line 4387 "configure"
4388 #include "confdefs.h"
4390 /* Override any gcc2 internal prototype to avoid an error. */
4391 #ifdef __cplusplus
4392 extern "C"
4393 #endif
4394 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4396 char _xpg4_setrunelocale ();
4398 main ()
4400 _xpg4_setrunelocale ();
4402 return 0;
4404 _ACEOF
4405 rm -f conftest.$ac_objext conftest$ac_exeext
4406 if { (eval echo "$as_me:4406: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>&5
4408 ac_status=$?
4409 echo "$as_me:4409: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -s conftest$ac_exeext'
4412 { (eval echo "$as_me:4412: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:4415: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 ac_cv_lib_xpg4__xpg4_setrunelocale=no
4423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4424 LIBS=$ac_check_lib_save_LIBS
4426 echo "$as_me:4426: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
4427 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
4428 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
4429 cat >>confdefs.h <<EOF
4430 #define HAVE_LIBXPG4 1
4433 LIBS="-lxpg4 $LIBS"
4437 echo "$as_me:4437: checking for mmap in -lmmap" >&5
4438 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
4439 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 ac_check_lib_save_LIBS=$LIBS
4443 LIBS="-lmmap $LIBS"
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line 4445 "configure"
4446 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 #ifdef __cplusplus
4450 extern "C"
4451 #endif
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4454 char mmap ();
4456 main ()
4458 mmap ();
4460 return 0;
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:4464: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:4467: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -s conftest$ac_exeext'
4470 { (eval echo "$as_me:4470: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 ac_cv_lib_mmap_mmap=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4479 ac_cv_lib_mmap_mmap=no
4481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4482 LIBS=$ac_check_lib_save_LIBS
4484 echo "$as_me:4484: result: $ac_cv_lib_mmap_mmap" >&5
4485 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
4486 if test $ac_cv_lib_mmap_mmap = yes; then
4487 cat >>confdefs.h <<EOF
4488 #define HAVE_LIBMMAP 1
4491 LIBS="-lmmap $LIBS"
4495 UTILLIBS=""
4497 for ac_func in openpty
4499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4500 echo "$as_me:4500: checking for $ac_func" >&5
4501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4502 if eval "test \"\${$as_ac_var+set}\" = set"; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 cat >conftest.$ac_ext <<_ACEOF
4506 #line 4506 "configure"
4507 #include "confdefs.h"
4508 /* System header to define __stub macros and hopefully few prototypes,
4509 which can conflict with char $ac_func (); below. */
4510 #include <assert.h>
4511 /* Override any gcc2 internal prototype to avoid an error. */
4512 #ifdef __cplusplus
4513 extern "C"
4514 #endif
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4517 char $ac_func ();
4518 char (*f) ();
4521 main ()
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 choke me
4528 #else
4529 f = $ac_func;
4530 #endif
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext conftest$ac_exeext
4537 if { (eval echo "$as_me:4537: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>&5
4539 ac_status=$?
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -s conftest$ac_exeext'
4543 { (eval echo "$as_me:4543: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:4546: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 eval "$as_ac_var=yes"
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 eval "$as_ac_var=no"
4554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4556 echo "$as_me:4556: result: `eval echo '${'$as_ac_var'}'`" >&5
4557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4558 if test `eval echo '${'$as_ac_var'}'` = yes; then
4559 cat >>confdefs.h <<EOF
4560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4563 else
4564 echo "$as_me:4564: checking for openpty in -lutil" >&5
4565 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
4566 if test "${ac_cv_lib_util_openpty+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 ac_check_lib_save_LIBS=$LIBS
4570 LIBS="-lutil $LIBS"
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line 4572 "configure"
4573 #include "confdefs.h"
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 #ifdef __cplusplus
4577 extern "C"
4578 #endif
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char openpty ();
4583 main ()
4585 openpty ();
4587 return 0;
4589 _ACEOF
4590 rm -f conftest.$ac_objext conftest$ac_exeext
4591 if { (eval echo "$as_me:4591: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>&5
4593 ac_status=$?
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -s conftest$ac_exeext'
4597 { (eval echo "$as_me:4597: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:4600: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_lib_util_openpty=yes
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4606 ac_cv_lib_util_openpty=no
4608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4609 LIBS=$ac_check_lib_save_LIBS
4611 echo "$as_me:4611: result: $ac_cv_lib_util_openpty" >&5
4612 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
4613 if test $ac_cv_lib_util_openpty = yes; then
4614 cat >>confdefs.h <<\EOF
4615 #define HAVE_OPENPTY 1
4618 UTILLIBS="-lutil"
4623 done
4625 DLLIBS=""
4627 for ac_header in dlfcn.h
4629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 echo "$as_me:4630: checking for $ac_header" >&5
4631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 #line 4636 "configure"
4637 #include "confdefs.h"
4638 #include <$ac_header>
4639 _ACEOF
4640 if { (eval echo "$as_me:4640: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642 ac_status=$?
4643 egrep -v '^ *\+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:4646: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_c_preproc_warn_flag
4650 else
4651 ac_cpp_err=
4653 else
4654 ac_cpp_err=yes
4656 if test -z "$ac_cpp_err"; then
4657 eval "$as_ac_Header=yes"
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 eval "$as_ac_Header=no"
4663 rm -f conftest.err conftest.$ac_ext
4665 echo "$as_me:4665: result: `eval echo '${'$as_ac_Header'}'`" >&5
4666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4668 cat >>confdefs.h <<EOF
4669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4672 for ac_func in dlopen
4674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4675 echo "$as_me:4675: checking for $ac_func" >&5
4676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4677 if eval "test \"\${$as_ac_var+set}\" = set"; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 cat >conftest.$ac_ext <<_ACEOF
4681 #line 4681 "configure"
4682 #include "confdefs.h"
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func (); below. */
4685 #include <assert.h>
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char $ac_func ();
4693 char (*f) ();
4696 main ()
4698 /* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4702 choke me
4703 #else
4704 f = $ac_func;
4705 #endif
4708 return 0;
4710 _ACEOF
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:4712: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4714 ac_status=$?
4715 echo "$as_me:4715: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:4718: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:4721: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 eval "$as_ac_var=yes"
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 eval "$as_ac_var=no"
4729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4731 echo "$as_me:4731: result: `eval echo '${'$as_ac_var'}'`" >&5
4732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4733 if test `eval echo '${'$as_ac_var'}'` = yes; then
4734 cat >>confdefs.h <<EOF
4735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4738 else
4739 echo "$as_me:4739: checking for dlopen in -ldl" >&5
4740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-ldl $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line 4747 "configure"
4748 #include "confdefs.h"
4750 /* Override any gcc2 internal prototype to avoid an error. */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4756 char dlopen ();
4758 main ()
4760 dlopen ();
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:4766: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>&5
4768 ac_status=$?
4769 echo "$as_me:4769: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:4772: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:4775: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_lib_dl_dlopen=yes
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4781 ac_cv_lib_dl_dlopen=no
4783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4784 LIBS=$ac_check_lib_save_LIBS
4786 echo "$as_me:4786: result: $ac_cv_lib_dl_dlopen" >&5
4787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4788 if test $ac_cv_lib_dl_dlopen = yes; then
4790 cat >>confdefs.h <<\EOF
4791 #define HAVE_DLOPEN 1
4794 DLLIBS="-ldl"
4795 else
4796 LIBEXT="a"
4800 done
4802 else
4803 LIBEXT="a"
4806 done
4808 JPEGLIB=""
4810 for ac_header in jpeglib.h
4812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4813 echo "$as_me:4813: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line 4819 "configure"
4820 #include "confdefs.h"
4821 #include <$ac_header>
4822 _ACEOF
4823 if { (eval echo "$as_me:4823: \"$ac_cpp conftest.$ac_ext\"") >&5
4824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4825 ac_status=$?
4826 egrep -v '^ *\+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:4829: \$? = $ac_status" >&5
4830 (exit $ac_status); } >/dev/null; then
4831 if test -s conftest.err; then
4832 ac_cpp_err=$ac_c_preproc_warn_flag
4833 else
4834 ac_cpp_err=
4836 else
4837 ac_cpp_err=yes
4839 if test -z "$ac_cpp_err"; then
4840 eval "$as_ac_Header=yes"
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 eval "$as_ac_Header=no"
4846 rm -f conftest.err conftest.$ac_ext
4848 echo "$as_me:4848: result: `eval echo '${'$as_ac_Header'}'`" >&5
4849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4851 cat >>confdefs.h <<EOF
4852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4854 echo "$as_me:4854: checking for jpeg_start_decompress in -ljpeg" >&5
4855 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
4856 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 ac_check_lib_save_LIBS=$LIBS
4860 LIBS="-ljpeg $LIBS"
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line 4862 "configure"
4863 #include "confdefs.h"
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 #ifdef __cplusplus
4867 extern "C"
4868 #endif
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871 char jpeg_start_decompress ();
4873 main ()
4875 jpeg_start_decompress ();
4877 return 0;
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:4881: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>&5
4883 ac_status=$?
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -s conftest$ac_exeext'
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_lib_jpeg_jpeg_start_decompress=yes
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4896 ac_cv_lib_jpeg_jpeg_start_decompress=no
4898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899 LIBS=$ac_check_lib_save_LIBS
4901 echo "$as_me:4901: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
4902 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
4903 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
4905 cat >>confdefs.h <<\EOF
4906 #define HAVE_LIBJPEG 1
4909 JPEGLIB="-ljpeg"
4914 done
4916 XFILES=""
4918 OPENGLFILES=""
4920 GLU32FILES=""
4921 if test "$have_x" = "yes"
4922 then
4923 XLIB="-lXext -lX11"
4924 ac_save_CPPFLAGS="$CPPFLAGS"
4925 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4927 for ac_header in X11/Xlib.h
4929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 echo "$as_me:4930: checking for $ac_header" >&5
4931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4938 #include <$ac_header>
4939 _ACEOF
4940 if { (eval echo "$as_me:4940: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942 ac_status=$?
4943 egrep -v '^ *\+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:4946: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null; then
4948 if test -s conftest.err; then
4949 ac_cpp_err=$ac_c_preproc_warn_flag
4950 else
4951 ac_cpp_err=
4953 else
4954 ac_cpp_err=yes
4956 if test -z "$ac_cpp_err"; then
4957 eval "$as_ac_Header=yes"
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 eval "$as_ac_Header=no"
4963 rm -f conftest.err conftest.$ac_ext
4965 echo "$as_me:4965: result: `eval echo '${'$as_ac_Header'}'`" >&5
4966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4968 cat >>confdefs.h <<EOF
4969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972 for ac_header in X11/XKBlib.h
4974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975 echo "$as_me:4975: checking for $ac_header" >&5
4976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line 4981 "configure"
4982 #include "confdefs.h"
4983 #include <$ac_header>
4984 _ACEOF
4985 if { (eval echo "$as_me:4985: \"$ac_cpp conftest.$ac_ext\"") >&5
4986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4987 ac_status=$?
4988 egrep -v '^ *\+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:4991: \$? = $ac_status" >&5
4992 (exit $ac_status); } >/dev/null; then
4993 if test -s conftest.err; then
4994 ac_cpp_err=$ac_c_preproc_warn_flag
4995 else
4996 ac_cpp_err=
4998 else
4999 ac_cpp_err=yes
5001 if test -z "$ac_cpp_err"; then
5002 eval "$as_ac_Header=yes"
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5006 eval "$as_ac_Header=no"
5008 rm -f conftest.err conftest.$ac_ext
5010 echo "$as_me:5010: result: `eval echo '${'$as_ac_Header'}'`" >&5
5011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5013 cat >>confdefs.h <<EOF
5014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016 echo "$as_me:5016: checking for XkbQueryExtension in -lX11" >&5
5017 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5018 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 ac_check_lib_save_LIBS=$LIBS
5022 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5023 cat >conftest.$ac_ext <<_ACEOF
5024 #line 5024 "configure"
5025 #include "confdefs.h"
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 #ifdef __cplusplus
5029 extern "C"
5030 #endif
5031 /* We use char because int might match the return type of a gcc2
5032 builtin and then its argument prototype would still apply. */
5033 char XkbQueryExtension ();
5035 main ()
5037 XkbQueryExtension ();
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext conftest$ac_exeext
5043 if { (eval echo "$as_me:5043: \"$ac_link\"") >&5
5044 (eval $ac_link) 2>&5
5045 ac_status=$?
5046 echo "$as_me:5046: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:5052: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_lib_X11_XkbQueryExtension=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 ac_cv_lib_X11_XkbQueryExtension=no
5060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5061 LIBS=$ac_check_lib_save_LIBS
5063 echo "$as_me:5063: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
5064 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5065 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
5067 cat >>confdefs.h <<\EOF
5068 #define HAVE_XKB 1
5073 else
5074 { echo "$as_me:5074: WARNING: Xkb extension not found, Wine will be built without it" >&5
5075 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
5078 done
5080 for ac_header in X11/extensions/XShm.h
5082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5083 echo "$as_me:5083: checking for $ac_header" >&5
5084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line 5089 "configure"
5090 #include "confdefs.h"
5091 #include <$ac_header>
5092 _ACEOF
5093 if { (eval echo "$as_me:5093: \"$ac_cpp conftest.$ac_ext\"") >&5
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095 ac_status=$?
5096 egrep -v '^ *\+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:5099: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null; then
5101 if test -s conftest.err; then
5102 ac_cpp_err=$ac_c_preproc_warn_flag
5103 else
5104 ac_cpp_err=
5106 else
5107 ac_cpp_err=yes
5109 if test -z "$ac_cpp_err"; then
5110 eval "$as_ac_Header=yes"
5111 else
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 eval "$as_ac_Header=no"
5116 rm -f conftest.err conftest.$ac_ext
5118 echo "$as_me:5118: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5121 cat >>confdefs.h <<EOF
5122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124 echo "$as_me:5124: checking for XShmQueryExtension in -lXext" >&5
5125 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
5126 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 ac_check_lib_save_LIBS=$LIBS
5130 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5131 cat >conftest.$ac_ext <<_ACEOF
5132 #line 5132 "configure"
5133 #include "confdefs.h"
5135 /* Override any gcc2 internal prototype to avoid an error. */
5136 #ifdef __cplusplus
5137 extern "C"
5138 #endif
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5141 char XShmQueryExtension ();
5143 main ()
5145 XShmQueryExtension ();
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:5151: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>&5
5153 ac_status=$?
5154 echo "$as_me:5154: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -s conftest$ac_exeext'
5157 { (eval echo "$as_me:5157: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:5160: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_cv_lib_Xext_XShmQueryExtension=yes
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5166 ac_cv_lib_Xext_XShmQueryExtension=no
5168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5169 LIBS=$ac_check_lib_save_LIBS
5171 echo "$as_me:5171: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
5172 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
5173 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
5175 cat >>confdefs.h <<\EOF
5176 #define HAVE_LIBXXSHM 1
5181 else
5182 { echo "$as_me:5182: WARNING: XShm extension not found, Wine will be built without it" >&5
5183 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
5186 done
5188 for ac_header in X11/extensions/shape.h
5190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5191 echo "$as_me:5191: checking for $ac_header" >&5
5192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line 5197 "configure"
5198 #include "confdefs.h"
5199 #include <$ac_header>
5200 _ACEOF
5201 if { (eval echo "$as_me:5201: \"$ac_cpp conftest.$ac_ext\"") >&5
5202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5203 ac_status=$?
5204 egrep -v '^ *\+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 echo "$as_me:5207: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev/null; then
5209 if test -s conftest.err; then
5210 ac_cpp_err=$ac_c_preproc_warn_flag
5211 else
5212 ac_cpp_err=
5214 else
5215 ac_cpp_err=yes
5217 if test -z "$ac_cpp_err"; then
5218 eval "$as_ac_Header=yes"
5219 else
5220 echo "$as_me: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 eval "$as_ac_Header=no"
5224 rm -f conftest.err conftest.$ac_ext
5226 echo "$as_me:5226: result: `eval echo '${'$as_ac_Header'}'`" >&5
5227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5229 cat >>confdefs.h <<EOF
5230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 echo "$as_me:5232: checking for XShapeQueryExtension in -lXext" >&5
5233 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
5234 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 ac_check_lib_save_LIBS=$LIBS
5238 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5239 cat >conftest.$ac_ext <<_ACEOF
5240 #line 5240 "configure"
5241 #include "confdefs.h"
5243 /* Override any gcc2 internal prototype to avoid an error. */
5244 #ifdef __cplusplus
5245 extern "C"
5246 #endif
5247 /* We use char because int might match the return type of a gcc2
5248 builtin and then its argument prototype would still apply. */
5249 char XShapeQueryExtension ();
5251 main ()
5253 XShapeQueryExtension ();
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (eval echo "$as_me:5259: \"$ac_link\"") >&5
5260 (eval $ac_link) 2>&5
5261 ac_status=$?
5262 echo "$as_me:5262: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest$ac_exeext'
5265 { (eval echo "$as_me:5265: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:5268: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_lib_Xext_XShapeQueryExtension=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 ac_cv_lib_Xext_XShapeQueryExtension=no
5276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5277 LIBS=$ac_check_lib_save_LIBS
5279 echo "$as_me:5279: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
5280 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
5281 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
5283 cat >>confdefs.h <<\EOF
5284 #define HAVE_LIBXSHAPE 1
5289 else
5290 { echo "$as_me:5290: WARNING: XShape extension not found, Wine will be built without it" >&5
5291 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
5294 done
5296 for ac_header in X11/extensions/xf86dga.h
5298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5299 echo "$as_me:5299: checking for $ac_header" >&5
5300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 cat >conftest.$ac_ext <<_ACEOF
5305 #line 5305 "configure"
5306 #include "confdefs.h"
5307 #include <$ac_header>
5308 _ACEOF
5309 if { (eval echo "$as_me:5309: \"$ac_cpp conftest.$ac_ext\"") >&5
5310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5311 ac_status=$?
5312 egrep -v '^ *\+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:5315: \$? = $ac_status" >&5
5316 (exit $ac_status); } >/dev/null; then
5317 if test -s conftest.err; then
5318 ac_cpp_err=$ac_c_preproc_warn_flag
5319 else
5320 ac_cpp_err=
5322 else
5323 ac_cpp_err=yes
5325 if test -z "$ac_cpp_err"; then
5326 eval "$as_ac_Header=yes"
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5330 eval "$as_ac_Header=no"
5332 rm -f conftest.err conftest.$ac_ext
5334 echo "$as_me:5334: result: `eval echo '${'$as_ac_Header'}'`" >&5
5335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h <<EOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5340 echo "$as_me:5340: checking for XDGAQueryExtension in -lXxf86dga" >&5
5341 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
5342 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 ac_check_lib_save_LIBS=$LIBS
5346 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5347 $LIBS"
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line 5349 "configure"
5350 #include "confdefs.h"
5352 /* Override any gcc2 internal prototype to avoid an error. */
5353 #ifdef __cplusplus
5354 extern "C"
5355 #endif
5356 /* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */
5358 char XDGAQueryExtension ();
5360 main ()
5362 XDGAQueryExtension ();
5364 return 0;
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:5368: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5370 ac_status=$?
5371 echo "$as_me:5371: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:5377: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5388 echo "$as_me:5388: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
5389 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
5390 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
5392 cat >>confdefs.h <<\EOF
5393 #define HAVE_LIBXXF86DGA2 1
5396 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
5398 else
5399 echo "$as_me:5399: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
5400 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
5401 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 ac_check_lib_save_LIBS=$LIBS
5405 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5406 $LIBS"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line 5408 "configure"
5409 #include "confdefs.h"
5411 /* Override any gcc2 internal prototype to avoid an error. */
5412 #ifdef __cplusplus
5413 extern "C"
5414 #endif
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5417 char XF86DGAQueryExtension ();
5419 main ()
5421 XF86DGAQueryExtension ();
5423 return 0;
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:5427: \"$ac_link\"") >&5
5428 (eval $ac_link) 2>&5
5429 ac_status=$?
5430 echo "$as_me:5430: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -s conftest$ac_exeext'
5433 { (eval echo "$as_me:5433: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:5436: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5447 echo "$as_me:5447: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
5448 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
5449 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
5451 cat >>confdefs.h <<\EOF
5452 #define HAVE_LIBXXF86DGA 1
5455 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
5461 else
5462 { echo "$as_me:5462: WARNING: DGA extension not found, Wine will be built without it" >&5
5463 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
5466 done
5468 for ac_header in X11/extensions/xf86vmode.h
5470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 echo "$as_me:5471: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line 5477 "configure"
5478 #include "confdefs.h"
5479 #include <$ac_header>
5480 _ACEOF
5481 if { (eval echo "$as_me:5481: \"$ac_cpp conftest.$ac_ext\"") >&5
5482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5483 ac_status=$?
5484 egrep -v '^ *\+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:5487: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 else
5492 ac_cpp_err=
5494 else
5495 ac_cpp_err=yes
5497 if test -z "$ac_cpp_err"; then
5498 eval "$as_ac_Header=yes"
5499 else
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 eval "$as_ac_Header=no"
5504 rm -f conftest.err conftest.$ac_ext
5506 echo "$as_me:5506: result: `eval echo '${'$as_ac_Header'}'`" >&5
5507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509 cat >>confdefs.h <<EOF
5510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512 echo "$as_me:5512: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
5513 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
5514 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 ac_check_lib_save_LIBS=$LIBS
5518 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5519 $LIBS"
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line 5521 "configure"
5522 #include "confdefs.h"
5524 /* Override any gcc2 internal prototype to avoid an error. */
5525 #ifdef __cplusplus
5526 extern "C"
5527 #endif
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5530 char XF86VidModeQueryExtension ();
5532 main ()
5534 XF86VidModeQueryExtension ();
5536 return 0;
5538 _ACEOF
5539 rm -f conftest.$ac_objext conftest$ac_exeext
5540 if { (eval echo "$as_me:5540: \"$ac_link\"") >&5
5541 (eval $ac_link) 2>&5
5542 ac_status=$?
5543 echo "$as_me:5543: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -s conftest$ac_exeext'
5546 { (eval echo "$as_me:5546: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:5549: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5555 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
5557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5560 echo "$as_me:5560: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
5561 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
5562 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
5564 cat >>confdefs.h <<\EOF
5565 #define HAVE_LIBXXF86VM 1
5568 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
5572 else
5573 { echo "$as_me:5573: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
5574 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
5577 done
5579 for ac_header in X11/extensions/Xvlib.h
5581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5582 echo "$as_me:5582: checking for $ac_header" >&5
5583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line 5588 "configure"
5589 #include "confdefs.h"
5590 #include <$ac_header>
5591 _ACEOF
5592 if { (eval echo "$as_me:5592: \"$ac_cpp conftest.$ac_ext\"") >&5
5593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5594 ac_status=$?
5595 egrep -v '^ *\+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:5598: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 else
5603 ac_cpp_err=
5605 else
5606 ac_cpp_err=yes
5608 if test -z "$ac_cpp_err"; then
5609 eval "$as_ac_Header=yes"
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5613 eval "$as_ac_Header=no"
5615 rm -f conftest.err conftest.$ac_ext
5617 echo "$as_me:5617: result: `eval echo '${'$as_ac_Header'}'`" >&5
5618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620 cat >>confdefs.h <<EOF
5621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623 echo "$as_me:5623: checking for XvShmCreateImage in -lXv" >&5
5624 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
5625 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 ac_check_lib_save_LIBS=$LIBS
5629 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5630 $LIBS"
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line 5632 "configure"
5633 #include "confdefs.h"
5635 /* Override any gcc2 internal prototype to avoid an error. */
5636 #ifdef __cplusplus
5637 extern "C"
5638 #endif
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5641 char XvShmCreateImage ();
5643 main ()
5645 XvShmCreateImage ();
5647 return 0;
5649 _ACEOF
5650 rm -f conftest.$ac_objext conftest$ac_exeext
5651 if { (eval echo "$as_me:5651: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5653 ac_status=$?
5654 echo "$as_me:5654: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -s conftest$ac_exeext'
5657 { (eval echo "$as_me:5657: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:5660: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 ac_cv_lib_Xv_XvShmCreateImage=yes
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5666 ac_cv_lib_Xv_XvShmCreateImage=no
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669 LIBS=$ac_check_lib_save_LIBS
5671 echo "$as_me:5671: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
5672 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
5673 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
5675 cat >>confdefs.h <<\EOF
5676 #define HAVE_XVIDEO 1
5679 X_PRE_LIBS="$X_PRE_LIBS -lXv"
5683 else
5684 { echo "$as_me:5684: WARNING: XVideo extension not found, Wine will be built without it" >&5
5685 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
5688 done
5690 for ac_header in X11/extensions/Xrender.h
5692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5693 echo "$as_me:5693: checking for $ac_header" >&5
5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line 5699 "configure"
5700 #include "confdefs.h"
5701 #include <$ac_header>
5702 _ACEOF
5703 if { (eval echo "$as_me:5703: \"$ac_cpp conftest.$ac_ext\"") >&5
5704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5705 ac_status=$?
5706 egrep -v '^ *\+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:5709: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null; then
5711 if test -s conftest.err; then
5712 ac_cpp_err=$ac_c_preproc_warn_flag
5713 else
5714 ac_cpp_err=
5716 else
5717 ac_cpp_err=yes
5719 if test -z "$ac_cpp_err"; then
5720 eval "$as_ac_Header=yes"
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5724 eval "$as_ac_Header=no"
5726 rm -f conftest.err conftest.$ac_ext
5728 echo "$as_me:5728: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5731 cat >>confdefs.h <<EOF
5732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5734 echo "$as_me:5734: checking for XRenderQueryExtension in -lXrender" >&5
5735 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
5736 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 ac_check_lib_save_LIBS=$LIBS
5740 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5741 $LIBS"
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line 5743 "configure"
5744 #include "confdefs.h"
5746 /* Override any gcc2 internal prototype to avoid an error. */
5747 #ifdef __cplusplus
5748 extern "C"
5749 #endif
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752 char XRenderQueryExtension ();
5754 main ()
5756 XRenderQueryExtension ();
5758 return 0;
5760 _ACEOF
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (eval echo "$as_me:5762: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>&5
5764 ac_status=$?
5765 echo "$as_me:5765: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -s conftest$ac_exeext'
5768 { (eval echo "$as_me:5768: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:5771: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_lib_Xrender_XRenderQueryExtension=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5777 ac_cv_lib_Xrender_XRenderQueryExtension=no
5779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5780 LIBS=$ac_check_lib_save_LIBS
5782 echo "$as_me:5782: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
5783 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
5784 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
5786 cat >>confdefs.h <<\EOF
5787 #define HAVE_LIBXRENDER 1
5790 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
5794 else
5795 { echo "$as_me:5795: WARNING: XRender extension not found, Wine will be built without it" >&5
5796 echo "$as_me: WARNING: XRender extension not found, Wine will be built without it" >&2;}
5799 done
5802 done
5804 if test "x$enable_opengl" != "xno"
5805 then
5806 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
5807 then
5808 { { echo "$as_me:5808: error: /usr/X11R6/lib/libGL.a is present on your system.
5809 This prevents linking to OpenGL. Delete the file and restart configure." >&5
5810 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
5811 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
5812 { (exit 1); exit 1; }; }
5815 for ac_header in GL/gl.h GL/glx.h GL/glext.h
5817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 echo "$as_me:5818: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line 5824 "configure"
5825 #include "confdefs.h"
5826 #include <$ac_header>
5827 _ACEOF
5828 if { (eval echo "$as_me:5828: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 ac_status=$?
5831 egrep -v '^ *\+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:5834: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5838 else
5839 ac_cpp_err=
5841 else
5842 ac_cpp_err=yes
5844 if test -z "$ac_cpp_err"; then
5845 eval "$as_ac_Header=yes"
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 eval "$as_ac_Header=no"
5851 rm -f conftest.err conftest.$ac_ext
5853 echo "$as_me:5853: result: `eval echo '${'$as_ac_Header'}'`" >&5
5854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5856 cat >>confdefs.h <<EOF
5857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5861 done
5863 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
5864 then
5865 echo "$as_me:5865: checking for up-to-date OpenGL version" >&5
5866 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
5867 if test "${wine_cv_opengl_version_OK+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 cat >conftest.$ac_ext <<_ACEOF
5871 #line 5871 "configure"
5872 #include "confdefs.h"
5873 #include <GL/gl.h>
5875 main ()
5877 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
5879 return 0;
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:5883: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>&5
5885 ac_status=$?
5886 echo "$as_me:5886: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:5889: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:5892: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 wine_cv_opengl_version_OK="yes"
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 wine_cv_opengl_version_OK="no"
5901 rm -f conftest.$ac_objext conftest.$ac_ext
5904 echo "$as_me:5904: result: $wine_cv_opengl_version_OK" >&5
5905 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
5907 echo "$as_me:5907: checking for thread-safe OpenGL version" >&5
5908 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
5909 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 saved_libs=$LIBS
5913 LIBS="$X_LIBS -lGL"
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line 5915 "configure"
5916 #include "confdefs.h"
5919 main ()
5921 pthread_getspecific();
5923 return 0;
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:5927: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>&5
5929 ac_status=$?
5930 echo "$as_me:5930: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -s conftest$ac_exeext'
5933 { (eval echo "$as_me:5933: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:5936: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 wine_cv_opengl_version_threadsafe="yes"
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5942 wine_cv_opengl_version_threadsafe="no"
5944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5945 LIBS=$saved_libs
5948 echo "$as_me:5948: result: $wine_cv_opengl_version_threadsafe" >&5
5949 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
5951 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
5952 then
5953 echo "$as_me:5953: checking for glXCreateContext in -lGL" >&5
5954 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
5955 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 ac_check_lib_save_LIBS=$LIBS
5959 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line 5961 "configure"
5962 #include "confdefs.h"
5964 /* Override any gcc2 internal prototype to avoid an error. */
5965 #ifdef __cplusplus
5966 extern "C"
5967 #endif
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5970 char glXCreateContext ();
5972 main ()
5974 glXCreateContext ();
5976 return 0;
5978 _ACEOF
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:5980: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>&5
5982 ac_status=$?
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest$ac_exeext'
5986 { (eval echo "$as_me:5986: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 ac_cv_lib_GL_glXCreateContext=yes
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 ac_cv_lib_GL_glXCreateContext=no
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_check_lib_save_LIBS
6000 echo "$as_me:6000: result: $ac_cv_lib_GL_glXCreateContext" >&5
6001 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
6002 if test $ac_cv_lib_GL_glXCreateContext = yes; then
6003 X_PRE_LIBS="$X_PRE_LIBS -lGL"
6007 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
6008 then
6009 OPENGLFILES='$(OPENGLFILES)'
6011 cat >>confdefs.h <<\EOF
6012 #define HAVE_OPENGL 1
6015 echo "$as_me:6015: checking for glXGetProcAddressARB in -lGL" >&5
6016 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
6017 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 ac_check_lib_save_LIBS=$LIBS
6021 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line 6023 "configure"
6024 #include "confdefs.h"
6026 /* Override any gcc2 internal prototype to avoid an error. */
6027 #ifdef __cplusplus
6028 extern "C"
6029 #endif
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6032 char glXGetProcAddressARB ();
6034 main ()
6036 glXGetProcAddressARB ();
6038 return 0;
6040 _ACEOF
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:6042: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>&5
6044 ac_status=$?
6045 echo "$as_me:6045: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -s conftest$ac_exeext'
6048 { (eval echo "$as_me:6048: \"$ac_try\"") >&5
6049 (eval $ac_try) 2>&5
6050 ac_status=$?
6051 echo "$as_me:6051: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6053 ac_cv_lib_GL_glXGetProcAddressARB=yes
6054 else
6055 echo "$as_me: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 ac_cv_lib_GL_glXGetProcAddressARB=no
6059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6060 LIBS=$ac_check_lib_save_LIBS
6062 echo "$as_me:6062: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
6063 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
6064 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
6066 cat >>confdefs.h <<\EOF
6067 #define HAVE_GLX_GETPROCADDRESS 1
6072 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
6073 then
6074 echo "$as_me:6074: checking for OpenGL extension functions prototypes" >&5
6075 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
6076 if test "${wine_cv_extension_prototypes+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line 6080 "configure"
6081 #include "confdefs.h"
6082 #include <GL/gl.h>
6083 #ifdef HAVE_GL_GLEXT_H
6084 # include <GL/glext.h>
6085 #endif
6088 main ()
6090 PFNGLCOLORTABLEEXTPROC test_proc;
6092 return 0;
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (eval echo "$as_me:6096: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>&5
6098 ac_status=$?
6099 echo "$as_me:6099: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (eval echo "$as_me:6102: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:6105: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 wine_cv_extension_prototypes="yes"
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6111 wine_cv_extension_prototypes="no"
6114 rm -f conftest.$ac_objext conftest.$ac_ext
6117 echo "$as_me:6117: result: $wine_cv_extension_prototypes" >&5
6118 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
6119 if test "$wine_cv_extension_prototypes" = "yes"
6120 then
6122 cat >>confdefs.h <<\EOF
6123 #define HAVE_GLEXT_PROTOTYPES 1
6130 echo "$as_me:6130: checking for gluLookAt in -lGLU" >&5
6131 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
6132 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 ac_check_lib_save_LIBS=$LIBS
6136 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
6137 $LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line 6139 "configure"
6140 #include "confdefs.h"
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 #ifdef __cplusplus
6144 extern "C"
6145 #endif
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6148 char gluLookAt ();
6150 main ()
6152 gluLookAt ();
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:6158: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>&5
6160 ac_status=$?
6161 echo "$as_me:6161: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:6164: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:6167: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_lib_GLU_gluLookAt=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 ac_cv_lib_GLU_gluLookAt=no
6175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 LIBS=$ac_check_lib_save_LIBS
6178 echo "$as_me:6178: result: $ac_cv_lib_GLU_gluLookAt" >&5
6179 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
6180 if test $ac_cv_lib_GLU_gluLookAt = yes; then
6181 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
6182 GLU32FILES='$(GLU32FILES)'
6190 CPPFLAGS="$ac_save_CPPFLAGS"
6191 XFILES='$(XFILES)'
6192 else
6193 XLIB=""
6194 X_CFLAGS=""
6195 X_LIBS=""
6198 CURSESLIBS=""
6199 if test "x$with_curses" != "xno"
6200 then
6202 for ac_header in ncurses.h
6204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6205 echo "$as_me:6205: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 cat >conftest.$ac_ext <<_ACEOF
6211 #line 6211 "configure"
6212 #include "confdefs.h"
6213 #include <$ac_header>
6214 _ACEOF
6215 if { (eval echo "$as_me:6215: \"$ac_cpp conftest.$ac_ext\"") >&5
6216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 ac_status=$?
6218 egrep -v '^ *\+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:6221: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null; then
6223 if test -s conftest.err; then
6224 ac_cpp_err=$ac_c_preproc_warn_flag
6225 else
6226 ac_cpp_err=
6228 else
6229 ac_cpp_err=yes
6231 if test -z "$ac_cpp_err"; then
6232 eval "$as_ac_Header=yes"
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6236 eval "$as_ac_Header=no"
6238 rm -f conftest.err conftest.$ac_ext
6240 echo "$as_me:6240: result: `eval echo '${'$as_ac_Header'}'`" >&5
6241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6243 cat >>confdefs.h <<EOF
6244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6246 echo "$as_me:6246: checking for waddch in -lncurses" >&5
6247 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
6248 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 ac_check_lib_save_LIBS=$LIBS
6252 LIBS="-lncurses $LIBS"
6253 cat >conftest.$ac_ext <<_ACEOF
6254 #line 6254 "configure"
6255 #include "confdefs.h"
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 #ifdef __cplusplus
6259 extern "C"
6260 #endif
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263 char waddch ();
6265 main ()
6267 waddch ();
6269 return 0;
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (eval echo "$as_me:6273: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>&5
6275 ac_status=$?
6276 echo "$as_me:6276: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -s conftest$ac_exeext'
6279 { (eval echo "$as_me:6279: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:6282: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_cv_lib_ncurses_waddch=yes
6285 else
6286 echo "$as_me: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6288 ac_cv_lib_ncurses_waddch=no
6290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6291 LIBS=$ac_check_lib_save_LIBS
6293 echo "$as_me:6293: result: $ac_cv_lib_ncurses_waddch" >&5
6294 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
6295 if test $ac_cv_lib_ncurses_waddch = yes; then
6297 cat >>confdefs.h <<\EOF
6298 #define HAVE_LIBNCURSES 1
6301 CURSESLIBS="-lncurses"
6302 else
6304 for ac_header in curses.h
6306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307 echo "$as_me:6307: checking for $ac_header" >&5
6308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 cat >conftest.$ac_ext <<_ACEOF
6313 #line 6313 "configure"
6314 #include "confdefs.h"
6315 #include <$ac_header>
6316 _ACEOF
6317 if { (eval echo "$as_me:6317: \"$ac_cpp conftest.$ac_ext\"") >&5
6318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6319 ac_status=$?
6320 egrep -v '^ *\+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 (exit $ac_status); } >/dev/null; then
6325 if test -s conftest.err; then
6326 ac_cpp_err=$ac_c_preproc_warn_flag
6327 else
6328 ac_cpp_err=
6330 else
6331 ac_cpp_err=yes
6333 if test -z "$ac_cpp_err"; then
6334 eval "$as_ac_Header=yes"
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 eval "$as_ac_Header=no"
6340 rm -f conftest.err conftest.$ac_ext
6342 echo "$as_me:6342: result: `eval echo '${'$as_ac_Header'}'`" >&5
6343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6345 cat >>confdefs.h <<EOF
6346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6348 echo "$as_me:6348: checking for waddch in -lcurses" >&5
6349 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
6350 if test "${ac_cv_lib_curses_waddch+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 ac_check_lib_save_LIBS=$LIBS
6354 LIBS="-lcurses $LIBS"
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line 6356 "configure"
6357 #include "confdefs.h"
6359 /* Override any gcc2 internal prototype to avoid an error. */
6360 #ifdef __cplusplus
6361 extern "C"
6362 #endif
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6365 char waddch ();
6367 main ()
6369 waddch ();
6371 return 0;
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:6375: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6377 ac_status=$?
6378 echo "$as_me:6378: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:6381: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:6384: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_lib_curses_waddch=yes
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 ac_cv_lib_curses_waddch=no
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_check_lib_save_LIBS
6395 echo "$as_me:6395: result: $ac_cv_lib_curses_waddch" >&5
6396 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
6397 if test $ac_cv_lib_curses_waddch = yes; then
6399 cat >>confdefs.h <<\EOF
6400 #define HAVE_LIBCURSES 1
6403 CURSESLIBS="-lcurses"
6407 done
6412 done
6414 saved_libs="$LIBS"
6415 LIBS="$CURSESLIBS $LIBS"
6417 for ac_func in getbkgd resizeterm
6419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6420 echo "$as_me:6420: checking for $ac_func" >&5
6421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6422 if eval "test \"\${$as_ac_var+set}\" = set"; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line 6426 "configure"
6427 #include "confdefs.h"
6428 /* System header to define __stub macros and hopefully few prototypes,
6429 which can conflict with char $ac_func (); below. */
6430 #include <assert.h>
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 #ifdef __cplusplus
6433 extern "C"
6434 #endif
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6437 char $ac_func ();
6438 char (*f) ();
6441 main ()
6443 /* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6447 choke me
6448 #else
6449 f = $ac_func;
6450 #endif
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:6457: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>&5
6459 ac_status=$?
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:6463: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:6466: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 eval "$as_ac_var=yes"
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 eval "$as_ac_var=no"
6474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6476 echo "$as_me:6476: result: `eval echo '${'$as_ac_var'}'`" >&5
6477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6478 if test `eval echo '${'$as_ac_var'}'` = yes; then
6479 cat >>confdefs.h <<EOF
6480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6484 done
6486 LIBS="$saved_libs"
6489 CUPSLIBS=""
6490 wine_cv_warn_cups_h=no
6491 echo "$as_me:6491: checking for cupsGetPPD in -lcups" >&5
6492 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
6493 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lcups $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line 6499 "configure"
6500 #include "confdefs.h"
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char cupsGetPPD ();
6510 main ()
6512 cupsGetPPD ();
6514 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:6518: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>&5
6520 ac_status=$?
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest$ac_exeext'
6524 { (eval echo "$as_me:6524: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:6527: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_cv_lib_cups_cupsGetPPD=yes
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6533 ac_cv_lib_cups_cupsGetPPD=no
6535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6538 echo "$as_me:6538: result: $ac_cv_lib_cups_cupsGetPPD" >&5
6539 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
6540 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
6541 echo "$as_me:6541: checking for cups/cups.h" >&5
6542 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
6543 if test "${ac_cv_header_cups_cups_h+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546 cat >conftest.$ac_ext <<_ACEOF
6547 #line 6547 "configure"
6548 #include "confdefs.h"
6549 #include <cups/cups.h>
6550 _ACEOF
6551 if { (eval echo "$as_me:6551: \"$ac_cpp conftest.$ac_ext\"") >&5
6552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6553 ac_status=$?
6554 egrep -v '^ *\+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:6557: \$? = $ac_status" >&5
6558 (exit $ac_status); } >/dev/null; then
6559 if test -s conftest.err; then
6560 ac_cpp_err=$ac_c_preproc_warn_flag
6561 else
6562 ac_cpp_err=
6564 else
6565 ac_cpp_err=yes
6567 if test -z "$ac_cpp_err"; then
6568 ac_cv_header_cups_cups_h=yes
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6572 ac_cv_header_cups_cups_h=no
6574 rm -f conftest.err conftest.$ac_ext
6576 echo "$as_me:6576: result: $ac_cv_header_cups_cups_h" >&5
6577 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
6578 if test $ac_cv_header_cups_cups_h = yes; then
6580 cat >>confdefs.h <<\EOF
6581 #define HAVE_CUPS 1
6584 CUPSLIBS="-lcups"
6585 else
6586 wine_cv_warn_cups_h=yes
6591 # Extract the first word of "sane-config", so it can be a program name with args.
6592 set dummy sane-config; ac_word=$2
6593 echo "$as_me:6593: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_sane_devel+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 if test -n "$sane_devel"; then
6599 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
6600 else
6601 ac_save_IFS=$IFS; IFS=$ac_path_separator
6602 ac_dummy="$PATH"
6603 for ac_dir in $ac_dummy; do
6604 IFS=$ac_save_IFS
6605 test -z "$ac_dir" && ac_dir=.
6606 $as_executable_p "$ac_dir/$ac_word" || continue
6607 ac_cv_prog_sane_devel="sane-config"
6608 echo "$as_me:6608: found $ac_dir/$ac_word" >&5
6609 break
6610 done
6612 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
6615 sane_devel=$ac_cv_prog_sane_devel
6616 if test -n "$sane_devel"; then
6617 echo "$as_me:6617: result: $sane_devel" >&5
6618 echo "${ECHO_T}$sane_devel" >&6
6619 else
6620 echo "$as_me:6620: result: no" >&5
6621 echo "${ECHO_T}no" >&6
6624 if test "$sane_devel" = "no"
6625 then
6626 SANELIBS=""
6627 SANEINCL=""
6628 else
6629 SANELIBS="`$sane_devel --libs`"
6630 SANEINCL="`$sane_devel --cflags`"
6631 ac_save_CPPFLAGS="$CPPFLAGS"
6632 ac_save_LIBS="$LIBS"
6633 CPPFLAGS="$CPPFLAGS $SANEINCL"
6634 LIBS="$LIBS $SANELIBS"
6635 echo "$as_me:6635: checking for sane/sane.h" >&5
6636 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
6637 if test "${ac_cv_header_sane_sane_h+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line 6641 "configure"
6642 #include "confdefs.h"
6643 #include <sane/sane.h>
6644 _ACEOF
6645 if { (eval echo "$as_me:6645: \"$ac_cpp conftest.$ac_ext\"") >&5
6646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647 ac_status=$?
6648 egrep -v '^ *\+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:6651: \$? = $ac_status" >&5
6652 (exit $ac_status); } >/dev/null; then
6653 if test -s conftest.err; then
6654 ac_cpp_err=$ac_c_preproc_warn_flag
6655 else
6656 ac_cpp_err=
6658 else
6659 ac_cpp_err=yes
6661 if test -z "$ac_cpp_err"; then
6662 ac_cv_header_sane_sane_h=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 ac_cv_header_sane_sane_h=no
6668 rm -f conftest.err conftest.$ac_ext
6670 echo "$as_me:6670: result: $ac_cv_header_sane_sane_h" >&5
6671 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
6672 if test $ac_cv_header_sane_sane_h = yes; then
6673 echo "$as_me:6673: checking for sane_open in -lsane" >&5
6674 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
6675 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 ac_check_lib_save_LIBS=$LIBS
6679 LIBS="-lsane $LIBS"
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line 6681 "configure"
6682 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 #ifdef __cplusplus
6686 extern "C"
6687 #endif
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char sane_open ();
6692 main ()
6694 sane_open ();
6696 return 0;
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:6700: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6702 ac_status=$?
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:6706: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_sane_sane_open=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 ac_cv_lib_sane_sane_open=no
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718 LIBS=$ac_check_lib_save_LIBS
6720 echo "$as_me:6720: result: $ac_cv_lib_sane_sane_open" >&5
6721 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
6722 if test $ac_cv_lib_sane_sane_open = yes; then
6724 cat >>confdefs.h <<\EOF
6725 #define HAVE_SANE 1
6728 else
6729 SANELIBS=""
6730 SANEINCL=""
6733 else
6734 SANELIBS=""
6735 SANEINCL=""
6738 LIBS="$ac_save_LIBS"
6739 CPPFLAGS="$ac_save_CPPFLAGS"
6742 echo "$as_me:6742: checking for FT_Init_FreeType in -lfreetype" >&5
6743 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
6744 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 ac_check_lib_save_LIBS=$LIBS
6748 LIBS="-lfreetype $X_LIBS $LIBS"
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line 6750 "configure"
6751 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char FT_Init_FreeType ();
6761 main ()
6763 FT_Init_FreeType ();
6765 return 0;
6767 _ACEOF
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (eval echo "$as_me:6769: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6771 ac_status=$?
6772 echo "$as_me:6772: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:6775: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:6778: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_freetype_FT_Init_FreeType=yes
6781 else
6782 echo "$as_me: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 ac_cv_lib_freetype_FT_Init_FreeType=no
6786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6787 LIBS=$ac_check_lib_save_LIBS
6789 echo "$as_me:6789: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
6790 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
6791 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
6792 ft_lib=yes
6793 else
6794 ft_lib=no
6797 if test "$ft_lib" = "no"
6798 then
6799 FREETYPELIBS=""
6800 FREETYPEINCL=""
6801 wine_cv_msg_freetype=no
6802 else
6803 # Extract the first word of "freetype-config", so it can be a program name with args.
6804 set dummy freetype-config; ac_word=$2
6805 echo "$as_me:6805: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807 if test "${ac_cv_prog_ft_devel+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 if test -n "$ft_devel"; then
6811 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
6812 else
6813 ac_save_IFS=$IFS; IFS=$ac_path_separator
6814 ac_dummy="$PATH"
6815 for ac_dir in $ac_dummy; do
6816 IFS=$ac_save_IFS
6817 test -z "$ac_dir" && ac_dir=.
6818 $as_executable_p "$ac_dir/$ac_word" || continue
6819 ac_cv_prog_ft_devel="freetype-config"
6820 echo "$as_me:6820: found $ac_dir/$ac_word" >&5
6821 break
6822 done
6824 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
6827 ft_devel=$ac_cv_prog_ft_devel
6828 if test -n "$ft_devel"; then
6829 echo "$as_me:6829: result: $ft_devel" >&5
6830 echo "${ECHO_T}$ft_devel" >&6
6831 else
6832 echo "$as_me:6832: result: no" >&5
6833 echo "${ECHO_T}no" >&6
6836 if test "$ft_devel" = "no"
6837 then
6838 # Extract the first word of "freetype2-config", so it can be a program name with args.
6839 set dummy freetype2-config; ac_word=$2
6840 echo "$as_me:6840: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842 if test "${ac_cv_prog_ft_devel2+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 if test -n "$ft_devel2"; then
6846 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
6847 else
6848 ac_save_IFS=$IFS; IFS=$ac_path_separator
6849 ac_dummy="$PATH"
6850 for ac_dir in $ac_dummy; do
6851 IFS=$ac_save_IFS
6852 test -z "$ac_dir" && ac_dir=.
6853 $as_executable_p "$ac_dir/$ac_word" || continue
6854 ac_cv_prog_ft_devel2="freetype2-config"
6855 echo "$as_me:6855: found $ac_dir/$ac_word" >&5
6856 break
6857 done
6859 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
6862 ft_devel2=$ac_cv_prog_ft_devel2
6863 if test -n "$ft_devel2"; then
6864 echo "$as_me:6864: result: $ft_devel2" >&5
6865 echo "${ECHO_T}$ft_devel2" >&6
6866 else
6867 echo "$as_me:6867: result: no" >&5
6868 echo "${ECHO_T}no" >&6
6871 if test "$ft_devel2" = "freetype2-config"
6872 then
6873 ft_devel=$ft_devel2
6876 if test "$ft_devel" = "no"
6877 then
6878 FREETYPELIBS=""
6879 FREETYPEINCL=""
6880 wine_cv_msg_freetype=yes
6881 else
6882 FREETYPELIBS=`$ft_devel --libs`
6883 FREETYPEINCL=`$ft_devel --cflags`
6884 ac_save_CPPFLAGS="$CPPFLAGS"
6885 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
6887 for ac_header in freetype/freetype.h \
6888 freetype/ftglyph.h \
6889 freetype/tttables.h \
6890 freetype/ftnames.h \
6891 freetype/ftsnames.h \
6892 freetype/ttnameid.h \
6893 freetype/ftoutln.h \
6894 freetype/internal/sfnt.h
6896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 echo "$as_me:6897: checking for $ac_header" >&5
6898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 cat >conftest.$ac_ext <<_ACEOF
6903 #line 6903 "configure"
6904 #include "confdefs.h"
6905 #include <$ac_header>
6906 _ACEOF
6907 if { (eval echo "$as_me:6907: \"$ac_cpp conftest.$ac_ext\"") >&5
6908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6909 ac_status=$?
6910 egrep -v '^ *\+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:6913: \$? = $ac_status" >&5
6914 (exit $ac_status); } >/dev/null; then
6915 if test -s conftest.err; then
6916 ac_cpp_err=$ac_c_preproc_warn_flag
6917 else
6918 ac_cpp_err=
6920 else
6921 ac_cpp_err=yes
6923 if test -z "$ac_cpp_err"; then
6924 eval "$as_ac_Header=yes"
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 eval "$as_ac_Header=no"
6930 rm -f conftest.err conftest.$ac_ext
6932 echo "$as_me:6932: result: `eval echo '${'$as_ac_Header'}'`" >&5
6933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6935 cat >>confdefs.h <<EOF
6936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940 done
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line 6943 "configure"
6944 #include "confdefs.h"
6945 #include <ft2build.h>
6946 #include <freetype/fttrigon.h>
6947 _ACEOF
6948 if { (eval echo "$as_me:6948: \"$ac_cpp conftest.$ac_ext\"") >&5
6949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6950 ac_status=$?
6951 egrep -v '^ *\+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit $ac_status); } >/dev/null; then
6956 if test -s conftest.err; then
6957 ac_cpp_err=$ac_c_preproc_warn_flag
6958 else
6959 ac_cpp_err=
6961 else
6962 ac_cpp_err=yes
6964 if test -z "$ac_cpp_err"; then
6966 cat >>confdefs.h <<\EOF
6967 #define HAVE_FREETYPE_FTTRIGON_H 1
6970 wine_cv_fttrigon=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 wine_cv_fttrigon=no
6976 rm -f conftest.err conftest.$ac_ext
6977 CPPFLAGS="$ac_save_CPPFLAGS"
6978 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
6979 then
6981 cat >>confdefs.h <<\EOF
6982 #define HAVE_FREETYPE 1
6985 wine_cv_msg_freetype=no
6986 else
6987 FREETYPELIBS=""
6988 FREETYPEINCL=""
6989 wine_cv_msg_freetype=yes
6994 echo "$as_me:6994: checking for parport header/ppdev.h" >&5
6995 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
6996 if test "${ac_cv_c_ppdev+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 cat >conftest.$ac_ext <<_ACEOF
7000 #line 7000 "configure"
7001 #include "confdefs.h"
7002 #include <linux/ppdev.h>
7004 main ()
7006 ioctl (1,PPCLAIM,0)
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:7012: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>&5
7014 ac_status=$?
7015 echo "$as_me:7015: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -s conftest.$ac_objext'
7018 { (eval echo "$as_me:7018: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:7021: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_c_ppdev="yes"
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7027 ac_cv_c_ppdev="no"
7029 rm -f conftest.$ac_objext conftest.$ac_ext
7032 echo "$as_me:7032: result: $ac_cv_c_ppdev" >&5
7033 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
7034 if test "$ac_cv_c_ppdev" = "yes"
7035 then
7037 cat >>confdefs.h <<\EOF
7038 #define HAVE_PPDEV 1
7043 echo "$as_me:7043: checking for GNU style IPX support" >&5
7044 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
7045 if test "${ac_cv_c_ipx_gnu+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line 7049 "configure"
7050 #include "confdefs.h"
7051 #include <sys/socket.h>
7052 #include <netipx/ipx.h>
7054 main ()
7056 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
7058 return 0;
7060 _ACEOF
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:7062: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>&5
7064 ac_status=$?
7065 echo "$as_me:7065: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -s conftest.$ac_objext'
7068 { (eval echo "$as_me:7068: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:7071: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_c_ipx_gnu="yes"
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 ac_cv_c_ipx_gnu="no"
7079 rm -f conftest.$ac_objext conftest.$ac_ext
7082 echo "$as_me:7082: result: $ac_cv_c_ipx_gnu" >&5
7083 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
7084 if test "$ac_cv_c_ipx_gnu" = "yes"
7085 then
7087 cat >>confdefs.h <<\EOF
7088 #define HAVE_IPX_GNU 1
7093 if test "$ac_cv_c_ipx_gnu" = "no"
7094 then
7095 echo "$as_me:7095: checking for linux style IPX support" >&5
7096 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
7097 if test "${ac_cv_c_ipx_linux+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >conftest.$ac_ext <<_ACEOF
7101 #line 7101 "configure"
7102 #include "confdefs.h"
7103 #include <sys/socket.h>
7104 #include <asm/types.h>
7105 #include <linux/ipx.h>
7107 main ()
7109 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
7111 return 0;
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:7115: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>&5
7117 ac_status=$?
7118 echo "$as_me:7118: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:7121: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:7124: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_c_ipx_linux="yes"
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 ac_cv_c_ipx_linux="no"
7132 rm -f conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:7135: result: $ac_cv_c_ipx_linux" >&5
7136 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
7137 if test "$ac_cv_c_ipx_linux" = "yes"
7138 then
7140 cat >>confdefs.h <<\EOF
7141 #define HAVE_IPX_LINUX 1
7147 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
7149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7150 echo "$as_me:7150: checking for $ac_header" >&5
7151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line 7156 "configure"
7157 #include "confdefs.h"
7158 #include <$ac_header>
7159 _ACEOF
7160 if { (eval echo "$as_me:7160: \"$ac_cpp conftest.$ac_ext\"") >&5
7161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7162 ac_status=$?
7163 egrep -v '^ *\+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:7166: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null; then
7168 if test -s conftest.err; then
7169 ac_cpp_err=$ac_c_preproc_warn_flag
7170 else
7171 ac_cpp_err=
7173 else
7174 ac_cpp_err=yes
7176 if test -z "$ac_cpp_err"; then
7177 eval "$as_ac_Header=yes"
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 eval "$as_ac_Header=no"
7183 rm -f conftest.err conftest.$ac_ext
7185 echo "$as_me:7185: result: `eval echo '${'$as_ac_Header'}'`" >&5
7186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7188 cat >>confdefs.h <<EOF
7189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7191 break
7193 done
7195 echo "$as_me:7195: checking for Open Sound System" >&5
7196 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
7197 if test "${ac_cv_c_opensoundsystem+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line 7201 "configure"
7202 #include "confdefs.h"
7204 #if defined(HAVE_SYS_SOUNDCARD_H)
7205 #include <sys/soundcard.h>
7206 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
7207 #include <machine/soundcard.h>
7208 #elif defined(HAVE_SOUNDCARD_H)
7209 #include <soundcard.h>
7210 #endif
7213 main ()
7216 /* check for one of the Open Sound System specific SNDCTL_ defines */
7217 #if !defined(SNDCTL_DSP_STEREO)
7218 #error No open sound system
7219 #endif
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:7226: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>&5
7228 ac_status=$?
7229 echo "$as_me:7229: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:7232: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:7235: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_cv_c_opensoundsystem="yes"
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7241 ac_cv_c_opensoundsystem="no"
7243 rm -f conftest.$ac_objext conftest.$ac_ext
7245 echo "$as_me:7245: result: $ac_cv_c_opensoundsystem" >&5
7246 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
7248 if test "$ac_cv_c_opensoundsystem" = "yes"
7249 then
7251 cat >>confdefs.h <<\EOF
7252 #define HAVE_OSS 1
7257 echo "$as_me:7257: checking for Open Sound System/MIDI interface" >&5
7258 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
7259 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 #line 7263 "configure"
7264 #include "confdefs.h"
7266 #if defined(HAVE_SYS_SOUNDCARD_H)
7267 #include <sys/soundcard.h>
7268 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
7269 #include <machine/soundcard.h>
7270 #elif defined(HAVE_SOUNDCARD_H)
7271 #include <soundcard.h>
7272 #endif
7275 main ()
7278 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
7279 #if !defined(SNDCTL_SEQ_SYNC)
7280 #error No open sound system MIDI interface
7281 #endif
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:7288: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>&5
7290 ac_status=$?
7291 echo "$as_me:7291: \$? = $ac_status" >&5
7292 (exit $ac_status); } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:7294: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:7297: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_cv_c_opensoundsystem_midi="yes"
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 ac_cv_c_opensoundsystem_midi="no"
7305 rm -f conftest.$ac_objext conftest.$ac_ext
7307 echo "$as_me:7307: result: $ac_cv_c_opensoundsystem_midi" >&5
7308 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
7310 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
7311 then
7313 cat >>confdefs.h <<\EOF
7314 #define HAVE_OSS_MIDI 1
7319 # Extract the first word of "artsc-config", so it can be a program name with args.
7320 set dummy artsc-config; ac_word=$2
7321 echo "$as_me:7321: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7323 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 case $ARTSCCONFIG in
7327 [\\/]* | ?:[\\/]*)
7328 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
7331 ac_save_IFS=$IFS; IFS=$ac_path_separator
7332 ac_dummy="$PATH"
7333 for ac_dir in $ac_dummy; do
7334 IFS=$ac_save_IFS
7335 test -z "$ac_dir" && ac_dir=.
7336 if $as_executable_p "$ac_dir/$ac_word"; then
7337 ac_cv_path_ARTSCCONFIG="$ac_dir/$ac_word"
7338 echo "$as_me:7338: found $ac_dir/$ac_word" >&5
7339 break
7341 done
7344 esac
7346 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
7348 if test -n "$ARTSCCONFIG"; then
7349 echo "$as_me:7349: result: $ARTSCCONFIG" >&5
7350 echo "${ECHO_T}$ARTSCCONFIG" >&6
7351 else
7352 echo "$as_me:7352: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7356 echo "$as_me:7356: checking for aRts Sound server" >&5
7357 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
7358 if test "${ac_cv_c_artsserver+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
7362 then
7363 ac_cv_c_artsserver=no
7364 else
7365 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
7366 ARTSC_LIBS=`$ARTSCCONFIG --libs`
7367 ac_cv_c_artsserver=no
7368 save_CFLAGS="$CFLAGS"
7369 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
7370 cat >conftest.$ac_ext <<_ACEOF
7371 #line 7371 "configure"
7372 #include "confdefs.h"
7374 #include <artsc.h>
7377 main ()
7380 arts_stream_t stream;
7383 return 0;
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (eval echo "$as_me:7387: \"$ac_compile\"") >&5
7388 (eval $ac_compile) 2>&5
7389 ac_status=$?
7390 echo "$as_me:7390: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try='test -s conftest.$ac_objext'
7393 { (eval echo "$as_me:7393: \"$ac_try\"") >&5
7394 (eval $ac_try) 2>&5
7395 ac_status=$?
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7399 ac_cv_c_artsserver=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 cat conftest.$ac_ext >&5
7405 rm -f conftest.$ac_objext conftest.$ac_ext
7406 CFLAGS="$save_CFLAGS"
7409 echo "$as_me:7409: result: $ac_cv_c_artsserver" >&5
7410 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
7412 if test "$ac_cv_c_artsserver" = "yes"
7413 then
7414 ARTSLIBS=$ARTSC_LIBS
7416 ARTSINCL=$ARTSC_CFLAGS
7418 cat >>confdefs.h <<\EOF
7419 #define HAVE_ARTS 1
7424 echo "$as_me:7424: checking whether mmap64 works defined as mmap" >&5
7425 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
7426 if test "${ac_cv_mmap64_works+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 if test "$cross_compiling" = yes; then
7430 ac_cv_mmap64_works="no"
7431 else
7432 cat >conftest.$ac_ext <<_ACEOF
7433 #line 7433 "configure"
7434 #include "confdefs.h"
7436 #define _FILE_OFFSET_BITS 64
7437 #include <stdio.h>
7438 #include <unistd.h>
7439 #include <fcntl.h>
7440 #include <sys/mman.h>
7441 #include <errno.h>
7443 int main(int argc,char **argv) {
7444 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
7445 if (fd == -1) exit(1);
7447 unlink("conftest.map");
7449 write(fd,"test",4);
7451 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
7452 (errno == EINVAL)
7454 exit(1);
7456 close(fd);
7457 fprintf(stderr,"success!\n");
7458 exit(0);
7461 _ACEOF
7462 rm -f conftest$ac_exeext
7463 if { (eval echo "$as_me:7463: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>&5
7465 ac_status=$?
7466 echo "$as_me:7466: \$? = $ac_status" >&5
7467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468 { (eval echo "$as_me:7468: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:7471: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_mmap64_works="yes"
7474 else
7475 echo "$as_me: program exited with status $ac_status" >&5
7476 echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 ac_cv_mmap64_works="no"
7480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7483 echo "$as_me:7483: result: $ac_cv_mmap64_works" >&5
7484 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
7486 if test "$ac_cv_mmap64_works" = "yes"
7487 then
7489 cat >>confdefs.h <<\EOF
7490 #define _FILE_OFFSET_BITS 64
7495 if test "x${GCC}" = "xyes"
7496 then
7497 CFLAGS="$CFLAGS -Wall"
7498 echo "$as_me:7498: checking for gcc strength-reduce bug" >&5
7499 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
7500 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 if test "$cross_compiling" = yes; then
7504 ac_cv_c_gcc_strength_bug="yes"
7505 else
7506 cat >conftest.$ac_ext <<_ACEOF
7507 #line 7507 "configure"
7508 #include "confdefs.h"
7510 int L[4] = {0,1,2,3};
7511 int main(void) {
7512 static int Array[3];
7513 unsigned int B = 3;
7514 int i;
7515 for(i=0; i<B; i++) Array[i] = i - 3;
7516 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
7517 L[i] = 4;
7519 exit( Array[1] != -2 || L[2] != 3);
7521 _ACEOF
7522 rm -f conftest$ac_exeext
7523 if { (eval echo "$as_me:7523: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>&5
7525 ac_status=$?
7526 echo "$as_me:7526: \$? = $ac_status" >&5
7527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7528 { (eval echo "$as_me:7528: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:7531: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_c_gcc_strength_bug="no"
7534 else
7535 echo "$as_me: program exited with status $ac_status" >&5
7536 echo "$as_me: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 ac_cv_c_gcc_strength_bug="yes"
7540 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7543 echo "$as_me:7543: result: $ac_cv_c_gcc_strength_bug" >&5
7544 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
7545 if test "$ac_cv_c_gcc_strength_bug" = "yes"
7546 then
7547 CFLAGS="$CFLAGS -fno-strength-reduce"
7550 echo "$as_me:7550: checking for gcc -mpreferred-stack-boundary=2 support" >&5
7551 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
7552 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 saved_cflags=$CFLAGS
7556 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
7557 cat >conftest.$ac_ext <<_ACEOF
7558 #line 7558 "configure"
7559 #include "confdefs.h"
7562 main ()
7564 return 0
7566 return 0;
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (eval echo "$as_me:7570: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>&5
7572 ac_status=$?
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:7576: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:7579: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 ac_cv_c_gcc_stack_boundary="yes"
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 ac_cv_c_gcc_stack_boundary="no"
7587 rm -f conftest.$ac_objext conftest.$ac_ext
7588 CFLAGS=$saved_cflags
7591 echo "$as_me:7591: result: $ac_cv_c_gcc_stack_boundary" >&5
7592 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
7593 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
7594 then
7595 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
7599 echo "$as_me:7599: checking whether .type must sit inside a .def directive" >&5
7600 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
7601 if test "${ac_cv_c_type_in_def+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 saved_libs=$LIBS
7605 LIBS="conftest_asm.s $LIBS"
7606 cat > conftest_asm.s <<EOF
7607 .globl _ac_test
7608 .def _ac_test; .scl 2; .type 32; .endef
7609 _ac_test:
7610 .long 0
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line 7613 "configure"
7614 #include "confdefs.h"
7617 main ()
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:7625: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7627 ac_status=$?
7628 echo "$as_me:7628: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:7631: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_cv_c_type_in_def="yes"
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7640 ac_cv_c_type_in_def="no"
7642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643 LIBS=$saved_libs
7645 echo "$as_me:7645: result: $ac_cv_c_type_in_def" >&5
7646 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
7647 if test "$ac_cv_c_type_in_def" = "yes"
7648 then
7650 cat >>confdefs.h <<\EOF
7651 #define NEED_TYPE_IN_DEF 1
7656 echo "$as_me:7656: checking whether external symbols need an underscore prefix" >&5
7657 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
7658 if test "${ac_cv_c_extern_prefix+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 saved_libs=$LIBS
7662 LIBS="conftest_asm.s $LIBS"
7663 cat > conftest_asm.s <<EOF
7664 .globl _ac_test
7665 _ac_test:
7666 .long 0
7668 cat >conftest.$ac_ext <<_ACEOF
7669 #line 7669 "configure"
7670 #include "confdefs.h"
7671 extern int ac_test;
7673 main ()
7675 if (ac_test) return 1
7677 return 0;
7679 _ACEOF
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:7681: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>&5
7683 ac_status=$?
7684 echo "$as_me:7684: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (eval echo "$as_me:7687: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:7690: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_c_extern_prefix="yes"
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 cat conftest.$ac_ext >&5
7696 ac_cv_c_extern_prefix="no"
7698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$saved_libs
7701 echo "$as_me:7701: result: $ac_cv_c_extern_prefix" >&5
7702 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
7703 if test "$ac_cv_c_extern_prefix" = "yes"
7704 then
7706 cat >>confdefs.h <<\EOF
7707 #define NEED_UNDERSCORE_PREFIX 1
7712 echo "$as_me:7712: checking whether stdcall symbols need to be decorated" >&5
7713 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
7714 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 saved_libs=$LIBS
7718 LIBS="conftest_asm.s $LIBS"
7719 if test "$ac_cv_c_extern_prefix" = "yes"
7720 then
7721 cat > conftest_asm.s <<EOF
7722 .globl _ac_test@0
7723 _ac_test@0:
7725 else
7726 cat > conftest_asm.s <<EOF
7727 .globl ac_test@0
7728 ac_test@0:
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line 7732 "configure"
7733 #include "confdefs.h"
7734 extern void __attribute__((__stdcall__)) ac_test(void);
7736 main ()
7738 ac_test(); return 0
7740 return 0;
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:7744: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7746 ac_status=$?
7747 echo "$as_me:7747: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:7750: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:7753: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_c_stdcall_decoration="yes"
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7759 ac_cv_c_stdcall_decoration="no"
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$saved_libs
7764 echo "$as_me:7764: result: $ac_cv_c_stdcall_decoration" >&5
7765 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
7766 if test "$ac_cv_c_stdcall_decoration" = "yes"
7767 then
7769 cat >>confdefs.h <<\EOF
7770 #define NEED_STDCALL_DECORATION 1
7775 echo "$as_me:7775: checking whether assembler accepts .string" >&5
7776 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
7777 if test "${ac_cv_c_asm_string+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 saved_libs=$LIBS
7781 LIBS="conftest_asm.s $LIBS"
7782 cat > conftest_asm.s <<EOF
7783 .string "test"
7785 cat >conftest.$ac_ext <<_ACEOF
7786 #line 7786 "configure"
7787 #include "confdefs.h"
7790 main ()
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (eval echo "$as_me:7798: \"$ac_link\"") >&5
7799 (eval $ac_link) 2>&5
7800 ac_status=$?
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try='test -s conftest$ac_exeext'
7804 { (eval echo "$as_me:7804: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:7807: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_cv_c_asm_string="yes"
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 ac_cv_c_asm_string="no"
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$saved_libs
7818 echo "$as_me:7818: result: $ac_cv_c_asm_string" >&5
7819 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
7820 if test "$ac_cv_c_asm_string" = "yes"
7821 then
7823 cat >>confdefs.h <<\EOF
7824 #define HAVE_ASM_STRING 1
7829 LDSHARED=""
7830 LDDLLFLAGS=""
7831 if test "$LIBEXT" = "so"
7832 then
7833 echo "$as_me:7833: checking whether we can build a GNU style ELF dll" >&5
7834 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
7835 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 saved_cflags=$CFLAGS
7839 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
7840 cat >conftest.$ac_ext <<_ACEOF
7841 #line 7841 "configure"
7842 #include "confdefs.h"
7845 main ()
7847 return 1
7849 return 0;
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (eval echo "$as_me:7853: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>&5
7855 ac_status=$?
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:7859: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_c_dll_gnuelf="yes"
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7868 ac_cv_c_dll_gnuelf="no"
7870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7871 CFLAGS=$saved_cflags
7874 echo "$as_me:7874: result: $ac_cv_c_dll_gnuelf" >&5
7875 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
7876 if test "$ac_cv_c_dll_gnuelf" = "yes"
7877 then
7878 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
7879 LDDLLFLAGS="-Wl,-Bsymbolic"
7880 else
7881 echo "$as_me:7881: checking whether we can build a UnixWare (Solaris) dll" >&5
7882 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
7883 if test "${ac_cv_c_dll_unixware+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 saved_cflags=$CFLAGS
7887 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7888 cat >conftest.$ac_ext <<_ACEOF
7889 #line 7889 "configure"
7890 #include "confdefs.h"
7893 main ()
7895 return 1
7897 return 0;
7899 _ACEOF
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (eval echo "$as_me:7901: \"$ac_link\"") >&5
7902 (eval $ac_link) 2>&5
7903 ac_status=$?
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:7907: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:7910: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_c_dll_unixware="yes"
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7916 ac_cv_c_dll_unixware="no"
7918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7919 CFLAGS=$saved_cflags
7922 echo "$as_me:7922: result: $ac_cv_c_dll_unixware" >&5
7923 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
7924 if test "$ac_cv_c_dll_unixware" = "yes"
7925 then
7926 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7927 LDDLLFLAGS="-Wl,-B,symbolic"
7930 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
7931 then
7932 LIBEXT="a"
7933 # Extract the first word of "dllwrap", so it can be a program name with args.
7934 set dummy dllwrap; ac_word=$2
7935 echo "$as_me:7935: checking for $ac_word" >&5
7936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7937 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940 if test -n "$DLLWRAP"; then
7941 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7942 else
7943 ac_save_IFS=$IFS; IFS=$ac_path_separator
7944 ac_dummy="$PATH"
7945 for ac_dir in $ac_dummy; do
7946 IFS=$ac_save_IFS
7947 test -z "$ac_dir" && ac_dir=.
7948 $as_executable_p "$ac_dir/$ac_word" || continue
7949 ac_cv_prog_DLLWRAP="dllwrap"
7950 echo "$as_me:7950: found $ac_dir/$ac_word" >&5
7951 break
7952 done
7954 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
7957 DLLWRAP=$ac_cv_prog_DLLWRAP
7958 if test -n "$DLLWRAP"; then
7959 echo "$as_me:7959: result: $DLLWRAP" >&5
7960 echo "${ECHO_T}$DLLWRAP" >&6
7961 else
7962 echo "$as_me:7962: result: no" >&5
7963 echo "${ECHO_T}no" >&6
7966 if test "$DLLWRAP" = "dllwrap"; then
7967 case $host_os in
7968 *cygwin*)
7969 LIBEXT="dll"
7971 esac
7976 if test "$LIBEXT" = "a"; then
7977 { { echo "$as_me:7977: error: could not find a way to build shared libraries.
7978 It is currently not possible to build Wine without shared library
7979 (.so) support to allow transparent switch between .so and .dll files.
7980 If you are using Linux, you will need a newer binutils.
7981 " >&5
7982 echo "$as_me: error: could not find a way to build shared libraries.
7983 It is currently not possible to build Wine without shared library
7984 (.so) support to allow transparent switch between .so and .dll files.
7985 If you are using Linux, you will need a newer binutils.
7986 " >&2;}
7987 { (exit 1); exit 1; }; }
7990 DLLFLAGS=""
7991 LDPATH=""
7993 if test "$LIBEXT" = "so"; then
7994 DLLFLAGS="-fPIC"
7995 DLLEXT=".so"
7996 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
7997 elif test "$LIBEXT" = "dll"; then
7998 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
7999 DLLEXT=""
8000 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
8003 wine_cv_libc_reentrant=no
8005 echo "$as_me:8005: checking for reentrant libc: __errno_location" >&5
8006 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
8007 if test "${wine_cv_libc_r___errno_location+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 if test "$cross_compiling" = yes; then
8011 wine_cv_libc_r___errno_location=yes
8012 else
8013 cat >conftest.$ac_ext <<_ACEOF
8014 #line 8014 "configure"
8015 #include "confdefs.h"
8016 int myerrno = 0;
8017 char buf[256];
8018 int *__errno_location(){return &myerrno;}
8019 main(){connect(0,buf,255); exit(!myerrno);}
8020 _ACEOF
8021 rm -f conftest$ac_exeext
8022 if { (eval echo "$as_me:8022: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>&5
8024 ac_status=$?
8025 echo "$as_me:8025: \$? = $ac_status" >&5
8026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8027 { (eval echo "$as_me:8027: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:8030: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 wine_cv_libc_r___errno_location=yes
8033 else
8034 echo "$as_me: program exited with status $ac_status" >&5
8035 echo "$as_me: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8037 wine_cv_libc_r___errno_location=no
8039 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8043 echo "$as_me:8043: result: $wine_cv_libc_r___errno_location" >&5
8044 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
8045 if test "$wine_cv_libc_r___errno_location" = "yes"
8046 then
8047 wine_cv_libc_reentrant=__errno_location
8050 echo "$as_me:8050: checking for reentrant libc: __error" >&5
8051 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
8052 if test "${wine_cv_libc_r___error+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 if test "$cross_compiling" = yes; then
8056 wine_cv_libc_r___error=yes
8057 else
8058 cat >conftest.$ac_ext <<_ACEOF
8059 #line 8059 "configure"
8060 #include "confdefs.h"
8061 int myerrno = 0;
8062 char buf[256];
8063 int *__error(){return &myerrno;}
8064 main(){connect(0,buf,255); exit(!myerrno);}
8065 _ACEOF
8066 rm -f conftest$ac_exeext
8067 if { (eval echo "$as_me:8067: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8069 ac_status=$?
8070 echo "$as_me:8070: \$? = $ac_status" >&5
8071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8072 { (eval echo "$as_me:8072: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 wine_cv_libc_r___error=yes
8078 else
8079 echo "$as_me: program exited with status $ac_status" >&5
8080 echo "$as_me: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8082 wine_cv_libc_r___error=no
8084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8088 echo "$as_me:8088: result: $wine_cv_libc_r___error" >&5
8089 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
8090 if test "$wine_cv_libc_r___error" = "yes"
8091 then
8092 wine_cv_libc_reentrant=__error
8095 echo "$as_me:8095: checking for reentrant libc: ___errno" >&5
8096 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
8097 if test "${wine_cv_libc_r____errno+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 if test "$cross_compiling" = yes; then
8101 wine_cv_libc_r____errno=yes
8102 else
8103 cat >conftest.$ac_ext <<_ACEOF
8104 #line 8104 "configure"
8105 #include "confdefs.h"
8106 int myerrno = 0;
8107 char buf[256];
8108 int *___errno(){return &myerrno;}
8109 main(){connect(0,buf,255); exit(!myerrno);}
8110 _ACEOF
8111 rm -f conftest$ac_exeext
8112 if { (eval echo "$as_me:8112: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>&5
8114 ac_status=$?
8115 echo "$as_me:8115: \$? = $ac_status" >&5
8116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8117 { (eval echo "$as_me:8117: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:8120: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 wine_cv_libc_r____errno=yes
8123 else
8124 echo "$as_me: program exited with status $ac_status" >&5
8125 echo "$as_me: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 wine_cv_libc_r____errno=no
8129 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8133 echo "$as_me:8133: result: $wine_cv_libc_r____errno" >&5
8134 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
8135 if test "$wine_cv_libc_r____errno" = "yes"
8136 then
8137 wine_cv_libc_reentrant=___errno
8140 echo "$as_me:8140: checking for reentrant libc: __thr_errno" >&5
8141 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
8142 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 if test "$cross_compiling" = yes; then
8146 wine_cv_libc_r___thr_errno=yes
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line 8149 "configure"
8150 #include "confdefs.h"
8151 int myerrno = 0;
8152 char buf[256];
8153 int *__thr_errno(){return &myerrno;}
8154 main(){connect(0,buf,255); exit(!myerrno);}
8155 _ACEOF
8156 rm -f conftest$ac_exeext
8157 if { (eval echo "$as_me:8157: \"$ac_link\"") >&5
8158 (eval $ac_link) 2>&5
8159 ac_status=$?
8160 echo "$as_me:8160: \$? = $ac_status" >&5
8161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8162 { (eval echo "$as_me:8162: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:8165: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 wine_cv_libc_r___thr_errno=yes
8168 else
8169 echo "$as_me: program exited with status $ac_status" >&5
8170 echo "$as_me: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8172 wine_cv_libc_r___thr_errno=no
8174 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8178 echo "$as_me:8178: result: $wine_cv_libc_r___thr_errno" >&5
8179 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
8180 if test "$wine_cv_libc_r___thr_errno" = "yes"
8181 then
8182 wine_cv_libc_reentrant=__thr_errno
8185 echo "$as_me:8185: checking for reentrant libc: __errno" >&5
8186 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
8187 if test "${wine_cv_libc_r___errno+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190 if test "$cross_compiling" = yes; then
8191 wine_cv_libc_r___errno=yes
8192 else
8193 cat >conftest.$ac_ext <<_ACEOF
8194 #line 8194 "configure"
8195 #include "confdefs.h"
8196 int myerrno = 0;
8197 char buf[256];
8198 int *__errno(){return &myerrno;}
8199 main(){connect(0,buf,255); exit(!myerrno);}
8200 _ACEOF
8201 rm -f conftest$ac_exeext
8202 if { (eval echo "$as_me:8202: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>&5
8204 ac_status=$?
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8207 { (eval echo "$as_me:8207: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:8210: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 wine_cv_libc_r___errno=yes
8213 else
8214 echo "$as_me: program exited with status $ac_status" >&5
8215 echo "$as_me: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8217 wine_cv_libc_r___errno=no
8219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8223 echo "$as_me:8223: result: $wine_cv_libc_r___errno" >&5
8224 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
8225 if test "$wine_cv_libc_r___errno" = "yes"
8226 then
8227 wine_cv_libc_reentrant=__errno
8230 if test "$wine_cv_libc_reentrant" != "no"
8231 then
8233 cat >>confdefs.h <<EOF
8234 #define ERRNO_LOCATION $wine_cv_libc_reentrant
8239 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
8240 then
8241 echo "$as_me:8241: checking for reentrant X libraries" >&5
8242 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
8243 if test "${wine_cv_x_reentrant+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 if test "x$with_reentrant_x" = "xno"
8247 then
8248 wine_cv_x_reentrant=no
8249 else
8250 libX11_check=none
8251 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
8252 if test -r $dir/libX11.so; then
8253 libX11_check="-D $dir/libX11.so"
8254 break 1
8256 if test -r $dir/libX11.a; then
8257 libX11_check="$dir/libX11.a"
8258 break 1
8260 done
8261 if test "$libX11_check" != "none"; then
8262 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
8263 then
8264 wine_cv_x_reentrant=yes
8265 else
8266 wine_cv_x_reentrant=no
8268 else
8269 wine_cv_x_reentrant=unknown
8273 echo "$as_me:8273: result: $wine_cv_x_reentrant" >&5
8274 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
8275 else
8276 wine_cv_x_reentrant=no
8278 if test "$wine_cv_x_reentrant" = "no"
8279 then
8281 cat >>confdefs.h <<\EOF
8282 #define NO_REENTRANT_X11 1
8287 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8288 # for constant arguments. Useless!
8289 echo "$as_me:8289: checking for working alloca.h" >&5
8290 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8291 if test "${ac_cv_working_alloca_h+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 cat >conftest.$ac_ext <<_ACEOF
8295 #line 8295 "configure"
8296 #include "confdefs.h"
8297 #include <alloca.h>
8299 main ()
8301 char *p = (char *) alloca (2 * sizeof (int));
8303 return 0;
8305 _ACEOF
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:8307: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>&5
8309 ac_status=$?
8310 echo "$as_me:8310: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:8313: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:8316: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_working_alloca_h=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 ac_cv_working_alloca_h=no
8324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8326 echo "$as_me:8326: result: $ac_cv_working_alloca_h" >&5
8327 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8328 if test $ac_cv_working_alloca_h = yes; then
8330 cat >>confdefs.h <<\EOF
8331 #define HAVE_ALLOCA_H 1
8336 echo "$as_me:8336: checking for alloca" >&5
8337 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8338 if test "${ac_cv_func_alloca_works+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341 cat >conftest.$ac_ext <<_ACEOF
8342 #line 8342 "configure"
8343 #include "confdefs.h"
8344 #ifdef __GNUC__
8345 # define alloca __builtin_alloca
8346 #else
8347 # ifdef _MSC_VER
8348 # include <malloc.h>
8349 # define alloca _alloca
8350 # else
8351 # if HAVE_ALLOCA_H
8352 # include <alloca.h>
8353 # else
8354 # ifdef _AIX
8355 #pragma alloca
8356 # else
8357 # ifndef alloca /* predefined by HP cc +Olibcalls */
8358 char *alloca ();
8359 # endif
8360 # endif
8361 # endif
8362 # endif
8363 #endif
8366 main ()
8368 char *p = (char *) alloca (1);
8370 return 0;
8372 _ACEOF
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (eval echo "$as_me:8374: \"$ac_link\"") >&5
8375 (eval $ac_link) 2>&5
8376 ac_status=$?
8377 echo "$as_me:8377: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:8380: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:8383: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_func_alloca_works=yes
8386 else
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8389 ac_cv_func_alloca_works=no
8391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8393 echo "$as_me:8393: result: $ac_cv_func_alloca_works" >&5
8394 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8396 if test $ac_cv_func_alloca_works = yes; then
8398 cat >>confdefs.h <<\EOF
8399 #define HAVE_ALLOCA 1
8402 else
8403 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8404 # that cause trouble. Some versions do not even contain alloca or
8405 # contain a buggy version. If you still want to use their alloca,
8406 # use ar to extract alloca.o from them instead of compiling alloca.c.
8408 ALLOCA=alloca.$ac_objext
8410 cat >>confdefs.h <<\EOF
8411 #define C_ALLOCA 1
8414 echo "$as_me:8414: checking whether \`alloca.c' needs Cray hooks" >&5
8415 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8416 if test "${ac_cv_os_cray+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line 8420 "configure"
8421 #include "confdefs.h"
8422 #if defined(CRAY) && ! defined(CRAY2)
8423 webecray
8424 #else
8425 wenotbecray
8426 #endif
8428 _ACEOF
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 egrep "webecray" >/dev/null 2>&1; then
8431 ac_cv_os_cray=yes
8432 else
8433 ac_cv_os_cray=no
8435 rm -f conftest*
8438 echo "$as_me:8438: result: $ac_cv_os_cray" >&5
8439 echo "${ECHO_T}$ac_cv_os_cray" >&6
8440 if test $ac_cv_os_cray = yes; then
8441 for ac_func in _getb67 GETB67 getb67; do
8442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8443 echo "$as_me:8443: checking for $ac_func" >&5
8444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8445 if eval "test \"\${$as_ac_var+set}\" = set"; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 #line 8449 "configure"
8450 #include "confdefs.h"
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char $ac_func (); below. */
8453 #include <assert.h>
8454 /* Override any gcc2 internal prototype to avoid an error. */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460 char $ac_func ();
8461 char (*f) ();
8464 main ()
8466 /* The GNU C library defines this for functions which it implements
8467 to always fail with ENOSYS. Some functions are actually named
8468 something starting with __ and the normal name is an alias. */
8469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8470 choke me
8471 #else
8472 f = $ac_func;
8473 #endif
8476 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:8480: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>&5
8482 ac_status=$?
8483 echo "$as_me:8483: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -s conftest$ac_exeext'
8486 { (eval echo "$as_me:8486: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:8489: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 eval "$as_ac_var=yes"
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 eval "$as_ac_var=no"
8497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8499 echo "$as_me:8499: result: `eval echo '${'$as_ac_var'}'`" >&5
8500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8501 if test `eval echo '${'$as_ac_var'}'` = yes; then
8503 cat >>confdefs.h <<EOF
8504 #define CRAY_STACKSEG_END $ac_func
8507 break
8510 done
8513 echo "$as_me:8513: checking stack direction for C alloca" >&5
8514 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8515 if test "${ac_cv_c_stack_direction+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 if test "$cross_compiling" = yes; then
8519 ac_cv_c_stack_direction=0
8520 else
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line 8522 "configure"
8523 #include "confdefs.h"
8525 find_stack_direction ()
8527 static char *addr = 0;
8528 auto char dummy;
8529 if (addr == 0)
8531 addr = &dummy;
8532 return find_stack_direction ();
8534 else
8535 return (&dummy > addr) ? 1 : -1;
8539 main ()
8541 exit (find_stack_direction () < 0);
8543 _ACEOF
8544 rm -f conftest$ac_exeext
8545 if { (eval echo "$as_me:8545: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8547 ac_status=$?
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8550 { (eval echo "$as_me:8550: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:8553: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_c_stack_direction=1
8556 else
8557 echo "$as_me: program exited with status $ac_status" >&5
8558 echo "$as_me: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8560 ac_cv_c_stack_direction=-1
8562 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me:8565: result: $ac_cv_c_stack_direction" >&5
8566 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8568 cat >>confdefs.h <<EOF
8569 #define STACK_DIRECTION $ac_cv_c_stack_direction
8574 for ac_func in \
8575 __libc_fork \
8576 _lwp_create \
8577 _pclose \
8578 _popen \
8579 _stricmp \
8580 _strnicmp \
8581 clone \
8582 ecvt \
8583 finite \
8584 fpclass \
8585 ftruncate64 \
8586 getnetbyaddr \
8587 getnetbyname \
8588 getpagesize \
8589 getprotobyname \
8590 getprotobynumber \
8591 getrlimit \
8592 getservbyport \
8593 getsockopt \
8594 inet_network \
8595 lseek64 \
8596 lstat \
8597 memmove \
8598 mmap \
8599 pclose \
8600 pread \
8601 popen \
8602 pwrite \
8603 rfork \
8604 select \
8605 sendmsg \
8606 settimeofday \
8607 sigaltstack \
8608 statfs \
8609 strcasecmp \
8610 strerror \
8611 strncasecmp \
8612 tcgetattr \
8613 timegm \
8614 usleep \
8615 vfscanf \
8616 wait4 \
8617 waitpid \
8620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8621 echo "$as_me:8621: checking for $ac_func" >&5
8622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8623 if eval "test \"\${$as_ac_var+set}\" = set"; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 cat >conftest.$ac_ext <<_ACEOF
8627 #line 8627 "configure"
8628 #include "confdefs.h"
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char $ac_func (); below. */
8631 #include <assert.h>
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char $ac_func ();
8639 char (*f) ();
8642 main ()
8644 /* The GNU C library defines this for functions which it implements
8645 to always fail with ENOSYS. Some functions are actually named
8646 something starting with __ and the normal name is an alias. */
8647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648 choke me
8649 #else
8650 f = $ac_func;
8651 #endif
8654 return 0;
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:8658: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
8661 echo "$as_me:8661: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:8664: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:8667: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 eval "$as_ac_var=yes"
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 eval "$as_ac_var=no"
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677 echo "$as_me:8677: result: `eval echo '${'$as_ac_var'}'`" >&5
8678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8679 if test `eval echo '${'$as_ac_var'}'` = yes; then
8680 cat >>confdefs.h <<EOF
8681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8685 done
8687 for ac_header in \
8688 arpa/inet.h \
8689 arpa/nameser.h \
8690 direct.h \
8691 elf.h \
8692 float.h \
8693 ieeefp.h \
8694 io.h \
8695 libio.h \
8696 libutil.h \
8697 link.h \
8698 linux/cdrom.h \
8699 linux/input.h \
8700 linux/joystick.h \
8701 linux/serial.h \
8702 linux/ucdrom.h \
8703 net/if.h \
8704 netdb.h \
8705 netinet/in.h \
8706 netinet/in_systm.h \
8707 netinet/ip.h \
8708 netinet/tcp.h \
8709 pty.h \
8710 resolv.h \
8711 sched.h \
8712 socket.h \
8713 stdint.h \
8714 strings.h \
8715 sys/cdio.h \
8716 sys/errno.h \
8717 sys/file.h \
8718 sys/filio.h \
8719 sys/inttypes.h \
8720 sys/ipc.h \
8721 sys/link.h \
8722 sys/lwp.h \
8723 sys/mman.h \
8724 sys/modem.h \
8725 sys/mount.h \
8726 sys/msg.h \
8727 sys/param.h \
8728 sys/ptrace.h \
8729 sys/reg.h \
8730 sys/signal.h \
8731 sys/shm.h \
8732 sys/socket.h \
8733 sys/sockio.h \
8734 sys/statfs.h \
8735 sys/strtio.h \
8736 sys/syscall.h \
8737 sys/time.h \
8738 sys/user.h \
8739 sys/wait.h \
8740 sys/v86.h \
8741 sys/v86intr.h \
8742 sys/vfs.h \
8743 sys/vm86.h \
8744 syscall.h \
8745 ucontext.h \
8746 unistd.h \
8749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8750 echo "$as_me:8750: checking for $ac_header" >&5
8751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 #line 8756 "configure"
8757 #include "confdefs.h"
8758 #include <$ac_header>
8759 _ACEOF
8760 if { (eval echo "$as_me:8760: \"$ac_cpp conftest.$ac_ext\"") >&5
8761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8762 ac_status=$?
8763 egrep -v '^ *\+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:8766: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null; then
8768 if test -s conftest.err; then
8769 ac_cpp_err=$ac_c_preproc_warn_flag
8770 else
8771 ac_cpp_err=
8773 else
8774 ac_cpp_err=yes
8776 if test -z "$ac_cpp_err"; then
8777 eval "$as_ac_Header=yes"
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8781 eval "$as_ac_Header=no"
8783 rm -f conftest.err conftest.$ac_ext
8785 echo "$as_me:8785: result: `eval echo '${'$as_ac_Header'}'`" >&5
8786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8788 cat >>confdefs.h <<EOF
8789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8793 done
8795 echo "$as_me:8795: checking whether stat file-mode macros are broken" >&5
8796 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8797 if test "${ac_cv_header_stat_broken+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line 8801 "configure"
8802 #include "confdefs.h"
8803 #include <sys/types.h>
8804 #include <sys/stat.h>
8806 #if defined(S_ISBLK) && defined(S_IFDIR)
8807 # if S_ISBLK (S_IFDIR)
8808 You lose.
8809 # endif
8810 #endif
8812 #if defined(S_ISBLK) && defined(S_IFCHR)
8813 # if S_ISBLK (S_IFCHR)
8814 You lose.
8815 # endif
8816 #endif
8818 #if defined(S_ISLNK) && defined(S_IFREG)
8819 # if S_ISLNK (S_IFREG)
8820 You lose.
8821 # endif
8822 #endif
8824 #if defined(S_ISSOCK) && defined(S_IFREG)
8825 # if S_ISSOCK (S_IFREG)
8826 You lose.
8827 # endif
8828 #endif
8830 _ACEOF
8831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8832 egrep "You lose" >/dev/null 2>&1; then
8833 ac_cv_header_stat_broken=yes
8834 else
8835 ac_cv_header_stat_broken=no
8837 rm -f conftest*
8840 echo "$as_me:8840: result: $ac_cv_header_stat_broken" >&5
8841 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8842 if test $ac_cv_header_stat_broken = yes; then
8844 cat >>confdefs.h <<\EOF
8845 #define STAT_MACROS_BROKEN 1
8850 echo "$as_me:8850: checking for $CC option to accept ANSI C" >&5
8851 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8852 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 ac_cv_prog_cc_stdc=no
8856 ac_save_CC=$CC
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8860 #include <stdarg.h>
8861 #include <stdio.h>
8862 #include <sys/types.h>
8863 #include <sys/stat.h>
8864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8865 struct buf { int x; };
8866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8867 static char *e (p, i)
8868 char **p;
8869 int i;
8871 return p[i];
8873 static char *f (char * (*g) (char **, int), char **p, ...)
8875 char *s;
8876 va_list v;
8877 va_start (v,p);
8878 s = g (p, va_arg (v,int));
8879 va_end (v);
8880 return s;
8882 int test (int i, double x);
8883 struct s1 {int (*f) (int a);};
8884 struct s2 {int (*f) (double a);};
8885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8886 int argc;
8887 char **argv;
8889 main ()
8891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8893 return 0;
8895 _ACEOF
8896 # Don't try gcc -ansi; that turns off useful extensions and
8897 # breaks some systems' header files.
8898 # AIX -qlanglvl=ansi
8899 # Ultrix and OSF/1 -std1
8900 # HP-UX 10.20 and later -Ae
8901 # HP-UX older versions -Aa -D_HPUX_SOURCE
8902 # SVR4 -Xc -D__EXTENSIONS__
8903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8905 CC="$ac_save_CC $ac_arg"
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:8907: \"$ac_compile\"") >&5
8908 (eval $ac_compile) 2>&5
8909 ac_status=$?
8910 echo "$as_me:8910: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest.$ac_objext'
8913 { (eval echo "$as_me:8913: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:8916: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_prog_cc_stdc=$ac_arg
8919 break
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8924 rm -f conftest.$ac_objext
8925 done
8926 rm -f conftest.$ac_ext conftest.$ac_objext
8927 CC=$ac_save_CC
8931 case "x$ac_cv_prog_cc_stdc" in
8932 x|xno)
8933 echo "$as_me:8933: result: none needed" >&5
8934 echo "${ECHO_T}none needed" >&6 ;;
8936 echo "$as_me:8936: result: $ac_cv_prog_cc_stdc" >&5
8937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8938 CC="$CC $ac_cv_prog_cc_stdc" ;;
8939 esac
8941 echo "$as_me:8941: checking for an ANSI C-conforming const" >&5
8942 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8943 if test "${ac_cv_c_const+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 #line 8947 "configure"
8948 #include "confdefs.h"
8951 main ()
8953 /* FIXME: Include the comments suggested by Paul. */
8954 #ifndef __cplusplus
8955 /* Ultrix mips cc rejects this. */
8956 typedef int charset[2];
8957 const charset x;
8958 /* SunOS 4.1.1 cc rejects this. */
8959 char const *const *ccp;
8960 char **p;
8961 /* NEC SVR4.0.2 mips cc rejects this. */
8962 struct point {int x, y;};
8963 static struct point const zero = {0,0};
8964 /* AIX XL C 1.02.0.0 rejects this.
8965 It does not let you subtract one const X* pointer from another in
8966 an arm of an if-expression whose if-part is not a constant
8967 expression */
8968 const char *g = "string";
8969 ccp = &g + (g ? g-g : 0);
8970 /* HPUX 7.0 cc rejects these. */
8971 ++ccp;
8972 p = (char**) ccp;
8973 ccp = (char const *const *) p;
8974 { /* SCO 3.2v4 cc rejects this. */
8975 char *t;
8976 char const *s = 0 ? (char *) 0 : (char const *) 0;
8978 *t++ = 0;
8980 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8981 int x[] = {25, 17};
8982 const int *foo = &x[0];
8983 ++foo;
8985 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8986 typedef const int *iptr;
8987 iptr p = 0;
8988 ++p;
8990 { /* AIX XL C 1.02.0.0 rejects this saying
8991 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8992 struct s { int j; const int *ap[3]; };
8993 struct s *b; b->j = 5;
8995 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8996 const int foo = 10;
8998 #endif
9001 return 0;
9003 _ACEOF
9004 rm -f conftest.$ac_objext
9005 if { (eval echo "$as_me:9005: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>&5
9007 ac_status=$?
9008 echo "$as_me:9008: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -s conftest.$ac_objext'
9011 { (eval echo "$as_me:9011: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:9014: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_cv_c_const=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9020 ac_cv_c_const=no
9022 rm -f conftest.$ac_objext conftest.$ac_ext
9024 echo "$as_me:9024: result: $ac_cv_c_const" >&5
9025 echo "${ECHO_T}$ac_cv_c_const" >&6
9026 if test $ac_cv_c_const = no; then
9028 cat >>confdefs.h <<\EOF
9029 #define const
9034 echo "$as_me:9034: checking for inline" >&5
9035 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9036 if test "${ac_cv_c_inline+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 ac_cv_c_inline=no
9040 for ac_kw in inline __inline__ __inline; do
9041 cat >conftest.$ac_ext <<_ACEOF
9042 #line 9042 "configure"
9043 #include "confdefs.h"
9044 #ifndef __cplusplus
9045 static $ac_kw int static_foo () {return 0; }
9046 $ac_kw int foo () {return 0; }
9047 #endif
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (eval echo "$as_me:9051: \"$ac_compile\"") >&5
9052 (eval $ac_compile) 2>&5
9053 ac_status=$?
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -s conftest.$ac_objext'
9057 { (eval echo "$as_me:9057: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_c_inline=$ac_kw; break
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9067 rm -f conftest.$ac_objext conftest.$ac_ext
9068 done
9071 echo "$as_me:9071: result: $ac_cv_c_inline" >&5
9072 echo "${ECHO_T}$ac_cv_c_inline" >&6
9073 case $ac_cv_c_inline in
9074 inline | yes) ;;
9076 cat >>confdefs.h <<\EOF
9077 #define inline
9080 *) cat >>confdefs.h <<EOF
9081 #define inline $ac_cv_c_inline
9084 esac
9086 echo "$as_me:9086: checking for ANSI C header files" >&5
9087 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9088 if test "${ac_cv_header_stdc+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 cat >conftest.$ac_ext <<_ACEOF
9092 #line 9092 "configure"
9093 #include "confdefs.h"
9094 #include <stdlib.h>
9095 #include <stdarg.h>
9096 #include <string.h>
9097 #include <float.h>
9099 _ACEOF
9100 if { (eval echo "$as_me:9100: \"$ac_cpp conftest.$ac_ext\"") >&5
9101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9102 ac_status=$?
9103 egrep -v '^ *\+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:9106: \$? = $ac_status" >&5
9107 (exit $ac_status); } >/dev/null; then
9108 if test -s conftest.err; then
9109 ac_cpp_err=$ac_c_preproc_warn_flag
9110 else
9111 ac_cpp_err=
9113 else
9114 ac_cpp_err=yes
9116 if test -z "$ac_cpp_err"; then
9117 ac_cv_header_stdc=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 ac_cv_header_stdc=no
9123 rm -f conftest.err conftest.$ac_ext
9125 if test $ac_cv_header_stdc = yes; then
9126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line 9128 "configure"
9129 #include "confdefs.h"
9130 #include <string.h>
9132 _ACEOF
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 egrep "memchr" >/dev/null 2>&1; then
9136 else
9137 ac_cv_header_stdc=no
9139 rm -f conftest*
9143 if test $ac_cv_header_stdc = yes; then
9144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9145 cat >conftest.$ac_ext <<_ACEOF
9146 #line 9146 "configure"
9147 #include "confdefs.h"
9148 #include <stdlib.h>
9150 _ACEOF
9151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9152 egrep "free" >/dev/null 2>&1; then
9154 else
9155 ac_cv_header_stdc=no
9157 rm -f conftest*
9161 if test $ac_cv_header_stdc = yes; then
9162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9163 if test "$cross_compiling" = yes; then
9165 else
9166 cat >conftest.$ac_ext <<_ACEOF
9167 #line 9167 "configure"
9168 #include "confdefs.h"
9169 #include <ctype.h>
9170 #if ((' ' & 0x0FF) == 0x020)
9171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9173 #else
9174 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9175 || ('j' <= (c) && (c) <= 'r') \
9176 || ('s' <= (c) && (c) <= 'z'))
9177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9178 #endif
9180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9182 main ()
9184 int i;
9185 for (i = 0; i < 256; i++)
9186 if (XOR (islower (i), ISLOWER (i))
9187 || toupper (i) != TOUPPER (i))
9188 exit(2);
9189 exit (0);
9191 _ACEOF
9192 rm -f conftest$ac_exeext
9193 if { (eval echo "$as_me:9193: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>&5
9195 ac_status=$?
9196 echo "$as_me:9196: \$? = $ac_status" >&5
9197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9198 { (eval echo "$as_me:9198: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:9201: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9204 else
9205 echo "$as_me: program exited with status $ac_status" >&5
9206 echo "$as_me: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9208 ac_cv_header_stdc=no
9210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9214 echo "$as_me:9214: result: $ac_cv_header_stdc" >&5
9215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9216 if test $ac_cv_header_stdc = yes; then
9218 cat >>confdefs.h <<\EOF
9219 #define STDC_HEADERS 1
9224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9227 inttypes.h stdint.h unistd.h
9229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9230 echo "$as_me:9230: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line 9236 "configure"
9237 #include "confdefs.h"
9238 $ac_includes_default
9239 #include <$ac_header>
9240 _ACEOF
9241 rm -f conftest.$ac_objext
9242 if { (eval echo "$as_me:9242: \"$ac_compile\"") >&5
9243 (eval $ac_compile) 2>&5
9244 ac_status=$?
9245 echo "$as_me:9245: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -s conftest.$ac_objext'
9248 { (eval echo "$as_me:9248: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:9251: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 eval "$as_ac_Header=yes"
9254 else
9255 echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 eval "$as_ac_Header=no"
9259 rm -f conftest.$ac_objext conftest.$ac_ext
9261 echo "$as_me:9261: result: `eval echo '${'$as_ac_Header'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9264 cat >>confdefs.h <<EOF
9265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9269 done
9271 echo "$as_me:9271: checking for mode_t" >&5
9272 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
9273 if test "${ac_cv_type_mode_t+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 cat >conftest.$ac_ext <<_ACEOF
9277 #line 9277 "configure"
9278 #include "confdefs.h"
9279 $ac_includes_default
9281 main ()
9283 if ((mode_t *) 0)
9284 return 0;
9285 if (sizeof (mode_t))
9286 return 0;
9288 return 0;
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:9292: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>&5
9294 ac_status=$?
9295 echo "$as_me:9295: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:9298: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:9301: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_type_mode_t=yes
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 ac_cv_type_mode_t=no
9309 rm -f conftest.$ac_objext conftest.$ac_ext
9311 echo "$as_me:9311: result: $ac_cv_type_mode_t" >&5
9312 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
9313 if test $ac_cv_type_mode_t = yes; then
9315 else
9317 cat >>confdefs.h <<EOF
9318 #define mode_t int
9323 echo "$as_me:9323: checking for off_t" >&5
9324 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9325 if test "${ac_cv_type_off_t+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line 9329 "configure"
9330 #include "confdefs.h"
9331 $ac_includes_default
9333 main ()
9335 if ((off_t *) 0)
9336 return 0;
9337 if (sizeof (off_t))
9338 return 0;
9340 return 0;
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:9344: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9346 ac_status=$?
9347 echo "$as_me:9347: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:9350: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_cv_type_off_t=yes
9356 else
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 ac_cv_type_off_t=no
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:9363: result: $ac_cv_type_off_t" >&5
9364 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9365 if test $ac_cv_type_off_t = yes; then
9367 else
9369 cat >>confdefs.h <<EOF
9370 #define off_t long
9375 echo "$as_me:9375: checking for pid_t" >&5
9376 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9377 if test "${ac_cv_type_pid_t+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9383 $ac_includes_default
9385 main ()
9387 if ((pid_t *) 0)
9388 return 0;
9389 if (sizeof (pid_t))
9390 return 0;
9392 return 0;
9394 _ACEOF
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:9396: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>&5
9398 ac_status=$?
9399 echo "$as_me:9399: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -s conftest.$ac_objext'
9402 { (eval echo "$as_me:9402: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:9405: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_type_pid_t=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 ac_cv_type_pid_t=no
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9415 echo "$as_me:9415: result: $ac_cv_type_pid_t" >&5
9416 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9417 if test $ac_cv_type_pid_t = yes; then
9419 else
9421 cat >>confdefs.h <<EOF
9422 #define pid_t int
9427 echo "$as_me:9427: checking for size_t" >&5
9428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9429 if test "${ac_cv_type_size_t+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 cat >conftest.$ac_ext <<_ACEOF
9433 #line 9433 "configure"
9434 #include "confdefs.h"
9435 $ac_includes_default
9437 main ()
9439 if ((size_t *) 0)
9440 return 0;
9441 if (sizeof (size_t))
9442 return 0;
9444 return 0;
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:9448: \"$ac_compile\"") >&5
9449 (eval $ac_compile) 2>&5
9450 ac_status=$?
9451 echo "$as_me:9451: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -s conftest.$ac_objext'
9454 { (eval echo "$as_me:9454: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_cv_type_size_t=yes
9460 else
9461 echo "$as_me: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 ac_cv_type_size_t=no
9465 rm -f conftest.$ac_objext conftest.$ac_ext
9467 echo "$as_me:9467: result: $ac_cv_type_size_t" >&5
9468 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9469 if test $ac_cv_type_size_t = yes; then
9471 else
9473 cat >>confdefs.h <<EOF
9474 #define size_t unsigned
9479 echo "$as_me:9479: checking for long long" >&5
9480 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9481 if test "${ac_cv_type_long_long+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line 9485 "configure"
9486 #include "confdefs.h"
9487 $ac_includes_default
9489 main ()
9491 if ((long long *) 0)
9492 return 0;
9493 if (sizeof (long long))
9494 return 0;
9496 return 0;
9498 _ACEOF
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:9500: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>&5
9502 ac_status=$?
9503 echo "$as_me:9503: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -s conftest.$ac_objext'
9506 { (eval echo "$as_me:9506: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:9509: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_type_long_long=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 ac_cv_type_long_long=no
9517 rm -f conftest.$ac_objext conftest.$ac_ext
9519 echo "$as_me:9519: result: $ac_cv_type_long_long" >&5
9520 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9522 echo "$as_me:9522: checking size of long long" >&5
9523 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9524 if test "${ac_cv_sizeof_long_long+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527 if test "$ac_cv_type_long_long" = yes; then
9528 if test "$cross_compiling" = yes; then
9529 # Depending upon the size, compute the lo and hi bounds.
9530 cat >conftest.$ac_ext <<_ACEOF
9531 #line 9531 "configure"
9532 #include "confdefs.h"
9533 $ac_includes_default
9535 main ()
9537 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:9543: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>&5
9545 ac_status=$?
9546 echo "$as_me:9546: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:9549: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:9552: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_lo=0 ac_mid=0
9555 while :; do
9556 cat >conftest.$ac_ext <<_ACEOF
9557 #line 9557 "configure"
9558 #include "confdefs.h"
9559 $ac_includes_default
9561 main ()
9563 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9565 return 0;
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:9569: \"$ac_compile\"") >&5
9570 (eval $ac_compile) 2>&5
9571 ac_status=$?
9572 echo "$as_me:9572: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -s conftest.$ac_objext'
9575 { (eval echo "$as_me:9575: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:9578: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_hi=$ac_mid; break
9581 else
9582 echo "$as_me: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9586 rm -f conftest.$ac_objext conftest.$ac_ext
9587 done
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 ac_hi=-1 ac_mid=-1
9592 while :; do
9593 cat >conftest.$ac_ext <<_ACEOF
9594 #line 9594 "configure"
9595 #include "confdefs.h"
9596 $ac_includes_default
9598 main ()
9600 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
9602 return 0;
9604 _ACEOF
9605 rm -f conftest.$ac_objext
9606 if { (eval echo "$as_me:9606: \"$ac_compile\"") >&5
9607 (eval $ac_compile) 2>&5
9608 ac_status=$?
9609 echo "$as_me:9609: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -s conftest.$ac_objext'
9612 { (eval echo "$as_me:9612: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:9615: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 ac_lo=$ac_mid; break
9618 else
9619 echo "$as_me: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9621 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9623 rm -f conftest.$ac_objext conftest.$ac_ext
9624 done
9626 rm -f conftest.$ac_objext conftest.$ac_ext
9627 # Binary search between lo and hi bounds.
9628 while test "x$ac_lo" != "x$ac_hi"; do
9629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9630 cat >conftest.$ac_ext <<_ACEOF
9631 #line 9631 "configure"
9632 #include "confdefs.h"
9633 $ac_includes_default
9635 main ()
9637 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9639 return 0;
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:9643: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>&5
9645 ac_status=$?
9646 echo "$as_me:9646: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -s conftest.$ac_objext'
9649 { (eval echo "$as_me:9649: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:9652: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_hi=$ac_mid
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 ac_lo=`expr $ac_mid + 1`
9660 rm -f conftest.$ac_objext conftest.$ac_ext
9661 done
9662 ac_cv_sizeof_long_long=$ac_lo
9663 else
9664 if test "$cross_compiling" = yes; then
9665 { { echo "$as_me:9665: error: cannot run test program while cross compiling" >&5
9666 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9667 { (exit 1); exit 1; }; }
9668 else
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line 9670 "configure"
9671 #include "confdefs.h"
9672 $ac_includes_default
9674 main ()
9676 FILE *f = fopen ("conftest.val", "w");
9677 if (!f)
9678 exit (1);
9679 fprintf (f, "%d", (sizeof (long long)));
9680 fclose (f);
9682 return 0;
9684 _ACEOF
9685 rm -f conftest$ac_exeext
9686 if { (eval echo "$as_me:9686: \"$ac_link\"") >&5
9687 (eval $ac_link) 2>&5
9688 ac_status=$?
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9691 { (eval echo "$as_me:9691: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:9694: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_sizeof_long_long=`cat conftest.val`
9697 else
9698 echo "$as_me: program exited with status $ac_status" >&5
9699 echo "$as_me: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9702 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9705 rm -f conftest.val
9706 else
9707 ac_cv_sizeof_long_long=0
9710 echo "$as_me:9710: result: $ac_cv_sizeof_long_long" >&5
9711 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9712 cat >>confdefs.h <<EOF
9713 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9716 echo "$as_me:9716: checking whether linux/input.h is for real" >&5
9717 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
9718 if test "${wine_cv_linux_input_h+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721 cat >conftest.$ac_ext <<_ACEOF
9722 #line 9722 "configure"
9723 #include "confdefs.h"
9725 #include <linux/input.h>
9728 main ()
9731 int foo = EVIOCGBIT(EV_ABS,42);
9732 int bar = BTN_PINKIE;
9733 int fortytwo = 42;
9736 return 0;
9738 _ACEOF
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:9740: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>&5
9742 ac_status=$?
9743 echo "$as_me:9743: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:9746: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:9749: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 wine_cv_linux_input_h=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 wine_cv_linux_input_h=no
9757 rm -f conftest.$ac_objext conftest.$ac_ext
9760 echo "$as_me:9760: result: $wine_cv_linux_input_h" >&5
9761 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
9762 if test "$wine_cv_linux_input_h" = "yes"
9763 then
9765 cat >>confdefs.h <<\EOF
9766 #define HAVE_CORRECT_LINUXINPUT_H 1
9771 echo "$as_me:9771: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
9772 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
9773 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 cat >conftest.$ac_ext <<_ACEOF
9777 #line 9777 "configure"
9778 #include "confdefs.h"
9780 #include <netdb.h>
9783 main ()
9786 char *name=NULL;
9787 struct hostent he;
9788 struct hostent *result;
9789 char *buf=NULL;
9790 int bufsize=0;
9791 int res,errnr;
9792 char *addr=NULL;
9793 int addrlen=0;
9794 int addrtype=0;
9795 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
9796 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
9799 return 0;
9801 _ACEOF
9802 rm -f conftest.$ac_objext
9803 if { (eval echo "$as_me:9803: \"$ac_compile\"") >&5
9804 (eval $ac_compile) 2>&5
9805 ac_status=$?
9806 echo "$as_me:9806: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:9809: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:9812: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 wine_cv_linux_gethostbyname_r_6=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 wine_cv_linux_gethostbyname_r_6=no
9821 rm -f conftest.$ac_objext conftest.$ac_ext
9824 echo "$as_me:9824: result: $wine_cv_linux_gethostbyname_r_6" >&5
9825 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
9826 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
9827 then
9829 cat >>confdefs.h <<\EOF
9830 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
9835 if test "$ac_cv_header_linux_joystick_h" = "yes"
9836 then
9837 echo "$as_me:9837: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
9838 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
9839 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line 9843 "configure"
9844 #include "confdefs.h"
9846 #include <sys/ioctl.h>
9847 #include <linux/joystick.h>
9849 struct js_event blub;
9850 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
9851 #error "no 2.2 header"
9852 #endif
9855 main ()
9857 /*empty*/
9859 return 0;
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (eval echo "$as_me:9863: \"$ac_compile\"") >&5
9864 (eval $ac_compile) 2>&5
9865 ac_status=$?
9866 echo "$as_me:9866: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -s conftest.$ac_objext'
9869 { (eval echo "$as_me:9869: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:9872: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 wine_cv_linux_joystick_22_api=yes
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 wine_cv_linux_joystick_22_api=no
9880 rm -f conftest.$ac_objext conftest.$ac_ext
9883 echo "$as_me:9883: result: $wine_cv_linux_joystick_22_api" >&5
9884 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
9885 if test "$wine_cv_linux_joystick_22_api" = "yes"
9886 then
9888 cat >>confdefs.h <<\EOF
9889 #define HAVE_LINUX_22_JOYSTICK_API 1
9895 if test "$ac_cv_header_sys_vfs_h" = "yes"
9896 then
9897 echo "$as_me:9897: checking whether sys/vfs.h defines statfs" >&5
9898 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
9899 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line 9903 "configure"
9904 #include "confdefs.h"
9906 #include <sys/types.h>
9907 #ifdef HAVE_SYS_PARAM_H
9908 # include <sys/param.h>
9909 #endif
9910 #include <sys/vfs.h>
9913 main ()
9916 struct statfs stfs;
9918 memset(&stfs,0,sizeof(stfs));
9921 return 0;
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>&5
9927 ac_status=$?
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -s conftest.$ac_objext'
9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
9932 (eval $ac_try) 2>&5
9933 ac_status=$?
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 wine_cv_sys_vfs_has_statfs=yes
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 wine_cv_sys_vfs_has_statfs=no
9943 rm -f conftest.$ac_objext conftest.$ac_ext
9946 echo "$as_me:9946: result: $wine_cv_sys_vfs_has_statfs" >&5
9947 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
9948 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
9949 then
9951 cat >>confdefs.h <<\EOF
9952 #define STATFS_DEFINED_BY_SYS_VFS 1
9958 if test "$ac_cv_header_sys_statfs_h" = "yes"
9959 then
9960 echo "$as_me:9960: checking whether sys/statfs.h defines statfs" >&5
9961 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
9962 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965 cat >conftest.$ac_ext <<_ACEOF
9966 #line 9966 "configure"
9967 #include "confdefs.h"
9969 #include <sys/types.h>
9970 #ifdef HAVE_SYS_PARAM_H
9971 # include <sys/param.h>
9972 #endif
9973 #include <sys/statfs.h>
9976 main ()
9979 struct statfs stfs;
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:9986: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>&5
9988 ac_status=$?
9989 echo "$as_me:9989: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -s conftest.$ac_objext'
9992 { (eval echo "$as_me:9992: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:9995: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 wine_cv_sys_statfs_has_statfs=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 wine_cv_sys_statfs_has_statfs=no
10004 rm -f conftest.$ac_objext conftest.$ac_ext
10007 echo "$as_me:10007: result: $wine_cv_sys_statfs_has_statfs" >&5
10008 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
10009 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
10010 then
10012 cat >>confdefs.h <<\EOF
10013 #define STATFS_DEFINED_BY_SYS_STATFS 1
10019 if test "$ac_cv_header_sys_mount_h" = "yes"
10020 then
10021 echo "$as_me:10021: checking whether sys/mount.h defines statfs" >&5
10022 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
10023 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 cat >conftest.$ac_ext <<_ACEOF
10027 #line 10027 "configure"
10028 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_PARAM_H
10032 # include <sys/param.h>
10033 #endif
10034 #include <sys/mount.h>
10037 main ()
10040 struct statfs stfs;
10043 return 0;
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:10047: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>&5
10049 ac_status=$?
10050 echo "$as_me:10050: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:10053: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:10056: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 wine_cv_sys_mount_has_statfs=yes
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 wine_cv_sys_mount_has_statfs=no
10065 rm -f conftest.$ac_objext conftest.$ac_ext
10068 echo "$as_me:10068: result: $wine_cv_sys_mount_has_statfs" >&5
10069 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
10070 if test "$wine_cv_sys_mount_has_statfs" = "yes"
10071 then
10073 cat >>confdefs.h <<\EOF
10074 #define STATFS_DEFINED_BY_SYS_MOUNT 1
10080 echo "$as_me:10080: checking for f_bfree in struct statfs" >&5
10081 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
10082 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 cat >conftest.$ac_ext <<_ACEOF
10086 #line 10086 "configure"
10087 #include "confdefs.h"
10088 #include <sys/types.h>
10089 #ifdef HAVE_SYS_PARAM_H
10090 # include <sys/param.h>
10091 #endif
10092 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
10093 # include <sys/mount.h>
10094 #else
10095 # ifdef STATFS_DEFINED_BY_SYS_VFS
10096 # include <sys/vfs.h>
10097 # else
10098 # ifdef STATFS_DEFINED_BY_SYS_STATFS
10099 # include <sys/statfs.h>
10100 # endif
10101 # endif
10102 #endif
10104 main ()
10106 struct statfs s; s.f_bfree = 0
10108 return 0;
10110 _ACEOF
10111 rm -f conftest.$ac_objext
10112 if { (eval echo "$as_me:10112: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10114 ac_status=$?
10115 echo "$as_me:10115: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:10118: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:10121: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_c_statfs_f_bfree="yes"
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10127 ac_cv_c_statfs_f_bfree="no"
10129 rm -f conftest.$ac_objext conftest.$ac_ext
10131 echo "$as_me:10131: result: $ac_cv_c_statfs_f_bfree" >&5
10132 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
10133 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
10135 cat >>confdefs.h <<\EOF
10136 #define STATFS_HAS_BFREE 1
10141 echo "$as_me:10141: checking for f_bavail in struct statfs" >&5
10142 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
10143 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 cat >conftest.$ac_ext <<_ACEOF
10147 #line 10147 "configure"
10148 #include "confdefs.h"
10149 #include <sys/types.h>
10150 #ifdef HAVE_SYS_PARAM_H
10151 # include <sys/param.h>
10152 #endif
10153 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
10154 # include <sys/mount.h>
10155 #else
10156 # ifdef STATFS_DEFINED_BY_SYS_VFS
10157 # include <sys/vfs.h>
10158 # else
10159 # ifdef STATFS_DEFINED_BY_SYS_STATFS
10160 # include <sys/statfs.h>
10161 # endif
10162 # endif
10163 #endif
10165 main ()
10167 struct statfs s; s.f_bavail = 0
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:10173: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10175 ac_status=$?
10176 echo "$as_me:10176: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:10179: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:10182: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_c_statfs_f_bavail="yes"
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_c_statfs_f_bavail="no"
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:10192: result: $ac_cv_c_statfs_f_bavail" >&5
10193 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
10194 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
10196 cat >>confdefs.h <<\EOF
10197 #define STATFS_HAS_BAVAIL 1
10202 echo "$as_me:10202: checking for msg_accrights in struct msghdr" >&5
10203 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
10204 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line 10208 "configure"
10209 #include "confdefs.h"
10210 #include <sys/types.h>
10211 #include <sys/socket.h>
10213 main ()
10215 struct msghdr s; s.msg_accrights = 0
10217 return 0;
10219 _ACEOF
10220 rm -f conftest.$ac_objext
10221 if { (eval echo "$as_me:10221: \"$ac_compile\"") >&5
10222 (eval $ac_compile) 2>&5
10223 ac_status=$?
10224 echo "$as_me:10224: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -s conftest.$ac_objext'
10227 { (eval echo "$as_me:10227: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:10230: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_cv_c_msghdr_msg_accrights="yes"
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 ac_cv_c_msghdr_msg_accrights="no"
10238 rm -f conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:10240: result: $ac_cv_c_msghdr_msg_accrights" >&5
10241 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
10242 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
10244 cat >>confdefs.h <<\EOF
10245 #define HAVE_MSGHDR_ACCRIGHTS 1
10250 echo "$as_me:10250: checking for sa_len in struct sockaddr" >&5
10251 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
10252 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line 10256 "configure"
10257 #include "confdefs.h"
10258 #include <sys/types.h>
10259 #include <sys/socket.h>
10261 main ()
10263 struct sockaddr s; s.sa_len = 0
10265 return 0;
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:10269: \"$ac_compile\"") >&5
10270 (eval $ac_compile) 2>&5
10271 ac_status=$?
10272 echo "$as_me:10272: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:10275: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:10278: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_c_sockaddr_sa_len="yes"
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 ac_cv_c_sockaddr_sa_len="no"
10286 rm -f conftest.$ac_objext conftest.$ac_ext
10288 echo "$as_me:10288: result: $ac_cv_c_sockaddr_sa_len" >&5
10289 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
10290 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
10292 cat >>confdefs.h <<\EOF
10293 #define HAVE_SOCKADDR_SA_LEN 1
10298 echo "$as_me:10298: checking for sun_len in struct sockaddr_un" >&5
10299 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
10300 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10306 #include <sys/types.h>
10307 #include <sys/socket.h>
10308 #include <sys/un.h>
10310 main ()
10312 struct sockaddr_un s; s.sun_len = 0
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (eval echo "$as_me:10318: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>&5
10320 ac_status=$?
10321 echo "$as_me:10321: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:10324: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:10327: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_c_sockaddr_un_sun_len="yes"
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 ac_cv_c_sockaddr_un_sun_len="no"
10335 rm -f conftest.$ac_objext conftest.$ac_ext
10337 echo "$as_me:10337: result: $ac_cv_c_sockaddr_un_sun_len" >&5
10338 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
10339 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
10341 cat >>confdefs.h <<\EOF
10342 #define HAVE_SOCKADDR_SUN_LEN 1
10347 case $target_cpu in
10348 *i345678986* )
10349 echo "$as_me:10349: checking whether we need to define __i386__" >&5
10350 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
10351 if test "${ac_cv_cpp_def_i386+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 cat >conftest.$ac_ext <<_ACEOF
10355 #line 10355 "configure"
10356 #include "confdefs.h"
10357 #ifndef __i386__
10359 #endif
10360 _ACEOF
10361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10362 egrep "yes" >/dev/null 2>&1; then
10363 ac_cv_cpp_def_i386="yes"
10364 else
10365 ac_cv_cpp_def_i386="no"
10367 rm -f conftest*
10370 echo "$as_me:10370: result: $ac_cv_cpp_def_i386" >&5
10371 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
10373 esac
10374 if test "$ac_cv_cpp_def_i386" = "yes"
10375 then
10376 CFLAGS="$CFLAGS -D__i386__"
10377 LINTFLAGS="$LINTFLAGS -D__i386__"
10380 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
10382 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
10384 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
10386 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
10388 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
10390 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
10392 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
10394 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
10396 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
10398 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
10400 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
10402 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
10404 ac_config_commands="$ac_config_commands dlls/kernel/messages"
10406 ac_config_commands="$ac_config_commands dlls/kernel/tests"
10408 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
10410 ac_config_commands="$ac_config_commands dlls/user/dde"
10412 ac_config_commands="$ac_config_commands dlls/user/resources"
10414 ac_config_commands="$ac_config_commands dlls/user/tests"
10416 ac_config_commands="$ac_config_commands dlls/wineps/data"
10418 ac_config_commands="$ac_config_commands include/wine"
10420 ac_config_commands="$ac_config_commands programs/regapi/tests"
10422 ac_config_commands="$ac_config_commands programs/winetest/tests"
10424 ac_config_commands="$ac_config_commands include/wine/version.h"
10426 MAKE_RULES=Make.rules
10428 MAKE_DLL_RULES=dlls/Makedll.rules
10430 MAKE_PROG_RULES=programs/Makeprog.rules
10432 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile console/Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/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/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/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/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile"
10434 cat >confcache <<\_ACEOF
10435 # This file is a shell script that caches the results of configure
10436 # tests run on this system so they can be shared between configure
10437 # scripts and configure runs, see configure's option --config-cache.
10438 # It is not useful on other systems. If it contains results you don't
10439 # want to keep, you may remove or edit it.
10441 # config.status only pays attention to the cache file if you give it
10442 # the --recheck option to rerun configure.
10444 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10446 # following values.
10448 _ACEOF
10450 # The following way of writing the cache mishandles newlines in values,
10451 # but we know of no workaround that is simple, portable, and efficient.
10452 # So, don't put newlines in cache variables' values.
10453 # Ultrix sh set writes to stderr and can't be redirected directly,
10454 # and sets the high bit in the cache file unless we assign to the vars.
10456 (set) 2>&1 |
10457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10458 *ac_space=\ *)
10459 # `set' does not quote correctly, so add quotes (double-quote
10460 # substitution turns \\\\ into \\, and sed turns \\ into \).
10461 sed -n \
10462 "s/'/'\\\\''/g;
10463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10466 # `set' quotes correctly as required by POSIX, so do not add quotes.
10467 sed -n \
10468 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10470 esac;
10472 sed '
10473 t clear
10474 : clear
10475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10476 t end
10477 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10478 : end' >>confcache
10479 if cmp -s $cache_file confcache; then :; else
10480 if test -w $cache_file; then
10481 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10482 cat confcache >$cache_file
10483 else
10484 echo "not updating unwritable cache $cache_file"
10487 rm -f confcache
10489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10490 # Let make expand exec_prefix.
10491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10493 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10494 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10495 # trailing colons and then remove the whole line if VPATH becomes empty
10496 # (actually we leave an empty line to preserve line numbers).
10497 if test "x$srcdir" = x.; then
10498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10499 s/:*\$(srcdir):*/:/;
10500 s/:*\${srcdir}:*/:/;
10501 s/:*@srcdir@:*/:/;
10502 s/^\([^=]*=[ ]*\):*/\1/;
10503 s/:*$//;
10504 s/^[^=]*=[ ]*$//;
10508 DEFS=-DHAVE_CONFIG_H
10510 : ${CONFIG_STATUS=./config.status}
10511 ac_clean_files_save=$ac_clean_files
10512 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10513 { echo "$as_me:10513: creating $CONFIG_STATUS" >&5
10514 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10515 cat >$CONFIG_STATUS <<_ACEOF
10516 #! $SHELL
10517 # Generated automatically by configure.
10518 # Run this file to recreate the current configuration.
10519 # Compiler output produced by configure, useful for debugging
10520 # configure, is in config.log if it exists.
10522 debug=false
10523 SHELL=\${CONFIG_SHELL-$SHELL}
10524 ac_cs_invocation="\$0 \$@"
10526 _ACEOF
10528 cat >>$CONFIG_STATUS <<\_ACEOF
10529 # Be Bourne compatible
10530 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10531 emulate sh
10532 NULLCMD=:
10533 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10534 set -o posix
10537 # Name of the executable.
10538 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10540 if expr a : '\(a\)' >/dev/null 2>&1; then
10541 as_expr=expr
10542 else
10543 as_expr=false
10546 rm -f conf$$ conf$$.exe conf$$.file
10547 echo >conf$$.file
10548 if ln -s conf$$.file conf$$ 2>/dev/null; then
10549 # We could just check for DJGPP; but this test a) works b) is more generic
10550 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10551 if test -f conf$$.exe; then
10552 # Don't use ln at all; we don't have any links
10553 as_ln_s='cp -p'
10554 else
10555 as_ln_s='ln -s'
10557 elif ln conf$$.file conf$$ 2>/dev/null; then
10558 as_ln_s=ln
10559 else
10560 as_ln_s='cp -p'
10562 rm -f conf$$ conf$$.exe conf$$.file
10564 as_executable_p="test -f"
10566 # Support unset when possible.
10567 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10568 as_unset=unset
10569 else
10570 as_unset=false
10573 # NLS nuisances.
10574 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10575 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10576 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10577 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10578 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10579 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10580 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10581 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10583 # IFS
10584 # We need space, tab and new line, in precisely that order.
10585 as_nl='
10587 IFS=" $as_nl"
10589 # CDPATH.
10590 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10592 exec 6>&1
10594 _ACEOF
10596 # Files that config.status was made for.
10597 if test -n "$ac_config_files"; then
10598 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10601 if test -n "$ac_config_headers"; then
10602 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10605 if test -n "$ac_config_links"; then
10606 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10609 if test -n "$ac_config_commands"; then
10610 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10613 cat >>$CONFIG_STATUS <<\EOF
10615 ac_cs_usage="\
10616 \`$as_me' instantiates files from templates according to the
10617 current configuration.
10619 Usage: $0 [OPTIONS] [FILE]...
10621 -h, --help print this help, then exit
10622 -V, --version print version number, then exit
10623 -d, --debug don't remove temporary files
10624 --recheck update $as_me by reconfiguring in the same conditions
10625 --file=FILE[:TEMPLATE]
10626 instantiate the configuration file FILE
10627 --header=FILE[:TEMPLATE]
10628 instantiate the configuration header FILE
10630 Configuration files:
10631 $config_files
10633 Configuration headers:
10634 $config_headers
10636 Configuration commands:
10637 $config_commands
10639 Report bugs to <bug-autoconf@gnu.org>."
10642 cat >>$CONFIG_STATUS <<EOF
10643 ac_cs_version="\\
10644 Wine config.status 20020310
10645 configured by $0, generated by GNU Autoconf 2.52,
10646 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10648 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10649 Free Software Foundation, Inc.
10650 This config.status script is free software; the Free Software Foundation
10651 gives unlimited permission to copy, distribute and modify it."
10652 srcdir=$srcdir
10653 INSTALL="$INSTALL"
10656 cat >>$CONFIG_STATUS <<\EOF
10657 # If no file are specified by the user, then we need to provide default
10658 # value. By we need to know if files were specified by the user.
10659 ac_need_defaults=:
10660 while test $# != 0
10662 case $1 in
10663 --*=*)
10664 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10665 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10666 shift
10667 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10668 shift
10670 -*);;
10671 *) # This is not an option, so the user has probably given explicit
10672 # arguments.
10673 ac_need_defaults=false;;
10674 esac
10676 case $1 in
10677 # Handling of the options.
10679 cat >>$CONFIG_STATUS <<EOF
10680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10681 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10682 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10684 cat >>$CONFIG_STATUS <<\EOF
10685 --version | --vers* | -V )
10686 echo "$ac_cs_version"; exit 0 ;;
10687 --he | --h)
10688 # Conflict between --help and --header
10689 { { echo "$as_me:10689: error: ambiguous option: $1
10690 Try \`$0 --help' for more information." >&5
10691 echo "$as_me: error: ambiguous option: $1
10692 Try \`$0 --help' for more information." >&2;}
10693 { (exit 1); exit 1; }; };;
10694 --help | --hel | -h )
10695 echo "$ac_cs_usage"; exit 0 ;;
10696 --debug | --d* | -d )
10697 debug=: ;;
10698 --file | --fil | --fi | --f )
10699 shift
10700 CONFIG_FILES="$CONFIG_FILES $1"
10701 ac_need_defaults=false;;
10702 --header | --heade | --head | --hea )
10703 shift
10704 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10705 ac_need_defaults=false;;
10707 # This is an error.
10708 -*) { { echo "$as_me:10708: error: unrecognized option: $1
10709 Try \`$0 --help' for more information." >&5
10710 echo "$as_me: error: unrecognized option: $1
10711 Try \`$0 --help' for more information." >&2;}
10712 { (exit 1); exit 1; }; } ;;
10714 *) ac_config_targets="$ac_config_targets $1" ;;
10716 esac
10717 shift
10718 done
10720 exec 5>>config.log
10721 cat >&5 << _ACEOF
10723 ## ----------------------- ##
10724 ## Running config.status. ##
10725 ## ----------------------- ##
10727 This file was extended by $as_me (Wine 20020310) 2.52, executed with
10728 CONFIG_FILES = $CONFIG_FILES
10729 CONFIG_HEADERS = $CONFIG_HEADERS
10730 CONFIG_LINKS = $CONFIG_LINKS
10731 CONFIG_COMMANDS = $CONFIG_COMMANDS
10732 > $ac_cs_invocation
10733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10735 _ACEOF
10738 cat >>$CONFIG_STATUS <<EOF
10740 # INIT-COMMANDS section.
10743 wine_version=$PACKAGE_VERSION
10747 cat >>$CONFIG_STATUS <<\EOF
10748 for ac_config_target in $ac_config_targets
10750 case "$ac_config_target" in
10751 # Handling of arguments.
10752 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
10753 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
10754 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
10755 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10756 "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
10757 "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
10758 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
10759 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
10760 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
10761 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
10762 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
10763 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
10764 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
10765 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
10766 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
10767 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
10768 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
10769 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
10770 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
10771 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
10772 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
10773 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
10774 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
10775 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
10776 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
10777 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
10778 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
10779 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
10780 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
10781 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
10782 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
10783 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
10784 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
10785 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
10786 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
10787 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
10788 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
10789 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
10790 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
10791 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
10792 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
10793 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
10794 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
10795 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
10796 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
10797 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
10798 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
10799 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
10800 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
10801 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
10802 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
10803 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
10804 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
10805 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
10806 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
10807 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
10808 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
10809 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
10810 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
10811 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
10812 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
10813 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
10814 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
10815 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
10816 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
10817 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
10818 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
10819 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
10820 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
10821 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
10822 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
10823 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
10824 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
10825 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
10826 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
10827 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
10828 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
10829 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
10830 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
10831 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
10832 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
10833 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
10834 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
10835 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
10836 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
10837 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
10838 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
10839 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
10840 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
10841 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
10842 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
10843 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
10844 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
10845 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
10846 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
10847 "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
10848 "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
10849 "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
10850 "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
10851 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10852 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
10853 "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
10854 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
10855 "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
10856 "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
10857 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
10858 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
10859 "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
10860 "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
10861 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
10862 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
10863 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
10864 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
10865 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
10866 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
10867 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
10868 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
10869 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
10870 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
10871 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
10872 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
10873 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
10874 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
10875 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
10876 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
10877 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
10878 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
10879 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
10880 "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
10881 "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
10882 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
10883 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10884 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
10885 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
10886 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
10887 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
10888 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
10889 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
10890 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
10891 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
10892 "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
10893 "windows/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/x11drv/Makefile" ;;
10894 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
10895 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
10896 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
10897 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
10898 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
10899 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
10900 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
10901 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
10902 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
10903 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
10904 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
10905 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
10906 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
10907 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
10908 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
10909 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
10910 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
10911 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
10912 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
10913 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
10914 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
10915 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
10916 "include/wine/version.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine/version.h" ;;
10917 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
10918 *) { { echo "$as_me:10918: error: invalid argument: $ac_config_target" >&5
10919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10920 { (exit 1); exit 1; }; };;
10921 esac
10922 done
10924 # If the user did not use the arguments to specify the items to instantiate,
10925 # then the envvar interface is used. Set only those that are not.
10926 # We use the long form for the default assignment because of an extremely
10927 # bizarre bug on SunOS 4.1.3.
10928 if $ac_need_defaults; then
10929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10934 # Create a temporary directory, and hook for its removal unless debugging.
10935 $debug ||
10937 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10938 trap '{ (exit 1); exit 1; }' 1 2 13 15
10941 # Create a (secure) tmp directory for tmp files.
10942 : ${TMPDIR=/tmp}
10944 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10945 test -n "$tmp" && test -d "$tmp"
10946 } ||
10948 tmp=$TMPDIR/cs$$-$RANDOM
10949 (umask 077 && mkdir $tmp)
10950 } ||
10952 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10953 { (exit 1); exit 1; }
10958 cat >>$CONFIG_STATUS <<EOF
10961 # CONFIG_FILES section.
10964 # No need to generate the scripts if there are no CONFIG_FILES.
10965 # This happens for instance when ./config.status config.h
10966 if test -n "\$CONFIG_FILES"; then
10967 # Protect against being on the right side of a sed subst in config.status.
10968 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10969 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10970 s,@SHELL@,$SHELL,;t t
10971 s,@exec_prefix@,$exec_prefix,;t t
10972 s,@prefix@,$prefix,;t t
10973 s,@program_transform_name@,$program_transform_name,;t t
10974 s,@bindir@,$bindir,;t t
10975 s,@sbindir@,$sbindir,;t t
10976 s,@libexecdir@,$libexecdir,;t t
10977 s,@datadir@,$datadir,;t t
10978 s,@sysconfdir@,$sysconfdir,;t t
10979 s,@sharedstatedir@,$sharedstatedir,;t t
10980 s,@localstatedir@,$localstatedir,;t t
10981 s,@libdir@,$libdir,;t t
10982 s,@includedir@,$includedir,;t t
10983 s,@oldincludedir@,$oldincludedir,;t t
10984 s,@infodir@,$infodir,;t t
10985 s,@mandir@,$mandir,;t t
10986 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10987 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10988 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10989 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10990 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10991 s,@build_alias@,$build_alias,;t t
10992 s,@host_alias@,$host_alias,;t t
10993 s,@target_alias@,$target_alias,;t t
10994 s,@ECHO_C@,$ECHO_C,;t t
10995 s,@ECHO_N@,$ECHO_N,;t t
10996 s,@ECHO_T@,$ECHO_T,;t t
10997 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10998 s,@DEFS@,$DEFS,;t t
10999 s,@LIBS@,$LIBS,;t t
11000 s,@OPTIONS@,$OPTIONS,;t t
11001 s,@build@,$build,;t t
11002 s,@build_cpu@,$build_cpu,;t t
11003 s,@build_vendor@,$build_vendor,;t t
11004 s,@build_os@,$build_os,;t t
11005 s,@host@,$host,;t t
11006 s,@host_cpu@,$host_cpu,;t t
11007 s,@host_vendor@,$host_vendor,;t t
11008 s,@host_os@,$host_os,;t t
11009 s,@target@,$target,;t t
11010 s,@target_cpu@,$target_cpu,;t t
11011 s,@target_vendor@,$target_vendor,;t t
11012 s,@target_os@,$target_os,;t t
11013 s,@SET_MAKE@,$SET_MAKE,;t t
11014 s,@CC@,$CC,;t t
11015 s,@CFLAGS@,$CFLAGS,;t t
11016 s,@LDFLAGS@,$LDFLAGS,;t t
11017 s,@CPPFLAGS@,$CPPFLAGS,;t t
11018 s,@ac_ct_CC@,$ac_ct_CC,;t t
11019 s,@EXEEXT@,$EXEEXT,;t t
11020 s,@OBJEXT@,$OBJEXT,;t t
11021 s,@CPP@,$CPP,;t t
11022 s,@X_CFLAGS@,$X_CFLAGS,;t t
11023 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11024 s,@X_LIBS@,$X_LIBS,;t t
11025 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11026 s,@YACC@,$YACC,;t t
11027 s,@LEX@,$LEX,;t t
11028 s,@LEXLIB@,$LEXLIB,;t t
11029 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11030 s,@XYACC@,$XYACC,;t t
11031 s,@XLEX@,$XLEX,;t t
11032 s,@RANLIB@,$RANLIB,;t t
11033 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11034 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11035 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11036 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11037 s,@LN_S@,$LN_S,;t t
11038 s,@C2MAN@,$C2MAN,;t t
11039 s,@LDCONFIG@,$LDCONFIG,;t t
11040 s,@LINT@,$LINT,;t t
11041 s,@LINTFLAGS@,$LINTFLAGS,;t t
11042 s,@LDCOMBINE@,$LDCOMBINE,;t t
11043 s,@UTILLIBS@,$UTILLIBS,;t t
11044 s,@DLLIBS@,$DLLIBS,;t t
11045 s,@JPEGLIB@,$JPEGLIB,;t t
11046 s,@XLIB@,$XLIB,;t t
11047 s,@XFILES@,$XFILES,;t t
11048 s,@OPENGLFILES@,$OPENGLFILES,;t t
11049 s,@GLU32FILES@,$GLU32FILES,;t t
11050 s,@CURSESLIBS@,$CURSESLIBS,;t t
11051 s,@CUPSLIBS@,$CUPSLIBS,;t t
11052 s,@sane_devel@,$sane_devel,;t t
11053 s,@SANELIBS@,$SANELIBS,;t t
11054 s,@SANEINCL@,$SANEINCL,;t t
11055 s,@ft_devel@,$ft_devel,;t t
11056 s,@ft_devel2@,$ft_devel2,;t t
11057 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
11058 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
11059 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
11060 s,@ARTSLIBS@,$ARTSLIBS,;t t
11061 s,@ARTSINCL@,$ARTSINCL,;t t
11062 s,@DLLWRAP@,$DLLWRAP,;t t
11063 s,@DLLFLAGS@,$DLLFLAGS,;t t
11064 s,@DLLEXT@,$DLLEXT,;t t
11065 s,@LDSHARED@,$LDSHARED,;t t
11066 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
11067 s,@LIBEXT@,$LIBEXT,;t t
11068 s,@LDPATH@,$LDPATH,;t t
11069 s,@ALLOCA@,$ALLOCA,;t t
11070 /@MAKE_RULES@/r $MAKE_RULES
11071 s,@MAKE_RULES@,,;t t
11072 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
11073 s,@MAKE_DLL_RULES@,,;t t
11074 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
11075 s,@MAKE_PROG_RULES@,,;t t
11076 CEOF
11080 cat >>$CONFIG_STATUS <<\EOF
11081 # Split the substitutions into bite-sized pieces for seds with
11082 # small command number limits, like on Digital OSF/1 and HP-UX.
11083 ac_max_sed_lines=48
11084 ac_sed_frag=1 # Number of current file.
11085 ac_beg=1 # First line for current file.
11086 ac_end=$ac_max_sed_lines # Line after last line for current file.
11087 ac_more_lines=:
11088 ac_sed_cmds=
11089 while $ac_more_lines; do
11090 if test $ac_beg -gt 1; then
11091 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11092 else
11093 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11095 if test ! -s $tmp/subs.frag; then
11096 ac_more_lines=false
11097 else
11098 # The purpose of the label and of the branching condition is to
11099 # speed up the sed processing (if there are no `@' at all, there
11100 # is no need to browse any of the substitutions).
11101 # These are the two extra sed commands mentioned above.
11102 (echo ':t
11103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11104 if test -z "$ac_sed_cmds"; then
11105 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11106 else
11107 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11109 ac_sed_frag=`expr $ac_sed_frag + 1`
11110 ac_beg=$ac_end
11111 ac_end=`expr $ac_end + $ac_max_sed_lines`
11113 done
11114 if test -z "$ac_sed_cmds"; then
11115 ac_sed_cmds=cat
11117 fi # test -n "$CONFIG_FILES"
11120 cat >>$CONFIG_STATUS <<\EOF
11121 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11123 case $ac_file in
11124 - | *:- | *:-:* ) # input from stdin
11125 cat >$tmp/stdin
11126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11130 * ) ac_file_in=$ac_file.in ;;
11131 esac
11133 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11134 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11135 X"$ac_file" : 'X\(//\)[^/]' \| \
11136 X"$ac_file" : 'X\(//\)$' \| \
11137 X"$ac_file" : 'X\(/\)' \| \
11138 . : '\(.\)' 2>/dev/null ||
11139 echo X"$ac_file" |
11140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11142 /^X\(\/\/\)$/{ s//\1/; q; }
11143 /^X\(\/\).*/{ s//\1/; q; }
11144 s/.*/./; q'`
11145 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11146 { case "$ac_dir" in
11147 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11148 *) as_incr_dir=.;;
11149 esac
11150 as_dummy="$ac_dir"
11151 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11152 case $as_mkdir_dir in
11153 # Skip DOS drivespec
11154 ?:) as_incr_dir=$as_mkdir_dir ;;
11156 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11157 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11159 esac
11160 done; }
11162 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
11163 # A "../" for each directory in $ac_dir_suffix.
11164 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11165 else
11166 ac_dir_suffix= ac_dots=
11169 case $srcdir in
11170 .) ac_srcdir=.
11171 if test -z "$ac_dots"; then
11172 ac_top_srcdir=.
11173 else
11174 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11175 fi ;;
11176 [\\/]* | ?:[\\/]* )
11177 ac_srcdir=$srcdir$ac_dir_suffix;
11178 ac_top_srcdir=$srcdir ;;
11179 *) # Relative path.
11180 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11181 ac_top_srcdir=$ac_dots$srcdir ;;
11182 esac
11184 case $INSTALL in
11185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11186 *) ac_INSTALL=$ac_dots$INSTALL ;;
11187 esac
11189 if test x"$ac_file" != x-; then
11190 { echo "$as_me:11190: creating $ac_file" >&5
11191 echo "$as_me: creating $ac_file" >&6;}
11192 rm -f "$ac_file"
11194 # Let's still pretend it is `configure' which instantiates (i.e., don't
11195 # use $as_me), people would be surprised to read:
11196 # /* config.h. Generated automatically by config.status. */
11197 configure_input="Generated automatically from `echo $ac_file_in |
11198 sed 's,.*/,,'` by configure."
11200 # First look for the input files in the build tree, otherwise in the
11201 # src tree.
11202 ac_file_inputs=`IFS=:
11203 for f in $ac_file_in; do
11204 case $f in
11205 -) echo $tmp/stdin ;;
11206 [\\/$]*)
11207 # Absolute (can't be DOS-style, as IFS=:)
11208 test -f "$f" || { { echo "$as_me:11208: error: cannot find input file: $f" >&5
11209 echo "$as_me: error: cannot find input file: $f" >&2;}
11210 { (exit 1); exit 1; }; }
11211 echo $f;;
11212 *) # Relative
11213 if test -f "$f"; then
11214 # Build tree
11215 echo $f
11216 elif test -f "$srcdir/$f"; then
11217 # Source tree
11218 echo $srcdir/$f
11219 else
11220 # /dev/null tree
11221 { { echo "$as_me:11221: error: cannot find input file: $f" >&5
11222 echo "$as_me: error: cannot find input file: $f" >&2;}
11223 { (exit 1); exit 1; }; }
11224 fi;;
11225 esac
11226 done` || { (exit 1); exit 1; }
11228 cat >>$CONFIG_STATUS <<EOF
11229 sed "$ac_vpsub
11230 $extrasub
11232 cat >>$CONFIG_STATUS <<\EOF
11234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11235 s,@configure_input@,$configure_input,;t t
11236 s,@srcdir@,$ac_srcdir,;t t
11237 s,@top_srcdir@,$ac_top_srcdir,;t t
11238 s,@INSTALL@,$ac_INSTALL,;t t
11239 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11240 rm -f $tmp/stdin
11241 if test x"$ac_file" != x-; then
11242 mv $tmp/out $ac_file
11243 else
11244 cat $tmp/out
11245 rm -f $tmp/out
11248 done
11250 cat >>$CONFIG_STATUS <<\EOF
11253 # CONFIG_HEADER section.
11256 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11257 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11259 # ac_d sets the value in "#define NAME VALUE" lines.
11260 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11261 ac_dB='[ ].*$,\1#\2'
11262 ac_dC=' '
11263 ac_dD=',;t'
11264 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11265 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11266 ac_uB='$,\1#\2define\3'
11267 ac_uC=' '
11268 ac_uD=',;t'
11270 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11272 case $ac_file in
11273 - | *:- | *:-:* ) # input from stdin
11274 cat >$tmp/stdin
11275 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11277 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11279 * ) ac_file_in=$ac_file.in ;;
11280 esac
11282 test x"$ac_file" != x- && { echo "$as_me:11282: creating $ac_file" >&5
11283 echo "$as_me: creating $ac_file" >&6;}
11285 # First look for the input files in the build tree, otherwise in the
11286 # src tree.
11287 ac_file_inputs=`IFS=:
11288 for f in $ac_file_in; do
11289 case $f in
11290 -) echo $tmp/stdin ;;
11291 [\\/$]*)
11292 # Absolute (can't be DOS-style, as IFS=:)
11293 test -f "$f" || { { echo "$as_me:11293: error: cannot find input file: $f" >&5
11294 echo "$as_me: error: cannot find input file: $f" >&2;}
11295 { (exit 1); exit 1; }; }
11296 echo $f;;
11297 *) # Relative
11298 if test -f "$f"; then
11299 # Build tree
11300 echo $f
11301 elif test -f "$srcdir/$f"; then
11302 # Source tree
11303 echo $srcdir/$f
11304 else
11305 # /dev/null tree
11306 { { echo "$as_me:11306: error: cannot find input file: $f" >&5
11307 echo "$as_me: error: cannot find input file: $f" >&2;}
11308 { (exit 1); exit 1; }; }
11309 fi;;
11310 esac
11311 done` || { (exit 1); exit 1; }
11312 # Remove the trailing spaces.
11313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11318 # `conftest.undefs', that substitutes the proper values into
11319 # config.h.in to produce config.h. The first handles `#define'
11320 # templates, and the second `#undef' templates.
11321 # And first: Protect against being on the right side of a sed subst in
11322 # config.status. Protect against being in an unquoted here document
11323 # in config.status.
11324 rm -f conftest.defines conftest.undefs
11325 # Using a here document instead of a string reduces the quoting nightmare.
11326 # Putting comments in sed scripts is not portable.
11328 # `end' is used to avoid that the second main sed command (meant for
11329 # 0-ary CPP macros) applies to n-ary macro definitions.
11330 # See the Autoconf documentation for `clear'.
11331 cat >confdef2sed.sed <<\EOF
11332 s/[\\&,]/\\&/g
11333 s,[\\$`],\\&,g
11334 t clear
11335 : clear
11336 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11337 t end
11338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11339 : end
11341 # If some macros were called several times there might be several times
11342 # the same #defines, which is useless. Nevertheless, we may not want to
11343 # sort them, since we want the *last* AC-DEFINE to be honored.
11344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11346 rm -f confdef2sed.sed
11348 # This sed command replaces #undef with comments. This is necessary, for
11349 # example, in the case of _POSIX_SOURCE, which is predefined and required
11350 # on some systems where configure will not decide to define it.
11351 cat >>conftest.undefs <<\EOF
11352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11355 # Break up conftest.defines because some shells have a limit on the size
11356 # of here documents, and old seds have small limits too (100 cmds).
11357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11358 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11360 echo ' :' >>$CONFIG_STATUS
11361 rm -f conftest.tail
11362 while grep . conftest.defines >/dev/null
11364 # Write a limited-size here document to $tmp/defines.sed.
11365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11366 # Speed up: don't consider the non `#define' lines.
11367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11368 # Work around the forget-to-reset-the-flag bug.
11369 echo 't clr' >>$CONFIG_STATUS
11370 echo ': clr' >>$CONFIG_STATUS
11371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11372 echo 'CEOF
11373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11374 rm -f $tmp/in
11375 mv $tmp/out $tmp/in
11376 ' >>$CONFIG_STATUS
11377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11378 rm -f conftest.defines
11379 mv conftest.tail conftest.defines
11380 done
11381 rm -f conftest.defines
11382 echo ' fi # egrep' >>$CONFIG_STATUS
11383 echo >>$CONFIG_STATUS
11385 # Break up conftest.undefs because some shells have a limit on the size
11386 # of here documents, and old seds have small limits too (100 cmds).
11387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11388 rm -f conftest.tail
11389 while grep . conftest.undefs >/dev/null
11391 # Write a limited-size here document to $tmp/undefs.sed.
11392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11393 # Speed up: don't consider the non `#undef'
11394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11395 # Work around the forget-to-reset-the-flag bug.
11396 echo 't clr' >>$CONFIG_STATUS
11397 echo ': clr' >>$CONFIG_STATUS
11398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11399 echo 'CEOF
11400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11401 rm -f $tmp/in
11402 mv $tmp/out $tmp/in
11403 ' >>$CONFIG_STATUS
11404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11405 rm -f conftest.undefs
11406 mv conftest.tail conftest.undefs
11407 done
11408 rm -f conftest.undefs
11410 cat >>$CONFIG_STATUS <<\EOF
11411 # Let's still pretend it is `configure' which instantiates (i.e., don't
11412 # use $as_me), people would be surprised to read:
11413 # /* config.h. Generated automatically by config.status. */
11414 if test x"$ac_file" = x-; then
11415 echo "/* Generated automatically by configure. */" >$tmp/config.h
11416 else
11417 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11419 cat $tmp/in >>$tmp/config.h
11420 rm -f $tmp/in
11421 if test x"$ac_file" != x-; then
11422 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11423 { echo "$as_me:11423: $ac_file is unchanged" >&5
11424 echo "$as_me: $ac_file is unchanged" >&6;}
11425 else
11426 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11427 X"$ac_file" : 'X\(//\)[^/]' \| \
11428 X"$ac_file" : 'X\(//\)$' \| \
11429 X"$ac_file" : 'X\(/\)' \| \
11430 . : '\(.\)' 2>/dev/null ||
11431 echo X"$ac_file" |
11432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11434 /^X\(\/\/\)$/{ s//\1/; q; }
11435 /^X\(\/\).*/{ s//\1/; q; }
11436 s/.*/./; q'`
11437 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11438 { case "$ac_dir" in
11439 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11440 *) as_incr_dir=.;;
11441 esac
11442 as_dummy="$ac_dir"
11443 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11444 case $as_mkdir_dir in
11445 # Skip DOS drivespec
11446 ?:) as_incr_dir=$as_mkdir_dir ;;
11448 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11449 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11451 esac
11452 done; }
11455 rm -f $ac_file
11456 mv $tmp/config.h $ac_file
11458 else
11459 cat $tmp/config.h
11460 rm -f $tmp/config.h
11462 done
11464 cat >>$CONFIG_STATUS <<\EOF
11467 # CONFIG_COMMANDS section.
11469 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11470 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11471 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11473 case $ac_dest in
11474 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:11474: creating dlls/ddraw/d3ddevice" >&5
11475 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
11476 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:11476: creating dlls/ddraw/dclipper" >&5
11477 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
11478 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:11478: creating dlls/ddraw/ddraw" >&5
11479 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
11480 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:11480: creating dlls/ddraw/direct3d" >&5
11481 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
11482 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:11482: creating dlls/ddraw/dpalette" >&5
11483 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
11484 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:11484: creating dlls/ddraw/dsurface" >&5
11485 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
11486 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:11486: creating dlls/dinput/joystick" >&5
11487 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
11488 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:11488: creating dlls/dinput/keyboard" >&5
11489 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
11490 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:11490: creating dlls/dinput/mouse" >&5
11491 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
11492 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:11492: creating dlls/gdi/enhmfdrv" >&5
11493 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
11494 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:11494: creating dlls/gdi/mfdrv" >&5
11495 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
11496 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:11496: creating dlls/gdi/win16drv" >&5
11497 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
11498 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:11498: creating dlls/kernel/messages" >&5
11499 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
11500 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:11500: creating dlls/kernel/tests" >&5
11501 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
11502 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:11502: creating dlls/oleaut32/tests" >&5
11503 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
11504 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:11504: creating dlls/user/dde" >&5
11505 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
11506 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:11506: creating dlls/user/resources" >&5
11507 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
11508 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:11508: creating dlls/user/tests" >&5
11509 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
11510 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:11510: creating dlls/wineps/data" >&5
11511 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
11512 include/wine ) test -d "include/wine" || ({ echo "$as_me:11512: creating include/wine" >&5
11513 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
11514 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:11514: creating programs/regapi/tests" >&5
11515 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
11516 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:11516: creating programs/winetest/tests" >&5
11517 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
11518 include/wine/version.h ) { echo "$as_me:11518: creating include/wine/version.h" >&5
11519 echo "$as_me: creating include/wine/version.h" >&6;}
11520 cat >$tmp/version.h <<CEOF
11521 /* Generated automatically by configure; DO NOT EDIT! */
11522 #define WINE_RELEASE_INFO "Wine version $wine_version"
11523 CEOF
11524 if cmp -s $tmp/version.h include/wine/version.h 2>/dev/null; then
11525 { echo "$as_me:11525: include/wine/version.h is unchanged" >&5
11526 echo "$as_me: include/wine/version.h is unchanged" >&6;}
11527 rm -f $tmp/version.h
11528 else
11529 rm -f include/wine/version.h
11530 mv $tmp/version.h include/wine/version.h
11531 fi ;;
11532 esac
11533 done
11536 cat >>$CONFIG_STATUS <<\EOF
11538 { (exit 0); exit 0; }
11540 chmod +x $CONFIG_STATUS
11541 ac_clean_files=$ac_clean_files_save
11543 # configure is writing to config.log, and then calls config.status.
11544 # config.status does its own redirection, appending to config.log.
11545 # Unfortunately, on DOS this fails, as config.log is still kept open
11546 # by configure, so config.status won't be able to write to it; its
11547 # output is simply discarded. So we exec the FD to /dev/null,
11548 # effectively closing config.log, so it can be properly (re)opened and
11549 # appended to by config.status. When coming back to configure, we
11550 # need to make the FD available again.
11551 if test "$no_create" != yes; then
11552 ac_cs_success=:
11553 exec 5>/dev/null
11554 $SHELL $CONFIG_STATUS || ac_cs_success=false
11555 exec 5>>config.log
11556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11557 # would make configure fail if this is the last instruction.
11558 $ac_cs_success || { (exit 1); exit 1; }
11561 if test "$have_x" = "no"
11562 then
11563 echo
11564 echo "*** Warning: X development files not found. Wine will be built without"
11565 echo "*** X support, which currently does not work, and would probably not be"
11566 echo "*** what you want anyway. You will need to install devel packages of"
11567 echo "*** Xlib/Xfree86 at the very least."
11570 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
11571 then
11572 echo
11573 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
11574 echo "*** terminal resize support. Consider upgrading ncurses."
11577 if test "$wine_cv_libc_reentrant" = "no"
11578 then
11579 echo
11580 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
11581 echo "*** threading support. Consider upgrading libc to a more recent"
11582 echo "*** reentrant version of libc."
11585 if test "$wine_cv_opengl_version_OK" = "no"
11586 then
11587 echo
11588 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
11589 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
11592 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
11593 then
11594 echo
11595 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
11596 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
11597 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
11598 echo "*** start configure with '--enable-opengl' to force OpenGL support."
11601 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
11602 then
11603 echo
11604 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
11605 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
11606 echo "*** support before reporting bugs."
11609 if test "$wine_cv_warn_cups_h" = "yes"
11610 then
11611 echo
11612 echo "*** Note: You have cups runtime libraries, but no development"
11613 echo "*** libraries. Install the cups-devel package or whichever package"
11614 echo "*** contains cups.h to enable CUPS support in Wine."
11617 if test "$wine_cv_msg_freetype" = "yes"
11618 then
11619 echo
11620 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
11621 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
11622 echo "*** freetype-devel package (or its equivalent on your distribution) to"
11623 echo "*** enable Wine to use TrueType fonts."
11626 echo
11627 echo "Configure finished. Do 'make depend && make' to compile Wine."
11628 echo