Moved imports specification from the .spec into the Makefile so that
[wine/multimedia.git] / configure
blobd18b3c61cd295594279057c58eeb28fb03417789
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020411.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME='Wine'
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20020411'
258 PACKAGE_STRING='Wine 20020411'
259 PACKAGE_BUGREPORT=''
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures Wine 20020411 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
816 X features:
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
820 System types:
821 --build=BUILD configure for building on BUILD [guessed]
822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
823 --target=TARGET configure for building compilers for TARGET [HOST]
824 _ACEOF
827 if test -n "$ac_init_help"; then
828 case $ac_init_help in
829 short | recursive ) echo "Configuration of Wine 20020411:";;
830 esac
831 cat <<\_ACEOF
833 Optional Features:
834 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
835 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
836 --disable-debug compile out all debugging messages
837 --disable-trace compile out TRACE messages
838 --enable-opengl force usage of OpenGL even if the latter is
839 thread-safe via pthread
841 Optional Packages:
842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844 --without-curses do not use curses
845 --with-x use the X Window System
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
854 CPP C preprocessor
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
859 _ACEOF
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
864 ac_popdir=`pwd`
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
867 ac_builddir=.
869 if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874 ac_dir_suffix= ac_top_builddir=
877 case $srcdir in
878 .) # No --srcdir option. We are building in place.
879 ac_srcdir=.
880 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=.
882 else
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 fi ;;
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
888 *) # Relative path.
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899 cd $ac_dir
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_srcdir/configure.gnu; then
902 echo
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
905 echo
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
909 echo
910 $ac_configure --help
911 else
912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 cd $ac_popdir
915 done
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920 cat <<\_ACEOF
921 Wine configure 20020411
922 generated by GNU Autoconf 2.53
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929 exit 0
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
936 It was created by Wine $as_me 20020411, which was
937 generated by GNU Autoconf 2.53. Invocation command line was
939 $ $0 $@
941 _ACEOF
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965 _ASUNAME
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973 done
975 } >&5
977 cat >&5 <<_ACEOF
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
984 _ACEOF
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
994 case $ac_arg in
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n ) continue ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 continue ;;
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 esac
1003 case " $ac_configure_args " in
1004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1005 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 ac_sep=" " ;;
1007 esac
1008 # Get rid of the leading space.
1009 done
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log. We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
1019 echo
1020 cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 esac;
1041 echo
1042 if test -s confdefs.h; then
1043 cat <<\_ASBOX
1044 ## ----------- ##
1045 ## confdefs.h. ##
1046 ## ----------- ##
1047 _ASBOX
1048 echo
1049 sed "/^$/d" confdefs.h
1050 echo
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1055 } >&5
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1058 exit $exit_status
1060 for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062 done
1063 ac_signal=0
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068 echo >confdefs.h
1070 # Predefined preprocessor variables.
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1074 _ACEOF
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079 _ACEOF
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1084 _ACEOF
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1089 _ACEOF
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094 _ACEOF
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100 if test "x$prefix" != xNONE; then
1101 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102 else
1103 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1106 for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
1108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110 sed 's/^/| /' "$ac_site_file" >&5
1111 . "$ac_site_file"
1113 done
1115 if test -r "$cache_file"; then
1116 # Some versions of bash will fail to source /dev/null (special
1117 # files actually), so we avoid doing that.
1118 if test -f "$cache_file"; then
1119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1121 case $cache_file in
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1124 esac
1126 else
1127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1129 >$cache_file
1132 # Check that the precious variables saved in the cache have kept the same
1133 # value.
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138 eval ac_new_set=\$ac_env_${ac_var}_set
1139 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140 eval ac_new_val="\$ac_env_${ac_var}_value"
1141 case $ac_old_set,$ac_new_set in
1142 set,)
1143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1146 ,set)
1147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1150 ,);;
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
1153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1156 echo "$as_me: former value: $ac_old_val" >&2;}
1157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1158 echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1160 fi;;
1161 esac
1162 # Pass precious variables to config.status.
1163 if test "$ac_new_set" = set; then
1164 case $ac_new_val in
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
1168 esac
1169 case " $ac_configure_args " in
1170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1172 esac
1174 done
1175 if $ac_cache_corrupted; then
1176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
1183 ac_ext=c
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215 ac_config_headers="$ac_config_headers include/config.h"
1217 ac_aux_dir=
1218 for ac_dir in tools $srcdir/tools; do
1219 if test -f $ac_dir/install-sh; then
1220 ac_aux_dir=$ac_dir
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 break
1223 elif test -f $ac_dir/install.sh; then
1224 ac_aux_dir=$ac_dir
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 break
1227 elif test -f $ac_dir/shtool; then
1228 ac_aux_dir=$ac_dir
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 break
1232 done
1233 if test -z "$ac_aux_dir"; then
1234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236 { (exit 1); exit 1; }; }
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1244 LIBEXT=so # library type .so or .a
1246 # Check whether --enable-debug or --disable-debug was given.
1247 if test "${enable_debug+set}" = set; then
1248 enableval="$enable_debug"
1251 # Check whether --enable-trace or --disable-trace was given.
1252 if test "${enable_trace+set}" = set; then
1253 enableval="$enable_trace"
1256 # Check whether --enable-opengl or --disable-opengl was given.
1257 if test "${enable_opengl+set}" = set; then
1258 enableval="$enable_opengl"
1262 # Check whether --with-curses or --without-curses was given.
1263 if test "${with_curses+set}" = set; then
1264 withval="$with_curses"
1269 if test "x$enable_debug" = "xno"
1270 then
1272 cat >>confdefs.h <<\_ACEOF
1273 #define NO_DEBUG_MSGS 1
1274 _ACEOF
1277 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1278 then
1280 cat >>confdefs.h <<\_ACEOF
1281 #define NO_TRACE_MSGS 1
1282 _ACEOF
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291 { (exit 1); exit 1; }; }
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 else
1298 ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300 ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304 { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308 { (exit 1); exit 1; }; }
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1313 build=$ac_cv_build
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324 ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326 ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1335 host=$ac_cv_host
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking target system type" >&5
1342 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1343 if test "${ac_cv_target+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346 ac_cv_target_alias=$target_alias
1347 test "x$ac_cv_target_alias" = "x" &&
1348 ac_cv_target_alias=$ac_cv_host_alias
1349 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1356 echo "${ECHO_T}$ac_cv_target" >&6
1357 target=$ac_cv_target
1358 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363 # The aliases save the names the user supplied, while $host etc.
1364 # will get canonicalized.
1365 test -n "$target_alias" &&
1366 test "$program_prefix$program_suffix$program_transform_name" = \
1367 NONENONEs,x,x, &&
1368 program_prefix=${target_alias}-
1369 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1370 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1371 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1372 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375 cat >conftest.make <<\_ACEOF
1376 all:
1377 @echo 'ac_maketemp="${MAKE}"'
1378 _ACEOF
1379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1380 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1381 if test -n "$ac_maketemp"; then
1382 eval ac_cv_prog_make_${ac_make}_set=yes
1383 else
1384 eval ac_cv_prog_make_${ac_make}_set=no
1386 rm -f conftest.make
1388 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1389 echo "$as_me:$LINENO: result: yes" >&5
1390 echo "${ECHO_T}yes" >&6
1391 SET_MAKE=
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 SET_MAKE="MAKE=${MAKE-make}"
1398 ac_ext=c
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403 if test -n "$ac_tool_prefix"; then
1404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1425 done
1426 done
1430 CC=$ac_cv_prog_CC
1431 if test -n "$CC"; then
1432 echo "$as_me:$LINENO: result: $CC" >&5
1433 echo "${ECHO_T}$CC" >&6
1434 else
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1440 if test -z "$ac_cv_prog_CC"; then
1441 ac_ct_CC=$CC
1442 # Extract the first word of "gcc", so it can be a program name with args.
1443 set dummy gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_ac_ct_CC="gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1463 done
1464 done
1468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1469 if test -n "$ac_ct_CC"; then
1470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1471 echo "${ECHO_T}$ac_ct_CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1477 CC=$ac_ct_CC
1478 else
1479 CC="$ac_cv_prog_CC"
1482 if test -z "$CC"; then
1483 if test -n "$ac_tool_prefix"; then
1484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_CC="${ac_tool_prefix}cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1505 done
1506 done
1510 CC=$ac_cv_prog_CC
1511 if test -n "$CC"; then
1512 echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1514 else
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$ac_cv_prog_CC"; then
1521 ac_ct_CC=$CC
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$ac_ct_CC"; then
1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_ac_ct_CC="cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1557 CC=$ac_ct_CC
1558 else
1559 CC="$ac_cv_prog_CC"
1563 if test -z "$CC"; then
1564 # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 if test -n "$CC"; then
1572 ac_cv_prog_CC="$CC" # Let the user override the test.
1573 else
1574 ac_prog_rejected=no
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1583 ac_prog_rejected=yes
1584 continue
1586 ac_cv_prog_CC="cc"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1590 done
1591 done
1593 if test $ac_prog_rejected = yes; then
1594 # We found a bogon in the path, so make sure we never use it.
1595 set dummy $ac_cv_prog_CC
1596 shift
1597 if test $# != 0; then
1598 # We chose a different compiler from the bogus one.
1599 # However, it has the same basename, so the bogon will be chosen
1600 # first if we set CC to just the basename; use the full file name.
1601 shift
1602 set dummy "$as_dir/$ac_word" ${1+"$@"}
1603 shift
1604 ac_cv_prog_CC="$@"
1609 CC=$ac_cv_prog_CC
1610 if test -n "$CC"; then
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1613 else
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1619 if test -z "$CC"; then
1620 if test -n "$ac_tool_prefix"; then
1621 for ac_prog in cl
1623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 break 2
1644 done
1645 done
1649 CC=$ac_cv_prog_CC
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1653 else
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1658 test -n "$CC" && break
1659 done
1661 if test -z "$CC"; then
1662 ac_ct_CC=$CC
1663 for ac_prog in cl
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1686 done
1687 done
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1695 else
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1700 test -n "$ac_ct_CC" && break
1701 done
1703 CC=$ac_ct_CC
1709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1711 { (exit 1); exit 1; }; }
1713 # Provide some information about the compiler.
1714 echo "$as_me:$LINENO:" \
1715 "checking for C compiler version" >&5
1716 ac_compiler=`set X $ac_compile; echo $2`
1717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1718 (eval $ac_compiler --version </dev/null >&5) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }
1722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1723 (eval $ac_compiler -v </dev/null >&5) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }
1727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1728 (eval $ac_compiler -V </dev/null >&5) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }
1733 cat >conftest.$ac_ext <<_ACEOF
1734 #line $LINENO "configure"
1735 #include "confdefs.h"
1737 #ifdef F77_DUMMY_MAIN
1738 # ifdef __cplusplus
1739 extern "C"
1740 # endif
1741 int F77_DUMMY_MAIN() { return 1; }
1742 #endif
1744 main ()
1748 return 0;
1750 _ACEOF
1751 ac_clean_files_save=$ac_clean_files
1752 ac_clean_files="$ac_clean_files a.out a.exe"
1753 # Try to create an executable without -o first, disregard a.out.
1754 # It will help us diagnose broken compilers, and finding out an intuition
1755 # of exeext.
1756 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1757 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1758 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1760 (eval $ac_link_default) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # Find the output, starting from the most likely. This scheme is
1765 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1766 # resort.
1768 # Be careful to initialize this variable, since it used to be cached.
1769 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1770 ac_cv_exeext=
1771 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1772 ls a.out conftest 2>/dev/null;
1773 ls a.* conftest.* 2>/dev/null`; do
1774 case $ac_file in
1775 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1776 a.out ) # We found the default executable, but exeext='' is most
1777 # certainly right.
1778 break;;
1779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1780 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785 done
1786 else
1787 echo "$as_me: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1790 echo "$as_me: error: C compiler cannot create executables" >&2;}
1791 { (exit 77); exit 77; }; }
1794 ac_exeext=$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_file" >&5
1796 echo "${ECHO_T}$ac_file" >&6
1798 # Check the compiler produces executables we can run. If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1801 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1802 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1803 # If not cross compiling, check that we can run a simple program.
1804 if test "$cross_compiling" != yes; then
1805 if { ac_try='./$ac_file'
1806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1807 (eval $ac_try) 2>&5
1808 ac_status=$?
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1811 cross_compiling=no
1812 else
1813 if test "$cross_compiling" = maybe; then
1814 cross_compiling=yes
1815 else
1816 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1817 If you meant to cross compile, use \`--host'." >&5
1818 echo "$as_me: error: cannot run C compiled programs.
1819 If you meant to cross compile, use \`--host'." >&2;}
1820 { (exit 1); exit 1; }; }
1824 echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1827 rm -f a.out a.exe conftest$ac_cv_exeext
1828 ac_clean_files=$ac_clean_files_save
1829 # Check the compiler produces executables we can run. If not, either
1830 # the compiler is broken, or we cross compile.
1831 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1832 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1833 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1834 echo "${ECHO_T}$cross_compiling" >&6
1836 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1837 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1839 (eval $ac_link) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1844 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1845 # work properly (i.e., refer to `conftest.exe'), while it won't with
1846 # `rm'.
1847 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1848 case $ac_file in
1849 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 export ac_cv_exeext
1852 break;;
1853 * ) break;;
1854 esac
1855 done
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1859 { (exit 1); exit 1; }; }
1862 rm -f conftest$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864 echo "${ECHO_T}$ac_cv_exeext" >&6
1866 rm -f conftest.$ac_ext
1867 EXEEXT=$ac_cv_exeext
1868 ac_exeext=$EXEEXT
1869 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871 if test "${ac_cv_objext+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 cat >conftest.$ac_ext <<_ACEOF
1875 #line $LINENO "configure"
1876 #include "confdefs.h"
1878 #ifdef F77_DUMMY_MAIN
1879 # ifdef __cplusplus
1880 extern "C"
1881 # endif
1882 int F77_DUMMY_MAIN() { return 1; }
1883 #endif
1885 main ()
1889 return 0;
1891 _ACEOF
1892 rm -f conftest.o conftest.obj
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1909 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1910 { (exit 1); exit 1; }; }
1913 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1915 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916 echo "${ECHO_T}$ac_cv_objext" >&6
1917 OBJEXT=$ac_cv_objext
1918 ac_objext=$OBJEXT
1919 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 cat >conftest.$ac_ext <<_ACEOF
1925 #line $LINENO "configure"
1926 #include "confdefs.h"
1928 #ifdef F77_DUMMY_MAIN
1929 # ifdef __cplusplus
1930 extern "C"
1931 # endif
1932 int F77_DUMMY_MAIN() { return 1; }
1933 #endif
1935 main ()
1937 #ifndef __GNUC__
1938 choke me
1939 #endif
1942 return 0;
1944 _ACEOF
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_compiler_gnu=yes
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 ac_compiler_gnu=no
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1967 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1968 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1969 GCC=`test $ac_compiler_gnu = yes && echo yes`
1970 ac_test_CFLAGS=${CFLAGS+set}
1971 ac_save_CFLAGS=$CFLAGS
1972 CFLAGS="-g"
1973 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1975 if test "${ac_cv_prog_cc_g+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1982 #ifdef F77_DUMMY_MAIN
1983 # ifdef __cplusplus
1984 extern "C"
1985 # endif
1986 int F77_DUMMY_MAIN() { return 1; }
1987 #endif
1989 main ()
1993 return 0;
1995 _ACEOF
1996 rm -f conftest.$ac_objext
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 ac_cv_prog_cc_g=yes
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 ac_cv_prog_cc_g=no
2014 rm -f conftest.$ac_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2018 if test "$ac_test_CFLAGS" = set; then
2019 CFLAGS=$ac_save_CFLAGS
2020 elif test $ac_cv_prog_cc_g = yes; then
2021 if test "$GCC" = yes; then
2022 CFLAGS="-g -O2"
2023 else
2024 CFLAGS="-g"
2026 else
2027 if test "$GCC" = yes; then
2028 CFLAGS="-O2"
2029 else
2030 CFLAGS=
2033 # Some people use a C++ compiler to compile C. Since we use `exit',
2034 # in C++ we need to declare it. In case someone uses the same compiler
2035 # for both compiling C and C++ we need to have the C++ compiler decide
2036 # the declaration of exit, since it's the most demanding environment.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #ifndef __cplusplus
2039 choke me
2040 #endif
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2054 for ac_declaration in \
2056 '#include <stdlib.h>' \
2057 'extern "C" void std::exit (int) throw (); using std::exit;' \
2058 'extern "C" void std::exit (int); using std::exit;' \
2059 'extern "C" void exit (int) throw ();' \
2060 'extern "C" void exit (int);' \
2061 'void exit (int);'
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 #include "confdefs.h"
2066 #include <stdlib.h>
2067 $ac_declaration
2068 #ifdef F77_DUMMY_MAIN
2069 # ifdef __cplusplus
2070 extern "C"
2071 # endif
2072 int F77_DUMMY_MAIN() { return 1; }
2073 #endif
2075 main ()
2077 exit (42);
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2095 else
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 continue
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line $LINENO "configure"
2103 #include "confdefs.h"
2104 $ac_declaration
2105 #ifdef F77_DUMMY_MAIN
2106 # ifdef __cplusplus
2107 extern "C"
2108 # endif
2109 int F77_DUMMY_MAIN() { return 1; }
2110 #endif
2112 main ()
2114 exit (42);
2116 return 0;
2118 _ACEOF
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 break
2132 else
2133 echo "$as_me: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 rm -f conftest.$ac_objext conftest.$ac_ext
2137 done
2138 rm -f conftest*
2139 if test -n "$ac_declaration"; then
2140 echo '#ifdef __cplusplus' >>confdefs.h
2141 echo $ac_declaration >>confdefs.h
2142 echo '#endif' >>confdefs.h
2145 else
2146 echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2150 ac_ext=c
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2162 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2163 # On Suns, sometimes $CPP names a directory.
2164 if test -n "$CPP" && test -d "$CPP"; then
2165 CPP=
2167 if test -z "$CPP"; then
2168 if test "${ac_cv_prog_CPP+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 # Double quotes because CPP needs to be expanded
2172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2174 ac_preproc_ok=false
2175 for ac_c_preproc_warn_flag in '' yes
2177 # Use a header file that comes with gcc, so configuring glibc
2178 # with a fresh cross-compiler works.
2179 # On the NeXT, cc -E runs the code through the compiler's parser,
2180 # not just through cpp. "Syntax error" is here to catch this case.
2181 cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2183 #include "confdefs.h"
2184 #include <assert.h>
2185 Syntax error
2186 _ACEOF
2187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2189 ac_status=$?
2190 egrep -v '^ *\+' conftest.er1 >conftest.err
2191 rm -f conftest.er1
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } >/dev/null; then
2195 if test -s conftest.err; then
2196 ac_cpp_err=$ac_c_preproc_warn_flag
2197 else
2198 ac_cpp_err=
2200 else
2201 ac_cpp_err=yes
2203 if test -z "$ac_cpp_err"; then
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 # Broken: fails on valid input.
2209 continue
2211 rm -f conftest.err conftest.$ac_ext
2213 # OK, works on sane cases. Now check whether non-existent headers
2214 # can be detected and how.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #line $LINENO "configure"
2217 #include "confdefs.h"
2218 #include <ac_nonexistent.h>
2219 _ACEOF
2220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2222 ac_status=$?
2223 egrep -v '^ *\+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } >/dev/null; then
2228 if test -s conftest.err; then
2229 ac_cpp_err=$ac_c_preproc_warn_flag
2230 else
2231 ac_cpp_err=
2233 else
2234 ac_cpp_err=yes
2236 if test -z "$ac_cpp_err"; then
2237 # Broken: success on invalid input.
2238 continue
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 # Passes both tests.
2243 ac_preproc_ok=:
2244 break
2246 rm -f conftest.err conftest.$ac_ext
2248 done
2249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2250 rm -f conftest.err conftest.$ac_ext
2251 if $ac_preproc_ok; then
2252 break
2255 done
2256 ac_cv_prog_CPP=$CPP
2259 CPP=$ac_cv_prog_CPP
2260 else
2261 ac_cv_prog_CPP=$CPP
2263 echo "$as_me:$LINENO: result: $CPP" >&5
2264 echo "${ECHO_T}$CPP" >&6
2265 ac_preproc_ok=false
2266 for ac_c_preproc_warn_flag in '' yes
2268 # Use a header file that comes with gcc, so configuring glibc
2269 # with a fresh cross-compiler works.
2270 # On the NeXT, cc -E runs the code through the compiler's parser,
2271 # not just through cpp. "Syntax error" is here to catch this case.
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2274 #include "confdefs.h"
2275 #include <assert.h>
2276 Syntax error
2277 _ACEOF
2278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2280 ac_status=$?
2281 egrep -v '^ *\+' conftest.er1 >conftest.err
2282 rm -f conftest.er1
2283 cat conftest.err >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } >/dev/null; then
2286 if test -s conftest.err; then
2287 ac_cpp_err=$ac_c_preproc_warn_flag
2288 else
2289 ac_cpp_err=
2291 else
2292 ac_cpp_err=yes
2294 if test -z "$ac_cpp_err"; then
2296 else
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 # Broken: fails on valid input.
2300 continue
2302 rm -f conftest.err conftest.$ac_ext
2304 # OK, works on sane cases. Now check whether non-existent headers
2305 # can be detected and how.
2306 cat >conftest.$ac_ext <<_ACEOF
2307 #line $LINENO "configure"
2308 #include "confdefs.h"
2309 #include <ac_nonexistent.h>
2310 _ACEOF
2311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313 ac_status=$?
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2321 else
2322 ac_cpp_err=
2324 else
2325 ac_cpp_err=yes
2327 if test -z "$ac_cpp_err"; then
2328 # Broken: success on invalid input.
2329 continue
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 # Passes both tests.
2334 ac_preproc_ok=:
2335 break
2337 rm -f conftest.err conftest.$ac_ext
2339 done
2340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2341 rm -f conftest.err conftest.$ac_ext
2342 if $ac_preproc_ok; then
2344 else
2345 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2347 { (exit 1); exit 1; }; }
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for X" >&5
2359 echo $ECHO_N "checking for X... $ECHO_C" >&6
2362 # Check whether --with-x or --without-x was given.
2363 if test "${with_x+set}" = set; then
2364 withval="$with_x"
2367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2368 if test "x$with_x" = xno; then
2369 # The user explicitly disabled X.
2370 have_x=disabled
2371 else
2372 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2373 # Both variables are already set.
2374 have_x=yes
2375 else
2376 if test "${ac_cv_have_x+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 # One or both of the vars are not set, and there is no cached value.
2380 ac_x_includes=no ac_x_libraries=no
2381 rm -fr conftest.dir
2382 if mkdir conftest.dir; then
2383 cd conftest.dir
2384 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2385 cat >Imakefile <<'_ACEOF'
2386 acfindx:
2387 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2388 _ACEOF
2389 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2392 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2393 for ac_extension in a so sl; do
2394 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2395 test -f $ac_im_libdir/libX11.$ac_extension; then
2396 ac_im_usrlibdir=$ac_im_libdir; break
2398 done
2399 # Screen out bogus values from the imake configuration. They are
2400 # bogus both because they are the default anyway, and because
2401 # using them would break gcc on systems where it needs fixed includes.
2402 case $ac_im_incroot in
2403 /usr/include) ;;
2404 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2405 esac
2406 case $ac_im_usrlibdir in
2407 /usr/lib | /lib) ;;
2408 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2409 esac
2411 cd ..
2412 rm -fr conftest.dir
2415 # Standard set of common directories for X headers.
2416 # Check X11 before X11Rn because it is often a symlink to the current release.
2417 ac_x_header_dirs='
2418 /usr/X11/include
2419 /usr/X11R6/include
2420 /usr/X11R5/include
2421 /usr/X11R4/include
2423 /usr/include/X11
2424 /usr/include/X11R6
2425 /usr/include/X11R5
2426 /usr/include/X11R4
2428 /usr/local/X11/include
2429 /usr/local/X11R6/include
2430 /usr/local/X11R5/include
2431 /usr/local/X11R4/include
2433 /usr/local/include/X11
2434 /usr/local/include/X11R6
2435 /usr/local/include/X11R5
2436 /usr/local/include/X11R4
2438 /usr/X386/include
2439 /usr/x386/include
2440 /usr/XFree86/include/X11
2442 /usr/include
2443 /usr/local/include
2444 /usr/unsupported/include
2445 /usr/athena/include
2446 /usr/local/x11r5/include
2447 /usr/lpp/Xamples/include
2449 /usr/openwin/include
2450 /usr/openwin/share/include'
2452 if test "$ac_x_includes" = no; then
2453 # Guess where to find include files, by looking for Intrinsic.h.
2454 # First, try using that file with no special directory specified.
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 #include "confdefs.h"
2458 #include <X11/Intrinsic.h>
2459 _ACEOF
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 ac_status=$?
2463 egrep -v '^ *\+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev/null; then
2468 if test -s conftest.err; then
2469 ac_cpp_err=$ac_c_preproc_warn_flag
2470 else
2471 ac_cpp_err=
2473 else
2474 ac_cpp_err=yes
2476 if test -z "$ac_cpp_err"; then
2477 # We can compile using X headers with no special include directory.
2478 ac_x_includes=
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2482 for ac_dir in $ac_x_header_dirs; do
2483 if test -r "$ac_dir/X11/Intrinsic.h"; then
2484 ac_x_includes=$ac_dir
2485 break
2487 done
2489 rm -f conftest.err conftest.$ac_ext
2490 fi # $ac_x_includes = no
2492 if test "$ac_x_libraries" = no; then
2493 # Check for the libraries.
2494 # See if we find them without any special options.
2495 # Don't add to $LIBS permanently.
2496 ac_save_LIBS=$LIBS
2497 LIBS="-lXt $LIBS"
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2501 #include <X11/Intrinsic.h>
2502 #ifdef F77_DUMMY_MAIN
2503 # ifdef __cplusplus
2504 extern "C"
2505 # endif
2506 int F77_DUMMY_MAIN() { return 1; }
2507 #endif
2509 main ()
2511 XtMalloc (0)
2513 return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest$ac_exeext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 LIBS=$ac_save_LIBS
2529 # We can link X programs with no special library path.
2530 ac_x_libraries=
2531 else
2532 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 LIBS=$ac_save_LIBS
2535 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2537 # Don't even attempt the hair of trying to link an X program!
2538 for ac_extension in a so sl; do
2539 if test -r $ac_dir/libXt.$ac_extension; then
2540 ac_x_libraries=$ac_dir
2541 break 2
2543 done
2544 done
2546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2547 fi # $ac_x_libraries = no
2549 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2550 # Didn't find X anywhere. Cache the known absence of X.
2551 ac_cv_have_x="have_x=no"
2552 else
2553 # Record where we found X for the cache.
2554 ac_cv_have_x="have_x=yes \
2555 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2560 eval "$ac_cv_have_x"
2561 fi # $with_x != no
2563 if test "$have_x" != yes; then
2564 echo "$as_me:$LINENO: result: $have_x" >&5
2565 echo "${ECHO_T}$have_x" >&6
2566 no_x=yes
2567 else
2568 # If each of the values was on the command line, it overrides each guess.
2569 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2570 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2571 # Update the cache value to reflect the command line values.
2572 ac_cv_have_x="have_x=yes \
2573 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2574 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2575 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2578 if test "$no_x" = yes; then
2579 # Not all programs may use this symbol, but it does not hurt to define it.
2581 cat >>confdefs.h <<\_ACEOF
2582 #define X_DISPLAY_MISSING 1
2583 _ACEOF
2585 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2586 else
2587 if test -n "$x_includes"; then
2588 X_CFLAGS="$X_CFLAGS -I$x_includes"
2591 # It would also be nice to do this for all -L options, not just this one.
2592 if test -n "$x_libraries"; then
2593 X_LIBS="$X_LIBS -L$x_libraries"
2594 # For Solaris; some versions of Sun CC require a space after -R and
2595 # others require no space. Words are not sufficient . . . .
2596 case `(uname -sr) 2>/dev/null` in
2597 "SunOS 5"*)
2598 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2599 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2600 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line $LINENO "configure"
2603 #include "confdefs.h"
2605 #ifdef F77_DUMMY_MAIN
2606 # ifdef __cplusplus
2607 extern "C"
2608 # endif
2609 int F77_DUMMY_MAIN() { return 1; }
2610 #endif
2612 main ()
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621 (eval $ac_link) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest$ac_exeext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_R_nospace=yes
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 ac_R_nospace=no
2637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2638 if test $ac_R_nospace = yes; then
2639 echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6
2641 X_LIBS="$X_LIBS -R$x_libraries"
2642 else
2643 LIBS="$ac_xsave_LIBS -R $x_libraries"
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 #include "confdefs.h"
2648 #ifdef F77_DUMMY_MAIN
2649 # ifdef __cplusplus
2650 extern "C"
2651 # endif
2652 int F77_DUMMY_MAIN() { return 1; }
2653 #endif
2655 main ()
2659 return 0;
2661 _ACEOF
2662 rm -f conftest.$ac_objext conftest$ac_exeext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2664 (eval $ac_link) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -s conftest$ac_exeext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_R_space=yes
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 ac_R_space=no
2680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2681 if test $ac_R_space = yes; then
2682 echo "$as_me:$LINENO: result: yes" >&5
2683 echo "${ECHO_T}yes" >&6
2684 X_LIBS="$X_LIBS -R $x_libraries"
2685 else
2686 echo "$as_me:$LINENO: result: neither works" >&5
2687 echo "${ECHO_T}neither works" >&6
2690 LIBS=$ac_xsave_LIBS
2691 esac
2694 # Check for system-dependent libraries X programs must link with.
2695 # Do this before checking for the system-independent R6 libraries
2696 # (-lICE), since we may need -lsocket or whatever for X linking.
2698 if test "$ISC" = yes; then
2699 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2700 else
2701 # Martyn Johnson says this is needed for Ultrix, if the X
2702 # libraries were built with DECnet support. And Karl Berry says
2703 # the Alpha needs dnet_stub (dnet does not exist).
2704 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 #include "confdefs.h"
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2715 char XOpenDisplay ();
2716 #ifdef F77_DUMMY_MAIN
2717 # ifdef __cplusplus
2718 extern "C"
2719 # endif
2720 int F77_DUMMY_MAIN() { return 1; }
2721 #endif
2723 main ()
2725 XOpenDisplay ();
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext conftest$ac_exeext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732 (eval $ac_link) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -s conftest$ac_exeext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2743 else
2744 echo "$as_me: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2747 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2748 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751 ac_check_lib_save_LIBS=$LIBS
2752 LIBS="-ldnet $LIBS"
2753 cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2757 /* Override any gcc2 internal prototype to avoid an error. */
2758 #ifdef __cplusplus
2759 extern "C"
2760 #endif
2761 /* We use char because int might match the return type of a gcc2
2762 builtin and then its argument prototype would still apply. */
2763 char dnet_ntoa ();
2764 #ifdef F77_DUMMY_MAIN
2765 # ifdef __cplusplus
2766 extern "C"
2767 # endif
2768 int F77_DUMMY_MAIN() { return 1; }
2769 #endif
2771 main ()
2773 dnet_ntoa ();
2775 return 0;
2777 _ACEOF
2778 rm -f conftest.$ac_objext conftest$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -s conftest$ac_exeext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 ac_cv_lib_dnet_dnet_ntoa=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 ac_cv_lib_dnet_dnet_ntoa=no
2796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2797 LIBS=$ac_check_lib_save_LIBS
2799 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2800 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2801 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2806 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2807 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2808 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 ac_check_lib_save_LIBS=$LIBS
2812 LIBS="-ldnet_stub $LIBS"
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2815 #include "confdefs.h"
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 #ifdef __cplusplus
2819 extern "C"
2820 #endif
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2823 char dnet_ntoa ();
2824 #ifdef F77_DUMMY_MAIN
2825 # ifdef __cplusplus
2826 extern "C"
2827 # endif
2828 int F77_DUMMY_MAIN() { return 1; }
2829 #endif
2831 main ()
2833 dnet_ntoa ();
2835 return 0;
2837 _ACEOF
2838 rm -f conftest.$ac_objext conftest$ac_exeext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2840 (eval $ac_link) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -s conftest$ac_exeext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 ac_cv_lib_dnet_stub_dnet_ntoa=no
2856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2857 LIBS=$ac_check_lib_save_LIBS
2859 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2860 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2861 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2868 LIBS="$ac_xsave_LIBS"
2870 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2871 # to get the SysV transport functions.
2872 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2873 # needs -lnsl.
2874 # The nsl library prevents programs from opening the X display
2875 # on Irix 5.2, according to T.E. Dickey.
2876 # The functions gethostbyname, getservbyname, and inet_addr are
2877 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2878 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2879 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2880 if test "${ac_cv_func_gethostbyname+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 cat >conftest.$ac_ext <<_ACEOF
2884 #line $LINENO "configure"
2885 #include "confdefs.h"
2886 /* System header to define __stub macros and hopefully few prototypes,
2887 which can conflict with char gethostbyname (); below. */
2888 #include <assert.h>
2889 /* Override any gcc2 internal prototype to avoid an error. */
2890 #ifdef __cplusplus
2891 extern "C"
2892 #endif
2893 /* We use char because int might match the return type of a gcc2
2894 builtin and then its argument prototype would still apply. */
2895 char gethostbyname ();
2896 char (*f) ();
2898 #ifdef F77_DUMMY_MAIN
2899 # ifdef __cplusplus
2900 extern "C"
2901 # endif
2902 int F77_DUMMY_MAIN() { return 1; }
2903 #endif
2905 main ()
2907 /* The GNU C library defines this for functions which it implements
2908 to always fail with ENOSYS. Some functions are actually named
2909 something starting with __ and the normal name is an alias. */
2910 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2911 choke me
2912 #else
2913 f = gethostbyname;
2914 #endif
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest$ac_exeext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_func_gethostbyname=yes
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 ac_cv_func_gethostbyname=no
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2940 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2941 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2943 if test $ac_cv_func_gethostbyname = no; then
2944 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2946 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lnsl $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 #ifdef __cplusplus
2957 extern "C"
2958 #endif
2959 /* We use char because int might match the return type of a gcc2
2960 builtin and then its argument prototype would still apply. */
2961 char gethostbyname ();
2962 #ifdef F77_DUMMY_MAIN
2963 # ifdef __cplusplus
2964 extern "C"
2965 # endif
2966 int F77_DUMMY_MAIN() { return 1; }
2967 #endif
2969 main ()
2971 gethostbyname ();
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest$ac_exeext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_cv_lib_nsl_gethostbyname=yes
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ac_cv_lib_nsl_gethostbyname=no
2994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2995 LIBS=$ac_check_lib_save_LIBS
2997 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2998 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2999 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3003 if test $ac_cv_lib_nsl_gethostbyname = no; then
3004 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3005 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3006 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 ac_check_lib_save_LIBS=$LIBS
3010 LIBS="-lbsd $LIBS"
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 #ifdef __cplusplus
3017 extern "C"
3018 #endif
3019 /* We use char because int might match the return type of a gcc2
3020 builtin and then its argument prototype would still apply. */
3021 char gethostbyname ();
3022 #ifdef F77_DUMMY_MAIN
3023 # ifdef __cplusplus
3024 extern "C"
3025 # endif
3026 int F77_DUMMY_MAIN() { return 1; }
3027 #endif
3029 main ()
3031 gethostbyname ();
3033 return 0;
3035 _ACEOF
3036 rm -f conftest.$ac_objext conftest$ac_exeext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -s conftest$ac_exeext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_lib_bsd_gethostbyname=yes
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 ac_cv_lib_bsd_gethostbyname=no
3054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3055 LIBS=$ac_check_lib_save_LIBS
3057 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3058 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3059 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3066 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3067 # socket/setsockopt and other routines are undefined under SCO ODT
3068 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3069 # on later versions), says Simon Leinen: it contains gethostby*
3070 # variants that don't use the nameserver (or something). -lsocket
3071 # must be given before -lnsl if both are needed. We assume that
3072 # if connect needs -lnsl, so does gethostbyname.
3073 echo "$as_me:$LINENO: checking for connect" >&5
3074 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3075 if test "${ac_cv_func_connect+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 #include "confdefs.h"
3081 /* System header to define __stub macros and hopefully few prototypes,
3082 which can conflict with char connect (); below. */
3083 #include <assert.h>
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 #ifdef __cplusplus
3086 extern "C"
3087 #endif
3088 /* We use char because int might match the return type of a gcc2
3089 builtin and then its argument prototype would still apply. */
3090 char connect ();
3091 char (*f) ();
3093 #ifdef F77_DUMMY_MAIN
3094 # ifdef __cplusplus
3095 extern "C"
3096 # endif
3097 int F77_DUMMY_MAIN() { return 1; }
3098 #endif
3100 main ()
3102 /* The GNU C library defines this for functions which it implements
3103 to always fail with ENOSYS. Some functions are actually named
3104 something starting with __ and the normal name is an alias. */
3105 #if defined (__stub_connect) || defined (__stub___connect)
3106 choke me
3107 #else
3108 f = connect;
3109 #endif
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.$ac_objext conftest$ac_exeext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117 (eval $ac_link) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -s conftest$ac_exeext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 ac_cv_func_connect=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 ac_cv_func_connect=no
3133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3136 echo "${ECHO_T}$ac_cv_func_connect" >&6
3138 if test $ac_cv_func_connect = no; then
3139 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3140 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3141 if test "${ac_cv_lib_socket_connect+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 ac_check_lib_save_LIBS=$LIBS
3145 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 #ifdef __cplusplus
3152 extern "C"
3153 #endif
3154 /* We use char because int might match the return type of a gcc2
3155 builtin and then its argument prototype would still apply. */
3156 char connect ();
3157 #ifdef F77_DUMMY_MAIN
3158 # ifdef __cplusplus
3159 extern "C"
3160 # endif
3161 int F77_DUMMY_MAIN() { return 1; }
3162 #endif
3164 main ()
3166 connect ();
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.$ac_objext conftest$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_lib_socket_connect=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3187 ac_cv_lib_socket_connect=no
3189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3190 LIBS=$ac_check_lib_save_LIBS
3192 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3193 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3194 if test $ac_cv_lib_socket_connect = yes; then
3195 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3200 # Guillermo Gomez says -lposix is necessary on A/UX.
3201 echo "$as_me:$LINENO: checking for remove" >&5
3202 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3203 if test "${ac_cv_func_remove+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 #include "confdefs.h"
3209 /* System header to define __stub macros and hopefully few prototypes,
3210 which can conflict with char remove (); below. */
3211 #include <assert.h>
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char remove ();
3219 char (*f) ();
3221 #ifdef F77_DUMMY_MAIN
3222 # ifdef __cplusplus
3223 extern "C"
3224 # endif
3225 int F77_DUMMY_MAIN() { return 1; }
3226 #endif
3228 main ()
3230 /* The GNU C library defines this for functions which it implements
3231 to always fail with ENOSYS. Some functions are actually named
3232 something starting with __ and the normal name is an alias. */
3233 #if defined (__stub_remove) || defined (__stub___remove)
3234 choke me
3235 #else
3236 f = remove;
3237 #endif
3240 return 0;
3242 _ACEOF
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245 (eval $ac_link) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_func_remove=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 ac_cv_func_remove=no
3261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3264 echo "${ECHO_T}$ac_cv_func_remove" >&6
3266 if test $ac_cv_func_remove = no; then
3267 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3268 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3269 if test "${ac_cv_lib_posix_remove+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 ac_check_lib_save_LIBS=$LIBS
3273 LIBS="-lposix $LIBS"
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "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 remove ();
3285 #ifdef F77_DUMMY_MAIN
3286 # ifdef __cplusplus
3287 extern "C"
3288 # endif
3289 int F77_DUMMY_MAIN() { return 1; }
3290 #endif
3292 main ()
3294 remove ();
3296 return 0;
3298 _ACEOF
3299 rm -f conftest.$ac_objext conftest$ac_exeext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301 (eval $ac_link) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -s conftest$ac_exeext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_lib_posix_remove=yes
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 ac_cv_lib_posix_remove=no
3317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3318 LIBS=$ac_check_lib_save_LIBS
3320 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3321 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3322 if test $ac_cv_lib_posix_remove = yes; then
3323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3328 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3329 echo "$as_me:$LINENO: checking for shmat" >&5
3330 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3331 if test "${ac_cv_func_shmat+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338 which can conflict with char shmat (); below. */
3339 #include <assert.h>
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 #ifdef __cplusplus
3342 extern "C"
3343 #endif
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3346 char shmat ();
3347 char (*f) ();
3349 #ifdef F77_DUMMY_MAIN
3350 # ifdef __cplusplus
3351 extern "C"
3352 # endif
3353 int F77_DUMMY_MAIN() { return 1; }
3354 #endif
3356 main ()
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_shmat) || defined (__stub___shmat)
3362 choke me
3363 #else
3364 f = shmat;
3365 #endif
3368 return 0;
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_func_shmat=yes
3384 else
3385 echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 ac_cv_func_shmat=no
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3391 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3392 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3394 if test $ac_cv_func_shmat = no; then
3395 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3396 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3397 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 ac_check_lib_save_LIBS=$LIBS
3401 LIBS="-lipc $LIBS"
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char shmat ();
3413 #ifdef F77_DUMMY_MAIN
3414 # ifdef __cplusplus
3415 extern "C"
3416 # endif
3417 int F77_DUMMY_MAIN() { return 1; }
3418 #endif
3420 main ()
3422 shmat ();
3424 return 0;
3426 _ACEOF
3427 rm -f conftest.$ac_objext conftest$ac_exeext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429 (eval $ac_link) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -s conftest$ac_exeext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_lib_ipc_shmat=yes
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 ac_cv_lib_ipc_shmat=no
3445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3446 LIBS=$ac_check_lib_save_LIBS
3448 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3449 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3450 if test $ac_cv_lib_ipc_shmat = yes; then
3451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3457 # Check for libraries that X11R6 Xt/Xaw programs need.
3458 ac_save_LDFLAGS=$LDFLAGS
3459 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3460 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3461 # check for ICE first), but we must link in the order -lSM -lICE or
3462 # we get undefined symbols. So assume we have SM if we have ICE.
3463 # These have to be linked with before -lX11, unlike the other
3464 # libraries we check for below, so use a different variable.
3465 # John Interrante, Karl Berry
3466 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3467 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3468 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 ac_check_lib_save_LIBS=$LIBS
3472 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 #ifdef __cplusplus
3479 extern "C"
3480 #endif
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3483 char IceConnectionNumber ();
3484 #ifdef F77_DUMMY_MAIN
3485 # ifdef __cplusplus
3486 extern "C"
3487 # endif
3488 int F77_DUMMY_MAIN() { return 1; }
3489 #endif
3491 main ()
3493 IceConnectionNumber ();
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext conftest$ac_exeext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3500 (eval $ac_link) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -s conftest$ac_exeext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 ac_cv_lib_ICE_IceConnectionNumber=yes
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 ac_cv_lib_ICE_IceConnectionNumber=no
3516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3517 LIBS=$ac_check_lib_save_LIBS
3519 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3525 LDFLAGS=$ac_save_LDFLAGS
3529 for ac_prog in 'bison -y' byacc
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_YACC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$YACC"; then
3539 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_YACC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3557 YACC=$ac_cv_prog_YACC
3558 if test -n "$YACC"; then
3559 echo "$as_me:$LINENO: result: $YACC" >&5
3560 echo "${ECHO_T}$YACC" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3566 test -n "$YACC" && break
3567 done
3568 test -n "$YACC" || YACC="yacc"
3570 for ac_prog in flex lex
3572 # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 if test "${ac_cv_prog_LEX+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 if test -n "$LEX"; then
3580 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_LEX="$ac_prog"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3593 done
3594 done
3598 LEX=$ac_cv_prog_LEX
3599 if test -n "$LEX"; then
3600 echo "$as_me:$LINENO: result: $LEX" >&5
3601 echo "${ECHO_T}$LEX" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3607 test -n "$LEX" && break
3608 done
3609 test -n "$LEX" || LEX=":"
3611 if test -z "$LEXLIB"
3612 then
3613 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3614 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3615 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 ac_check_lib_save_LIBS=$LIBS
3619 LIBS="-lfl $LIBS"
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 #include "confdefs.h"
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 #ifdef __cplusplus
3626 extern "C"
3627 #endif
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char yywrap ();
3631 #ifdef F77_DUMMY_MAIN
3632 # ifdef __cplusplus
3633 extern "C"
3634 # endif
3635 int F77_DUMMY_MAIN() { return 1; }
3636 #endif
3638 main ()
3640 yywrap ();
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest$ac_exeext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_lib_fl_yywrap=yes
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 ac_cv_lib_fl_yywrap=no
3663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3666 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3667 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3668 if test $ac_cv_lib_fl_yywrap = yes; then
3669 LEXLIB="-lfl"
3670 else
3671 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3672 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3673 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 ac_check_lib_save_LIBS=$LIBS
3677 LIBS="-ll $LIBS"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line $LINENO "configure"
3680 #include "confdefs.h"
3682 /* Override any gcc2 internal prototype to avoid an error. */
3683 #ifdef __cplusplus
3684 extern "C"
3685 #endif
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3688 char yywrap ();
3689 #ifdef F77_DUMMY_MAIN
3690 # ifdef __cplusplus
3691 extern "C"
3692 # endif
3693 int F77_DUMMY_MAIN() { return 1; }
3694 #endif
3696 main ()
3698 yywrap ();
3700 return 0;
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_lib_l_yywrap=yes
3716 else
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 ac_cv_lib_l_yywrap=no
3721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722 LIBS=$ac_check_lib_save_LIBS
3724 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3725 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3726 if test $ac_cv_lib_l_yywrap = yes; then
3727 LEXLIB="-ll"
3734 if test "x$LEX" != "x:"; then
3735 echo "$as_me:$LINENO: checking lex output file root" >&5
3736 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3737 if test "${ac_cv_prog_lex_root+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 # The minimal lex program is just a single line: %%. But some broken lexes
3741 # (Solaris, I think it was) want two %% lines, so accommodate them.
3742 cat >conftest.l <<_ACEOF
3745 _ACEOF
3746 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3747 (eval $LEX conftest.l) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }
3751 if test -f lex.yy.c; then
3752 ac_cv_prog_lex_root=lex.yy
3753 elif test -f lexyy.c; then
3754 ac_cv_prog_lex_root=lexyy
3755 else
3756 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3757 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3758 { (exit 1); exit 1; }; }
3761 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3762 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3763 rm -f conftest.l
3764 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3766 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3767 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3768 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 # POSIX says lex can declare yytext either as a pointer or an array; the
3772 # default is implementation-dependent. Figure out which it is, since
3773 # not all implementations provide the %pointer and %array declarations.
3774 ac_cv_prog_lex_yytext_pointer=no
3775 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3776 ac_save_LIBS=$LIBS
3777 LIBS="$LIBS $LEXLIB"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 `cat $LEX_OUTPUT_ROOT.c`
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_prog_lex_yytext_pointer=yes
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3799 LIBS=$ac_save_LIBS
3800 rm -f "${LEX_OUTPUT_ROOT}.c"
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3804 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3805 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3807 cat >>confdefs.h <<\_ACEOF
3808 #define YYTEXT_POINTER 1
3809 _ACEOF
3815 for ac_prog in $YACC bison yacc
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_prog_XYACC+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -n "$XYACC"; then
3825 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_XYACC="$ac_prog"
3835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3843 XYACC=$ac_cv_prog_XYACC
3844 if test -n "$XYACC"; then
3845 echo "$as_me:$LINENO: result: $XYACC" >&5
3846 echo "${ECHO_T}$XYACC" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3852 test -n "$XYACC" && break
3853 done
3854 test -n "$XYACC" || XYACC="none"
3856 if test "$XYACC" = "none"
3857 then
3858 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3859 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3860 { (exit 1); exit 1; }; }
3862 for ac_prog in $LEX flex lex
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_prog_XLEX+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 if test -n "$XLEX"; then
3872 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_XLEX="$ac_prog"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3885 done
3886 done
3890 XLEX=$ac_cv_prog_XLEX
3891 if test -n "$XLEX"; then
3892 echo "$as_me:$LINENO: result: $XLEX" >&5
3893 echo "${ECHO_T}$XLEX" >&6
3894 else
3895 echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3899 test -n "$XLEX" && break
3900 done
3901 test -n "$XLEX" || XLEX="none"
3903 if test "$XLEX" = "none"
3904 then
3905 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3906 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3907 { (exit 1); exit 1; }; }
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_RANLIB+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if test -n "$RANLIB"; then
3918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3931 done
3932 done
3936 RANLIB=$ac_cv_prog_RANLIB
3937 if test -n "$RANLIB"; then
3938 echo "$as_me:$LINENO: result: $RANLIB" >&5
3939 echo "${ECHO_T}$RANLIB" >&6
3940 else
3941 echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6
3946 if test -z "$ac_cv_prog_RANLIB"; then
3947 ac_ct_RANLIB=$RANLIB
3948 # Extract the first word of "ranlib", so it can be a program name with args.
3949 set dummy ranlib; ac_word=$2
3950 echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if test -n "$ac_ct_RANLIB"; then
3956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_ac_ct_RANLIB="ranlib"
3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3969 done
3970 done
3972 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3976 if test -n "$ac_ct_RANLIB"; then
3977 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3978 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3979 else
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3984 RANLIB=$ac_ct_RANLIB
3985 else
3986 RANLIB="$ac_cv_prog_RANLIB"
3989 # Find a good install program. We prefer a C program (faster),
3990 # so one script is as good as another. But avoid the broken or
3991 # incompatible versions:
3992 # SysV /etc/install, /usr/sbin/install
3993 # SunOS /usr/etc/install
3994 # IRIX /sbin/install
3995 # AIX /bin/install
3996 # AmigaOS /C/install, which installs bootblocks on floppy discs
3997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4000 # ./install, which can be erroneously created by make from ./install.sh.
4001 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4002 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4003 if test -z "$INSTALL"; then
4004 if test "${ac_cv_path_install+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 # Account for people who put trailing slashes in PATH elements.
4013 case $as_dir/ in
4014 ./ | .// | /cC/* | \
4015 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4016 /usr/ucb/* ) ;;
4018 # OSF1 and SCO ODT 3.0 have their own names for install.
4019 # Don't use installbsd from OSF since it installs stuff as root
4020 # by default.
4021 for ac_prog in ginstall scoinst install; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4024 if test $ac_prog = install &&
4025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026 # AIX install. It has an incompatible calling convention.
4028 elif test $ac_prog = install &&
4029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4030 # program-specific install script used by HP pwplus--don't use.
4032 else
4033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4034 break 3
4037 done
4038 done
4040 esac
4041 done
4045 if test "${ac_cv_path_install+set}" = set; then
4046 INSTALL=$ac_cv_path_install
4047 else
4048 # As a last resort, use the slow shell script. We don't cache a
4049 # path for INSTALL within a source directory, because that will
4050 # break other packages using the cache if that directory is
4051 # removed, or if the path is relative.
4052 INSTALL=$ac_install_sh
4055 echo "$as_me:$LINENO: result: $INSTALL" >&5
4056 echo "${ECHO_T}$INSTALL" >&6
4058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059 # It thinks the first close brace ends the variable substitution.
4060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4066 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4067 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4068 LN_S=$as_ln_s
4069 if test "$LN_S" = "ln -s"; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071 echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4074 echo "${ECHO_T}no, using $LN_S" >&6
4077 # Extract the first word of "c2man", so it can be a program name with args.
4078 set dummy c2man; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_C2MAN+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 if test -n "$C2MAN"; then
4085 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_C2MAN="c2man"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4101 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4104 C2MAN=$ac_cv_prog_C2MAN
4105 if test -n "$C2MAN"; then
4106 echo "$as_me:$LINENO: result: $C2MAN" >&5
4107 echo "${ECHO_T}$C2MAN" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4113 # Extract the first word of "ldconfig", so it can be a program name with args.
4114 set dummy ldconfig; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 case $LDCONFIG in
4121 [\\/]* | ?:[\\/]*)
4122 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in /sbin /usr/sbin $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4139 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4141 esac
4143 LDCONFIG=$ac_cv_path_LDCONFIG
4145 if test -n "$LDCONFIG"; then
4146 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4147 echo "${ECHO_T}$LDCONFIG" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 for ac_prog in lclint lint
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_LINT+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$LINT"; then
4164 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_LINT="$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4182 LINT=$ac_cv_prog_LINT
4183 if test -n "$LINT"; then
4184 echo "$as_me:$LINENO: result: $LINT" >&5
4185 echo "${ECHO_T}$LINT" >&6
4186 else
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4191 test -n "$LINT" && break
4192 done
4194 if test "$LINT" = "lint"
4195 then
4196 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4201 case $host_os in
4202 *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
4203 *) LDCOMBINE="ld -r" ;;
4204 esac
4209 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4210 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4211 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 ac_check_lib_save_LIBS=$LIBS
4215 LIBS="-lm $LIBS"
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 #include "confdefs.h"
4220 /* Override any gcc2 internal prototype to avoid an error. */
4221 #ifdef __cplusplus
4222 extern "C"
4223 #endif
4224 /* We use char because int might match the return type of a gcc2
4225 builtin and then its argument prototype would still apply. */
4226 char sqrt ();
4227 #ifdef F77_DUMMY_MAIN
4228 # ifdef __cplusplus
4229 extern "C"
4230 # endif
4231 int F77_DUMMY_MAIN() { return 1; }
4232 #endif
4234 main ()
4236 sqrt ();
4238 return 0;
4240 _ACEOF
4241 rm -f conftest.$ac_objext conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
4247 { ac_try='test -s conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_lib_m_sqrt=yes
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4257 ac_cv_lib_m_sqrt=no
4259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4260 LIBS=$ac_check_lib_save_LIBS
4262 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4263 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4264 if test $ac_cv_lib_m_sqrt = yes; then
4265 cat >>confdefs.h <<_ACEOF
4266 #define HAVE_LIBM 1
4267 _ACEOF
4269 LIBS="-lm $LIBS"
4274 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4275 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4276 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 ac_check_lib_save_LIBS=$LIBS
4280 LIBS="-li386 $LIBS"
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4291 char i386_set_ldt ();
4292 #ifdef F77_DUMMY_MAIN
4293 # ifdef __cplusplus
4294 extern "C"
4295 # endif
4296 int F77_DUMMY_MAIN() { return 1; }
4297 #endif
4299 main ()
4301 i386_set_ldt ();
4303 return 0;
4305 _ACEOF
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308 (eval $ac_link) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -s conftest$ac_exeext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_lib_i386_i386_set_ldt=yes
4319 else
4320 echo "$as_me: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 ac_cv_lib_i386_i386_set_ldt=no
4324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4325 LIBS=$ac_check_lib_save_LIBS
4327 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4328 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4329 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4330 cat >>confdefs.h <<_ACEOF
4331 #define HAVE_LIBI386 1
4332 _ACEOF
4334 LIBS="-li386 $LIBS"
4339 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4340 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4341 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lossaudio $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356 char _oss_ioctl ();
4357 #ifdef F77_DUMMY_MAIN
4358 # ifdef __cplusplus
4359 extern "C"
4360 # endif
4361 int F77_DUMMY_MAIN() { return 1; }
4362 #endif
4364 main ()
4366 _oss_ioctl ();
4368 return 0;
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_lib_ossaudio__oss_ioctl=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_ossaudio__oss_ioctl=no
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4393 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4394 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBOSSAUDIO 1
4397 _ACEOF
4399 LIBS="-lossaudio $LIBS"
4404 for ac_func in iswalnum
4406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4407 echo "$as_me:$LINENO: checking for $ac_func" >&5
4408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4409 if eval "test \"\${$as_ac_var+set}\" = set"; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char $ac_func (); below. */
4417 #include <assert.h>
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 #ifdef __cplusplus
4420 extern "C"
4421 #endif
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4424 char $ac_func ();
4425 char (*f) ();
4427 #ifdef F77_DUMMY_MAIN
4428 # ifdef __cplusplus
4429 extern "C"
4430 # endif
4431 int F77_DUMMY_MAIN() { return 1; }
4432 #endif
4434 main ()
4436 /* The GNU C library defines this for functions which it implements
4437 to always fail with ENOSYS. Some functions are actually named
4438 something starting with __ and the normal name is an alias. */
4439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4440 choke me
4441 #else
4442 f = $ac_func;
4443 #endif
4446 return 0;
4448 _ACEOF
4449 rm -f conftest.$ac_objext conftest$ac_exeext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451 (eval $ac_link) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -s conftest$ac_exeext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 eval "$as_ac_var=yes"
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 eval "$as_ac_var=no"
4467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4471 if test `eval echo '${'$as_ac_var'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4474 _ACEOF
4476 else
4478 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4479 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4480 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lw $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 #include "confdefs.h"
4489 /* Override any gcc2 internal prototype to avoid an error. */
4490 #ifdef __cplusplus
4491 extern "C"
4492 #endif
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4495 char iswalnum ();
4496 #ifdef F77_DUMMY_MAIN
4497 # ifdef __cplusplus
4498 extern "C"
4499 # endif
4500 int F77_DUMMY_MAIN() { return 1; }
4501 #endif
4503 main ()
4505 iswalnum ();
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_cv_lib_w_iswalnum=yes
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 ac_cv_lib_w_iswalnum=no
4528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 LIBS=$ac_check_lib_save_LIBS
4531 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4532 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4533 if test $ac_cv_lib_w_iswalnum = yes; then
4534 cat >>confdefs.h <<_ACEOF
4535 #define HAVE_LIBW 1
4536 _ACEOF
4538 LIBS="-lw $LIBS"
4543 done
4546 for ac_func in gethostbyname
4548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4549 echo "$as_me:$LINENO: checking for $ac_func" >&5
4550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_var+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func (); below. */
4559 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 #ifdef __cplusplus
4562 extern "C"
4563 #endif
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char $ac_func ();
4567 char (*f) ();
4569 #ifdef F77_DUMMY_MAIN
4570 # ifdef __cplusplus
4571 extern "C"
4572 # endif
4573 int F77_DUMMY_MAIN() { return 1; }
4574 #endif
4576 main ()
4578 /* The GNU C library defines this for functions which it implements
4579 to always fail with ENOSYS. Some functions are actually named
4580 something starting with __ and the normal name is an alias. */
4581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4582 choke me
4583 #else
4584 f = $ac_func;
4585 #endif
4588 return 0;
4590 _ACEOF
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593 (eval $ac_link) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 eval "$as_ac_var=yes"
4604 else
4605 echo "$as_me: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 eval "$as_ac_var=no"
4609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4613 if test `eval echo '${'$as_ac_var'}'` = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4616 _ACEOF
4618 else
4620 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4621 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-lnsl $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 #ifdef __cplusplus
4633 extern "C"
4634 #endif
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4637 char gethostbyname ();
4638 #ifdef F77_DUMMY_MAIN
4639 # ifdef __cplusplus
4640 extern "C"
4641 # endif
4642 int F77_DUMMY_MAIN() { return 1; }
4643 #endif
4645 main ()
4647 gethostbyname ();
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 ac_cv_lib_nsl_gethostbyname=yes
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 ac_cv_lib_nsl_gethostbyname=no
4670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$ac_check_lib_save_LIBS
4673 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4674 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4675 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define HAVE_LIBNSL 1
4678 _ACEOF
4680 LIBS="-lnsl $LIBS"
4685 done
4688 for ac_func in connect
4690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4691 echo "$as_me:$LINENO: checking for $ac_func" >&5
4692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4693 if eval "test \"\${$as_ac_var+set}\" = set"; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699 /* System header to define __stub macros and hopefully few prototypes,
4700 which can conflict with char $ac_func (); below. */
4701 #include <assert.h>
4702 /* Override any gcc2 internal prototype to avoid an error. */
4703 #ifdef __cplusplus
4704 extern "C"
4705 #endif
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4708 char $ac_func ();
4709 char (*f) ();
4711 #ifdef F77_DUMMY_MAIN
4712 # ifdef __cplusplus
4713 extern "C"
4714 # endif
4715 int F77_DUMMY_MAIN() { return 1; }
4716 #endif
4718 main ()
4720 /* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 f = $ac_func;
4727 #endif
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 eval "$as_ac_var=yes"
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 eval "$as_ac_var=no"
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4755 if test `eval echo '${'$as_ac_var'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4758 _ACEOF
4760 else
4762 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4763 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4764 if test "${ac_cv_lib_socket_connect+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-lsocket $LIBS"
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4779 char connect ();
4780 #ifdef F77_DUMMY_MAIN
4781 # ifdef __cplusplus
4782 extern "C"
4783 # endif
4784 int F77_DUMMY_MAIN() { return 1; }
4785 #endif
4787 main ()
4789 connect ();
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_lib_socket_connect=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_lib_socket_connect=no
4812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4816 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4817 if test $ac_cv_lib_socket_connect = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define HAVE_LIBSOCKET 1
4820 _ACEOF
4822 LIBS="-lsocket $LIBS"
4827 done
4830 for ac_func in inet_aton
4832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4833 echo "$as_me:$LINENO: checking for $ac_func" >&5
4834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4835 if eval "test \"\${$as_ac_var+set}\" = set"; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4841 /* System header to define __stub macros and hopefully few prototypes,
4842 which can conflict with char $ac_func (); below. */
4843 #include <assert.h>
4844 /* Override any gcc2 internal prototype to avoid an error. */
4845 #ifdef __cplusplus
4846 extern "C"
4847 #endif
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4850 char $ac_func ();
4851 char (*f) ();
4853 #ifdef F77_DUMMY_MAIN
4854 # ifdef __cplusplus
4855 extern "C"
4856 # endif
4857 int F77_DUMMY_MAIN() { return 1; }
4858 #endif
4860 main ()
4862 /* The GNU C library defines this for functions which it implements
4863 to always fail with ENOSYS. Some functions are actually named
4864 something starting with __ and the normal name is an alias. */
4865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4866 choke me
4867 #else
4868 f = $ac_func;
4869 #endif
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext conftest$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 eval "$as_ac_var=yes"
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 eval "$as_ac_var=no"
4893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4897 if test `eval echo '${'$as_ac_var'}'` = yes; then
4898 cat >>confdefs.h <<_ACEOF
4899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4900 _ACEOF
4902 else
4904 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4905 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4906 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 ac_check_lib_save_LIBS=$LIBS
4910 LIBS="-lresolv $LIBS"
4911 cat >conftest.$ac_ext <<_ACEOF
4912 #line $LINENO "configure"
4913 #include "confdefs.h"
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char inet_aton ();
4922 #ifdef F77_DUMMY_MAIN
4923 # ifdef __cplusplus
4924 extern "C"
4925 # endif
4926 int F77_DUMMY_MAIN() { return 1; }
4927 #endif
4929 main ()
4931 inet_aton ();
4933 return 0;
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest$ac_exeext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_lib_resolv_inet_aton=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 ac_cv_lib_resolv_inet_aton=no
4954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4955 LIBS=$ac_check_lib_save_LIBS
4957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4958 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4959 if test $ac_cv_lib_resolv_inet_aton = yes; then
4960 cat >>confdefs.h <<_ACEOF
4961 #define HAVE_LIBRESOLV 1
4962 _ACEOF
4964 LIBS="-lresolv $LIBS"
4969 done
4972 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
4973 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4974 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977 ac_check_lib_save_LIBS=$LIBS
4978 LIBS="-lxpg4 $LIBS"
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 #ifdef __cplusplus
4985 extern "C"
4986 #endif
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989 char _xpg4_setrunelocale ();
4990 #ifdef F77_DUMMY_MAIN
4991 # ifdef __cplusplus
4992 extern "C"
4993 # endif
4994 int F77_DUMMY_MAIN() { return 1; }
4995 #endif
4997 main ()
4999 _xpg4_setrunelocale ();
5001 return 0;
5003 _ACEOF
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5026 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5027 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define HAVE_LIBXPG4 1
5030 _ACEOF
5032 LIBS="-lxpg4 $LIBS"
5037 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5038 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5039 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lmmap $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 #include "confdefs.h"
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char mmap ();
5055 #ifdef F77_DUMMY_MAIN
5056 # ifdef __cplusplus
5057 extern "C"
5058 # endif
5059 int F77_DUMMY_MAIN() { return 1; }
5060 #endif
5062 main ()
5064 mmap ();
5066 return 0;
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071 (eval $ac_link) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -s conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_lib_mmap_mmap=yes
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_cv_lib_mmap_mmap=no
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5091 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5092 if test $ac_cv_lib_mmap_mmap = yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define HAVE_LIBMMAP 1
5095 _ACEOF
5097 LIBS="-lmmap $LIBS"
5102 DLLIBS=""
5104 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5105 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5106 if test "${ac_cv_header_stdc+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5112 #include <stdlib.h>
5113 #include <stdarg.h>
5114 #include <string.h>
5115 #include <float.h>
5117 _ACEOF
5118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120 ac_status=$?
5121 egrep -v '^ *\+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } >/dev/null; then
5126 if test -s conftest.err; then
5127 ac_cpp_err=$ac_c_preproc_warn_flag
5128 else
5129 ac_cpp_err=
5131 else
5132 ac_cpp_err=yes
5134 if test -z "$ac_cpp_err"; then
5135 ac_cv_header_stdc=yes
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 ac_cv_header_stdc=no
5141 rm -f conftest.err conftest.$ac_ext
5143 if test $ac_cv_header_stdc = yes; then
5144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145 cat >conftest.$ac_ext <<_ACEOF
5146 #line $LINENO "configure"
5147 #include "confdefs.h"
5148 #include <string.h>
5150 _ACEOF
5151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152 egrep "memchr" >/dev/null 2>&1; then
5154 else
5155 ac_cv_header_stdc=no
5157 rm -f conftest*
5161 if test $ac_cv_header_stdc = yes; then
5162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 #include <stdlib.h>
5168 _ACEOF
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170 egrep "free" >/dev/null 2>&1; then
5172 else
5173 ac_cv_header_stdc=no
5175 rm -f conftest*
5179 if test $ac_cv_header_stdc = yes; then
5180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5181 if test "$cross_compiling" = yes; then
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 #line $LINENO "configure"
5186 #include "confdefs.h"
5187 #include <ctype.h>
5188 #if ((' ' & 0x0FF) == 0x020)
5189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5191 #else
5192 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5193 || ('j' <= (c) && (c) <= 'r') \
5194 || ('s' <= (c) && (c) <= 'z'))
5195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5196 #endif
5198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5200 main ()
5202 int i;
5203 for (i = 0; i < 256; i++)
5204 if (XOR (islower (i), ISLOWER (i))
5205 || toupper (i) != TOUPPER (i))
5206 exit(2);
5207 exit (0);
5209 _ACEOF
5210 rm -f conftest$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5222 else
5223 echo "$as_me: program exited with status $ac_status" >&5
5224 echo "$as_me: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 ( exit $ac_status )
5227 ac_cv_header_stdc=no
5229 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5233 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5234 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5235 if test $ac_cv_header_stdc = yes; then
5237 cat >>confdefs.h <<\_ACEOF
5238 #define STDC_HEADERS 1
5239 _ACEOF
5243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5254 inttypes.h stdint.h unistd.h
5256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5257 echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 #include "confdefs.h"
5265 $ac_includes_default
5267 #include <$ac_header>
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271 (eval $ac_compile) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 eval "$as_ac_Header=yes"
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 eval "$as_ac_Header=no"
5287 rm -f conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292 cat >>confdefs.h <<_ACEOF
5293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294 _ACEOF
5298 done
5302 for ac_header in dlfcn.h
5304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5306 echo "$as_me:$LINENO: checking for $ac_header" >&5
5307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5313 else
5314 # Is the header compilable?
5315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 #include "confdefs.h"
5320 $ac_includes_default
5321 #include <$ac_header>
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -s conftest.$ac_objext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_header_compiler=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 ac_header_compiler=no
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5343 echo "${ECHO_T}$ac_header_compiler" >&6
5345 # Is the header present?
5346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5351 #include <$ac_header>
5352 _ACEOF
5353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5355 ac_status=$?
5356 egrep -v '^ *\+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null; then
5361 if test -s conftest.err; then
5362 ac_cpp_err=$ac_c_preproc_warn_flag
5363 else
5364 ac_cpp_err=
5366 else
5367 ac_cpp_err=yes
5369 if test -z "$ac_cpp_err"; then
5370 ac_header_preproc=yes
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 ac_header_preproc=no
5376 rm -f conftest.err conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378 echo "${ECHO_T}$ac_header_preproc" >&6
5380 # So? What about this header?
5381 case $ac_header_compiler:$ac_header_preproc in
5382 yes:no )
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5387 no:yes )
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5394 esac
5395 echo "$as_me:$LINENO: checking for $ac_header" >&5
5396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 eval "$as_ac_Header=$ac_header_preproc"
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407 cat >>confdefs.h <<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 _ACEOF
5411 for ac_func in dlopen
5413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5414 echo "$as_me:$LINENO: checking for $ac_func" >&5
5415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5416 if eval "test \"\${$as_ac_var+set}\" = set"; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 cat >conftest.$ac_ext <<_ACEOF
5420 #line $LINENO "configure"
5421 #include "confdefs.h"
5422 /* System header to define __stub macros and hopefully few prototypes,
5423 which can conflict with char $ac_func (); below. */
5424 #include <assert.h>
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 #ifdef __cplusplus
5427 extern "C"
5428 #endif
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5431 char $ac_func ();
5432 char (*f) ();
5434 #ifdef F77_DUMMY_MAIN
5435 # ifdef __cplusplus
5436 extern "C"
5437 # endif
5438 int F77_DUMMY_MAIN() { return 1; }
5439 #endif
5441 main ()
5443 /* The GNU C library defines this for functions which it implements
5444 to always fail with ENOSYS. Some functions are actually named
5445 something starting with __ and the normal name is an alias. */
5446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5447 choke me
5448 #else
5449 f = $ac_func;
5450 #endif
5453 return 0;
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -s conftest$ac_exeext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 eval "$as_ac_var=yes"
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 eval "$as_ac_var=no"
5474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5478 if test `eval echo '${'$as_ac_var'}'` = yes; then
5479 cat >>confdefs.h <<_ACEOF
5480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5481 _ACEOF
5483 else
5484 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-ldl $LIBS"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5493 #include "confdefs.h"
5495 /* Override any gcc2 internal prototype to avoid an error. */
5496 #ifdef __cplusplus
5497 extern "C"
5498 #endif
5499 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */
5501 char dlopen ();
5502 #ifdef F77_DUMMY_MAIN
5503 # ifdef __cplusplus
5504 extern "C"
5505 # endif
5506 int F77_DUMMY_MAIN() { return 1; }
5507 #endif
5509 main ()
5511 dlopen ();
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext conftest$ac_exeext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518 (eval $ac_link) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -s conftest$ac_exeext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_cv_lib_dl_dlopen=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 ac_cv_lib_dl_dlopen=no
5534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5537 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5538 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5539 if test $ac_cv_lib_dl_dlopen = yes; then
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_DLOPEN 1
5543 _ACEOF
5545 DLLIBS="-ldl"
5546 else
5547 LIBEXT="a"
5552 done
5554 else
5555 LIBEXT="a"
5559 done
5562 JPEGLIB=""
5565 for ac_header in jpeglib.h
5567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5569 echo "$as_me:$LINENO: checking for $ac_header" >&5
5570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5576 else
5577 # Is the header compilable?
5578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5582 #include "confdefs.h"
5583 $ac_includes_default
5584 #include <$ac_header>
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_header_compiler=yes
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 cat conftest.$ac_ext >&5
5602 ac_header_compiler=no
5604 rm -f conftest.$ac_objext conftest.$ac_ext
5605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5606 echo "${ECHO_T}$ac_header_compiler" >&6
5608 # Is the header present?
5609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5611 cat >conftest.$ac_ext <<_ACEOF
5612 #line $LINENO "configure"
5613 #include "confdefs.h"
5614 #include <$ac_header>
5615 _ACEOF
5616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5618 ac_status=$?
5619 egrep -v '^ *\+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } >/dev/null; then
5624 if test -s conftest.err; then
5625 ac_cpp_err=$ac_c_preproc_warn_flag
5626 else
5627 ac_cpp_err=
5629 else
5630 ac_cpp_err=yes
5632 if test -z "$ac_cpp_err"; then
5633 ac_header_preproc=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 ac_header_preproc=no
5639 rm -f conftest.err conftest.$ac_ext
5640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5641 echo "${ECHO_T}$ac_header_preproc" >&6
5643 # So? What about this header?
5644 case $ac_header_compiler:$ac_header_preproc in
5645 yes:no )
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5650 no:yes )
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5657 esac
5658 echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 eval "$as_ac_Header=$ac_header_preproc"
5665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5670 cat >>confdefs.h <<_ACEOF
5671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5672 _ACEOF
5673 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5674 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5675 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-ljpeg $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5682 #include "confdefs.h"
5684 /* Override any gcc2 internal prototype to avoid an error. */
5685 #ifdef __cplusplus
5686 extern "C"
5687 #endif
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5690 char jpeg_start_decompress ();
5691 #ifdef F77_DUMMY_MAIN
5692 # ifdef __cplusplus
5693 extern "C"
5694 # endif
5695 int F77_DUMMY_MAIN() { return 1; }
5696 #endif
5698 main ()
5700 jpeg_start_decompress ();
5702 return 0;
5704 _ACEOF
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707 (eval $ac_link) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -s conftest$ac_exeext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 ac_cv_lib_jpeg_jpeg_start_decompress=no
5723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5724 LIBS=$ac_check_lib_save_LIBS
5726 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5727 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5728 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5730 cat >>confdefs.h <<\_ACEOF
5731 #define HAVE_LIBJPEG 1
5732 _ACEOF
5734 JPEGLIB="-ljpeg"
5741 done
5747 XFILES=""
5749 OPENGLFILES=""
5751 GLU32FILES=""
5752 if test "$have_x" = "yes"
5753 then
5754 XLIB="-lXext -lX11"
5755 ac_save_CPPFLAGS="$CPPFLAGS"
5756 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5759 for ac_header in X11/Xlib.h
5761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770 else
5771 # Is the header compilable?
5772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5776 #include "confdefs.h"
5777 $ac_includes_default
5778 #include <$ac_header>
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -s conftest.$ac_objext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_header_compiler=yes
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 ac_header_compiler=no
5798 rm -f conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5800 echo "${ECHO_T}$ac_header_compiler" >&6
5802 # Is the header present?
5803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5806 #line $LINENO "configure"
5807 #include "confdefs.h"
5808 #include <$ac_header>
5809 _ACEOF
5810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5812 ac_status=$?
5813 egrep -v '^ *\+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } >/dev/null; then
5818 if test -s conftest.err; then
5819 ac_cpp_err=$ac_c_preproc_warn_flag
5820 else
5821 ac_cpp_err=
5823 else
5824 ac_cpp_err=yes
5826 if test -z "$ac_cpp_err"; then
5827 ac_header_preproc=yes
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 ac_header_preproc=no
5833 rm -f conftest.err conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5835 echo "${ECHO_T}$ac_header_preproc" >&6
5837 # So? What about this header?
5838 case $ac_header_compiler:$ac_header_preproc in
5839 yes:no )
5840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5844 no:yes )
5845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5851 esac
5852 echo "$as_me:$LINENO: checking for $ac_header" >&5
5853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 eval "$as_ac_Header=$ac_header_preproc"
5859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5866 _ACEOF
5869 for ac_header in X11/XKBlib.h
5871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5873 echo "$as_me:$LINENO: checking for $ac_header" >&5
5874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5880 else
5881 # Is the header compilable?
5882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5885 #line $LINENO "configure"
5886 #include "confdefs.h"
5887 $ac_includes_default
5888 #include <$ac_header>
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_header_compiler=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906 ac_header_compiler=no
5908 rm -f conftest.$ac_objext conftest.$ac_ext
5909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5910 echo "${ECHO_T}$ac_header_compiler" >&6
5912 # Is the header present?
5913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5918 #include <$ac_header>
5919 _ACEOF
5920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5922 ac_status=$?
5923 egrep -v '^ *\+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } >/dev/null; then
5928 if test -s conftest.err; then
5929 ac_cpp_err=$ac_c_preproc_warn_flag
5930 else
5931 ac_cpp_err=
5933 else
5934 ac_cpp_err=yes
5936 if test -z "$ac_cpp_err"; then
5937 ac_header_preproc=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 ac_header_preproc=no
5943 rm -f conftest.err conftest.$ac_ext
5944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5945 echo "${ECHO_T}$ac_header_preproc" >&6
5947 # So? What about this header?
5948 case $ac_header_compiler:$ac_header_preproc in
5949 yes:no )
5950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5954 no:yes )
5955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5961 esac
5962 echo "$as_me:$LINENO: checking for $ac_header" >&5
5963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 eval "$as_ac_Header=$ac_header_preproc"
5969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5974 cat >>confdefs.h <<_ACEOF
5975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5976 _ACEOF
5977 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5978 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5979 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 ac_check_lib_save_LIBS=$LIBS
5983 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5984 cat >conftest.$ac_ext <<_ACEOF
5985 #line $LINENO "configure"
5986 #include "confdefs.h"
5988 /* Override any gcc2 internal prototype to avoid an error. */
5989 #ifdef __cplusplus
5990 extern "C"
5991 #endif
5992 /* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
5994 char XkbQueryExtension ();
5995 #ifdef F77_DUMMY_MAIN
5996 # ifdef __cplusplus
5997 extern "C"
5998 # endif
5999 int F77_DUMMY_MAIN() { return 1; }
6000 #endif
6002 main ()
6004 XkbQueryExtension ();
6006 return 0;
6008 _ACEOF
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_lib_X11_XkbQueryExtension=yes
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6025 ac_cv_lib_X11_XkbQueryExtension=no
6027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6028 LIBS=$ac_check_lib_save_LIBS
6030 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6031 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6032 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6034 cat >>confdefs.h <<\_ACEOF
6035 #define HAVE_XKB 1
6036 _ACEOF
6041 else
6042 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6043 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6047 done
6051 for ac_header in X11/extensions/XShm.h
6053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6054 echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6061 #include "confdefs.h"
6062 #include <X11/Xlib.h>
6064 #include <$ac_header>
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 eval "$as_ac_Header=yes"
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 eval "$as_ac_Header=no"
6084 rm -f conftest.$ac_objext conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6089 cat >>confdefs.h <<_ACEOF
6090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6091 _ACEOF
6092 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6093 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6094 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 ac_check_lib_save_LIBS=$LIBS
6098 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6101 #include "confdefs.h"
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 #ifdef __cplusplus
6105 extern "C"
6106 #endif
6107 /* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6109 char XShmQueryExtension ();
6110 #ifdef F77_DUMMY_MAIN
6111 # ifdef __cplusplus
6112 extern "C"
6113 # endif
6114 int F77_DUMMY_MAIN() { return 1; }
6115 #endif
6117 main ()
6119 XShmQueryExtension ();
6121 return 0;
6123 _ACEOF
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_lib_Xext_XShmQueryExtension=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 ac_cv_lib_Xext_XShmQueryExtension=no
6142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6143 LIBS=$ac_check_lib_save_LIBS
6145 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6146 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6147 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6149 cat >>confdefs.h <<\_ACEOF
6150 #define HAVE_LIBXXSHM 1
6151 _ACEOF
6156 else
6157 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6158 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6161 done
6165 for ac_header in X11/extensions/shape.h
6167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168 echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 cat >conftest.$ac_ext <<_ACEOF
6174 #line $LINENO "configure"
6175 #include "confdefs.h"
6176 #include <X11/Xlib.h>
6178 #include <$ac_header>
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 eval "$as_ac_Header=yes"
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6196 eval "$as_ac_Header=no"
6198 rm -f conftest.$ac_objext conftest.$ac_ext
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6203 cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6205 _ACEOF
6206 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6207 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6208 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 ac_check_lib_save_LIBS=$LIBS
6212 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6213 cat >conftest.$ac_ext <<_ACEOF
6214 #line $LINENO "configure"
6215 #include "confdefs.h"
6217 /* Override any gcc2 internal prototype to avoid an error. */
6218 #ifdef __cplusplus
6219 extern "C"
6220 #endif
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6223 char XShapeQueryExtension ();
6224 #ifdef F77_DUMMY_MAIN
6225 # ifdef __cplusplus
6226 extern "C"
6227 # endif
6228 int F77_DUMMY_MAIN() { return 1; }
6229 #endif
6231 main ()
6233 XShapeQueryExtension ();
6235 return 0;
6237 _ACEOF
6238 rm -f conftest.$ac_objext conftest$ac_exeext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240 (eval $ac_link) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -s conftest$ac_exeext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_cv_lib_Xext_XShapeQueryExtension=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6254 ac_cv_lib_Xext_XShapeQueryExtension=no
6256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6257 LIBS=$ac_check_lib_save_LIBS
6259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6260 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6261 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6263 cat >>confdefs.h <<\_ACEOF
6264 #define HAVE_LIBXSHAPE 1
6265 _ACEOF
6270 else
6271 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6272 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6275 done
6279 for ac_header in X11/extensions/xf86dga.h
6281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line $LINENO "configure"
6289 #include "confdefs.h"
6290 #include <X11/Xlib.h>
6292 #include <$ac_header>
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 eval "$as_ac_Header=yes"
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6310 eval "$as_ac_Header=no"
6312 rm -f conftest.$ac_objext conftest.$ac_ext
6314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6317 cat >>confdefs.h <<_ACEOF
6318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6319 _ACEOF
6320 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6321 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6322 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 ac_check_lib_save_LIBS=$LIBS
6326 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6327 $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 #include "confdefs.h"
6332 /* Override any gcc2 internal prototype to avoid an error. */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6338 char XDGAQueryExtension ();
6339 #ifdef F77_DUMMY_MAIN
6340 # ifdef __cplusplus
6341 extern "C"
6342 # endif
6343 int F77_DUMMY_MAIN() { return 1; }
6344 #endif
6346 main ()
6348 XDGAQueryExtension ();
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext conftest$ac_exeext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -s conftest$ac_exeext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6369 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6374 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6375 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6376 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6378 cat >>confdefs.h <<\_ACEOF
6379 #define HAVE_LIBXXF86DGA2 1
6380 _ACEOF
6382 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6384 else
6385 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6386 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6387 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 ac_check_lib_save_LIBS=$LIBS
6391 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6392 $LIBS"
6393 cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 #include "confdefs.h"
6397 /* Override any gcc2 internal prototype to avoid an error. */
6398 #ifdef __cplusplus
6399 extern "C"
6400 #endif
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6403 char XF86DGAQueryExtension ();
6404 #ifdef F77_DUMMY_MAIN
6405 # ifdef __cplusplus
6406 extern "C"
6407 # endif
6408 int F77_DUMMY_MAIN() { return 1; }
6409 #endif
6411 main ()
6413 XF86DGAQueryExtension ();
6415 return 0;
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6434 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_check_lib_save_LIBS
6439 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6440 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6441 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_LIBXXF86DGA 1
6445 _ACEOF
6447 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6455 else
6456 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6457 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6460 done
6464 for ac_header in X11/extensions/xf86vmode.h
6466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6467 echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 cat >conftest.$ac_ext <<_ACEOF
6473 #line $LINENO "configure"
6474 #include "confdefs.h"
6475 #include <X11/Xlib.h>
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 eval "$as_ac_Header=yes"
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 eval "$as_ac_Header=no"
6497 rm -f conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6504 _ACEOF
6505 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6506 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6507 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 ac_check_lib_save_LIBS=$LIBS
6511 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6512 $LIBS"
6513 cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 #include "confdefs.h"
6517 /* Override any gcc2 internal prototype to avoid an error. */
6518 #ifdef __cplusplus
6519 extern "C"
6520 #endif
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6523 char XF86VidModeQueryExtension ();
6524 #ifdef F77_DUMMY_MAIN
6525 # ifdef __cplusplus
6526 extern "C"
6527 # endif
6528 int F77_DUMMY_MAIN() { return 1; }
6529 #endif
6531 main ()
6533 XF86VidModeQueryExtension ();
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6554 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6557 LIBS=$ac_check_lib_save_LIBS
6559 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6560 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6561 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_LIBXXF86VM 1
6565 _ACEOF
6567 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6572 else
6573 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6574 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6577 done
6581 for ac_header in X11/extensions/Xvlib.h
6583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6584 echo "$as_me:$LINENO: checking for $ac_header" >&5
6585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line $LINENO "configure"
6591 #include "confdefs.h"
6592 #include <X11/Xlib.h>
6594 #include <$ac_header>
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 eval "$as_ac_Header=yes"
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 eval "$as_ac_Header=no"
6614 rm -f conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6619 cat >>confdefs.h <<_ACEOF
6620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6621 _ACEOF
6622 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6623 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6624 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 ac_check_lib_save_LIBS=$LIBS
6628 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6629 $LIBS"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line $LINENO "configure"
6632 #include "confdefs.h"
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char XvShmCreateImage ();
6641 #ifdef F77_DUMMY_MAIN
6642 # ifdef __cplusplus
6643 extern "C"
6644 # endif
6645 int F77_DUMMY_MAIN() { return 1; }
6646 #endif
6648 main ()
6650 XvShmCreateImage ();
6652 return 0;
6654 _ACEOF
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_lib_Xv_XvShmCreateImage=yes
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 ac_cv_lib_Xv_XvShmCreateImage=no
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674 LIBS=$ac_check_lib_save_LIBS
6676 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6677 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6678 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6680 cat >>confdefs.h <<\_ACEOF
6681 #define HAVE_XVIDEO 1
6682 _ACEOF
6684 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6689 else
6690 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6691 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6694 done
6698 for ac_header in X11/extensions/Xrender.h
6700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6701 echo "$as_me:$LINENO: checking for $ac_header" >&5
6702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 #line $LINENO "configure"
6708 #include "confdefs.h"
6709 #include <X11/Xlib.h>
6711 #include <$ac_header>
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 eval "$as_ac_Header=yes"
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 eval "$as_ac_Header=no"
6731 rm -f conftest.$ac_objext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6736 cat >>confdefs.h <<_ACEOF
6737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6738 _ACEOF
6742 done
6748 done
6750 if test "x$enable_opengl" != "xno"
6751 then
6752 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6753 then
6754 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6755 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6756 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6757 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6758 { (exit 1); exit 1; }; }
6763 for ac_header in GL/gl.h GL/glx.h
6765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6767 echo "$as_me:$LINENO: checking for $ac_header" >&5
6768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6774 else
6775 # Is the header compilable?
6776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6778 cat >conftest.$ac_ext <<_ACEOF
6779 #line $LINENO "configure"
6780 #include "confdefs.h"
6781 $ac_includes_default
6782 #include <$ac_header>
6783 _ACEOF
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786 (eval $ac_compile) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -s conftest.$ac_objext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 ac_header_compiler=yes
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 ac_header_compiler=no
6802 rm -f conftest.$ac_objext conftest.$ac_ext
6803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6804 echo "${ECHO_T}$ac_header_compiler" >&6
6806 # Is the header present?
6807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6809 cat >conftest.$ac_ext <<_ACEOF
6810 #line $LINENO "configure"
6811 #include "confdefs.h"
6812 #include <$ac_header>
6813 _ACEOF
6814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6816 ac_status=$?
6817 egrep -v '^ *\+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } >/dev/null; then
6822 if test -s conftest.err; then
6823 ac_cpp_err=$ac_c_preproc_warn_flag
6824 else
6825 ac_cpp_err=
6827 else
6828 ac_cpp_err=yes
6830 if test -z "$ac_cpp_err"; then
6831 ac_header_preproc=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 ac_header_preproc=no
6837 rm -f conftest.err conftest.$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6839 echo "${ECHO_T}$ac_header_preproc" >&6
6841 # So? What about this header?
6842 case $ac_header_compiler:$ac_header_preproc in
6843 yes:no )
6844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6848 no:yes )
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6855 esac
6856 echo "$as_me:$LINENO: checking for $ac_header" >&5
6857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 eval "$as_ac_Header=$ac_header_preproc"
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6868 cat >>confdefs.h <<_ACEOF
6869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6870 _ACEOF
6874 done
6876 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6877 then
6879 for ac_header in GL/glext.h
6881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6882 echo "$as_me:$LINENO: checking for $ac_header" >&5
6883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line $LINENO "configure"
6889 #include "confdefs.h"
6890 #include <GL/glx.h>
6892 #include <$ac_header>
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -s conftest.$ac_objext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 eval "$as_ac_Header=yes"
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 eval "$as_ac_Header=no"
6912 rm -f conftest.$ac_objext conftest.$ac_ext
6914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6919 _ACEOF
6923 done
6925 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6926 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6927 if test "${wine_cv_opengl_version_OK+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 cat >conftest.$ac_ext <<_ACEOF
6931 #line $LINENO "configure"
6932 #include "confdefs.h"
6933 #include <GL/gl.h>
6934 #ifdef F77_DUMMY_MAIN
6935 # ifdef __cplusplus
6936 extern "C"
6937 # endif
6938 int F77_DUMMY_MAIN() { return 1; }
6939 #endif
6941 main ()
6943 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 wine_cv_opengl_version_OK="yes"
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 wine_cv_opengl_version_OK="no"
6967 rm -f conftest.$ac_objext conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
6971 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
6973 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
6974 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
6975 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 saved_libs=$LIBS
6979 LIBS="$X_LIBS -lGL"
6980 cat >conftest.$ac_ext <<_ACEOF
6981 #line $LINENO "configure"
6982 #include "confdefs.h"
6984 #ifdef F77_DUMMY_MAIN
6985 # ifdef __cplusplus
6986 extern "C"
6987 # endif
6988 int F77_DUMMY_MAIN() { return 1; }
6989 #endif
6991 main ()
6993 pthread_getspecific();
6995 return 0;
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 wine_cv_opengl_version_threadsafe="yes"
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 wine_cv_opengl_version_threadsafe="no"
7016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7017 LIBS=$saved_libs
7020 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7021 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7023 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7024 then
7025 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7026 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7027 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 ac_check_lib_save_LIBS=$LIBS
7031 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 #include "confdefs.h"
7036 /* Override any gcc2 internal prototype to avoid an error. */
7037 #ifdef __cplusplus
7038 extern "C"
7039 #endif
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7042 char glXCreateContext ();
7043 #ifdef F77_DUMMY_MAIN
7044 # ifdef __cplusplus
7045 extern "C"
7046 # endif
7047 int F77_DUMMY_MAIN() { return 1; }
7048 #endif
7050 main ()
7052 glXCreateContext ();
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 ac_cv_lib_GL_glXCreateContext=yes
7070 else
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 ac_cv_lib_GL_glXCreateContext=no
7075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7076 LIBS=$ac_check_lib_save_LIBS
7078 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7079 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7080 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7081 X_PRE_LIBS="$X_PRE_LIBS -lGL"
7086 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7087 then
7088 OPENGLFILES='$(OPENGLFILES)'
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_OPENGL 1
7092 _ACEOF
7095 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7096 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7097 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 ac_check_lib_save_LIBS=$LIBS
7101 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7102 cat >conftest.$ac_ext <<_ACEOF
7103 #line $LINENO "configure"
7104 #include "confdefs.h"
7106 /* Override any gcc2 internal prototype to avoid an error. */
7107 #ifdef __cplusplus
7108 extern "C"
7109 #endif
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7112 char glXGetProcAddressARB ();
7113 #ifdef F77_DUMMY_MAIN
7114 # ifdef __cplusplus
7115 extern "C"
7116 # endif
7117 int F77_DUMMY_MAIN() { return 1; }
7118 #endif
7120 main ()
7122 glXGetProcAddressARB ();
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129 (eval $ac_link) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -s conftest$ac_exeext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_cv_lib_GL_glXGetProcAddressARB=yes
7140 else
7141 echo "$as_me: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7143 ac_cv_lib_GL_glXGetProcAddressARB=no
7145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7146 LIBS=$ac_check_lib_save_LIBS
7148 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7149 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7150 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_GLX_GETPROCADDRESS 1
7154 _ACEOF
7159 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7160 then
7161 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7162 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7163 if test "${wine_cv_extension_prototypes+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 #line $LINENO "configure"
7168 #include "confdefs.h"
7169 #include <GL/gl.h>
7170 #ifdef HAVE_GL_GLEXT_H
7171 # include <GL/glext.h>
7172 #endif
7174 #ifdef F77_DUMMY_MAIN
7175 # ifdef __cplusplus
7176 extern "C"
7177 # endif
7178 int F77_DUMMY_MAIN() { return 1; }
7179 #endif
7181 main ()
7183 PFNGLCOLORTABLEEXTPROC test_proc;
7185 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 wine_cv_extension_prototypes="yes"
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7204 wine_cv_extension_prototypes="no"
7207 rm -f conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7211 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7212 if test "$wine_cv_extension_prototypes" = "yes"
7213 then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define HAVE_GLEXT_PROTOTYPES 1
7217 _ACEOF
7223 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7224 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7225 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228 ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7230 $LIBS"
7231 cat >conftest.$ac_ext <<_ACEOF
7232 #line $LINENO "configure"
7233 #include "confdefs.h"
7235 /* Override any gcc2 internal prototype to avoid an error. */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char gluLookAt ();
7242 #ifdef F77_DUMMY_MAIN
7243 # ifdef __cplusplus
7244 extern "C"
7245 # endif
7246 int F77_DUMMY_MAIN() { return 1; }
7247 #endif
7249 main ()
7251 gluLookAt ();
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext conftest$ac_exeext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258 (eval $ac_link) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -s conftest$ac_exeext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7268 ac_cv_lib_GLU_gluLookAt=yes
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 ac_cv_lib_GLU_gluLookAt=no
7274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7275 LIBS=$ac_check_lib_save_LIBS
7277 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7278 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7279 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7280 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7281 GLU32FILES='$(GLU32FILES)'
7289 CPPFLAGS="$ac_save_CPPFLAGS"
7290 XFILES='$(XFILES)'
7291 else
7292 XLIB=""
7293 X_CFLAGS=""
7294 X_LIBS=""
7297 CURSESLIBS=""
7298 if test "x$with_curses" != "xno"
7299 then
7301 for ac_header in ncurses.h
7303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7305 echo "$as_me:$LINENO: checking for $ac_header" >&5
7306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7312 else
7313 # Is the header compilable?
7314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7316 cat >conftest.$ac_ext <<_ACEOF
7317 #line $LINENO "configure"
7318 #include "confdefs.h"
7319 $ac_includes_default
7320 #include <$ac_header>
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest.$ac_objext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_header_compiler=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 ac_header_compiler=no
7340 rm -f conftest.$ac_objext conftest.$ac_ext
7341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7342 echo "${ECHO_T}$ac_header_compiler" >&6
7344 # Is the header present?
7345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7348 #line $LINENO "configure"
7349 #include "confdefs.h"
7350 #include <$ac_header>
7351 _ACEOF
7352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7354 ac_status=$?
7355 egrep -v '^ *\+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } >/dev/null; then
7360 if test -s conftest.err; then
7361 ac_cpp_err=$ac_c_preproc_warn_flag
7362 else
7363 ac_cpp_err=
7365 else
7366 ac_cpp_err=yes
7368 if test -z "$ac_cpp_err"; then
7369 ac_header_preproc=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 ac_header_preproc=no
7375 rm -f conftest.err conftest.$ac_ext
7376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7377 echo "${ECHO_T}$ac_header_preproc" >&6
7379 # So? What about this header?
7380 case $ac_header_compiler:$ac_header_preproc in
7381 yes:no )
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7386 no:yes )
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7393 esac
7394 echo "$as_me:$LINENO: checking for $ac_header" >&5
7395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 eval "$as_ac_Header=$ac_header_preproc"
7401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406 cat >>confdefs.h <<_ACEOF
7407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 _ACEOF
7409 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7410 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7411 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lncurses $LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 #include "confdefs.h"
7420 /* Override any gcc2 internal prototype to avoid an error. */
7421 #ifdef __cplusplus
7422 extern "C"
7423 #endif
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char waddch ();
7427 #ifdef F77_DUMMY_MAIN
7428 # ifdef __cplusplus
7429 extern "C"
7430 # endif
7431 int F77_DUMMY_MAIN() { return 1; }
7432 #endif
7434 main ()
7436 waddch ();
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try='test -s conftest$ac_exeext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 (eval $ac_try) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_lib_ncurses_waddch=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 ac_cv_lib_ncurses_waddch=no
7459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7460 LIBS=$ac_check_lib_save_LIBS
7462 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7463 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7464 if test $ac_cv_lib_ncurses_waddch = yes; then
7466 cat >>confdefs.h <<\_ACEOF
7467 #define HAVE_LIBNCURSES 1
7468 _ACEOF
7470 CURSESLIBS="-lncurses"
7471 else
7473 for ac_header in curses.h
7475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7477 echo "$as_me:$LINENO: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 else
7485 # Is the header compilable?
7486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 #include "confdefs.h"
7491 $ac_includes_default
7492 #include <$ac_header>
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -s conftest.$ac_objext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 ac_header_compiler=yes
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 ac_header_compiler=no
7512 rm -f conftest.$ac_objext conftest.$ac_ext
7513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7514 echo "${ECHO_T}$ac_header_compiler" >&6
7516 # Is the header present?
7517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #line $LINENO "configure"
7521 #include "confdefs.h"
7522 #include <$ac_header>
7523 _ACEOF
7524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7526 ac_status=$?
7527 egrep -v '^ *\+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } >/dev/null; then
7532 if test -s conftest.err; then
7533 ac_cpp_err=$ac_c_preproc_warn_flag
7534 else
7535 ac_cpp_err=
7537 else
7538 ac_cpp_err=yes
7540 if test -z "$ac_cpp_err"; then
7541 ac_header_preproc=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 ac_header_preproc=no
7547 rm -f conftest.err conftest.$ac_ext
7548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7549 echo "${ECHO_T}$ac_header_preproc" >&6
7551 # So? What about this header?
7552 case $ac_header_compiler:$ac_header_preproc in
7553 yes:no )
7554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7558 no:yes )
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7565 esac
7566 echo "$as_me:$LINENO: checking for $ac_header" >&5
7567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 eval "$as_ac_Header=$ac_header_preproc"
7573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7581 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7582 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7583 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586 ac_check_lib_save_LIBS=$LIBS
7587 LIBS="-lcurses $LIBS"
7588 cat >conftest.$ac_ext <<_ACEOF
7589 #line $LINENO "configure"
7590 #include "confdefs.h"
7592 /* Override any gcc2 internal prototype to avoid an error. */
7593 #ifdef __cplusplus
7594 extern "C"
7595 #endif
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char waddch ();
7599 #ifdef F77_DUMMY_MAIN
7600 # ifdef __cplusplus
7601 extern "C"
7602 # endif
7603 int F77_DUMMY_MAIN() { return 1; }
7604 #endif
7606 main ()
7608 waddch ();
7610 return 0;
7612 _ACEOF
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615 (eval $ac_link) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_lib_curses_waddch=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 ac_cv_lib_curses_waddch=no
7631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7632 LIBS=$ac_check_lib_save_LIBS
7634 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7635 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7636 if test $ac_cv_lib_curses_waddch = yes; then
7638 cat >>confdefs.h <<\_ACEOF
7639 #define HAVE_LIBCURSES 1
7640 _ACEOF
7642 CURSESLIBS="-lcurses"
7647 done
7653 done
7655 saved_libs="$LIBS"
7656 LIBS="$CURSESLIBS $LIBS"
7659 for ac_func in getbkgd resizeterm
7661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7662 echo "$as_me:$LINENO: checking for $ac_func" >&5
7663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7664 if eval "test \"\${$as_ac_var+set}\" = set"; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func (); below. */
7672 #include <assert.h>
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 #ifdef __cplusplus
7675 extern "C"
7676 #endif
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7679 char $ac_func ();
7680 char (*f) ();
7682 #ifdef F77_DUMMY_MAIN
7683 # ifdef __cplusplus
7684 extern "C"
7685 # endif
7686 int F77_DUMMY_MAIN() { return 1; }
7687 #endif
7689 main ()
7691 /* The GNU C library defines this for functions which it implements
7692 to always fail with ENOSYS. Some functions are actually named
7693 something starting with __ and the normal name is an alias. */
7694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7695 choke me
7696 #else
7697 f = $ac_func;
7698 #endif
7701 return 0;
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -s conftest$ac_exeext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 eval "$as_ac_var=yes"
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 eval "$as_ac_var=no"
7722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7726 if test `eval echo '${'$as_ac_var'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7729 _ACEOF
7732 done
7734 LIBS="$saved_libs"
7738 CUPSLIBS=""
7739 wine_cv_warn_cups_h=no
7740 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7741 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7742 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 ac_check_lib_save_LIBS=$LIBS
7746 LIBS="-lcups $LIBS"
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7749 #include "confdefs.h"
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 #ifdef __cplusplus
7753 extern "C"
7754 #endif
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7757 char cupsGetPPD ();
7758 #ifdef F77_DUMMY_MAIN
7759 # ifdef __cplusplus
7760 extern "C"
7761 # endif
7762 int F77_DUMMY_MAIN() { return 1; }
7763 #endif
7765 main ()
7767 cupsGetPPD ();
7769 return 0;
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_lib_cups_cupsGetPPD=yes
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7788 ac_cv_lib_cups_cupsGetPPD=no
7790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7791 LIBS=$ac_check_lib_save_LIBS
7793 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7794 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7795 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7796 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7797 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7798 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7799 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7803 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7804 else
7805 # Is the header compilable?
7806 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7807 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7810 #include "confdefs.h"
7811 $ac_includes_default
7812 #include <cups/cups.h>
7813 _ACEOF
7814 rm -f conftest.$ac_objext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816 (eval $ac_compile) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_header_compiler=yes
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7830 ac_header_compiler=no
7832 rm -f conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 echo "${ECHO_T}$ac_header_compiler" >&6
7836 # Is the header present?
7837 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7838 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7840 #line $LINENO "configure"
7841 #include "confdefs.h"
7842 #include <cups/cups.h>
7843 _ACEOF
7844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7846 ac_status=$?
7847 egrep -v '^ *\+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev/null; then
7852 if test -s conftest.err; then
7853 ac_cpp_err=$ac_c_preproc_warn_flag
7854 else
7855 ac_cpp_err=
7857 else
7858 ac_cpp_err=yes
7860 if test -z "$ac_cpp_err"; then
7861 ac_header_preproc=yes
7862 else
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 ac_header_preproc=no
7867 rm -f conftest.err conftest.$ac_ext
7868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7869 echo "${ECHO_T}$ac_header_preproc" >&6
7871 # So? What about this header?
7872 case $ac_header_compiler:$ac_header_preproc in
7873 yes:no )
7874 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7875 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7877 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7878 no:yes )
7879 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7880 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7882 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7885 esac
7886 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7887 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7888 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891 ac_cv_header_cups_cups_h=$ac_header_preproc
7893 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7894 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7897 if test $ac_cv_header_cups_cups_h = yes; then
7899 cat >>confdefs.h <<\_ACEOF
7900 #define HAVE_CUPS 1
7901 _ACEOF
7903 CUPSLIBS="-lcups"
7904 else
7905 wine_cv_warn_cups_h=yes
7914 # Extract the first word of "sane-config", so it can be a program name with args.
7915 set dummy sane-config; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_sane_devel+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test -n "$sane_devel"; then
7922 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_sane_devel="sane-config"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7938 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7941 sane_devel=$ac_cv_prog_sane_devel
7942 if test -n "$sane_devel"; then
7943 echo "$as_me:$LINENO: result: $sane_devel" >&5
7944 echo "${ECHO_T}$sane_devel" >&6
7945 else
7946 echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6
7950 if test "$sane_devel" = "no"
7951 then
7952 SANELIBS=""
7953 SANEINCL=""
7954 else
7955 SANELIBS="`$sane_devel --libs`"
7956 SANEINCL="`$sane_devel --cflags`"
7957 ac_save_CPPFLAGS="$CPPFLAGS"
7958 ac_save_LIBS="$LIBS"
7959 CPPFLAGS="$CPPFLAGS $SANEINCL"
7960 LIBS="$LIBS $SANELIBS"
7961 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7962 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7963 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7964 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7968 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7969 else
7970 # Is the header compilable?
7971 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
7972 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
7973 cat >conftest.$ac_ext <<_ACEOF
7974 #line $LINENO "configure"
7975 #include "confdefs.h"
7976 $ac_includes_default
7977 #include <sane/sane.h>
7978 _ACEOF
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_header_compiler=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 ac_header_compiler=no
7997 rm -f conftest.$ac_objext conftest.$ac_ext
7998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7999 echo "${ECHO_T}$ac_header_compiler" >&6
8001 # Is the header present?
8002 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8003 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8004 cat >conftest.$ac_ext <<_ACEOF
8005 #line $LINENO "configure"
8006 #include "confdefs.h"
8007 #include <sane/sane.h>
8008 _ACEOF
8009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8011 ac_status=$?
8012 egrep -v '^ *\+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } >/dev/null; then
8017 if test -s conftest.err; then
8018 ac_cpp_err=$ac_c_preproc_warn_flag
8019 else
8020 ac_cpp_err=
8022 else
8023 ac_cpp_err=yes
8025 if test -z "$ac_cpp_err"; then
8026 ac_header_preproc=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_preproc=no
8032 rm -f conftest.err conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8034 echo "${ECHO_T}$ac_header_preproc" >&6
8036 # So? What about this header?
8037 case $ac_header_compiler:$ac_header_preproc in
8038 yes:no )
8039 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8040 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8042 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8043 no:yes )
8044 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8045 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8047 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8049 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8050 esac
8051 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8052 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8053 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 ac_cv_header_sane_sane_h=$ac_header_preproc
8058 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8059 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8062 if test $ac_cv_header_sane_sane_h = yes; then
8063 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8064 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8065 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068 ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-lsane $LIBS"
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 #include "confdefs.h"
8074 /* Override any gcc2 internal prototype to avoid an error. */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8080 char sane_open ();
8081 #ifdef F77_DUMMY_MAIN
8082 # ifdef __cplusplus
8083 extern "C"
8084 # endif
8085 int F77_DUMMY_MAIN() { return 1; }
8086 #endif
8088 main ()
8090 sane_open ();
8092 return 0;
8094 _ACEOF
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097 (eval $ac_link) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -s conftest$ac_exeext'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_lib_sane_sane_open=yes
8108 else
8109 echo "$as_me: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 ac_cv_lib_sane_sane_open=no
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 LIBS=$ac_check_lib_save_LIBS
8116 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8117 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8118 if test $ac_cv_lib_sane_sane_open = yes; then
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_SANE 1
8122 _ACEOF
8124 else
8125 SANELIBS=""
8126 SANEINCL=""
8129 else
8130 SANELIBS=""
8131 SANEINCL=""
8135 LIBS="$ac_save_LIBS"
8136 CPPFLAGS="$ac_save_CPPFLAGS"
8141 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8142 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8143 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 ac_check_lib_save_LIBS=$LIBS
8147 LIBS="-lfreetype $X_LIBS $LIBS"
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 #include "confdefs.h"
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 #ifdef __cplusplus
8154 extern "C"
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158 char FT_Init_FreeType ();
8159 #ifdef F77_DUMMY_MAIN
8160 # ifdef __cplusplus
8161 extern "C"
8162 # endif
8163 int F77_DUMMY_MAIN() { return 1; }
8164 #endif
8166 main ()
8168 FT_Init_FreeType ();
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 ac_cv_lib_freetype_FT_Init_FreeType=yes
8186 else
8187 echo "$as_me: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 ac_cv_lib_freetype_FT_Init_FreeType=no
8191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8192 LIBS=$ac_check_lib_save_LIBS
8194 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8195 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8196 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8197 ft_lib=yes
8198 else
8199 ft_lib=no
8202 if test "$ft_lib" = "no"
8203 then
8204 FREETYPEINCL=""
8205 wine_cv_msg_freetype=no
8206 else
8207 # Extract the first word of "freetype-config", so it can be a program name with args.
8208 set dummy freetype-config; ac_word=$2
8209 echo "$as_me:$LINENO: checking for $ac_word" >&5
8210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8211 if test "${ac_cv_prog_ft_devel+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 if test -n "$ft_devel"; then
8215 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_ft_devel="freetype-config"
8225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8231 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8234 ft_devel=$ac_cv_prog_ft_devel
8235 if test -n "$ft_devel"; then
8236 echo "$as_me:$LINENO: result: $ft_devel" >&5
8237 echo "${ECHO_T}$ft_devel" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8243 if test "$ft_devel" = "no"
8244 then
8245 # Extract the first word of "freetype2-config", so it can be a program name with args.
8246 set dummy freetype2-config; ac_word=$2
8247 echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8249 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 if test -n "$ft_devel2"; then
8253 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_prog_ft_devel2="freetype2-config"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8266 done
8267 done
8269 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8272 ft_devel2=$ac_cv_prog_ft_devel2
8273 if test -n "$ft_devel2"; then
8274 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8275 echo "${ECHO_T}$ft_devel2" >&6
8276 else
8277 echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8281 if test "$ft_devel2" = "freetype2-config"
8282 then
8283 ft_devel=$ft_devel2
8286 if test "$ft_devel" = "no"
8287 then
8288 FREETYPEINCL=""
8289 wine_cv_msg_freetype=yes
8290 else
8291 FREETYPEINCL=`$ft_devel --cflags`
8292 ac_save_CPPFLAGS="$CPPFLAGS"
8293 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8302 for ac_header in freetype/freetype.h \
8303 freetype/ftglyph.h \
8304 freetype/tttables.h \
8305 freetype/ftnames.h \
8306 freetype/ftsnames.h \
8307 freetype/ttnameid.h \
8308 freetype/ftoutln.h \
8309 freetype/internal/sfnt.h
8311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8313 echo "$as_me:$LINENO: checking for $ac_header" >&5
8314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8320 else
8321 # Is the header compilable?
8322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8326 #include "confdefs.h"
8327 $ac_includes_default
8328 #include <$ac_header>
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_header_compiler=yes
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8346 ac_header_compiler=no
8348 rm -f conftest.$ac_objext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8350 echo "${ECHO_T}$ac_header_compiler" >&6
8352 # Is the header present?
8353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8358 #include <$ac_header>
8359 _ACEOF
8360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8362 ac_status=$?
8363 egrep -v '^ *\+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } >/dev/null; then
8368 if test -s conftest.err; then
8369 ac_cpp_err=$ac_c_preproc_warn_flag
8370 else
8371 ac_cpp_err=
8373 else
8374 ac_cpp_err=yes
8376 if test -z "$ac_cpp_err"; then
8377 ac_header_preproc=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8381 ac_header_preproc=no
8383 rm -f conftest.err conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8385 echo "${ECHO_T}$ac_header_preproc" >&6
8387 # So? What about this header?
8388 case $ac_header_compiler:$ac_header_preproc in
8389 yes:no )
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8394 no:yes )
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8401 esac
8402 echo "$as_me:$LINENO: checking for $ac_header" >&5
8403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407 eval "$as_ac_Header=$ac_header_preproc"
8409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416 _ACEOF
8420 done
8422 cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 #include "confdefs.h"
8425 #include <ft2build.h>
8426 #include <freetype/fttrigon.h>
8427 _ACEOF
8428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8430 ac_status=$?
8431 egrep -v '^ *\+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } >/dev/null; then
8436 if test -s conftest.err; then
8437 ac_cpp_err=$ac_c_preproc_warn_flag
8438 else
8439 ac_cpp_err=
8441 else
8442 ac_cpp_err=yes
8444 if test -z "$ac_cpp_err"; then
8446 cat >>confdefs.h <<\_ACEOF
8447 #define HAVE_FREETYPE_FTTRIGON_H 1
8448 _ACEOF
8450 wine_cv_fttrigon=yes
8451 else
8452 echo "$as_me: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8454 wine_cv_fttrigon=no
8456 rm -f conftest.err conftest.$ac_ext
8457 CPPFLAGS="$ac_save_CPPFLAGS"
8458 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8459 then
8461 cat >>confdefs.h <<\_ACEOF
8462 #define HAVE_FREETYPE 1
8463 _ACEOF
8465 wine_cv_msg_freetype=no
8466 else
8467 FREETYPEINCL=""
8468 wine_cv_msg_freetype=yes
8474 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8475 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8476 if test "${ac_cv_c_ppdev+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 cat >conftest.$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8482 #include <linux/ppdev.h>
8483 #ifdef F77_DUMMY_MAIN
8484 # ifdef __cplusplus
8485 extern "C"
8486 # endif
8487 int F77_DUMMY_MAIN() { return 1; }
8488 #endif
8490 main ()
8492 ioctl (1,PPCLAIM,0)
8494 return 0;
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499 (eval $ac_compile) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_c_ppdev="yes"
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 ac_cv_c_ppdev="no"
8515 rm -f conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8519 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8520 if test "$ac_cv_c_ppdev" = "yes"
8521 then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_PPDEV 1
8525 _ACEOF
8529 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8530 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8531 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8536 #include "confdefs.h"
8537 #include <sys/socket.h>
8538 #include <netipx/ipx.h>
8539 #ifdef F77_DUMMY_MAIN
8540 # ifdef __cplusplus
8541 extern "C"
8542 # endif
8543 int F77_DUMMY_MAIN() { return 1; }
8544 #endif
8546 main ()
8548 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8550 return 0;
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8555 (eval $ac_compile) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_c_ipx_gnu="yes"
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8569 ac_cv_c_ipx_gnu="no"
8571 rm -f conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8575 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8576 if test "$ac_cv_c_ipx_gnu" = "yes"
8577 then
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_IPX_GNU 1
8581 _ACEOF
8585 if test "$ac_cv_c_ipx_gnu" = "no"
8586 then
8587 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8588 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8589 if test "${ac_cv_c_ipx_linux+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8595 #include <sys/socket.h>
8596 #include <asm/types.h>
8597 #include <linux/ipx.h>
8598 #ifdef F77_DUMMY_MAIN
8599 # ifdef __cplusplus
8600 extern "C"
8601 # endif
8602 int F77_DUMMY_MAIN() { return 1; }
8603 #endif
8605 main ()
8607 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8609 return 0;
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_c_ipx_linux="yes"
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8628 ac_cv_c_ipx_linux="no"
8630 rm -f conftest.$ac_objext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8634 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8635 if test "$ac_cv_c_ipx_linux" = "yes"
8636 then
8638 cat >>confdefs.h <<\_ACEOF
8639 #define HAVE_IPX_LINUX 1
8640 _ACEOF
8648 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8652 echo "$as_me:$LINENO: checking for $ac_header" >&5
8653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8659 else
8660 # Is the header compilable?
8661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8665 #include "confdefs.h"
8666 $ac_includes_default
8667 #include <$ac_header>
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_header_compiler=yes
8682 else
8683 echo "$as_me: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8685 ac_header_compiler=no
8687 rm -f conftest.$ac_objext conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689 echo "${ECHO_T}$ac_header_compiler" >&6
8691 # Is the header present?
8692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8696 #include "confdefs.h"
8697 #include <$ac_header>
8698 _ACEOF
8699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701 ac_status=$?
8702 egrep -v '^ *\+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } >/dev/null; then
8707 if test -s conftest.err; then
8708 ac_cpp_err=$ac_c_preproc_warn_flag
8709 else
8710 ac_cpp_err=
8712 else
8713 ac_cpp_err=yes
8715 if test -z "$ac_cpp_err"; then
8716 ac_header_preproc=yes
8717 else
8718 echo "$as_me: failed program was:" >&5
8719 cat conftest.$ac_ext >&5
8720 ac_header_preproc=no
8722 rm -f conftest.err conftest.$ac_ext
8723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8724 echo "${ECHO_T}$ac_header_preproc" >&6
8726 # So? What about this header?
8727 case $ac_header_compiler:$ac_header_preproc in
8728 yes:no )
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8733 no:yes )
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8740 esac
8741 echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 eval "$as_ac_Header=$ac_header_preproc"
8748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 _ACEOF
8756 break
8759 done
8762 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8763 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8764 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 #line $LINENO "configure"
8769 #include "confdefs.h"
8771 #if defined(HAVE_SYS_SOUNDCARD_H)
8772 #include <sys/soundcard.h>
8773 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8774 #include <machine/soundcard.h>
8775 #elif defined(HAVE_SOUNDCARD_H)
8776 #include <soundcard.h>
8777 #endif
8779 #ifdef F77_DUMMY_MAIN
8780 # ifdef __cplusplus
8781 extern "C"
8782 # endif
8783 int F77_DUMMY_MAIN() { return 1; }
8784 #endif
8786 main ()
8790 /* check for one of the Open Sound System specific SNDCTL_ defines */
8791 #if !defined(SNDCTL_DSP_STEREO)
8792 #error No open sound system
8793 #endif
8796 return 0;
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801 (eval $ac_compile) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_c_opensoundsystem="yes"
8812 else
8813 echo "$as_me: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8815 ac_cv_c_opensoundsystem="no"
8817 rm -f conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8820 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8822 if test "$ac_cv_c_opensoundsystem" = "yes"
8823 then
8825 cat >>confdefs.h <<\_ACEOF
8826 #define HAVE_OSS 1
8827 _ACEOF
8831 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8832 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8833 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8840 #if defined(HAVE_SYS_SOUNDCARD_H)
8841 #include <sys/soundcard.h>
8842 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8843 #include <machine/soundcard.h>
8844 #elif defined(HAVE_SOUNDCARD_H)
8845 #include <soundcard.h>
8846 #endif
8848 #ifdef F77_DUMMY_MAIN
8849 # ifdef __cplusplus
8850 extern "C"
8851 # endif
8852 int F77_DUMMY_MAIN() { return 1; }
8853 #endif
8855 main ()
8859 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8860 #if !defined(SNDCTL_SEQ_SYNC)
8861 #error No open sound system MIDI interface
8862 #endif
8865 return 0;
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -s conftest.$ac_objext'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 (eval $ac_try) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_c_opensoundsystem_midi="yes"
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8884 ac_cv_c_opensoundsystem_midi="no"
8886 rm -f conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8889 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8891 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8892 then
8894 cat >>confdefs.h <<\_ACEOF
8895 #define HAVE_OSS_MIDI 1
8896 _ACEOF
8900 # Extract the first word of "artsc-config", so it can be a program name with args.
8901 set dummy artsc-config; ac_word=$2
8902 echo "$as_me:$LINENO: checking for $ac_word" >&5
8903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8904 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907 case $ARTSCCONFIG in
8908 [\\/]* | ?:[\\/]*)
8909 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8923 done
8924 done
8927 esac
8929 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
8931 if test -n "$ARTSCCONFIG"; then
8932 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
8933 echo "${ECHO_T}$ARTSCCONFIG" >&6
8934 else
8935 echo "$as_me:$LINENO: result: no" >&5
8936 echo "${ECHO_T}no" >&6
8939 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
8940 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
8941 if test "${ac_cv_c_artsserver+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
8945 then
8946 ac_cv_c_artsserver=no
8947 else
8948 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
8949 ARTSC_LIBS=`$ARTSCCONFIG --libs`
8950 ac_cv_c_artsserver=no
8951 save_CFLAGS="$CFLAGS"
8952 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8955 #include "confdefs.h"
8957 #include <artsc.h>
8959 #ifdef F77_DUMMY_MAIN
8960 # ifdef __cplusplus
8961 extern "C"
8962 # endif
8963 int F77_DUMMY_MAIN() { return 1; }
8964 #endif
8966 main ()
8969 arts_stream_t stream;
8972 return 0;
8974 _ACEOF
8975 rm -f conftest.$ac_objext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8977 (eval $ac_compile) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8988 ac_cv_c_artsserver=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8994 rm -f conftest.$ac_objext conftest.$ac_ext
8995 CFLAGS="$save_CFLAGS"
8998 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
8999 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9001 if test "$ac_cv_c_artsserver" = "yes"
9002 then
9003 ARTSLIBS=$ARTSC_LIBS
9005 ARTSINCL=$ARTSC_CFLAGS
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_ARTS 1
9011 _ACEOF
9016 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9017 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9018 if test "${ac_cv_mmap64_works+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 if test "$cross_compiling" = yes; then
9022 ac_cv_mmap64_works="no"
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 #line $LINENO "configure"
9026 #include "confdefs.h"
9028 #define _FILE_OFFSET_BITS 64
9029 #include <stdio.h>
9030 #include <unistd.h>
9031 #include <fcntl.h>
9032 #include <sys/mman.h>
9033 #include <errno.h>
9035 int main(int argc,char **argv) {
9036 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9037 if (fd == -1) exit(1);
9039 unlink("conftest.map");
9041 write(fd,"test",4);
9043 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9044 (errno == EINVAL)
9046 exit(1);
9048 close(fd);
9049 fprintf(stderr,"success!\n");
9050 exit(0);
9054 _ACEOF
9055 rm -f conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_mmap64_works="yes"
9067 else
9068 echo "$as_me: program exited with status $ac_status" >&5
9069 echo "$as_me: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9071 ( exit $ac_status )
9072 ac_cv_mmap64_works="no"
9074 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9077 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9078 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9080 if test "$ac_cv_mmap64_works" = "yes"
9081 then
9083 cat >>confdefs.h <<\_ACEOF
9084 #define _FILE_OFFSET_BITS 64
9085 _ACEOF
9090 if test "x${GCC}" = "xyes"
9091 then
9092 CFLAGS="$CFLAGS -Wall"
9093 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9094 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9095 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 if test "$cross_compiling" = yes; then
9099 ac_cv_c_gcc_strength_bug="yes"
9100 else
9101 cat >conftest.$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9105 int L[4] = {0,1,2,3};
9106 int main(void) {
9107 static int Array[3];
9108 unsigned int B = 3;
9109 int i;
9110 for(i=0; i<B; i++) Array[i] = i - 3;
9111 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9112 L[i] = 4;
9114 exit( Array[1] != -2 || L[2] != 3);
9116 _ACEOF
9117 rm -f conftest$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_c_gcc_strength_bug="no"
9129 else
9130 echo "$as_me: program exited with status $ac_status" >&5
9131 echo "$as_me: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9133 ( exit $ac_status )
9134 ac_cv_c_gcc_strength_bug="yes"
9136 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9140 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9141 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9142 then
9143 CFLAGS="$CFLAGS -fno-strength-reduce"
9146 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9147 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9148 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151 saved_cflags=$CFLAGS
9152 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 #include "confdefs.h"
9157 #ifdef F77_DUMMY_MAIN
9158 # ifdef __cplusplus
9159 extern "C"
9160 # endif
9161 int F77_DUMMY_MAIN() { return 1; }
9162 #endif
9164 main ()
9166 return 0
9168 return 0;
9170 _ACEOF
9171 rm -f conftest.$ac_objext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9173 (eval $ac_compile) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -s conftest.$ac_objext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_cv_c_gcc_stack_boundary="yes"
9184 else
9185 echo "$as_me: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9187 ac_cv_c_gcc_stack_boundary="no"
9189 rm -f conftest.$ac_objext conftest.$ac_ext
9190 CFLAGS=$saved_cflags
9193 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9194 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9195 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9196 then
9197 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9202 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9203 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9204 if test "${ac_cv_c_type_in_def+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 saved_libs=$LIBS
9208 LIBS="conftest_asm.s $LIBS"
9209 cat > conftest_asm.s <<EOF
9210 .globl _ac_test
9211 .def _ac_test; .scl 2; .type 32; .endef
9212 _ac_test:
9213 .long 0
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 #include "confdefs.h"
9219 #ifdef F77_DUMMY_MAIN
9220 # ifdef __cplusplus
9221 extern "C"
9222 # endif
9223 int F77_DUMMY_MAIN() { return 1; }
9224 #endif
9226 main ()
9230 return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235 (eval $ac_link) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_c_type_in_def="yes"
9246 else
9247 echo "$as_me: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 ac_cv_c_type_in_def="no"
9251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$saved_libs
9254 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9255 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9256 if test "$ac_cv_c_type_in_def" = "yes"
9257 then
9259 cat >>confdefs.h <<\_ACEOF
9260 #define NEED_TYPE_IN_DEF 1
9261 _ACEOF
9266 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9267 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9268 if test "${ac_cv_c_extern_prefix+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 saved_libs=$LIBS
9272 LIBS="conftest_asm.s $LIBS"
9273 cat > conftest_asm.s <<EOF
9274 .globl _ac_test
9275 _ac_test:
9276 .long 0
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 #include "confdefs.h"
9281 extern int ac_test;
9282 #ifdef F77_DUMMY_MAIN
9283 # ifdef __cplusplus
9284 extern "C"
9285 # endif
9286 int F77_DUMMY_MAIN() { return 1; }
9287 #endif
9289 main ()
9291 if (ac_test) return 1
9293 return 0;
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -s conftest$ac_exeext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_c_extern_prefix="yes"
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 ac_cv_c_extern_prefix="no"
9314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$saved_libs
9317 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9318 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9319 if test "$ac_cv_c_extern_prefix" = "yes"
9320 then
9322 cat >>confdefs.h <<\_ACEOF
9323 #define NEED_UNDERSCORE_PREFIX 1
9324 _ACEOF
9329 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9330 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9331 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334 saved_libs=$LIBS
9335 LIBS="conftest_asm.s $LIBS"
9336 if test "$ac_cv_c_extern_prefix" = "yes"
9337 then
9338 cat > conftest_asm.s <<EOF
9339 .globl _ac_test@0
9340 _ac_test@0:
9342 else
9343 cat > conftest_asm.s <<EOF
9344 .globl ac_test@0
9345 ac_test@0:
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 #include "confdefs.h"
9351 extern void __attribute__((__stdcall__)) ac_test(void);
9352 #ifdef F77_DUMMY_MAIN
9353 # ifdef __cplusplus
9354 extern "C"
9355 # endif
9356 int F77_DUMMY_MAIN() { return 1; }
9357 #endif
9359 main ()
9361 ac_test(); return 0
9363 return 0;
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_c_stdcall_decoration="yes"
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 ac_cv_c_stdcall_decoration="no"
9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385 LIBS=$saved_libs
9387 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9388 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9389 if test "$ac_cv_c_stdcall_decoration" = "yes"
9390 then
9392 cat >>confdefs.h <<\_ACEOF
9393 #define NEED_STDCALL_DECORATION 1
9394 _ACEOF
9399 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9400 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9401 if test "${ac_cv_c_asm_string+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 saved_libs=$LIBS
9405 LIBS="conftest_asm.s $LIBS"
9406 cat > conftest_asm.s <<EOF
9407 .string "test"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9411 #include "confdefs.h"
9413 #ifdef F77_DUMMY_MAIN
9414 # ifdef __cplusplus
9415 extern "C"
9416 # endif
9417 int F77_DUMMY_MAIN() { return 1; }
9418 #endif
9420 main ()
9424 return 0;
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -s conftest$ac_exeext'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_c_asm_string="yes"
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 ac_cv_c_asm_string="no"
9445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9446 LIBS=$saved_libs
9448 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9449 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9450 if test "$ac_cv_c_asm_string" = "yes"
9451 then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_ASM_STRING 1
9455 _ACEOF
9460 LDSHARED=""
9461 LDDLLFLAGS=""
9462 if test "$LIBEXT" = "so"
9463 then
9464 case $target_os in
9465 *cygwin*)
9466 # Extract the first word of "dllwrap", so it can be a program name with args.
9467 set dummy dllwrap; ac_word=$2
9468 echo "$as_me:$LINENO: checking for $ac_word" >&5
9469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9470 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 if test -n "$DLLWRAP"; then
9474 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9475 else
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in $PATH
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9483 ac_cv_prog_DLLWRAP="dllwrap"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9490 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
9493 DLLWRAP=$ac_cv_prog_DLLWRAP
9494 if test -n "$DLLWRAP"; then
9495 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9496 echo "${ECHO_T}$DLLWRAP" >&6
9497 else
9498 echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6
9502 if test "$DLLWRAP" = "dllwrap"; then
9503 LIBEXT="dll"
9504 else
9505 LIBEXT="a"
9509 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
9510 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9511 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 saved_cflags=$CFLAGS
9515 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9516 cat >conftest.$ac_ext <<_ACEOF
9517 #line $LINENO "configure"
9518 #include "confdefs.h"
9520 #ifdef F77_DUMMY_MAIN
9521 # ifdef __cplusplus
9522 extern "C"
9523 # endif
9524 int F77_DUMMY_MAIN() { return 1; }
9525 #endif
9527 main ()
9529 return 1
9531 return 0;
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 ac_cv_c_dll_gnuelf="yes"
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9550 ac_cv_c_dll_gnuelf="no"
9552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9553 CFLAGS=$saved_cflags
9556 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
9557 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
9558 if test "$ac_cv_c_dll_gnuelf" = "yes"
9559 then
9560 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
9561 LDDLLFLAGS="-Wl,-Bsymbolic"
9562 else
9563 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
9564 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
9565 if test "${ac_cv_c_dll_unixware+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568 saved_cflags=$CFLAGS
9569 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
9570 cat >conftest.$ac_ext <<_ACEOF
9571 #line $LINENO "configure"
9572 #include "confdefs.h"
9574 #ifdef F77_DUMMY_MAIN
9575 # ifdef __cplusplus
9576 extern "C"
9577 # endif
9578 int F77_DUMMY_MAIN() { return 1; }
9579 #endif
9581 main ()
9583 return 1
9585 return 0;
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_c_dll_unixware="yes"
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604 ac_cv_c_dll_unixware="no"
9606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9607 CFLAGS=$saved_cflags
9610 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
9611 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
9612 if test "$ac_cv_c_dll_unixware" = "yes"
9613 then
9614 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
9615 LDDLLFLAGS="-Wl,-B,symbolic"
9619 esac
9622 if test "$LIBEXT" = "a"; then
9623 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9624 It is currently not possible to build Wine without shared library
9625 (.so) support to allow transparent switch between .so and .dll files.
9626 If you are using Linux, you will need a newer binutils.
9627 " >&5
9628 echo "$as_me: error: could not find a way to build shared libraries.
9629 It is currently not possible to build Wine without shared library
9630 (.so) support to allow transparent switch between .so and .dll files.
9631 If you are using Linux, you will need a newer binutils.
9632 " >&2;}
9633 { (exit 1); exit 1; }; }
9636 DLLFLAGS=""
9637 LDPATH=""
9639 if test "$LIBEXT" = "so"; then
9640 DLLFLAGS="-fPIC"
9641 DLLEXT=".so"
9642 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/library:\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
9643 elif test "$LIBEXT" = "dll"; then
9644 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
9645 DLLEXT=""
9646 LDPATH="PATH=\"\$(TOPOBJDIR)/library:\$(TOPOBJDIR)/unicode:\$\$PATH\""
9659 wine_cv_libc_reentrant=no
9661 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
9662 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
9663 if test "${wine_cv_libc_r___errno_location+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 if test "$cross_compiling" = yes; then
9667 wine_cv_libc_r___errno_location=yes
9668 else
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 #include "confdefs.h"
9672 int myerrno = 0;
9673 char buf[256];
9674 int *__errno_location(){return &myerrno;}
9675 main(){connect(0,buf,255); exit(!myerrno);}
9676 _ACEOF
9677 rm -f conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 wine_cv_libc_r___errno_location=yes
9689 else
9690 echo "$as_me: program exited with status $ac_status" >&5
9691 echo "$as_me: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9693 ( exit $ac_status )
9694 wine_cv_libc_r___errno_location=no
9696 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9700 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
9701 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
9702 if test "$wine_cv_libc_r___errno_location" = "yes"
9703 then
9704 wine_cv_libc_reentrant=__errno_location
9708 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
9709 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
9710 if test "${wine_cv_libc_r___error+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 if test "$cross_compiling" = yes; then
9714 wine_cv_libc_r___error=yes
9715 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 #line $LINENO "configure"
9718 #include "confdefs.h"
9719 int myerrno = 0;
9720 char buf[256];
9721 int *__error(){return &myerrno;}
9722 main(){connect(0,buf,255); exit(!myerrno);}
9723 _ACEOF
9724 rm -f conftest$ac_exeext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 wine_cv_libc_r___error=yes
9736 else
9737 echo "$as_me: program exited with status $ac_status" >&5
9738 echo "$as_me: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9740 ( exit $ac_status )
9741 wine_cv_libc_r___error=no
9743 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
9748 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
9749 if test "$wine_cv_libc_r___error" = "yes"
9750 then
9751 wine_cv_libc_reentrant=__error
9755 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
9756 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
9757 if test "${wine_cv_libc_r____errno+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 if test "$cross_compiling" = yes; then
9761 wine_cv_libc_r____errno=yes
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 #line $LINENO "configure"
9765 #include "confdefs.h"
9766 int myerrno = 0;
9767 char buf[256];
9768 int *___errno(){return &myerrno;}
9769 main(){connect(0,buf,255); exit(!myerrno);}
9770 _ACEOF
9771 rm -f conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 wine_cv_libc_r____errno=yes
9783 else
9784 echo "$as_me: program exited with status $ac_status" >&5
9785 echo "$as_me: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9787 ( exit $ac_status )
9788 wine_cv_libc_r____errno=no
9790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9794 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
9795 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
9796 if test "$wine_cv_libc_r____errno" = "yes"
9797 then
9798 wine_cv_libc_reentrant=___errno
9802 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
9803 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
9804 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807 if test "$cross_compiling" = yes; then
9808 wine_cv_libc_r___thr_errno=yes
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 #include "confdefs.h"
9813 int myerrno = 0;
9814 char buf[256];
9815 int *__thr_errno(){return &myerrno;}
9816 main(){connect(0,buf,255); exit(!myerrno);}
9817 _ACEOF
9818 rm -f conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 wine_cv_libc_r___thr_errno=yes
9830 else
9831 echo "$as_me: program exited with status $ac_status" >&5
9832 echo "$as_me: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9834 ( exit $ac_status )
9835 wine_cv_libc_r___thr_errno=no
9837 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9841 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
9842 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
9843 if test "$wine_cv_libc_r___thr_errno" = "yes"
9844 then
9845 wine_cv_libc_reentrant=__thr_errno
9849 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
9850 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
9851 if test "${wine_cv_libc_r___errno+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854 if test "$cross_compiling" = yes; then
9855 wine_cv_libc_r___errno=yes
9856 else
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 #include "confdefs.h"
9860 int myerrno = 0;
9861 char buf[256];
9862 int *__errno(){return &myerrno;}
9863 main(){connect(0,buf,255); exit(!myerrno);}
9864 _ACEOF
9865 rm -f conftest$ac_exeext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 wine_cv_libc_r___errno=yes
9877 else
9878 echo "$as_me: program exited with status $ac_status" >&5
9879 echo "$as_me: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 ( exit $ac_status )
9882 wine_cv_libc_r___errno=no
9884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
9889 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
9890 if test "$wine_cv_libc_r___errno" = "yes"
9891 then
9892 wine_cv_libc_reentrant=__errno
9896 if test "$wine_cv_libc_reentrant" != "no"
9897 then
9899 cat >>confdefs.h <<_ACEOF
9900 #define ERRNO_LOCATION $wine_cv_libc_reentrant
9901 _ACEOF
9906 if test "$have_x" = "yes"
9907 then
9908 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
9909 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
9910 if test "${wine_cv_x_reentrant+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 libX11_check=none
9914 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
9915 if test -r $dir/libX11.so; then
9916 libX11_check="-D $dir/libX11.so"
9917 break
9919 if test -r $dir/libX11.a; then
9920 libX11_check="$dir/libX11.a"
9921 break
9923 done
9924 if test "$libX11_check" != "none"; then
9925 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
9926 then
9927 wine_cv_x_reentrant=yes
9928 else
9929 wine_cv_x_reentrant=no
9931 else
9932 wine_cv_x_reentrant=unknown
9935 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
9936 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
9940 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9941 # for constant arguments. Useless!
9942 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9943 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9944 if test "${ac_cv_working_alloca_h+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 cat >conftest.$ac_ext <<_ACEOF
9948 #line $LINENO "configure"
9949 #include "confdefs.h"
9950 #include <alloca.h>
9951 #ifdef F77_DUMMY_MAIN
9952 # ifdef __cplusplus
9953 extern "C"
9954 # endif
9955 int F77_DUMMY_MAIN() { return 1; }
9956 #endif
9958 main ()
9960 char *p = (char *) alloca (2 * sizeof (int));
9962 return 0;
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_working_alloca_h=yes
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 ac_cv_working_alloca_h=no
9983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9986 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9987 if test $ac_cv_working_alloca_h = yes; then
9989 cat >>confdefs.h <<\_ACEOF
9990 #define HAVE_ALLOCA_H 1
9991 _ACEOF
9995 echo "$as_me:$LINENO: checking for alloca" >&5
9996 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9997 if test "${ac_cv_func_alloca_works+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 #include "confdefs.h"
10003 #ifdef __GNUC__
10004 # define alloca __builtin_alloca
10005 #else
10006 # ifdef _MSC_VER
10007 # include <malloc.h>
10008 # define alloca _alloca
10009 # else
10010 # if HAVE_ALLOCA_H
10011 # include <alloca.h>
10012 # else
10013 # ifdef _AIX
10014 #pragma alloca
10015 # else
10016 # ifndef alloca /* predefined by HP cc +Olibcalls */
10017 char *alloca ();
10018 # endif
10019 # endif
10020 # endif
10021 # endif
10022 #endif
10024 #ifdef F77_DUMMY_MAIN
10025 # ifdef __cplusplus
10026 extern "C"
10027 # endif
10028 int F77_DUMMY_MAIN() { return 1; }
10029 #endif
10031 main ()
10033 char *p = (char *) alloca (1);
10035 return 0;
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10040 (eval $ac_link) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_cv_func_alloca_works=yes
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 ac_cv_func_alloca_works=no
10056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10059 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10061 if test $ac_cv_func_alloca_works = yes; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_ALLOCA 1
10065 _ACEOF
10067 else
10068 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10069 # that cause trouble. Some versions do not even contain alloca or
10070 # contain a buggy version. If you still want to use their alloca,
10071 # use ar to extract alloca.o from them instead of compiling alloca.c.
10073 ALLOCA=alloca.$ac_objext
10075 cat >>confdefs.h <<\_ACEOF
10076 #define C_ALLOCA 1
10077 _ACEOF
10080 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10081 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10082 if test "${ac_cv_os_cray+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 cat >conftest.$ac_ext <<_ACEOF
10086 #line $LINENO "configure"
10087 #include "confdefs.h"
10088 #if defined(CRAY) && ! defined(CRAY2)
10089 webecray
10090 #else
10091 wenotbecray
10092 #endif
10094 _ACEOF
10095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10096 egrep "webecray" >/dev/null 2>&1; then
10097 ac_cv_os_cray=yes
10098 else
10099 ac_cv_os_cray=no
10101 rm -f conftest*
10104 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10105 echo "${ECHO_T}$ac_cv_os_cray" >&6
10106 if test $ac_cv_os_cray = yes; then
10107 for ac_func in _getb67 GETB67 getb67; do
10108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10109 echo "$as_me:$LINENO: checking for $ac_func" >&5
10110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10111 if eval "test \"\${$as_ac_var+set}\" = set"; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114 cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 #include "confdefs.h"
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char $ac_func (); below. */
10119 #include <assert.h>
10120 /* Override any gcc2 internal prototype to avoid an error. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126 char $ac_func ();
10127 char (*f) ();
10129 #ifdef F77_DUMMY_MAIN
10130 # ifdef __cplusplus
10131 extern "C"
10132 # endif
10133 int F77_DUMMY_MAIN() { return 1; }
10134 #endif
10136 main ()
10138 /* The GNU C library defines this for functions which it implements
10139 to always fail with ENOSYS. Some functions are actually named
10140 something starting with __ and the normal name is an alias. */
10141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10142 choke me
10143 #else
10144 f = $ac_func;
10145 #endif
10148 return 0;
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 eval "$as_ac_var=yes"
10164 else
10165 echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 eval "$as_ac_var=no"
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10173 if test `eval echo '${'$as_ac_var'}'` = yes; then
10175 cat >>confdefs.h <<_ACEOF
10176 #define CRAY_STACKSEG_END $ac_func
10177 _ACEOF
10179 break
10182 done
10185 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10186 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10187 if test "${ac_cv_c_stack_direction+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 if test "$cross_compiling" = yes; then
10191 ac_cv_c_stack_direction=0
10192 else
10193 cat >conftest.$ac_ext <<_ACEOF
10194 #line $LINENO "configure"
10195 #include "confdefs.h"
10197 find_stack_direction ()
10199 static char *addr = 0;
10200 auto char dummy;
10201 if (addr == 0)
10203 addr = &dummy;
10204 return find_stack_direction ();
10206 else
10207 return (&dummy > addr) ? 1 : -1;
10211 main ()
10213 exit (find_stack_direction () < 0);
10215 _ACEOF
10216 rm -f conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_c_stack_direction=1
10228 else
10229 echo "$as_me: program exited with status $ac_status" >&5
10230 echo "$as_me: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 ( exit $ac_status )
10233 ac_cv_c_stack_direction=-1
10235 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10239 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10241 cat >>confdefs.h <<_ACEOF
10242 #define STACK_DIRECTION $ac_cv_c_stack_direction
10243 _ACEOF
10292 for ac_func in \
10293 __libc_fork \
10294 _lwp_create \
10295 _pclose \
10296 _popen \
10297 _stricmp \
10298 _strnicmp \
10299 chsize \
10300 clone \
10301 ecvt \
10302 finite \
10303 fpclass \
10304 ftruncate \
10305 ftruncate64 \
10306 getnetbyaddr \
10307 getnetbyname \
10308 getpagesize \
10309 getprotobyname \
10310 getprotobynumber \
10311 getservbyport \
10312 getsockopt \
10313 inet_network \
10314 lseek64 \
10315 lstat \
10316 memmove \
10317 mmap \
10318 pclose \
10319 popen \
10320 pread \
10321 pwrite \
10322 rfork \
10323 select \
10324 sendmsg \
10325 settimeofday \
10326 sigaltstack \
10327 statfs \
10328 strcasecmp \
10329 strerror \
10330 strncasecmp \
10331 tcgetattr \
10332 timegm \
10333 usleep \
10334 vfscanf \
10335 wait4 \
10336 waitpid \
10339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10340 echo "$as_me:$LINENO: checking for $ac_func" >&5
10341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10342 if eval "test \"\${$as_ac_var+set}\" = set"; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 cat >conftest.$ac_ext <<_ACEOF
10346 #line $LINENO "configure"
10347 #include "confdefs.h"
10348 /* System header to define __stub macros and hopefully few prototypes,
10349 which can conflict with char $ac_func (); below. */
10350 #include <assert.h>
10351 /* Override any gcc2 internal prototype to avoid an error. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char $ac_func ();
10358 char (*f) ();
10360 #ifdef F77_DUMMY_MAIN
10361 # ifdef __cplusplus
10362 extern "C"
10363 # endif
10364 int F77_DUMMY_MAIN() { return 1; }
10365 #endif
10367 main ()
10369 /* The GNU C library defines this for functions which it implements
10370 to always fail with ENOSYS. Some functions are actually named
10371 something starting with __ and the normal name is an alias. */
10372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10373 choke me
10374 #else
10375 f = $ac_func;
10376 #endif
10379 return 0;
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 eval "$as_ac_var=yes"
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 eval "$as_ac_var=no"
10400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10404 if test `eval echo '${'$as_ac_var'}'` = yes; then
10405 cat >>confdefs.h <<_ACEOF
10406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10407 _ACEOF
10410 done
10478 for ac_header in \
10479 arpa/inet.h \
10480 arpa/nameser.h \
10481 direct.h \
10482 elf.h \
10483 float.h \
10484 ieeefp.h \
10485 io.h \
10486 libio.h \
10487 libutil.h \
10488 link.h \
10489 linux/cdrom.h \
10490 linux/hdreg.h \
10491 linux/input.h \
10492 linux/joystick.h \
10493 linux/major.h \
10494 linux/param.h \
10495 linux/serial.h \
10496 linux/ucdrom.h \
10497 net/if.h \
10498 netdb.h \
10499 netinet/in.h \
10500 netinet/in_systm.h \
10501 netinet/ip.h \
10502 netinet/tcp.h \
10503 pty.h \
10504 resolv.h \
10505 sched.h \
10506 scsi/sg.h \
10507 socket.h \
10508 stdint.h \
10509 strings.h \
10510 sys/cdio.h \
10511 sys/errno.h \
10512 sys/file.h \
10513 sys/filio.h \
10514 sys/inttypes.h \
10515 sys/ipc.h \
10516 sys/link.h \
10517 sys/lwp.h \
10518 sys/mman.h \
10519 sys/modem.h \
10520 sys/mount.h \
10521 sys/msg.h \
10522 sys/param.h \
10523 sys/ptrace.h \
10524 sys/reg.h \
10525 sys/shm.h \
10526 sys/signal.h \
10527 sys/socket.h \
10528 sys/sockio.h \
10529 sys/statfs.h \
10530 sys/strtio.h \
10531 sys/syscall.h \
10532 sys/sysctl.h \
10533 sys/time.h \
10534 sys/user.h \
10535 sys/v86.h \
10536 sys/v86intr.h \
10537 sys/vfs.h \
10538 sys/vm86.h \
10539 sys/wait.h \
10540 syscall.h \
10541 ucontext.h \
10542 unistd.h \
10545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10547 echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10554 else
10555 # Is the header compilable?
10556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10558 cat >conftest.$ac_ext <<_ACEOF
10559 #line $LINENO "configure"
10560 #include "confdefs.h"
10561 $ac_includes_default
10562 #include <$ac_header>
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566 (eval $ac_compile) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -s conftest.$ac_objext'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_header_compiler=yes
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10580 ac_header_compiler=no
10582 rm -f conftest.$ac_objext conftest.$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10584 echo "${ECHO_T}$ac_header_compiler" >&6
10586 # Is the header present?
10587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10589 cat >conftest.$ac_ext <<_ACEOF
10590 #line $LINENO "configure"
10591 #include "confdefs.h"
10592 #include <$ac_header>
10593 _ACEOF
10594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10596 ac_status=$?
10597 egrep -v '^ *\+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null; then
10602 if test -s conftest.err; then
10603 ac_cpp_err=$ac_c_preproc_warn_flag
10604 else
10605 ac_cpp_err=
10607 else
10608 ac_cpp_err=yes
10610 if test -z "$ac_cpp_err"; then
10611 ac_header_preproc=yes
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 ac_header_preproc=no
10617 rm -f conftest.err conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6
10621 # So? What about this header?
10622 case $ac_header_compiler:$ac_header_preproc in
10623 yes:no )
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10628 no:yes )
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10635 esac
10636 echo "$as_me:$LINENO: checking for $ac_header" >&5
10637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 eval "$as_ac_Header=$ac_header_preproc"
10643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10648 cat >>confdefs.h <<_ACEOF
10649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10650 _ACEOF
10654 done
10656 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10657 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10658 if test "${ac_cv_header_stat_broken+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10663 #include "confdefs.h"
10664 #include <sys/types.h>
10665 #include <sys/stat.h>
10667 #if defined(S_ISBLK) && defined(S_IFDIR)
10668 # if S_ISBLK (S_IFDIR)
10669 You lose.
10670 # endif
10671 #endif
10673 #if defined(S_ISBLK) && defined(S_IFCHR)
10674 # if S_ISBLK (S_IFCHR)
10675 You lose.
10676 # endif
10677 #endif
10679 #if defined(S_ISLNK) && defined(S_IFREG)
10680 # if S_ISLNK (S_IFREG)
10681 You lose.
10682 # endif
10683 #endif
10685 #if defined(S_ISSOCK) && defined(S_IFREG)
10686 # if S_ISSOCK (S_IFREG)
10687 You lose.
10688 # endif
10689 #endif
10691 _ACEOF
10692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10693 egrep "You lose" >/dev/null 2>&1; then
10694 ac_cv_header_stat_broken=yes
10695 else
10696 ac_cv_header_stat_broken=no
10698 rm -f conftest*
10701 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10702 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10703 if test $ac_cv_header_stat_broken = yes; then
10705 cat >>confdefs.h <<\_ACEOF
10706 #define STAT_MACROS_BROKEN 1
10707 _ACEOF
10713 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10714 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10715 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718 ac_cv_prog_cc_stdc=no
10719 ac_save_CC=$CC
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 #include "confdefs.h"
10723 #include <stdarg.h>
10724 #include <stdio.h>
10725 #include <sys/types.h>
10726 #include <sys/stat.h>
10727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10728 struct buf { int x; };
10729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10730 static char *e (p, i)
10731 char **p;
10732 int i;
10734 return p[i];
10736 static char *f (char * (*g) (char **, int), char **p, ...)
10738 char *s;
10739 va_list v;
10740 va_start (v,p);
10741 s = g (p, va_arg (v,int));
10742 va_end (v);
10743 return s;
10745 int test (int i, double x);
10746 struct s1 {int (*f) (int a);};
10747 struct s2 {int (*f) (double a);};
10748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10749 int argc;
10750 char **argv;
10751 #ifdef F77_DUMMY_MAIN
10752 # ifdef __cplusplus
10753 extern "C"
10754 # endif
10755 int F77_DUMMY_MAIN() { return 1; }
10756 #endif
10758 main ()
10760 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10762 return 0;
10764 _ACEOF
10765 # Don't try gcc -ansi; that turns off useful extensions and
10766 # breaks some systems' header files.
10767 # AIX -qlanglvl=ansi
10768 # Ultrix and OSF/1 -std1
10769 # HP-UX 10.20 and later -Ae
10770 # HP-UX older versions -Aa -D_HPUX_SOURCE
10771 # SVR4 -Xc -D__EXTENSIONS__
10772 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10774 CC="$ac_save_CC $ac_arg"
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -s conftest.$ac_objext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_cv_prog_cc_stdc=$ac_arg
10788 break
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10793 rm -f conftest.$ac_objext
10794 done
10795 rm -f conftest.$ac_ext conftest.$ac_objext
10796 CC=$ac_save_CC
10800 case "x$ac_cv_prog_cc_stdc" in
10801 x|xno)
10802 echo "$as_me:$LINENO: result: none needed" >&5
10803 echo "${ECHO_T}none needed" >&6 ;;
10805 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10806 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10807 CC="$CC $ac_cv_prog_cc_stdc" ;;
10808 esac
10810 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10812 if test "${ac_cv_c_const+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 #include "confdefs.h"
10819 #ifdef F77_DUMMY_MAIN
10820 # ifdef __cplusplus
10821 extern "C"
10822 # endif
10823 int F77_DUMMY_MAIN() { return 1; }
10824 #endif
10826 main ()
10828 /* FIXME: Include the comments suggested by Paul. */
10829 #ifndef __cplusplus
10830 /* Ultrix mips cc rejects this. */
10831 typedef int charset[2];
10832 const charset x;
10833 /* SunOS 4.1.1 cc rejects this. */
10834 char const *const *ccp;
10835 char **p;
10836 /* NEC SVR4.0.2 mips cc rejects this. */
10837 struct point {int x, y;};
10838 static struct point const zero = {0,0};
10839 /* AIX XL C 1.02.0.0 rejects this.
10840 It does not let you subtract one const X* pointer from another in
10841 an arm of an if-expression whose if-part is not a constant
10842 expression */
10843 const char *g = "string";
10844 ccp = &g + (g ? g-g : 0);
10845 /* HPUX 7.0 cc rejects these. */
10846 ++ccp;
10847 p = (char**) ccp;
10848 ccp = (char const *const *) p;
10849 { /* SCO 3.2v4 cc rejects this. */
10850 char *t;
10851 char const *s = 0 ? (char *) 0 : (char const *) 0;
10853 *t++ = 0;
10855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10856 int x[] = {25, 17};
10857 const int *foo = &x[0];
10858 ++foo;
10860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10861 typedef const int *iptr;
10862 iptr p = 0;
10863 ++p;
10865 { /* AIX XL C 1.02.0.0 rejects this saying
10866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10867 struct s { int j; const int *ap[3]; };
10868 struct s *b; b->j = 5;
10870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10871 const int foo = 10;
10873 #endif
10876 return 0;
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10881 (eval $ac_compile) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_c_const=yes
10892 else
10893 echo "$as_me: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 ac_cv_c_const=no
10897 rm -f conftest.$ac_objext conftest.$ac_ext
10899 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10900 echo "${ECHO_T}$ac_cv_c_const" >&6
10901 if test $ac_cv_c_const = no; then
10903 cat >>confdefs.h <<\_ACEOF
10904 #define const
10905 _ACEOF
10909 echo "$as_me:$LINENO: checking for inline" >&5
10910 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10911 if test "${ac_cv_c_inline+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 ac_cv_c_inline=no
10915 for ac_kw in inline __inline__ __inline; do
10916 cat >conftest.$ac_ext <<_ACEOF
10917 #line $LINENO "configure"
10918 #include "confdefs.h"
10919 #ifndef __cplusplus
10920 static $ac_kw int static_foo () {return 0; }
10921 $ac_kw int foo () {return 0; }
10922 #endif
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927 (eval $ac_compile) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_c_inline=$ac_kw; break
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 cat conftest.$ac_ext >&5
10942 rm -f conftest.$ac_objext conftest.$ac_ext
10943 done
10946 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10947 echo "${ECHO_T}$ac_cv_c_inline" >&6
10948 case $ac_cv_c_inline in
10949 inline | yes) ;;
10951 cat >>confdefs.h <<\_ACEOF
10952 #define inline
10953 _ACEOF
10955 *) cat >>confdefs.h <<_ACEOF
10956 #define inline $ac_cv_c_inline
10957 _ACEOF
10959 esac
10961 echo "$as_me:$LINENO: checking for mode_t" >&5
10962 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10963 if test "${ac_cv_type_mode_t+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966 cat >conftest.$ac_ext <<_ACEOF
10967 #line $LINENO "configure"
10968 #include "confdefs.h"
10969 $ac_includes_default
10970 #ifdef F77_DUMMY_MAIN
10971 # ifdef __cplusplus
10972 extern "C"
10973 # endif
10974 int F77_DUMMY_MAIN() { return 1; }
10975 #endif
10977 main ()
10979 if ((mode_t *) 0)
10980 return 0;
10981 if (sizeof (mode_t))
10982 return 0;
10984 return 0;
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10989 (eval $ac_compile) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_type_mode_t=yes
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11003 ac_cv_type_mode_t=no
11005 rm -f conftest.$ac_objext conftest.$ac_ext
11007 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11008 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11009 if test $ac_cv_type_mode_t = yes; then
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_MODE_T 1
11013 _ACEOF
11017 echo "$as_me:$LINENO: checking for off_t" >&5
11018 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11019 if test "${ac_cv_type_off_t+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11024 #include "confdefs.h"
11025 $ac_includes_default
11026 #ifdef F77_DUMMY_MAIN
11027 # ifdef __cplusplus
11028 extern "C"
11029 # endif
11030 int F77_DUMMY_MAIN() { return 1; }
11031 #endif
11033 main ()
11035 if ((off_t *) 0)
11036 return 0;
11037 if (sizeof (off_t))
11038 return 0;
11040 return 0;
11042 _ACEOF
11043 rm -f conftest.$ac_objext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_type_off_t=yes
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 ac_cv_type_off_t=no
11061 rm -f conftest.$ac_objext conftest.$ac_ext
11063 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11064 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11065 if test $ac_cv_type_off_t = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define HAVE_OFF_T 1
11069 _ACEOF
11073 echo "$as_me:$LINENO: checking for pid_t" >&5
11074 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11075 if test "${ac_cv_type_pid_t+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 #line $LINENO "configure"
11080 #include "confdefs.h"
11081 $ac_includes_default
11082 #ifdef F77_DUMMY_MAIN
11083 # ifdef __cplusplus
11084 extern "C"
11085 # endif
11086 int F77_DUMMY_MAIN() { return 1; }
11087 #endif
11089 main ()
11091 if ((pid_t *) 0)
11092 return 0;
11093 if (sizeof (pid_t))
11094 return 0;
11096 return 0;
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11101 (eval $ac_compile) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_type_pid_t=yes
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 ac_cv_type_pid_t=no
11117 rm -f conftest.$ac_objext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11120 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11121 if test $ac_cv_type_pid_t = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_PID_T 1
11125 _ACEOF
11129 echo "$as_me:$LINENO: checking for size_t" >&5
11130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11131 if test "${ac_cv_type_size_t+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11136 #include "confdefs.h"
11137 $ac_includes_default
11138 #ifdef F77_DUMMY_MAIN
11139 # ifdef __cplusplus
11140 extern "C"
11141 # endif
11142 int F77_DUMMY_MAIN() { return 1; }
11143 #endif
11145 main ()
11147 if ((size_t *) 0)
11148 return 0;
11149 if (sizeof (size_t))
11150 return 0;
11152 return 0;
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157 (eval $ac_compile) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -s conftest.$ac_objext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_type_size_t=yes
11168 else
11169 echo "$as_me: failed program was:" >&5
11170 cat conftest.$ac_ext >&5
11171 ac_cv_type_size_t=no
11173 rm -f conftest.$ac_objext conftest.$ac_ext
11175 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11176 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11177 if test $ac_cv_type_size_t = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180 #define HAVE_SIZE_T 1
11181 _ACEOF
11185 echo "$as_me:$LINENO: checking for ssize_t" >&5
11186 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11187 if test "${ac_cv_type_ssize_t+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190 cat >conftest.$ac_ext <<_ACEOF
11191 #line $LINENO "configure"
11192 #include "confdefs.h"
11193 $ac_includes_default
11194 #ifdef F77_DUMMY_MAIN
11195 # ifdef __cplusplus
11196 extern "C"
11197 # endif
11198 int F77_DUMMY_MAIN() { return 1; }
11199 #endif
11201 main ()
11203 if ((ssize_t *) 0)
11204 return 0;
11205 if (sizeof (ssize_t))
11206 return 0;
11208 return 0;
11210 _ACEOF
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -s conftest.$ac_objext'
11218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219 (eval $ac_try) 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
11223 ac_cv_type_ssize_t=yes
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 ac_cv_type_ssize_t=no
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11231 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11232 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11233 if test $ac_cv_type_ssize_t = yes; then
11235 cat >>confdefs.h <<_ACEOF
11236 #define HAVE_SSIZE_T 1
11237 _ACEOF
11242 echo "$as_me:$LINENO: checking for long long" >&5
11243 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11244 if test "${ac_cv_type_long_long+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247 cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 $ac_includes_default
11251 #ifdef F77_DUMMY_MAIN
11252 # ifdef __cplusplus
11253 extern "C"
11254 # endif
11255 int F77_DUMMY_MAIN() { return 1; }
11256 #endif
11258 main ()
11260 if ((long long *) 0)
11261 return 0;
11262 if (sizeof (long long))
11263 return 0;
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_type_long_long=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 ac_cv_type_long_long=no
11286 rm -f conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11289 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11291 echo "$as_me:$LINENO: checking size of long long" >&5
11292 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11293 if test "${ac_cv_sizeof_long_long+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296 if test "$ac_cv_type_long_long" = yes; then
11297 # The cast to unsigned long works around a bug in the HP C Compiler
11298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11300 # This bug is HP SR number 8606223364.
11301 if test "$cross_compiling" = yes; then
11302 # Depending upon the size, compute the lo and hi bounds.
11303 cat >conftest.$ac_ext <<_ACEOF
11304 #line $LINENO "configure"
11305 #include "confdefs.h"
11306 $ac_includes_default
11307 #ifdef F77_DUMMY_MAIN
11308 # ifdef __cplusplus
11309 extern "C"
11310 # endif
11311 int F77_DUMMY_MAIN() { return 1; }
11312 #endif
11314 main ()
11316 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11317 test_array [0] = 0
11320 return 0;
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325 (eval $ac_compile) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_lo=0 ac_mid=0
11336 while :; do
11337 cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11339 #include "confdefs.h"
11340 $ac_includes_default
11341 #ifdef F77_DUMMY_MAIN
11342 # ifdef __cplusplus
11343 extern "C"
11344 # endif
11345 int F77_DUMMY_MAIN() { return 1; }
11346 #endif
11348 main ()
11350 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11351 test_array [0] = 0
11354 return 0;
11356 _ACEOF
11357 rm -f conftest.$ac_objext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -s conftest.$ac_objext'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_hi=$ac_mid; break
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 ac_lo=`expr $ac_mid + 1`
11374 if test $ac_lo -le $ac_mid; then
11375 ac_lo= ac_hi=
11376 break
11378 ac_mid=`expr 2 '*' $ac_mid + 1`
11380 rm -f conftest.$ac_objext conftest.$ac_ext
11381 done
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 cat >conftest.$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11388 $ac_includes_default
11389 #ifdef F77_DUMMY_MAIN
11390 # ifdef __cplusplus
11391 extern "C"
11392 # endif
11393 int F77_DUMMY_MAIN() { return 1; }
11394 #endif
11396 main ()
11398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11399 test_array [0] = 0
11402 return 0;
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 ac_hi=-1 ac_mid=-1
11418 while :; do
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11421 #include "confdefs.h"
11422 $ac_includes_default
11423 #ifdef F77_DUMMY_MAIN
11424 # ifdef __cplusplus
11425 extern "C"
11426 # endif
11427 int F77_DUMMY_MAIN() { return 1; }
11428 #endif
11430 main ()
11432 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11433 test_array [0] = 0
11436 return 0;
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 ac_lo=$ac_mid; break
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 ac_hi=`expr '(' $ac_mid ')' - 1`
11456 if test $ac_mid -le $ac_hi; then
11457 ac_lo= ac_hi=
11458 break
11460 ac_mid=`expr 2 '*' $ac_mid`
11462 rm -f conftest.$ac_objext conftest.$ac_ext
11463 done
11464 else
11465 echo "$as_me: failed program was:" >&5
11466 cat conftest.$ac_ext >&5
11467 ac_lo= ac_hi=
11469 rm -f conftest.$ac_objext conftest.$ac_ext
11471 rm -f conftest.$ac_objext conftest.$ac_ext
11472 # Binary search between lo and hi bounds.
11473 while test "x$ac_lo" != "x$ac_hi"; do
11474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11475 cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478 $ac_includes_default
11479 #ifdef F77_DUMMY_MAIN
11480 # ifdef __cplusplus
11481 extern "C"
11482 # endif
11483 int F77_DUMMY_MAIN() { return 1; }
11484 #endif
11486 main ()
11488 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11489 test_array [0] = 0
11492 return 0;
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_hi=$ac_mid
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 cat conftest.$ac_ext >&5
11511 ac_lo=`expr '(' $ac_mid ')' + 1`
11513 rm -f conftest.$ac_objext conftest.$ac_ext
11514 done
11515 case $ac_lo in
11516 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11518 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11519 { (exit 1); exit 1; }; } ;;
11520 esac
11521 else
11522 if test "$cross_compiling" = yes; then
11523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11524 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11525 { (exit 1); exit 1; }; }
11526 else
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line $LINENO "configure"
11529 #include "confdefs.h"
11530 $ac_includes_default
11531 long longval () { return (long) (sizeof (long long)); }
11532 unsigned long ulongval () { return (long) (sizeof (long long)); }
11533 #include <stdio.h>
11534 #include <stdlib.h>
11535 #ifdef F77_DUMMY_MAIN
11536 # ifdef __cplusplus
11537 extern "C"
11538 # endif
11539 int F77_DUMMY_MAIN() { return 1; }
11540 #endif
11542 main ()
11545 FILE *f = fopen ("conftest.val", "w");
11546 if (! f)
11547 exit (1);
11548 if (((long) (sizeof (long long))) < 0)
11550 long i = longval ();
11551 if (i != ((long) (sizeof (long long))))
11552 exit (1);
11553 fprintf (f, "%ld\n", i);
11555 else
11557 unsigned long i = ulongval ();
11558 if (i != ((long) (sizeof (long long))))
11559 exit (1);
11560 fprintf (f, "%lu\n", i);
11562 exit (ferror (f) || fclose (f) != 0);
11565 return 0;
11567 _ACEOF
11568 rm -f conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_cv_sizeof_long_long=`cat conftest.val`
11580 else
11581 echo "$as_me: program exited with status $ac_status" >&5
11582 echo "$as_me: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 ( exit $ac_status )
11585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11586 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11587 { (exit 1); exit 1; }; }
11589 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11592 rm -f conftest.val
11593 else
11594 ac_cv_sizeof_long_long=0
11597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11598 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11599 cat >>confdefs.h <<_ACEOF
11600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11601 _ACEOF
11605 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
11606 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
11607 if test "${wine_cv_linux_input_h+set}" = set; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610 cat >conftest.$ac_ext <<_ACEOF
11611 #line $LINENO "configure"
11612 #include "confdefs.h"
11614 #include <linux/input.h>
11616 #ifdef F77_DUMMY_MAIN
11617 # ifdef __cplusplus
11618 extern "C"
11619 # endif
11620 int F77_DUMMY_MAIN() { return 1; }
11621 #endif
11623 main ()
11626 int foo = EVIOCGBIT(EV_ABS,42);
11627 int bar = BTN_PINKIE;
11628 int fortytwo = 42;
11631 return 0;
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636 (eval $ac_compile) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -s conftest.$ac_objext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 wine_cv_linux_input_h=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 cat conftest.$ac_ext >&5
11650 wine_cv_linux_input_h=no
11652 rm -f conftest.$ac_objext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
11656 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
11657 if test "$wine_cv_linux_input_h" = "yes"
11658 then
11660 cat >>confdefs.h <<\_ACEOF
11661 #define HAVE_CORRECT_LINUXINPUT_H 1
11662 _ACEOF
11667 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
11668 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
11669 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line $LINENO "configure"
11674 #include "confdefs.h"
11676 #include <netdb.h>
11678 #ifdef F77_DUMMY_MAIN
11679 # ifdef __cplusplus
11680 extern "C"
11681 # endif
11682 int F77_DUMMY_MAIN() { return 1; }
11683 #endif
11685 main ()
11688 char *name=NULL;
11689 struct hostent he;
11690 struct hostent *result;
11691 char *buf=NULL;
11692 int bufsize=0;
11693 int res,errnr;
11694 char *addr=NULL;
11695 int addrlen=0;
11696 int addrtype=0;
11697 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
11698 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
11701 return 0;
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest.$ac_objext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 wine_cv_linux_gethostbyname_r_6=yes
11717 else
11718 echo "$as_me: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11720 wine_cv_linux_gethostbyname_r_6=no
11723 rm -f conftest.$ac_objext conftest.$ac_ext
11726 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
11727 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
11728 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
11729 then
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
11733 _ACEOF
11737 if test "$ac_cv_header_linux_joystick_h" = "yes"
11738 then
11739 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
11740 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
11741 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 cat >conftest.$ac_ext <<_ACEOF
11745 #line $LINENO "configure"
11746 #include "confdefs.h"
11748 #include <sys/ioctl.h>
11749 #include <linux/joystick.h>
11751 struct js_event blub;
11752 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
11753 #error "no 2.2 header"
11754 #endif
11756 #ifdef F77_DUMMY_MAIN
11757 # ifdef __cplusplus
11758 extern "C"
11759 # endif
11760 int F77_DUMMY_MAIN() { return 1; }
11761 #endif
11763 main ()
11765 /*empty*/
11767 return 0;
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 wine_cv_linux_joystick_22_api=yes
11783 else
11784 echo "$as_me: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11786 wine_cv_linux_joystick_22_api=no
11788 rm -f conftest.$ac_objext conftest.$ac_ext
11791 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
11792 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
11793 if test "$wine_cv_linux_joystick_22_api" = "yes"
11794 then
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_LINUX_22_JOYSTICK_API 1
11798 _ACEOF
11804 if test "$ac_cv_header_sys_vfs_h" = "yes"
11805 then
11806 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
11807 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
11808 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 #include "confdefs.h"
11815 #include <sys/types.h>
11816 #ifdef HAVE_SYS_PARAM_H
11817 # include <sys/param.h>
11818 #endif
11819 #include <sys/vfs.h>
11821 #ifdef F77_DUMMY_MAIN
11822 # ifdef __cplusplus
11823 extern "C"
11824 # endif
11825 int F77_DUMMY_MAIN() { return 1; }
11826 #endif
11828 main ()
11831 struct statfs stfs;
11833 memset(&stfs,0,sizeof(stfs));
11836 return 0;
11838 _ACEOF
11839 rm -f conftest.$ac_objext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -s conftest.$ac_objext'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 wine_cv_sys_vfs_has_statfs=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11855 wine_cv_sys_vfs_has_statfs=no
11858 rm -f conftest.$ac_objext conftest.$ac_ext
11861 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
11862 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
11863 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
11864 then
11866 cat >>confdefs.h <<\_ACEOF
11867 #define STATFS_DEFINED_BY_SYS_VFS 1
11868 _ACEOF
11873 if test "$ac_cv_header_sys_statfs_h" = "yes"
11874 then
11875 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
11876 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
11877 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880 cat >conftest.$ac_ext <<_ACEOF
11881 #line $LINENO "configure"
11882 #include "confdefs.h"
11884 #include <sys/types.h>
11885 #ifdef HAVE_SYS_PARAM_H
11886 # include <sys/param.h>
11887 #endif
11888 #include <sys/statfs.h>
11890 #ifdef F77_DUMMY_MAIN
11891 # ifdef __cplusplus
11892 extern "C"
11893 # endif
11894 int F77_DUMMY_MAIN() { return 1; }
11895 #endif
11897 main ()
11900 struct statfs stfs;
11903 return 0;
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908 (eval $ac_compile) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 wine_cv_sys_statfs_has_statfs=yes
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 wine_cv_sys_statfs_has_statfs=no
11925 rm -f conftest.$ac_objext conftest.$ac_ext
11928 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
11929 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
11930 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
11931 then
11933 cat >>confdefs.h <<\_ACEOF
11934 #define STATFS_DEFINED_BY_SYS_STATFS 1
11935 _ACEOF
11940 if test "$ac_cv_header_sys_mount_h" = "yes"
11941 then
11942 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
11943 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
11944 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 #include "confdefs.h"
11951 #include <sys/types.h>
11952 #ifdef HAVE_SYS_PARAM_H
11953 # include <sys/param.h>
11954 #endif
11955 #include <sys/mount.h>
11957 #ifdef F77_DUMMY_MAIN
11958 # ifdef __cplusplus
11959 extern "C"
11960 # endif
11961 int F77_DUMMY_MAIN() { return 1; }
11962 #endif
11964 main ()
11967 struct statfs stfs;
11970 return 0;
11972 _ACEOF
11973 rm -f conftest.$ac_objext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 wine_cv_sys_mount_has_statfs=yes
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 cat conftest.$ac_ext >&5
11989 wine_cv_sys_mount_has_statfs=no
11992 rm -f conftest.$ac_objext conftest.$ac_ext
11995 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
11996 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
11997 if test "$wine_cv_sys_mount_has_statfs" = "yes"
11998 then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12002 _ACEOF
12012 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12013 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12014 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 #include "confdefs.h"
12020 #include <sys/types.h>
12021 #ifdef HAVE_SYS_PARAM_H
12022 # include <sys/param.h>
12023 #endif
12024 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12025 # include <sys/mount.h>
12026 #else
12027 # ifdef STATFS_DEFINED_BY_SYS_VFS
12028 # include <sys/vfs.h>
12029 # else
12030 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12031 # include <sys/statfs.h>
12032 # endif
12033 # endif
12034 #endif
12035 #ifdef F77_DUMMY_MAIN
12036 # ifdef __cplusplus
12037 extern "C"
12038 # endif
12039 int F77_DUMMY_MAIN() { return 1; }
12040 #endif
12042 main ()
12044 struct statfs s; s.f_bfree = 0
12046 return 0;
12048 _ACEOF
12049 rm -f conftest.$ac_objext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12051 (eval $ac_compile) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
12055 { ac_try='test -s conftest.$ac_objext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_c_statfs_f_bfree="yes"
12062 else
12063 echo "$as_me: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12065 ac_cv_c_statfs_f_bfree="no"
12067 rm -f conftest.$ac_objext conftest.$ac_ext
12069 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12070 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12071 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12073 cat >>confdefs.h <<\_ACEOF
12074 #define STATFS_HAS_BFREE 1
12075 _ACEOF
12081 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12082 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12083 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 cat >conftest.$ac_ext <<_ACEOF
12087 #line $LINENO "configure"
12088 #include "confdefs.h"
12089 #include <sys/types.h>
12090 #ifdef HAVE_SYS_PARAM_H
12091 # include <sys/param.h>
12092 #endif
12093 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12094 # include <sys/mount.h>
12095 #else
12096 # ifdef STATFS_DEFINED_BY_SYS_VFS
12097 # include <sys/vfs.h>
12098 # else
12099 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12100 # include <sys/statfs.h>
12101 # endif
12102 # endif
12103 #endif
12104 #ifdef F77_DUMMY_MAIN
12105 # ifdef __cplusplus
12106 extern "C"
12107 # endif
12108 int F77_DUMMY_MAIN() { return 1; }
12109 #endif
12111 main ()
12113 struct statfs s; s.f_bavail = 0
12115 return 0;
12117 _ACEOF
12118 rm -f conftest.$ac_objext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120 (eval $ac_compile) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 ac_cv_c_statfs_f_bavail="yes"
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134 ac_cv_c_statfs_f_bavail="no"
12136 rm -f conftest.$ac_objext conftest.$ac_ext
12138 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
12139 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12140 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define STATFS_HAS_BAVAIL 1
12144 _ACEOF
12150 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
12151 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12152 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 cat >conftest.$ac_ext <<_ACEOF
12156 #line $LINENO "configure"
12157 #include "confdefs.h"
12158 #include <sys/types.h>
12159 #include <sys/socket.h>
12160 #ifdef F77_DUMMY_MAIN
12161 # ifdef __cplusplus
12162 extern "C"
12163 # endif
12164 int F77_DUMMY_MAIN() { return 1; }
12165 #endif
12167 main ()
12169 struct msghdr s; s.msg_accrights = 0
12171 return 0;
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12176 (eval $ac_compile) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } &&
12180 { ac_try='test -s conftest.$ac_objext'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 ac_cv_c_msghdr_msg_accrights="yes"
12187 else
12188 echo "$as_me: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 ac_cv_c_msghdr_msg_accrights="no"
12192 rm -f conftest.$ac_objext conftest.$ac_ext
12194 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
12195 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12196 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_MSGHDR_ACCRIGHTS 1
12200 _ACEOF
12206 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
12207 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12208 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 #include <sys/types.h>
12215 #include <sys/socket.h>
12216 #ifdef F77_DUMMY_MAIN
12217 # ifdef __cplusplus
12218 extern "C"
12219 # endif
12220 int F77_DUMMY_MAIN() { return 1; }
12221 #endif
12223 main ()
12225 struct sockaddr s; s.sa_len = 0
12227 return 0;
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242 ac_cv_c_sockaddr_sa_len="yes"
12243 else
12244 echo "$as_me: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 ac_cv_c_sockaddr_sa_len="no"
12248 rm -f conftest.$ac_objext conftest.$ac_ext
12250 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
12251 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
12252 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
12254 cat >>confdefs.h <<\_ACEOF
12255 #define HAVE_SOCKADDR_SA_LEN 1
12256 _ACEOF
12262 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
12263 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
12264 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12270 #include <sys/types.h>
12271 #include <sys/socket.h>
12272 #include <sys/un.h>
12273 #ifdef F77_DUMMY_MAIN
12274 # ifdef __cplusplus
12275 extern "C"
12276 # endif
12277 int F77_DUMMY_MAIN() { return 1; }
12278 #endif
12280 main ()
12282 struct sockaddr_un s; s.sun_len = 0
12284 return 0;
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_c_sockaddr_un_sun_len="yes"
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 ac_cv_c_sockaddr_un_sun_len="no"
12305 rm -f conftest.$ac_objext conftest.$ac_ext
12307 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
12308 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
12309 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_SOCKADDR_SUN_LEN 1
12313 _ACEOF
12320 case $target_cpu in
12321 *i345678986* )
12322 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
12323 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
12324 if test "${ac_cv_cpp_def_i386+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 cat >conftest.$ac_ext <<_ACEOF
12328 #line $LINENO "configure"
12329 #include "confdefs.h"
12330 #ifndef __i386__
12332 #endif
12333 _ACEOF
12334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12335 egrep "yes" >/dev/null 2>&1; then
12336 ac_cv_cpp_def_i386="yes"
12337 else
12338 ac_cv_cpp_def_i386="no"
12340 rm -f conftest*
12343 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
12344 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
12346 esac
12347 if test "$ac_cv_cpp_def_i386" = "yes"
12348 then
12349 CFLAGS="$CFLAGS -D__i386__"
12350 LINTFLAGS="$LINTFLAGS -D__i386__"
12359 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
12361 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
12363 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
12365 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
12367 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
12369 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
12371 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
12373 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
12375 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
12377 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
12379 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
12381 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
12383 ac_config_commands="$ac_config_commands dlls/kernel/messages"
12385 ac_config_commands="$ac_config_commands dlls/kernel/tests"
12387 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
12389 ac_config_commands="$ac_config_commands dlls/user/dde"
12391 ac_config_commands="$ac_config_commands dlls/user/resources"
12393 ac_config_commands="$ac_config_commands dlls/user/tests"
12395 ac_config_commands="$ac_config_commands dlls/wineps/data"
12397 ac_config_commands="$ac_config_commands dlls/winsock/tests"
12399 ac_config_commands="$ac_config_commands include/wine"
12401 ac_config_commands="$ac_config_commands programs/regapi/tests"
12403 ac_config_commands="$ac_config_commands programs/winetest/tests"
12406 MAKE_RULES=Make.rules
12409 MAKE_DLL_RULES=dlls/Makedll.rules
12412 MAKE_PROG_RULES=programs/Makeprog.rules
12415 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules 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/msisys/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/snmpapi/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/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winepath/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"
12418 cat >confcache <<\_ACEOF
12419 # This file is a shell script that caches the results of configure
12420 # tests run on this system so they can be shared between configure
12421 # scripts and configure runs, see configure's option --config-cache.
12422 # It is not useful on other systems. If it contains results you don't
12423 # want to keep, you may remove or edit it.
12425 # config.status only pays attention to the cache file if you give it
12426 # the --recheck option to rerun configure.
12428 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12430 # following values.
12432 _ACEOF
12434 # The following way of writing the cache mishandles newlines in values,
12435 # but we know of no workaround that is simple, portable, and efficient.
12436 # So, don't put newlines in cache variables' values.
12437 # Ultrix sh set writes to stderr and can't be redirected directly,
12438 # and sets the high bit in the cache file unless we assign to the vars.
12440 (set) 2>&1 |
12441 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12442 *ac_space=\ *)
12443 # `set' does not quote correctly, so add quotes (double-quote
12444 # substitution turns \\\\ into \\, and sed turns \\ into \).
12445 sed -n \
12446 "s/'/'\\\\''/g;
12447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12450 # `set' quotes correctly as required by POSIX, so do not add quotes.
12451 sed -n \
12452 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12454 esac;
12456 sed '
12457 t clear
12458 : clear
12459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12460 t end
12461 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12462 : end' >>confcache
12463 if cmp -s $cache_file confcache; then :; else
12464 if test -w $cache_file; then
12465 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12466 cat confcache >$cache_file
12467 else
12468 echo "not updating unwritable cache $cache_file"
12471 rm -f confcache
12473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12474 # Let make expand exec_prefix.
12475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12479 # trailing colons and then remove the whole line if VPATH becomes empty
12480 # (actually we leave an empty line to preserve line numbers).
12481 if test "x$srcdir" = x.; then
12482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12483 s/:*\$(srcdir):*/:/;
12484 s/:*\${srcdir}:*/:/;
12485 s/:*@srcdir@:*/:/;
12486 s/^\([^=]*=[ ]*\):*/\1/;
12487 s/:*$//;
12488 s/^[^=]*=[ ]*$//;
12492 DEFS=-DHAVE_CONFIG_H
12495 : ${CONFIG_STATUS=./config.status}
12496 ac_clean_files_save=$ac_clean_files
12497 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12498 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12499 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12500 cat >$CONFIG_STATUS <<_ACEOF
12501 #! $SHELL
12502 # Generated by $as_me.
12503 # Run this file to recreate the current configuration.
12504 # Compiler output produced by configure, useful for debugging
12505 # configure, is in config.log if it exists.
12507 debug=false
12508 SHELL=\${CONFIG_SHELL-$SHELL}
12509 _ACEOF
12511 cat >>$CONFIG_STATUS <<\_ACEOF
12513 ## --------------------- ##
12514 ## M4sh Initialization. ##
12515 ## --------------------- ##
12517 # Be Bourne compatible
12518 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12519 emulate sh
12520 NULLCMD=:
12521 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12522 set -o posix
12525 # NLS nuisances.
12526 # Support unset when possible.
12527 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12528 as_unset=unset
12529 else
12530 as_unset=false
12533 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12534 { $as_unset LANG || test "${LANG+set}" != set; } ||
12535 { LANG=C; export LANG; }
12536 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12537 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12538 { LC_ALL=C; export LC_ALL; }
12539 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12540 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12541 { LC_TIME=C; export LC_TIME; }
12542 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12543 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12544 { LC_CTYPE=C; export LC_CTYPE; }
12545 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12546 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12547 { LANGUAGE=C; export LANGUAGE; }
12548 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12549 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12550 { LC_COLLATE=C; export LC_COLLATE; }
12551 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12552 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12553 { LC_NUMERIC=C; export LC_NUMERIC; }
12554 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12555 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12556 { LC_MESSAGES=C; export LC_MESSAGES; }
12559 # Name of the executable.
12560 as_me=`(basename "$0") 2>/dev/null ||
12561 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12562 X"$0" : 'X\(//\)$' \| \
12563 X"$0" : 'X\(/\)$' \| \
12564 . : '\(.\)' 2>/dev/null ||
12565 echo X/"$0" |
12566 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12567 /^X\/\(\/\/\)$/{ s//\1/; q; }
12568 /^X\/\(\/\).*/{ s//\1/; q; }
12569 s/.*/./; q'`
12571 # PATH needs CR, and LINENO needs CR and PATH.
12572 # Avoid depending upon Character Ranges.
12573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12576 as_cr_digits='0123456789'
12577 as_cr_alnum=$as_cr_Letters$as_cr_digits
12579 # The user is always right.
12580 if test "${PATH_SEPARATOR+set}" != set; then
12581 echo "#! /bin/sh" >conftest.sh
12582 echo "exit 0" >>conftest.sh
12583 chmod +x conftest.sh
12584 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12585 PATH_SEPARATOR=';'
12586 else
12587 PATH_SEPARATOR=:
12589 rm -f conftest.sh
12593 as_lineno_1=$LINENO
12594 as_lineno_2=$LINENO
12595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12596 test "x$as_lineno_1" != "x$as_lineno_2" &&
12597 test "x$as_lineno_3" = "x$as_lineno_2" || {
12598 # Find who we are. Look in the path if we contain no path at all
12599 # relative or not.
12600 case $0 in
12601 *[\\/]* ) as_myself=$0 ;;
12602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12608 done
12611 esac
12612 # We did not find ourselves, most probably we were run as `sh COMMAND'
12613 # in which case we are not to be found in the path.
12614 if test "x$as_myself" = x; then
12615 as_myself=$0
12617 if test ! -f "$as_myself"; then
12618 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12619 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12620 { (exit 1); exit 1; }; }
12622 case $CONFIG_SHELL in
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for as_base in sh bash ksh sh5; do
12630 case $as_dir in
12632 if ("$as_dir/$as_base" -c '
12633 as_lineno_1=$LINENO
12634 as_lineno_2=$LINENO
12635 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12636 test "x$as_lineno_1" != "x$as_lineno_2" &&
12637 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12638 CONFIG_SHELL=$as_dir/$as_base
12639 export CONFIG_SHELL
12640 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12641 fi;;
12642 esac
12643 done
12644 done
12646 esac
12648 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12649 # uniformly replaced by the line number. The first 'sed' inserts a
12650 # line-number line before each line; the second 'sed' does the real
12651 # work. The second script uses 'N' to pair each line-number line
12652 # with the numbered line, and appends trailing '-' during
12653 # substitution so that $LINENO is not a special case at line end.
12654 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12655 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12656 sed '=' <$as_myself |
12657 sed '
12659 s,$,-,
12660 : loop
12661 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12662 t loop
12663 s,-$,,
12664 s,^['$as_cr_digits']*\n,,
12665 ' >$as_me.lineno &&
12666 chmod +x $as_me.lineno ||
12667 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12668 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12669 { (exit 1); exit 1; }; }
12671 # Don't try to exec as it changes $[0], causing all sort of problems
12672 # (the dirname of $[0] is not the place where we might find the
12673 # original and so on. Autoconf is especially sensible to this).
12674 . ./$as_me.lineno
12675 # Exit status is that of the last command.
12676 exit
12680 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12681 *c*,-n*) ECHO_N= ECHO_C='
12682 ' ECHO_T=' ' ;;
12683 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12684 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12685 esac
12687 if expr a : '\(a\)' >/dev/null 2>&1; then
12688 as_expr=expr
12689 else
12690 as_expr=false
12693 rm -f conf$$ conf$$.exe conf$$.file
12694 echo >conf$$.file
12695 if ln -s conf$$.file conf$$ 2>/dev/null; then
12696 # We could just check for DJGPP; but this test a) works b) is more generic
12697 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12698 if test -f conf$$.exe; then
12699 # Don't use ln at all; we don't have any links
12700 as_ln_s='cp -p'
12701 else
12702 as_ln_s='ln -s'
12704 elif ln conf$$.file conf$$ 2>/dev/null; then
12705 as_ln_s=ln
12706 else
12707 as_ln_s='cp -p'
12709 rm -f conf$$ conf$$.exe conf$$.file
12711 as_executable_p="test -f"
12713 # Sed expression to map a string onto a valid CPP name.
12714 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12716 # Sed expression to map a string onto a valid variable name.
12717 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12720 # IFS
12721 # We need space, tab and new line, in precisely that order.
12722 as_nl='
12724 IFS=" $as_nl"
12726 # CDPATH.
12727 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12729 exec 6>&1
12731 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12732 # report actual input values of CONFIG_FILES etc. instead of their
12733 # values after options handling. Logging --version etc. is OK.
12734 exec 5>>config.log
12736 echo
12737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12738 ## Running $as_me. ##
12739 _ASBOX
12740 } >&5
12741 cat >&5 <<_CSEOF
12743 This file was extended by Wine $as_me 20020411, which was
12744 generated by GNU Autoconf 2.53. Invocation command line was
12746 CONFIG_FILES = $CONFIG_FILES
12747 CONFIG_HEADERS = $CONFIG_HEADERS
12748 CONFIG_LINKS = $CONFIG_LINKS
12749 CONFIG_COMMANDS = $CONFIG_COMMANDS
12750 $ $0 $@
12752 _CSEOF
12753 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12754 echo >&5
12755 _ACEOF
12757 # Files that config.status was made for.
12758 if test -n "$ac_config_files"; then
12759 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12762 if test -n "$ac_config_headers"; then
12763 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12766 if test -n "$ac_config_links"; then
12767 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12770 if test -n "$ac_config_commands"; then
12771 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12774 cat >>$CONFIG_STATUS <<\_ACEOF
12776 ac_cs_usage="\
12777 \`$as_me' instantiates files from templates according to the
12778 current configuration.
12780 Usage: $0 [OPTIONS] [FILE]...
12782 -h, --help print this help, then exit
12783 -V, --version print version number, then exit
12784 -d, --debug don't remove temporary files
12785 --recheck update $as_me by reconfiguring in the same conditions
12786 --file=FILE[:TEMPLATE]
12787 instantiate the configuration file FILE
12788 --header=FILE[:TEMPLATE]
12789 instantiate the configuration header FILE
12791 Configuration files:
12792 $config_files
12794 Configuration headers:
12795 $config_headers
12797 Configuration commands:
12798 $config_commands
12800 Report bugs to <bug-autoconf@gnu.org>."
12801 _ACEOF
12803 cat >>$CONFIG_STATUS <<_ACEOF
12804 ac_cs_version="\\
12805 Wine config.status 20020411
12806 configured by $0, generated by GNU Autoconf 2.53,
12807 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12809 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12810 Free Software Foundation, Inc.
12811 This config.status script is free software; the Free Software Foundation
12812 gives unlimited permission to copy, distribute and modify it."
12813 srcdir=$srcdir
12814 INSTALL="$INSTALL"
12815 _ACEOF
12817 cat >>$CONFIG_STATUS <<\_ACEOF
12818 # If no file are specified by the user, then we need to provide default
12819 # value. By we need to know if files were specified by the user.
12820 ac_need_defaults=:
12821 while test $# != 0
12823 case $1 in
12824 --*=*)
12825 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12826 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12827 shift
12828 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12829 shift
12831 -*);;
12832 *) # This is not an option, so the user has probably given explicit
12833 # arguments.
12834 ac_need_defaults=false;;
12835 esac
12837 case $1 in
12838 # Handling of the options.
12839 _ACEOF
12840 cat >>$CONFIG_STATUS <<_ACEOF
12841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12842 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12843 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12844 _ACEOF
12845 cat >>$CONFIG_STATUS <<\_ACEOF
12846 --version | --vers* | -V )
12847 echo "$ac_cs_version"; exit 0 ;;
12848 --he | --h)
12849 # Conflict between --help and --header
12850 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12851 Try \`$0 --help' for more information." >&5
12852 echo "$as_me: error: ambiguous option: $1
12853 Try \`$0 --help' for more information." >&2;}
12854 { (exit 1); exit 1; }; };;
12855 --help | --hel | -h )
12856 echo "$ac_cs_usage"; exit 0 ;;
12857 --debug | --d* | -d )
12858 debug=: ;;
12859 --file | --fil | --fi | --f )
12860 shift
12861 CONFIG_FILES="$CONFIG_FILES $1"
12862 ac_need_defaults=false;;
12863 --header | --heade | --head | --hea )
12864 shift
12865 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12866 ac_need_defaults=false;;
12868 # This is an error.
12869 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12870 Try \`$0 --help' for more information." >&5
12871 echo "$as_me: error: unrecognized option: $1
12872 Try \`$0 --help' for more information." >&2;}
12873 { (exit 1); exit 1; }; } ;;
12875 *) ac_config_targets="$ac_config_targets $1" ;;
12877 esac
12878 shift
12879 done
12881 _ACEOF
12887 cat >>$CONFIG_STATUS <<\_ACEOF
12888 for ac_config_target in $ac_config_targets
12890 case "$ac_config_target" in
12891 # Handling of arguments.
12892 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
12893 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
12894 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
12895 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12896 "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
12897 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
12898 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
12899 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
12900 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
12901 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
12902 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
12903 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
12904 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
12905 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
12906 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
12907 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
12908 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
12909 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
12910 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
12911 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
12912 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
12913 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
12914 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
12915 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
12916 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
12917 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
12918 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
12919 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
12920 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
12921 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
12922 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
12923 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
12924 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
12925 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
12926 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
12927 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
12928 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
12929 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
12930 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
12931 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
12932 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
12933 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
12934 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
12935 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
12936 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
12937 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
12938 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
12939 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
12940 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
12941 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
12942 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
12943 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
12944 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
12945 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
12946 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
12947 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
12948 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
12949 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
12950 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
12951 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
12952 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
12953 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
12954 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
12955 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
12956 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
12957 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
12958 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
12959 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
12960 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
12961 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
12962 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
12963 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
12964 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
12965 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
12966 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
12967 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
12968 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
12969 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
12970 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
12971 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
12972 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
12973 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
12974 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
12975 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
12976 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
12977 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
12978 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
12979 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
12980 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
12981 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
12982 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
12983 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
12984 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
12985 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
12986 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
12987 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
12988 "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
12989 "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
12990 "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
12991 "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
12992 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12993 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
12994 "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
12995 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
12996 "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
12997 "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
12998 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
12999 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13000 "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
13001 "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
13002 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13003 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13004 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13005 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13006 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13007 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13008 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13009 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13010 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13011 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13012 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13013 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
13014 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13015 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13016 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13017 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13018 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13019 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13020 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
13021 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13022 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13023 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13024 "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
13025 "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
13026 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13027 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13028 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13029 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13030 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13031 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13032 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13033 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13034 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13035 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
13036 "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13037 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13038 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13039 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13040 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13041 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13042 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13043 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13044 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13045 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13046 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13047 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13048 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13049 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13050 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13051 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13052 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13053 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13054 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13055 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13056 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
13057 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13058 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13059 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13060 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13062 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13063 { (exit 1); exit 1; }; };;
13064 esac
13065 done
13067 # If the user did not use the arguments to specify the items to instantiate,
13068 # then the envvar interface is used. Set only those that are not.
13069 # We use the long form for the default assignment because of an extremely
13070 # bizarre bug on SunOS 4.1.3.
13071 if $ac_need_defaults; then
13072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13077 # Create a temporary directory, and hook for its removal unless debugging.
13078 $debug ||
13080 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13081 trap '{ (exit 1); exit 1; }' 1 2 13 15
13084 # Create a (secure) tmp directory for tmp files.
13085 : ${TMPDIR=/tmp}
13087 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13088 test -n "$tmp" && test -d "$tmp"
13089 } ||
13091 tmp=$TMPDIR/cs$$-$RANDOM
13092 (umask 077 && mkdir $tmp)
13093 } ||
13095 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13096 { (exit 1); exit 1; }
13099 _ACEOF
13101 cat >>$CONFIG_STATUS <<_ACEOF
13104 # CONFIG_FILES section.
13107 # No need to generate the scripts if there are no CONFIG_FILES.
13108 # This happens for instance when ./config.status config.h
13109 if test -n "\$CONFIG_FILES"; then
13110 # Protect against being on the right side of a sed subst in config.status.
13111 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13112 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13113 s,@SHELL@,$SHELL,;t t
13114 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13115 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13116 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13117 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13118 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13119 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13120 s,@exec_prefix@,$exec_prefix,;t t
13121 s,@prefix@,$prefix,;t t
13122 s,@program_transform_name@,$program_transform_name,;t t
13123 s,@bindir@,$bindir,;t t
13124 s,@sbindir@,$sbindir,;t t
13125 s,@libexecdir@,$libexecdir,;t t
13126 s,@datadir@,$datadir,;t t
13127 s,@sysconfdir@,$sysconfdir,;t t
13128 s,@sharedstatedir@,$sharedstatedir,;t t
13129 s,@localstatedir@,$localstatedir,;t t
13130 s,@libdir@,$libdir,;t t
13131 s,@includedir@,$includedir,;t t
13132 s,@oldincludedir@,$oldincludedir,;t t
13133 s,@infodir@,$infodir,;t t
13134 s,@mandir@,$mandir,;t t
13135 s,@build_alias@,$build_alias,;t t
13136 s,@host_alias@,$host_alias,;t t
13137 s,@target_alias@,$target_alias,;t t
13138 s,@DEFS@,$DEFS,;t t
13139 s,@ECHO_C@,$ECHO_C,;t t
13140 s,@ECHO_N@,$ECHO_N,;t t
13141 s,@ECHO_T@,$ECHO_T,;t t
13142 s,@LIBS@,$LIBS,;t t
13143 s,@OPTIONS@,$OPTIONS,;t t
13144 s,@build@,$build,;t t
13145 s,@build_cpu@,$build_cpu,;t t
13146 s,@build_vendor@,$build_vendor,;t t
13147 s,@build_os@,$build_os,;t t
13148 s,@host@,$host,;t t
13149 s,@host_cpu@,$host_cpu,;t t
13150 s,@host_vendor@,$host_vendor,;t t
13151 s,@host_os@,$host_os,;t t
13152 s,@target@,$target,;t t
13153 s,@target_cpu@,$target_cpu,;t t
13154 s,@target_vendor@,$target_vendor,;t t
13155 s,@target_os@,$target_os,;t t
13156 s,@SET_MAKE@,$SET_MAKE,;t t
13157 s,@CC@,$CC,;t t
13158 s,@CFLAGS@,$CFLAGS,;t t
13159 s,@LDFLAGS@,$LDFLAGS,;t t
13160 s,@CPPFLAGS@,$CPPFLAGS,;t t
13161 s,@ac_ct_CC@,$ac_ct_CC,;t t
13162 s,@EXEEXT@,$EXEEXT,;t t
13163 s,@OBJEXT@,$OBJEXT,;t t
13164 s,@CPP@,$CPP,;t t
13165 s,@X_CFLAGS@,$X_CFLAGS,;t t
13166 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13167 s,@X_LIBS@,$X_LIBS,;t t
13168 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13169 s,@YACC@,$YACC,;t t
13170 s,@LEX@,$LEX,;t t
13171 s,@LEXLIB@,$LEXLIB,;t t
13172 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13173 s,@XYACC@,$XYACC,;t t
13174 s,@XLEX@,$XLEX,;t t
13175 s,@RANLIB@,$RANLIB,;t t
13176 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13177 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13178 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13179 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13180 s,@LN_S@,$LN_S,;t t
13181 s,@C2MAN@,$C2MAN,;t t
13182 s,@LDCONFIG@,$LDCONFIG,;t t
13183 s,@LINT@,$LINT,;t t
13184 s,@LINTFLAGS@,$LINTFLAGS,;t t
13185 s,@LDCOMBINE@,$LDCOMBINE,;t t
13186 s,@DLLIBS@,$DLLIBS,;t t
13187 s,@JPEGLIB@,$JPEGLIB,;t t
13188 s,@XLIB@,$XLIB,;t t
13189 s,@XFILES@,$XFILES,;t t
13190 s,@OPENGLFILES@,$OPENGLFILES,;t t
13191 s,@GLU32FILES@,$GLU32FILES,;t t
13192 s,@CURSESLIBS@,$CURSESLIBS,;t t
13193 s,@CUPSLIBS@,$CUPSLIBS,;t t
13194 s,@sane_devel@,$sane_devel,;t t
13195 s,@SANELIBS@,$SANELIBS,;t t
13196 s,@SANEINCL@,$SANEINCL,;t t
13197 s,@ft_devel@,$ft_devel,;t t
13198 s,@ft_devel2@,$ft_devel2,;t t
13199 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
13200 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
13201 s,@ARTSLIBS@,$ARTSLIBS,;t t
13202 s,@ARTSINCL@,$ARTSINCL,;t t
13203 s,@DLLWRAP@,$DLLWRAP,;t t
13204 s,@DLLFLAGS@,$DLLFLAGS,;t t
13205 s,@DLLEXT@,$DLLEXT,;t t
13206 s,@LDSHARED@,$LDSHARED,;t t
13207 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
13208 s,@LIBEXT@,$LIBEXT,;t t
13209 s,@LDPATH@,$LDPATH,;t t
13210 s,@ALLOCA@,$ALLOCA,;t t
13211 /@MAKE_RULES@/r $MAKE_RULES
13212 s,@MAKE_RULES@,,;t t
13213 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
13214 s,@MAKE_DLL_RULES@,,;t t
13215 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
13216 s,@MAKE_PROG_RULES@,,;t t
13217 CEOF
13219 _ACEOF
13221 cat >>$CONFIG_STATUS <<\_ACEOF
13222 # Split the substitutions into bite-sized pieces for seds with
13223 # small command number limits, like on Digital OSF/1 and HP-UX.
13224 ac_max_sed_lines=48
13225 ac_sed_frag=1 # Number of current file.
13226 ac_beg=1 # First line for current file.
13227 ac_end=$ac_max_sed_lines # Line after last line for current file.
13228 ac_more_lines=:
13229 ac_sed_cmds=
13230 while $ac_more_lines; do
13231 if test $ac_beg -gt 1; then
13232 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13233 else
13234 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13236 if test ! -s $tmp/subs.frag; then
13237 ac_more_lines=false
13238 else
13239 # The purpose of the label and of the branching condition is to
13240 # speed up the sed processing (if there are no `@' at all, there
13241 # is no need to browse any of the substitutions).
13242 # These are the two extra sed commands mentioned above.
13243 (echo ':t
13244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13245 if test -z "$ac_sed_cmds"; then
13246 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13247 else
13248 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13250 ac_sed_frag=`expr $ac_sed_frag + 1`
13251 ac_beg=$ac_end
13252 ac_end=`expr $ac_end + $ac_max_sed_lines`
13254 done
13255 if test -z "$ac_sed_cmds"; then
13256 ac_sed_cmds=cat
13258 fi # test -n "$CONFIG_FILES"
13260 _ACEOF
13261 cat >>$CONFIG_STATUS <<\_ACEOF
13262 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13264 case $ac_file in
13265 - | *:- | *:-:* ) # input from stdin
13266 cat >$tmp/stdin
13267 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13269 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13271 * ) ac_file_in=$ac_file.in ;;
13272 esac
13274 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13275 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13277 X"$ac_file" : 'X\(//\)[^/]' \| \
13278 X"$ac_file" : 'X\(//\)$' \| \
13279 X"$ac_file" : 'X\(/\)' \| \
13280 . : '\(.\)' 2>/dev/null ||
13281 echo X"$ac_file" |
13282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13284 /^X\(\/\/\)$/{ s//\1/; q; }
13285 /^X\(\/\).*/{ s//\1/; q; }
13286 s/.*/./; q'`
13287 { case "$ac_dir" in
13288 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13289 *) as_incr_dir=.;;
13290 esac
13291 as_dummy="$ac_dir"
13292 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13293 case $as_mkdir_dir in
13294 # Skip DOS drivespec
13295 ?:) as_incr_dir=$as_mkdir_dir ;;
13297 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13298 test -d "$as_incr_dir" ||
13299 mkdir "$as_incr_dir" ||
13300 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13301 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13302 { (exit 1); exit 1; }; }
13304 esac
13305 done; }
13307 ac_builddir=.
13309 if test "$ac_dir" != .; then
13310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13311 # A "../" for each directory in $ac_dir_suffix.
13312 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13313 else
13314 ac_dir_suffix= ac_top_builddir=
13317 case $srcdir in
13318 .) # No --srcdir option. We are building in place.
13319 ac_srcdir=.
13320 if test -z "$ac_top_builddir"; then
13321 ac_top_srcdir=.
13322 else
13323 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13324 fi ;;
13325 [\\/]* | ?:[\\/]* ) # Absolute path.
13326 ac_srcdir=$srcdir$ac_dir_suffix;
13327 ac_top_srcdir=$srcdir ;;
13328 *) # Relative path.
13329 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13330 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13331 esac
13332 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13333 # absolute.
13334 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13335 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13336 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13337 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13340 case $INSTALL in
13341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13342 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13343 esac
13345 if test x"$ac_file" != x-; then
13346 { echo "$as_me:$LINENO: creating $ac_file" >&5
13347 echo "$as_me: creating $ac_file" >&6;}
13348 rm -f "$ac_file"
13350 # Let's still pretend it is `configure' which instantiates (i.e., don't
13351 # use $as_me), people would be surprised to read:
13352 # /* config.h. Generated by config.status. */
13353 if test x"$ac_file" = x-; then
13354 configure_input=
13355 else
13356 configure_input="$ac_file. "
13358 configure_input=$configure_input"Generated from `echo $ac_file_in |
13359 sed 's,.*/,,'` by configure."
13361 # First look for the input files in the build tree, otherwise in the
13362 # src tree.
13363 ac_file_inputs=`IFS=:
13364 for f in $ac_file_in; do
13365 case $f in
13366 -) echo $tmp/stdin ;;
13367 [\\/$]*)
13368 # Absolute (can't be DOS-style, as IFS=:)
13369 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13370 echo "$as_me: error: cannot find input file: $f" >&2;}
13371 { (exit 1); exit 1; }; }
13372 echo $f;;
13373 *) # Relative
13374 if test -f "$f"; then
13375 # Build tree
13376 echo $f
13377 elif test -f "$srcdir/$f"; then
13378 # Source tree
13379 echo $srcdir/$f
13380 else
13381 # /dev/null tree
13382 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13383 echo "$as_me: error: cannot find input file: $f" >&2;}
13384 { (exit 1); exit 1; }; }
13385 fi;;
13386 esac
13387 done` || { (exit 1); exit 1; }
13388 _ACEOF
13389 cat >>$CONFIG_STATUS <<_ACEOF
13390 sed "$ac_vpsub
13391 $extrasub
13392 _ACEOF
13393 cat >>$CONFIG_STATUS <<\_ACEOF
13395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13396 s,@configure_input@,$configure_input,;t t
13397 s,@srcdir@,$ac_srcdir,;t t
13398 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13399 s,@top_srcdir@,$ac_top_srcdir,;t t
13400 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13401 s,@builddir@,$ac_builddir,;t t
13402 s,@abs_builddir@,$ac_abs_builddir,;t t
13403 s,@top_builddir@,$ac_top_builddir,;t t
13404 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13405 s,@INSTALL@,$ac_INSTALL,;t t
13406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13407 rm -f $tmp/stdin
13408 if test x"$ac_file" != x-; then
13409 mv $tmp/out $ac_file
13410 else
13411 cat $tmp/out
13412 rm -f $tmp/out
13415 done
13416 _ACEOF
13417 cat >>$CONFIG_STATUS <<\_ACEOF
13420 # CONFIG_HEADER section.
13423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13426 # ac_d sets the value in "#define NAME VALUE" lines.
13427 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13428 ac_dB='[ ].*$,\1#\2'
13429 ac_dC=' '
13430 ac_dD=',;t'
13431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13432 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13433 ac_uB='$,\1#\2define\3'
13434 ac_uC=' '
13435 ac_uD=',;t'
13437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13439 case $ac_file in
13440 - | *:- | *:-:* ) # input from stdin
13441 cat >$tmp/stdin
13442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13446 * ) ac_file_in=$ac_file.in ;;
13447 esac
13449 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13450 echo "$as_me: creating $ac_file" >&6;}
13452 # First look for the input files in the build tree, otherwise in the
13453 # src tree.
13454 ac_file_inputs=`IFS=:
13455 for f in $ac_file_in; do
13456 case $f in
13457 -) echo $tmp/stdin ;;
13458 [\\/$]*)
13459 # Absolute (can't be DOS-style, as IFS=:)
13460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13461 echo "$as_me: error: cannot find input file: $f" >&2;}
13462 { (exit 1); exit 1; }; }
13463 echo $f;;
13464 *) # Relative
13465 if test -f "$f"; then
13466 # Build tree
13467 echo $f
13468 elif test -f "$srcdir/$f"; then
13469 # Source tree
13470 echo $srcdir/$f
13471 else
13472 # /dev/null tree
13473 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13474 echo "$as_me: error: cannot find input file: $f" >&2;}
13475 { (exit 1); exit 1; }; }
13476 fi;;
13477 esac
13478 done` || { (exit 1); exit 1; }
13479 # Remove the trailing spaces.
13480 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13482 _ACEOF
13484 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13485 # `conftest.undefs', that substitutes the proper values into
13486 # config.h.in to produce config.h. The first handles `#define'
13487 # templates, and the second `#undef' templates.
13488 # And first: Protect against being on the right side of a sed subst in
13489 # config.status. Protect against being in an unquoted here document
13490 # in config.status.
13491 rm -f conftest.defines conftest.undefs
13492 # Using a here document instead of a string reduces the quoting nightmare.
13493 # Putting comments in sed scripts is not portable.
13495 # `end' is used to avoid that the second main sed command (meant for
13496 # 0-ary CPP macros) applies to n-ary macro definitions.
13497 # See the Autoconf documentation for `clear'.
13498 cat >confdef2sed.sed <<\_ACEOF
13499 s/[\\&,]/\\&/g
13500 s,[\\$`],\\&,g
13501 t clear
13502 : clear
13503 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13504 t end
13505 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13506 : end
13507 _ACEOF
13508 # If some macros were called several times there might be several times
13509 # the same #defines, which is useless. Nevertheless, we may not want to
13510 # sort them, since we want the *last* AC-DEFINE to be honored.
13511 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13512 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13513 rm -f confdef2sed.sed
13515 # This sed command replaces #undef with comments. This is necessary, for
13516 # example, in the case of _POSIX_SOURCE, which is predefined and required
13517 # on some systems where configure will not decide to define it.
13518 cat >>conftest.undefs <<\_ACEOF
13519 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13520 _ACEOF
13522 # Break up conftest.defines because some shells have a limit on the size
13523 # of here documents, and old seds have small limits too (100 cmds).
13524 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13525 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13526 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13527 echo ' :' >>$CONFIG_STATUS
13528 rm -f conftest.tail
13529 while grep . conftest.defines >/dev/null
13531 # Write a limited-size here document to $tmp/defines.sed.
13532 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13533 # Speed up: don't consider the non `#define' lines.
13534 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13535 # Work around the forget-to-reset-the-flag bug.
13536 echo 't clr' >>$CONFIG_STATUS
13537 echo ': clr' >>$CONFIG_STATUS
13538 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13539 echo 'CEOF
13540 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13541 rm -f $tmp/in
13542 mv $tmp/out $tmp/in
13543 ' >>$CONFIG_STATUS
13544 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13545 rm -f conftest.defines
13546 mv conftest.tail conftest.defines
13547 done
13548 rm -f conftest.defines
13549 echo ' fi # egrep' >>$CONFIG_STATUS
13550 echo >>$CONFIG_STATUS
13552 # Break up conftest.undefs because some shells have a limit on the size
13553 # of here documents, and old seds have small limits too (100 cmds).
13554 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13555 rm -f conftest.tail
13556 while grep . conftest.undefs >/dev/null
13558 # Write a limited-size here document to $tmp/undefs.sed.
13559 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13560 # Speed up: don't consider the non `#undef'
13561 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13562 # Work around the forget-to-reset-the-flag bug.
13563 echo 't clr' >>$CONFIG_STATUS
13564 echo ': clr' >>$CONFIG_STATUS
13565 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13566 echo 'CEOF
13567 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13568 rm -f $tmp/in
13569 mv $tmp/out $tmp/in
13570 ' >>$CONFIG_STATUS
13571 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13572 rm -f conftest.undefs
13573 mv conftest.tail conftest.undefs
13574 done
13575 rm -f conftest.undefs
13577 cat >>$CONFIG_STATUS <<\_ACEOF
13578 # Let's still pretend it is `configure' which instantiates (i.e., don't
13579 # use $as_me), people would be surprised to read:
13580 # /* config.h. Generated by config.status. */
13581 if test x"$ac_file" = x-; then
13582 echo "/* Generated by configure. */" >$tmp/config.h
13583 else
13584 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13586 cat $tmp/in >>$tmp/config.h
13587 rm -f $tmp/in
13588 if test x"$ac_file" != x-; then
13589 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13590 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13591 echo "$as_me: $ac_file is unchanged" >&6;}
13592 else
13593 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13595 X"$ac_file" : 'X\(//\)[^/]' \| \
13596 X"$ac_file" : 'X\(//\)$' \| \
13597 X"$ac_file" : 'X\(/\)' \| \
13598 . : '\(.\)' 2>/dev/null ||
13599 echo X"$ac_file" |
13600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13602 /^X\(\/\/\)$/{ s//\1/; q; }
13603 /^X\(\/\).*/{ s//\1/; q; }
13604 s/.*/./; q'`
13605 { case "$ac_dir" in
13606 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13607 *) as_incr_dir=.;;
13608 esac
13609 as_dummy="$ac_dir"
13610 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13611 case $as_mkdir_dir in
13612 # Skip DOS drivespec
13613 ?:) as_incr_dir=$as_mkdir_dir ;;
13615 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13616 test -d "$as_incr_dir" ||
13617 mkdir "$as_incr_dir" ||
13618 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13619 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13620 { (exit 1); exit 1; }; }
13622 esac
13623 done; }
13625 rm -f $ac_file
13626 mv $tmp/config.h $ac_file
13628 else
13629 cat $tmp/config.h
13630 rm -f $tmp/config.h
13632 done
13633 _ACEOF
13634 cat >>$CONFIG_STATUS <<\_ACEOF
13637 # CONFIG_COMMANDS section.
13639 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13640 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13641 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13642 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13643 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13644 X"$ac_dest" : 'X\(//\)[^/]' \| \
13645 X"$ac_dest" : 'X\(//\)$' \| \
13646 X"$ac_dest" : 'X\(/\)' \| \
13647 . : '\(.\)' 2>/dev/null ||
13648 echo X"$ac_dest" |
13649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13651 /^X\(\/\/\)$/{ s//\1/; q; }
13652 /^X\(\/\).*/{ s//\1/; q; }
13653 s/.*/./; q'`
13654 ac_builddir=.
13656 if test "$ac_dir" != .; then
13657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13658 # A "../" for each directory in $ac_dir_suffix.
13659 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13660 else
13661 ac_dir_suffix= ac_top_builddir=
13664 case $srcdir in
13665 .) # No --srcdir option. We are building in place.
13666 ac_srcdir=.
13667 if test -z "$ac_top_builddir"; then
13668 ac_top_srcdir=.
13669 else
13670 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13671 fi ;;
13672 [\\/]* | ?:[\\/]* ) # Absolute path.
13673 ac_srcdir=$srcdir$ac_dir_suffix;
13674 ac_top_srcdir=$srcdir ;;
13675 *) # Relative path.
13676 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13677 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13678 esac
13679 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13680 # absolute.
13681 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13682 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13683 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13684 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13687 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13688 echo "$as_me: executing $ac_dest commands" >&6;}
13689 case $ac_dest in
13690 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
13691 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
13692 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
13693 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
13694 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
13695 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
13696 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
13697 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
13698 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
13699 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
13700 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
13701 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
13702 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
13703 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
13704 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
13705 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
13706 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
13707 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
13708 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
13709 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
13710 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
13711 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
13712 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
13713 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
13714 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
13715 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
13716 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
13717 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
13718 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
13719 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
13720 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
13721 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
13722 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
13723 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
13724 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
13725 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
13726 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
13727 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
13728 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
13729 echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
13730 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
13731 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
13732 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
13733 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
13734 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
13735 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
13736 esac
13737 done
13738 _ACEOF
13740 cat >>$CONFIG_STATUS <<\_ACEOF
13742 { (exit 0); exit 0; }
13743 _ACEOF
13744 chmod +x $CONFIG_STATUS
13745 ac_clean_files=$ac_clean_files_save
13748 # configure is writing to config.log, and then calls config.status.
13749 # config.status does its own redirection, appending to config.log.
13750 # Unfortunately, on DOS this fails, as config.log is still kept open
13751 # by configure, so config.status won't be able to write to it; its
13752 # output is simply discarded. So we exec the FD to /dev/null,
13753 # effectively closing config.log, so it can be properly (re)opened and
13754 # appended to by config.status. When coming back to configure, we
13755 # need to make the FD available again.
13756 if test "$no_create" != yes; then
13757 ac_cs_success=:
13758 exec 5>/dev/null
13759 $SHELL $CONFIG_STATUS || ac_cs_success=false
13760 exec 5>>config.log
13761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13762 # would make configure fail if this is the last instruction.
13763 $ac_cs_success || { (exit 1); exit 1; }
13767 if test "$have_x" = "no"
13768 then
13769 echo
13770 echo "*** Warning: X development files not found. Wine will be built without"
13771 echo "*** X support, which currently does not work, and would probably not be"
13772 echo "*** what you want anyway. You will need to install devel packages of"
13773 echo "*** Xlib/Xfree86 at the very least."
13776 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
13777 then
13778 echo
13779 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
13780 echo "*** terminal resize support. Consider upgrading ncurses."
13783 if test "$wine_cv_libc_reentrant" = "no"
13784 then
13785 echo
13786 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
13787 echo "*** threading support. Consider upgrading libc to a more recent"
13788 echo "*** reentrant version of libc."
13791 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
13792 then
13793 echo
13794 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
13795 echo "*** applications won't work properly. You should upgrade your X11 library."
13798 if test "$wine_cv_opengl_version_OK" = "no"
13799 then
13800 echo
13801 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
13802 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
13805 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
13806 then
13807 echo
13808 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
13809 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
13810 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
13811 echo "*** start configure with '--enable-opengl' to force OpenGL support."
13814 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
13815 then
13816 echo
13817 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
13818 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
13819 echo "*** support before reporting bugs."
13822 if test "$wine_cv_warn_cups_h" = "yes"
13823 then
13824 echo
13825 echo "*** Note: You have cups runtime libraries, but no development"
13826 echo "*** libraries. Install the cups-devel package or whichever package"
13827 echo "*** contains cups.h to enable CUPS support in Wine."
13830 if test "$wine_cv_msg_freetype" = "yes"
13831 then
13832 echo
13833 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
13834 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
13835 echo "*** freetype-devel package (or its equivalent on your distribution) to"
13836 echo "*** enable Wine to use TrueType fonts."
13839 echo
13840 echo "Configure finished. Do 'make depend && make' to compile Wine."
13841 echo