Avoid 0-byte files.
[wine/dcerpc.git] / configure
blob8858ad242dde8698596a2b64bfb32d0d1841af46
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020509.
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='20020509'
258 PACKAGE_STRING='Wine 20020509'
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 20020509 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 _ACEOF
826 if test -n "$ac_init_help"; then
827 case $ac_init_help in
828 short | recursive ) echo "Configuration of Wine 20020509:";;
829 esac
830 cat <<\_ACEOF
832 Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --disable-debug compile out all debugging messages
836 --disable-trace compile out TRACE messages
837 --enable-opengl force usage of OpenGL even if the latter is
838 thread-safe via pthread
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --without-curses do not use curses
844 --with-wine-tools=<dir> use Wine tools from directory <dir>
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 20020509
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 20020509, 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"
1268 # Check whether --with-wine-tools or --without-wine-tools was given.
1269 if test "${with_wine_tools+set}" = set; then
1270 withval="$with_wine_tools"
1275 if test "x$enable_debug" = "xno"
1276 then
1278 cat >>confdefs.h <<\_ACEOF
1279 #define NO_DEBUG_MSGS 1
1280 _ACEOF
1283 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1284 then
1286 cat >>confdefs.h <<\_ACEOF
1287 #define NO_TRACE_MSGS 1
1288 _ACEOF
1293 # Make sure we can run config.sub.
1294 $ac_config_sub sun4 >/dev/null 2>&1 ||
1295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297 { (exit 1); exit 1; }; }
1299 echo "$as_me:$LINENO: checking build system type" >&5
1300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301 if test "${ac_cv_build+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304 ac_cv_build_alias=$build_alias
1305 test -z "$ac_cv_build_alias" &&
1306 ac_cv_build_alias=`$ac_config_guess`
1307 test -z "$ac_cv_build_alias" &&
1308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310 { (exit 1); exit 1; }; }
1311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1314 { (exit 1); exit 1; }; }
1317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1318 echo "${ECHO_T}$ac_cv_build" >&6
1319 build=$ac_cv_build
1320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1325 echo "$as_me:$LINENO: checking host system type" >&5
1326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327 if test "${ac_cv_host+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330 ac_cv_host_alias=$host_alias
1331 test -z "$ac_cv_host_alias" &&
1332 ac_cv_host_alias=$ac_cv_build_alias
1333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1340 echo "${ECHO_T}$ac_cv_host" >&6
1341 host=$ac_cv_host
1342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1347 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1348 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353 cat >conftest.make <<\_ACEOF
1354 all:
1355 @echo 'ac_maketemp="${MAKE}"'
1356 _ACEOF
1357 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1358 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1359 if test -n "$ac_maketemp"; then
1360 eval ac_cv_prog_make_${ac_make}_set=yes
1361 else
1362 eval ac_cv_prog_make_${ac_make}_set=no
1364 rm -f conftest.make
1366 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1367 echo "$as_me:$LINENO: result: yes" >&5
1368 echo "${ECHO_T}yes" >&6
1369 SET_MAKE=
1370 else
1371 echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1373 SET_MAKE="MAKE=${MAKE-make}"
1376 ac_ext=c
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 if test -n "$ac_tool_prefix"; then
1382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1384 echo "$as_me:$LINENO: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391 else
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 break 2
1403 done
1404 done
1408 CC=$ac_cv_prog_CC
1409 if test -n "$CC"; then
1410 echo "$as_me:$LINENO: result: $CC" >&5
1411 echo "${ECHO_T}$CC" >&6
1412 else
1413 echo "$as_me:$LINENO: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1418 if test -z "$ac_cv_prog_CC"; then
1419 ac_ct_CC=$CC
1420 # Extract the first word of "gcc", so it can be a program name with args.
1421 set dummy gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 ac_cv_prog_ac_ct_CC="gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1441 done
1442 done
1446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447 if test -n "$ac_ct_CC"; then
1448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449 echo "${ECHO_T}$ac_ct_CC" >&6
1450 else
1451 echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1455 CC=$ac_ct_CC
1456 else
1457 CC="$ac_cv_prog_CC"
1460 if test -z "$CC"; then
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}cc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1483 done
1484 done
1488 CC=$ac_cv_prog_CC
1489 if test -n "$CC"; then
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1492 else
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1498 if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "cc", so it can be a program name with args.
1501 set dummy cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1521 done
1522 done
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1535 CC=$ac_ct_CC
1536 else
1537 CC="$ac_cv_prog_CC"
1541 if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552 ac_prog_rejected=no
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1562 continue
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1568 done
1569 done
1571 if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1574 shift
1575 if test $# != 0; then
1576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1579 shift
1580 set dummy "$as_dir/$ac_word" ${1+"$@"}
1581 shift
1582 ac_cv_prog_CC="$@"
1587 CC=$ac_cv_prog_CC
1588 if test -n "$CC"; then
1589 echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1591 else
1592 echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1597 if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in cl
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1622 done
1623 done
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1636 test -n "$CC" && break
1637 done
1639 if test -z "$CC"; then
1640 ac_ct_CC=$CC
1641 for ac_prog in cl
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1664 done
1665 done
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1678 test -n "$ac_ct_CC" && break
1679 done
1681 CC=$ac_ct_CC
1687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1689 { (exit 1); exit 1; }; }
1691 # Provide some information about the compiler.
1692 echo "$as_me:$LINENO:" \
1693 "checking for C compiler version" >&5
1694 ac_compiler=`set X $ac_compile; echo $2`
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 ac_status=$?
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 ac_status=$?
1708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line $LINENO "configure"
1713 #include "confdefs.h"
1715 #ifdef F77_DUMMY_MAIN
1716 # ifdef __cplusplus
1717 extern "C"
1718 # endif
1719 int F77_DUMMY_MAIN() { return 1; }
1720 #endif
1722 main ()
1726 return 0;
1728 _ACEOF
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1733 # of exeext.
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738 (eval $ac_link_default) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 # resort.
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748 ac_cv_exeext=
1749 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1752 case $ac_file in
1753 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1754 a.out ) # We found the default executable, but exeext='' is most
1755 # certainly right.
1756 break;;
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * ) break;;
1762 esac
1763 done
1764 else
1765 echo "$as_me: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1768 echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1776 # Check the compiler produces executables we can run. If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
1784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785 (eval $ac_try) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1789 cross_compiling=no
1790 else
1791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
1794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&5
1796 echo "$as_me: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1802 echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1805 rm -f a.out a.exe conftest$ac_cv_exeext
1806 ac_clean_files=$ac_clean_files_save
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1810 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1812 echo "${ECHO_T}$cross_compiling" >&6
1814 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1817 (eval $ac_link) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 # `rm'.
1825 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 case $ac_file in
1827 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829 export ac_cv_exeext
1830 break;;
1831 * ) break;;
1832 esac
1833 done
1834 else
1835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1846 ac_exeext=$EXEEXT
1847 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line $LINENO "configure"
1854 #include "confdefs.h"
1856 #ifdef F77_DUMMY_MAIN
1857 # ifdef __cplusplus
1858 extern "C"
1859 # endif
1860 int F77_DUMMY_MAIN() { return 1; }
1861 #endif
1863 main ()
1867 return 0;
1869 _ACEOF
1870 rm -f conftest.o conftest.obj
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 case $ac_file in
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 break;;
1881 esac
1882 done
1883 else
1884 echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1888 { (exit 1); exit 1; }; }
1891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1893 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1894 echo "${ECHO_T}$ac_cv_objext" >&6
1895 OBJEXT=$ac_cv_objext
1896 ac_objext=$OBJEXT
1897 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1898 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 cat >conftest.$ac_ext <<_ACEOF
1903 #line $LINENO "configure"
1904 #include "confdefs.h"
1906 #ifdef F77_DUMMY_MAIN
1907 # ifdef __cplusplus
1908 extern "C"
1909 # endif
1910 int F77_DUMMY_MAIN() { return 1; }
1911 #endif
1913 main ()
1915 #ifndef __GNUC__
1916 choke me
1917 #endif
1920 return 0;
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1935 ac_compiler_gnu=yes
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 ac_compiler_gnu=no
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1945 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1946 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947 GCC=`test $ac_compiler_gnu = yes && echo yes`
1948 ac_test_CFLAGS=${CFLAGS+set}
1949 ac_save_CFLAGS=$CFLAGS
1950 CFLAGS="-g"
1951 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953 if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 #include "confdefs.h"
1960 #ifdef F77_DUMMY_MAIN
1961 # ifdef __cplusplus
1962 extern "C"
1963 # endif
1964 int F77_DUMMY_MAIN() { return 1; }
1965 #endif
1967 main ()
1971 return 0;
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976 (eval $ac_compile) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); } &&
1980 { ac_try='test -s conftest.$ac_objext'
1981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 (eval $ac_try) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; }; then
1986 ac_cv_prog_cc_g=yes
1987 else
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_prog_cc_g=no
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1994 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1996 if test "$ac_test_CFLAGS" = set; then
1997 CFLAGS=$ac_save_CFLAGS
1998 elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
2000 CFLAGS="-g -O2"
2001 else
2002 CFLAGS="-g"
2004 else
2005 if test "$GCC" = yes; then
2006 CFLAGS="-O2"
2007 else
2008 CFLAGS=
2011 # Some people use a C++ compiler to compile C. Since we use `exit',
2012 # in C++ we need to declare it. In case someone uses the same compiler
2013 # for both compiling C and C++ we need to have the C++ compiler decide
2014 # the declaration of exit, since it's the most demanding environment.
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #ifndef __cplusplus
2017 choke me
2018 #endif
2019 _ACEOF
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 for ac_declaration in \
2034 '#include <stdlib.h>' \
2035 'extern "C" void std::exit (int) throw (); using std::exit;' \
2036 'extern "C" void std::exit (int); using std::exit;' \
2037 'extern "C" void exit (int) throw ();' \
2038 'extern "C" void exit (int);' \
2039 'void exit (int);'
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 #include "confdefs.h"
2044 #include <stdlib.h>
2045 $ac_declaration
2046 #ifdef F77_DUMMY_MAIN
2047 # ifdef __cplusplus
2048 extern "C"
2049 # endif
2050 int F77_DUMMY_MAIN() { return 1; }
2051 #endif
2053 main ()
2055 exit (42);
2057 return 0;
2059 _ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062 (eval $ac_compile) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 continue
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line $LINENO "configure"
2081 #include "confdefs.h"
2082 $ac_declaration
2083 #ifdef F77_DUMMY_MAIN
2084 # ifdef __cplusplus
2085 extern "C"
2086 # endif
2087 int F77_DUMMY_MAIN() { return 1; }
2088 #endif
2090 main ()
2092 exit (42);
2094 return 0;
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 break
2110 else
2111 echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2115 done
2116 rm -f conftest*
2117 if test -n "$ac_declaration"; then
2118 echo '#ifdef __cplusplus' >>confdefs.h
2119 echo $ac_declaration >>confdefs.h
2120 echo '#endif' >>confdefs.h
2123 else
2124 echo "$as_me: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 rm -f conftest.$ac_objext conftest.$ac_ext
2128 ac_ext=c
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2143 CPP=
2145 if test -z "$CPP"; then
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2152 ac_preproc_ok=false
2153 for ac_c_preproc_warn_flag in '' yes
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 #include "confdefs.h"
2162 #include <assert.h>
2163 Syntax error
2164 _ACEOF
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2178 else
2179 ac_cpp_err=yes
2181 if test -z "$ac_cpp_err"; then
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2187 continue
2189 rm -f conftest.err conftest.$ac_ext
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2197 _ACEOF
2198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 ac_status=$?
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2208 else
2209 ac_cpp_err=
2211 else
2212 ac_cpp_err=yes
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216 continue
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2221 ac_preproc_ok=:
2222 break
2224 rm -f conftest.err conftest.$ac_ext
2226 done
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2230 break
2233 done
2234 ac_cv_prog_CPP=$CPP
2237 CPP=$ac_cv_prog_CPP
2238 else
2239 ac_cv_prog_CPP=$CPP
2241 echo "$as_me:$LINENO: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2243 ac_preproc_ok=false
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2253 #include <assert.h>
2254 Syntax error
2255 _ACEOF
2256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 ac_status=$?
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2266 else
2267 ac_cpp_err=
2269 else
2270 ac_cpp_err=yes
2272 if test -z "$ac_cpp_err"; then
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2278 continue
2280 rm -f conftest.err conftest.$ac_ext
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2288 _ACEOF
2289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 ac_status=$?
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2299 else
2300 ac_cpp_err=
2302 else
2303 ac_cpp_err=yes
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2307 continue
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2312 ac_preproc_ok=:
2313 break
2315 rm -f conftest.err conftest.$ac_ext
2317 done
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2322 else
2323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337 if test "${wine_cv_toolsdir+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -z "$with_wine_tools"; then
2341 if test "$cross_compiling" = "yes"; then
2342 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2343 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2344 { (exit 1); exit 1; }; }
2345 else
2346 wine_cv_toolsdir="\$(TOPOBJDIR)"
2348 elif test -d "$with_wine_tools/tools/winebuild"; then
2349 case $with_wine_tools in
2350 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2351 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2352 esac
2353 else
2354 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2355 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356 { (exit 1); exit 1; }; }
2359 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361 TOOLSDIR=$wine_cv_toolsdir
2366 echo "$as_me:$LINENO: checking for X" >&5
2367 echo $ECHO_N "checking for X... $ECHO_C" >&6
2370 # Check whether --with-x or --without-x was given.
2371 if test "${with_x+set}" = set; then
2372 withval="$with_x"
2375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2376 if test "x$with_x" = xno; then
2377 # The user explicitly disabled X.
2378 have_x=disabled
2379 else
2380 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2381 # Both variables are already set.
2382 have_x=yes
2383 else
2384 if test "${ac_cv_have_x+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 # One or both of the vars are not set, and there is no cached value.
2388 ac_x_includes=no ac_x_libraries=no
2389 rm -fr conftest.dir
2390 if mkdir conftest.dir; then
2391 cd conftest.dir
2392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2393 cat >Imakefile <<'_ACEOF'
2394 acfindx:
2395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2396 _ACEOF
2397 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2401 for ac_extension in a so sl; do
2402 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2403 test -f $ac_im_libdir/libX11.$ac_extension; then
2404 ac_im_usrlibdir=$ac_im_libdir; break
2406 done
2407 # Screen out bogus values from the imake configuration. They are
2408 # bogus both because they are the default anyway, and because
2409 # using them would break gcc on systems where it needs fixed includes.
2410 case $ac_im_incroot in
2411 /usr/include) ;;
2412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2413 esac
2414 case $ac_im_usrlibdir in
2415 /usr/lib | /lib) ;;
2416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2417 esac
2419 cd ..
2420 rm -fr conftest.dir
2423 # Standard set of common directories for X headers.
2424 # Check X11 before X11Rn because it is often a symlink to the current release.
2425 ac_x_header_dirs='
2426 /usr/X11/include
2427 /usr/X11R6/include
2428 /usr/X11R5/include
2429 /usr/X11R4/include
2431 /usr/include/X11
2432 /usr/include/X11R6
2433 /usr/include/X11R5
2434 /usr/include/X11R4
2436 /usr/local/X11/include
2437 /usr/local/X11R6/include
2438 /usr/local/X11R5/include
2439 /usr/local/X11R4/include
2441 /usr/local/include/X11
2442 /usr/local/include/X11R6
2443 /usr/local/include/X11R5
2444 /usr/local/include/X11R4
2446 /usr/X386/include
2447 /usr/x386/include
2448 /usr/XFree86/include/X11
2450 /usr/include
2451 /usr/local/include
2452 /usr/unsupported/include
2453 /usr/athena/include
2454 /usr/local/x11r5/include
2455 /usr/lpp/Xamples/include
2457 /usr/openwin/include
2458 /usr/openwin/share/include'
2460 if test "$ac_x_includes" = no; then
2461 # Guess where to find include files, by looking for Intrinsic.h.
2462 # First, try using that file with no special directory specified.
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #line $LINENO "configure"
2465 #include "confdefs.h"
2466 #include <X11/Intrinsic.h>
2467 _ACEOF
2468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470 ac_status=$?
2471 egrep -v '^ *\+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } >/dev/null; then
2476 if test -s conftest.err; then
2477 ac_cpp_err=$ac_c_preproc_warn_flag
2478 else
2479 ac_cpp_err=
2481 else
2482 ac_cpp_err=yes
2484 if test -z "$ac_cpp_err"; then
2485 # We can compile using X headers with no special include directory.
2486 ac_x_includes=
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 for ac_dir in $ac_x_header_dirs; do
2491 if test -r "$ac_dir/X11/Intrinsic.h"; then
2492 ac_x_includes=$ac_dir
2493 break
2495 done
2497 rm -f conftest.err conftest.$ac_ext
2498 fi # $ac_x_includes = no
2500 if test "$ac_x_libraries" = no; then
2501 # Check for the libraries.
2502 # See if we find them without any special options.
2503 # Don't add to $LIBS permanently.
2504 ac_save_LIBS=$LIBS
2505 LIBS="-lXt $LIBS"
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2509 #include <X11/Intrinsic.h>
2510 #ifdef F77_DUMMY_MAIN
2511 # ifdef __cplusplus
2512 extern "C"
2513 # endif
2514 int F77_DUMMY_MAIN() { return 1; }
2515 #endif
2517 main ()
2519 XtMalloc (0)
2521 return 0;
2523 _ACEOF
2524 rm -f conftest.$ac_objext conftest$ac_exeext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest$ac_exeext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 LIBS=$ac_save_LIBS
2537 # We can link X programs with no special library path.
2538 ac_x_libraries=
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 LIBS=$ac_save_LIBS
2543 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2545 # Don't even attempt the hair of trying to link an X program!
2546 for ac_extension in a so sl; do
2547 if test -r $ac_dir/libXt.$ac_extension; then
2548 ac_x_libraries=$ac_dir
2549 break 2
2551 done
2552 done
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555 fi # $ac_x_libraries = no
2557 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2558 # Didn't find X anywhere. Cache the known absence of X.
2559 ac_cv_have_x="have_x=no"
2560 else
2561 # Record where we found X for the cache.
2562 ac_cv_have_x="have_x=yes \
2563 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2568 eval "$ac_cv_have_x"
2569 fi # $with_x != no
2571 if test "$have_x" != yes; then
2572 echo "$as_me:$LINENO: result: $have_x" >&5
2573 echo "${ECHO_T}$have_x" >&6
2574 no_x=yes
2575 else
2576 # If each of the values was on the command line, it overrides each guess.
2577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2579 # Update the cache value to reflect the command line values.
2580 ac_cv_have_x="have_x=yes \
2581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2583 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2586 if test "$no_x" = yes; then
2587 # Not all programs may use this symbol, but it does not hurt to define it.
2589 cat >>confdefs.h <<\_ACEOF
2590 #define X_DISPLAY_MISSING 1
2591 _ACEOF
2593 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2594 else
2595 if test -n "$x_includes"; then
2596 X_CFLAGS="$X_CFLAGS -I$x_includes"
2599 # It would also be nice to do this for all -L options, not just this one.
2600 if test -n "$x_libraries"; then
2601 X_LIBS="$X_LIBS -L$x_libraries"
2602 # For Solaris; some versions of Sun CC require a space after -R and
2603 # others require no space. Words are not sufficient . . . .
2604 case `(uname -sr) 2>/dev/null` in
2605 "SunOS 5"*)
2606 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2607 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2608 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2613 #ifdef F77_DUMMY_MAIN
2614 # ifdef __cplusplus
2615 extern "C"
2616 # endif
2617 int F77_DUMMY_MAIN() { return 1; }
2618 #endif
2620 main ()
2624 return 0;
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_R_nospace=yes
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 ac_R_nospace=no
2645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2646 if test $ac_R_nospace = yes; then
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649 X_LIBS="$X_LIBS -R$x_libraries"
2650 else
2651 LIBS="$ac_xsave_LIBS -R $x_libraries"
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2656 #ifdef F77_DUMMY_MAIN
2657 # ifdef __cplusplus
2658 extern "C"
2659 # endif
2660 int F77_DUMMY_MAIN() { return 1; }
2661 #endif
2663 main ()
2667 return 0;
2669 _ACEOF
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest$ac_exeext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_R_space=yes
2683 else
2684 echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 ac_R_space=no
2688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2689 if test $ac_R_space = yes; then
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692 X_LIBS="$X_LIBS -R $x_libraries"
2693 else
2694 echo "$as_me:$LINENO: result: neither works" >&5
2695 echo "${ECHO_T}neither works" >&6
2698 LIBS=$ac_xsave_LIBS
2699 esac
2702 # Check for system-dependent libraries X programs must link with.
2703 # Do this before checking for the system-independent R6 libraries
2704 # (-lICE), since we may need -lsocket or whatever for X linking.
2706 if test "$ISC" = yes; then
2707 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708 else
2709 # Martyn Johnson says this is needed for Ultrix, if the X
2710 # libraries were built with DECnet support. And Karl Berry says
2711 # the Alpha needs dnet_stub (dnet does not exist).
2712 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 #include "confdefs.h"
2717 /* Override any gcc2 internal prototype to avoid an error. */
2718 #ifdef __cplusplus
2719 extern "C"
2720 #endif
2721 /* We use char because int might match the return type of a gcc2
2722 builtin and then its argument prototype would still apply. */
2723 char XOpenDisplay ();
2724 #ifdef F77_DUMMY_MAIN
2725 # ifdef __cplusplus
2726 extern "C"
2727 # endif
2728 int F77_DUMMY_MAIN() { return 1; }
2729 #endif
2731 main ()
2733 XOpenDisplay ();
2735 return 0;
2737 _ACEOF
2738 rm -f conftest.$ac_objext conftest$ac_exeext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740 (eval $ac_link) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest$ac_exeext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2755 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 ac_check_lib_save_LIBS=$LIBS
2760 LIBS="-ldnet $LIBS"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2765 /* Override any gcc2 internal prototype to avoid an error. */
2766 #ifdef __cplusplus
2767 extern "C"
2768 #endif
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771 char dnet_ntoa ();
2772 #ifdef F77_DUMMY_MAIN
2773 # ifdef __cplusplus
2774 extern "C"
2775 # endif
2776 int F77_DUMMY_MAIN() { return 1; }
2777 #endif
2779 main ()
2781 dnet_ntoa ();
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext conftest$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788 (eval $ac_link) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest$ac_exeext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_lib_dnet_dnet_ntoa=yes
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 ac_cv_lib_dnet_dnet_ntoa=no
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805 LIBS=$ac_check_lib_save_LIBS
2807 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2808 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2813 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2814 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2815 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 ac_check_lib_save_LIBS=$LIBS
2820 LIBS="-ldnet_stub $LIBS"
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 #include "confdefs.h"
2825 /* Override any gcc2 internal prototype to avoid an error. */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 /* We use char because int might match the return type of a gcc2
2830 builtin and then its argument prototype would still apply. */
2831 char dnet_ntoa ();
2832 #ifdef F77_DUMMY_MAIN
2833 # ifdef __cplusplus
2834 extern "C"
2835 # endif
2836 int F77_DUMMY_MAIN() { return 1; }
2837 #endif
2839 main ()
2841 dnet_ntoa ();
2843 return 0;
2845 _ACEOF
2846 rm -f conftest.$ac_objext conftest$ac_exeext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2848 (eval $ac_link) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -s conftest$ac_exeext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 ac_cv_lib_dnet_stub_dnet_ntoa=no
2864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865 LIBS=$ac_check_lib_save_LIBS
2867 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2868 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS="$ac_xsave_LIBS"
2878 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879 # to get the SysV transport functions.
2880 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2881 # needs -lnsl.
2882 # The nsl library prevents programs from opening the X display
2883 # on Irix 5.2, according to T.E. Dickey.
2884 # The functions gethostbyname, getservbyname, and inet_addr are
2885 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2886 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2887 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888 if test "${ac_cv_func_gethostbyname+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895 which can conflict with char gethostbyname (); below. */
2896 #include <assert.h>
2897 /* Override any gcc2 internal prototype to avoid an error. */
2898 #ifdef __cplusplus
2899 extern "C"
2900 #endif
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2903 char gethostbyname ();
2904 char (*f) ();
2906 #ifdef F77_DUMMY_MAIN
2907 # ifdef __cplusplus
2908 extern "C"
2909 # endif
2910 int F77_DUMMY_MAIN() { return 1; }
2911 #endif
2913 main ()
2915 /* The GNU C library defines this for functions which it implements
2916 to always fail with ENOSYS. Some functions are actually named
2917 something starting with __ and the normal name is an alias. */
2918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2919 choke me
2920 #else
2921 f = gethostbyname;
2922 #endif
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930 (eval $ac_link) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest$ac_exeext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_func_gethostbyname=yes
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 ac_cv_func_gethostbyname=no
2946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2948 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2949 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2951 if test $ac_cv_func_gethostbyname = no; then
2952 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2953 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 ac_check_lib_save_LIBS=$LIBS
2958 LIBS="-lnsl $LIBS"
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char gethostbyname ();
2970 #ifdef F77_DUMMY_MAIN
2971 # ifdef __cplusplus
2972 extern "C"
2973 # endif
2974 int F77_DUMMY_MAIN() { return 1; }
2975 #endif
2977 main ()
2979 gethostbyname ();
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest$ac_exeext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_cv_lib_nsl_gethostbyname=yes
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 ac_cv_lib_nsl_gethostbyname=no
3002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3011 if test $ac_cv_lib_nsl_gethostbyname = no; then
3012 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3013 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 ac_check_lib_save_LIBS=$LIBS
3018 LIBS="-lbsd $LIBS"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 #include "confdefs.h"
3023 /* Override any gcc2 internal prototype to avoid an error. */
3024 #ifdef __cplusplus
3025 extern "C"
3026 #endif
3027 /* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3029 char gethostbyname ();
3030 #ifdef F77_DUMMY_MAIN
3031 # ifdef __cplusplus
3032 extern "C"
3033 # endif
3034 int F77_DUMMY_MAIN() { return 1; }
3035 #endif
3037 main ()
3039 gethostbyname ();
3041 return 0;
3043 _ACEOF
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046 (eval $ac_link) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_lib_bsd_gethostbyname=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 ac_cv_lib_bsd_gethostbyname=no
3062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063 LIBS=$ac_check_lib_save_LIBS
3065 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3066 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3074 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3075 # socket/setsockopt and other routines are undefined under SCO ODT
3076 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3077 # on later versions), says Simon Leinen: it contains gethostby*
3078 # variants that don't use the nameserver (or something). -lsocket
3079 # must be given before -lnsl if both are needed. We assume that
3080 # if connect needs -lnsl, so does gethostbyname.
3081 echo "$as_me:$LINENO: checking for connect" >&5
3082 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083 if test "${ac_cv_func_connect+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090 which can conflict with char connect (); below. */
3091 #include <assert.h>
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 #ifdef __cplusplus
3094 extern "C"
3095 #endif
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3098 char connect ();
3099 char (*f) ();
3101 #ifdef F77_DUMMY_MAIN
3102 # ifdef __cplusplus
3103 extern "C"
3104 # endif
3105 int F77_DUMMY_MAIN() { return 1; }
3106 #endif
3108 main ()
3110 /* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113 #if defined (__stub_connect) || defined (__stub___connect)
3114 choke me
3115 #else
3116 f = connect;
3117 #endif
3120 return 0;
3122 _ACEOF
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125 (eval $ac_link) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest$ac_exeext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 ac_cv_func_connect=yes
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 ac_cv_func_connect=no
3141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3144 echo "${ECHO_T}$ac_cv_func_connect" >&6
3146 if test $ac_cv_func_connect = no; then
3147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149 if test "${ac_cv_lib_socket_connect+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 ac_check_lib_save_LIBS=$LIBS
3153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3158 /* Override any gcc2 internal prototype to avoid an error. */
3159 #ifdef __cplusplus
3160 extern "C"
3161 #endif
3162 /* We use char because int might match the return type of a gcc2
3163 builtin and then its argument prototype would still apply. */
3164 char connect ();
3165 #ifdef F77_DUMMY_MAIN
3166 # ifdef __cplusplus
3167 extern "C"
3168 # endif
3169 int F77_DUMMY_MAIN() { return 1; }
3170 #endif
3172 main ()
3174 connect ();
3176 return 0;
3178 _ACEOF
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181 (eval $ac_link) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_lib_socket_connect=yes
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3195 ac_cv_lib_socket_connect=no
3197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198 LIBS=$ac_check_lib_save_LIBS
3200 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3201 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202 if test $ac_cv_lib_socket_connect = yes; then
3203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3208 # Guillermo Gomez says -lposix is necessary on A/UX.
3209 echo "$as_me:$LINENO: checking for remove" >&5
3210 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211 if test "${ac_cv_func_remove+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 #include "confdefs.h"
3217 /* System header to define __stub macros and hopefully few prototypes,
3218 which can conflict with char remove (); below. */
3219 #include <assert.h>
3220 /* Override any gcc2 internal prototype to avoid an error. */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char remove ();
3227 char (*f) ();
3229 #ifdef F77_DUMMY_MAIN
3230 # ifdef __cplusplus
3231 extern "C"
3232 # endif
3233 int F77_DUMMY_MAIN() { return 1; }
3234 #endif
3236 main ()
3238 /* The GNU C library defines this for functions which it implements
3239 to always fail with ENOSYS. Some functions are actually named
3240 something starting with __ and the normal name is an alias. */
3241 #if defined (__stub_remove) || defined (__stub___remove)
3242 choke me
3243 #else
3244 f = remove;
3245 #endif
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.$ac_objext conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253 (eval $ac_link) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_func_remove=yes
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3267 ac_cv_func_remove=no
3269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3272 echo "${ECHO_T}$ac_cv_func_remove" >&6
3274 if test $ac_cv_func_remove = no; then
3275 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3276 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277 if test "${ac_cv_lib_posix_remove+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 ac_check_lib_save_LIBS=$LIBS
3281 LIBS="-lposix $LIBS"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3286 /* Override any gcc2 internal prototype to avoid an error. */
3287 #ifdef __cplusplus
3288 extern "C"
3289 #endif
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3292 char remove ();
3293 #ifdef F77_DUMMY_MAIN
3294 # ifdef __cplusplus
3295 extern "C"
3296 # endif
3297 int F77_DUMMY_MAIN() { return 1; }
3298 #endif
3300 main ()
3302 remove ();
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_lib_posix_remove=yes
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 ac_cv_lib_posix_remove=no
3325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326 LIBS=$ac_check_lib_save_LIBS
3328 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3329 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330 if test $ac_cv_lib_posix_remove = yes; then
3331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3337 echo "$as_me:$LINENO: checking for shmat" >&5
3338 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339 if test "${ac_cv_func_shmat+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 #line $LINENO "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346 which can conflict with char shmat (); below. */
3347 #include <assert.h>
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 #ifdef __cplusplus
3350 extern "C"
3351 #endif
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char shmat ();
3355 char (*f) ();
3357 #ifdef F77_DUMMY_MAIN
3358 # ifdef __cplusplus
3359 extern "C"
3360 # endif
3361 int F77_DUMMY_MAIN() { return 1; }
3362 #endif
3364 main ()
3366 /* The GNU C library defines this for functions which it implements
3367 to always fail with ENOSYS. Some functions are actually named
3368 something starting with __ and the normal name is an alias. */
3369 #if defined (__stub_shmat) || defined (__stub___shmat)
3370 choke me
3371 #else
3372 f = shmat;
3373 #endif
3376 return 0;
3378 _ACEOF
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_func_shmat=yes
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 ac_cv_func_shmat=no
3397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3400 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3402 if test $ac_cv_func_shmat = no; then
3403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3404 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 ac_check_lib_save_LIBS=$LIBS
3409 LIBS="-lipc $LIBS"
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 #ifdef __cplusplus
3416 extern "C"
3417 #endif
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3420 char shmat ();
3421 #ifdef F77_DUMMY_MAIN
3422 # ifdef __cplusplus
3423 extern "C"
3424 # endif
3425 int F77_DUMMY_MAIN() { return 1; }
3426 #endif
3428 main ()
3430 shmat ();
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext conftest$ac_exeext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3437 (eval $ac_link) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest$ac_exeext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_ipc_shmat=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 ac_cv_lib_ipc_shmat=no
3453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3457 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458 if test $ac_cv_lib_ipc_shmat = yes; then
3459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3465 # Check for libraries that X11R6 Xt/Xaw programs need.
3466 ac_save_LDFLAGS=$LDFLAGS
3467 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3468 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3469 # check for ICE first), but we must link in the order -lSM -lICE or
3470 # we get undefined symbols. So assume we have SM if we have ICE.
3471 # These have to be linked with before -lX11, unlike the other
3472 # libraries we check for below, so use a different variable.
3473 # John Interrante, Karl Berry
3474 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3475 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 ac_check_lib_save_LIBS=$LIBS
3480 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3481 cat >conftest.$ac_ext <<_ACEOF
3482 #line $LINENO "configure"
3483 #include "confdefs.h"
3485 /* Override any gcc2 internal prototype to avoid an error. */
3486 #ifdef __cplusplus
3487 extern "C"
3488 #endif
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3491 char IceConnectionNumber ();
3492 #ifdef F77_DUMMY_MAIN
3493 # ifdef __cplusplus
3494 extern "C"
3495 # endif
3496 int F77_DUMMY_MAIN() { return 1; }
3497 #endif
3499 main ()
3501 IceConnectionNumber ();
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508 (eval $ac_link) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest$ac_exeext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_cv_lib_ICE_IceConnectionNumber=yes
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 ac_cv_lib_ICE_IceConnectionNumber=no
3524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525 LIBS=$ac_check_lib_save_LIBS
3527 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3528 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3533 LDFLAGS=$ac_save_LDFLAGS
3537 for ac_prog in 'bison -y' byacc
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_YACC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$YACC"; then
3547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_YACC="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3565 YACC=$ac_cv_prog_YACC
3566 if test -n "$YACC"; then
3567 echo "$as_me:$LINENO: result: $YACC" >&5
3568 echo "${ECHO_T}$YACC" >&6
3569 else
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 test -n "$YACC" && break
3575 done
3576 test -n "$YACC" || YACC="yacc"
3578 for ac_prog in flex lex
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_LEX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$LEX"; then
3588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_LEX="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3606 LEX=$ac_cv_prog_LEX
3607 if test -n "$LEX"; then
3608 echo "$as_me:$LINENO: result: $LEX" >&5
3609 echo "${ECHO_T}$LEX" >&6
3610 else
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 test -n "$LEX" && break
3616 done
3617 test -n "$LEX" || LEX=":"
3619 if test -z "$LEXLIB"
3620 then
3621 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3622 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-lfl $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3632 /* Override any gcc2 internal prototype to avoid an error. */
3633 #ifdef __cplusplus
3634 extern "C"
3635 #endif
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3638 char yywrap ();
3639 #ifdef F77_DUMMY_MAIN
3640 # ifdef __cplusplus
3641 extern "C"
3642 # endif
3643 int F77_DUMMY_MAIN() { return 1; }
3644 #endif
3646 main ()
3648 yywrap ();
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655 (eval $ac_link) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_lib_fl_yywrap=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 ac_cv_lib_fl_yywrap=no
3671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 LIBS=$ac_check_lib_save_LIBS
3674 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3675 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676 if test $ac_cv_lib_fl_yywrap = yes; then
3677 LEXLIB="-lfl"
3678 else
3679 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3680 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 ac_check_lib_save_LIBS=$LIBS
3685 LIBS="-ll $LIBS"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 #ifdef __cplusplus
3692 extern "C"
3693 #endif
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3696 char yywrap ();
3697 #ifdef F77_DUMMY_MAIN
3698 # ifdef __cplusplus
3699 extern "C"
3700 # endif
3701 int F77_DUMMY_MAIN() { return 1; }
3702 #endif
3704 main ()
3706 yywrap ();
3708 return 0;
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713 (eval $ac_link) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest$ac_exeext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_cv_lib_l_yywrap=yes
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 ac_cv_lib_l_yywrap=no
3729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730 LIBS=$ac_check_lib_save_LIBS
3732 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3733 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734 if test $ac_cv_lib_l_yywrap = yes; then
3735 LEXLIB="-ll"
3742 if test "x$LEX" != "x:"; then
3743 echo "$as_me:$LINENO: checking lex output file root" >&5
3744 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745 if test "${ac_cv_prog_lex_root+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 # The minimal lex program is just a single line: %%. But some broken lexes
3749 # (Solaris, I think it was) want two %% lines, so accommodate them.
3750 cat >conftest.l <<_ACEOF
3753 _ACEOF
3754 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3755 (eval $LEX conftest.l) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
3759 if test -f lex.yy.c; then
3760 ac_cv_prog_lex_root=lex.yy
3761 elif test -f lexyy.c; then
3762 ac_cv_prog_lex_root=lexyy
3763 else
3764 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3765 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766 { (exit 1); exit 1; }; }
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3770 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3771 rm -f conftest.l
3772 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3774 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3775 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 # POSIX says lex can declare yytext either as a pointer or an array; the
3780 # default is implementation-dependent. Figure out which it is, since
3781 # not all implementations provide the %pointer and %array declarations.
3782 ac_cv_prog_lex_yytext_pointer=no
3783 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784 ac_save_LIBS=$LIBS
3785 LIBS="$LIBS $LEXLIB"
3786 cat >conftest.$ac_ext <<_ACEOF
3787 `cat $LEX_OUTPUT_ROOT.c`
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_cv_prog_lex_yytext_pointer=yes
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_save_LIBS
3808 rm -f "${LEX_OUTPUT_ROOT}.c"
3811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3812 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3815 cat >>confdefs.h <<\_ACEOF
3816 #define YYTEXT_POINTER 1
3817 _ACEOF
3823 for ac_prog in $YACC bison yacc
3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_XYACC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 if test -n "$XYACC"; then
3833 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_XYACC="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3851 XYACC=$ac_cv_prog_XYACC
3852 if test -n "$XYACC"; then
3853 echo "$as_me:$LINENO: result: $XYACC" >&5
3854 echo "${ECHO_T}$XYACC" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 test -n "$XYACC" && break
3861 done
3862 test -n "$XYACC" || XYACC="none"
3864 if test "$XYACC" = "none"
3865 then
3866 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3867 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868 { (exit 1); exit 1; }; }
3870 for ac_prog in $LEX flex lex
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_XLEX+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if test -n "$XLEX"; then
3880 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_XLEX="$ac_prog"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3898 XLEX=$ac_cv_prog_XLEX
3899 if test -n "$XLEX"; then
3900 echo "$as_me:$LINENO: result: $XLEX" >&5
3901 echo "${ECHO_T}$XLEX" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3907 test -n "$XLEX" && break
3908 done
3909 test -n "$XLEX" || XLEX="none"
3911 if test "$XLEX" = "none"
3912 then
3913 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3914 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915 { (exit 1); exit 1; }; }
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ar; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_AR+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if test -n "$AR"; then
3927 ac_cv_prog_AR="$AR" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_AR="${ac_tool_prefix}ar"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3945 AR=$ac_cv_prog_AR
3946 if test -n "$AR"; then
3947 echo "$as_me:$LINENO: result: $AR" >&5
3948 echo "${ECHO_T}$AR" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3955 if test -z "$ac_cv_prog_AR"; then
3956 ac_ct_AR=$AR
3957 # Extract the first word of "ar", so it can be a program name with args.
3958 set dummy ar; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 if test -n "$ac_ct_AR"; then
3965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_AR="ar"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3981 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3984 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3985 if test -n "$ac_ct_AR"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3987 echo "${ECHO_T}$ac_ct_AR" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3993 AR=$ac_ct_AR
3994 else
3995 AR="$ac_cv_prog_AR"
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4025 RANLIB=$ac_cv_prog_RANLIB
4026 if test -n "$RANLIB"; then
4027 echo "$as_me:$LINENO: result: $RANLIB" >&5
4028 echo "${ECHO_T}$RANLIB" >&6
4029 else
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4035 if test -z "$ac_cv_prog_RANLIB"; then
4036 ac_ct_RANLIB=$RANLIB
4037 # Extract the first word of "ranlib", so it can be a program name with args.
4038 set dummy ranlib; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 if test -n "$ac_ct_RANLIB"; then
4045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_RANLIB="ranlib"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4058 done
4059 done
4061 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4065 if test -n "$ac_ct_RANLIB"; then
4066 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4067 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068 else
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4073 RANLIB=$ac_ct_RANLIB
4074 else
4075 RANLIB="$ac_cv_prog_RANLIB"
4078 if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}strip; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_STRIP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 if test -n "$STRIP"; then
4087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4100 done
4101 done
4105 STRIP=$ac_cv_prog_STRIP
4106 if test -n "$STRIP"; then
4107 echo "$as_me:$LINENO: result: $STRIP" >&5
4108 echo "${ECHO_T}$STRIP" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4115 if test -z "$ac_cv_prog_STRIP"; then
4116 ac_ct_STRIP=$STRIP
4117 # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4141 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147 echo "${ECHO_T}$ac_ct_STRIP" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4153 STRIP=$ac_ct_STRIP
4154 else
4155 STRIP="$ac_cv_prog_STRIP"
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}windres; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_WINDRES+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 if test -n "$WINDRES"; then
4167 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4185 WINDRES=$ac_cv_prog_WINDRES
4186 if test -n "$WINDRES"; then
4187 echo "$as_me:$LINENO: result: $WINDRES" >&5
4188 echo "${ECHO_T}$WINDRES" >&6
4189 else
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4195 if test -z "$ac_cv_prog_WINDRES"; then
4196 ac_ct_WINDRES=$WINDRES
4197 # Extract the first word of "windres", so it can be a program name with args.
4198 set dummy windres; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if test -n "$ac_ct_WINDRES"; then
4205 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_WINDRES="windres"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4221 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4224 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4225 if test -n "$ac_ct_WINDRES"; then
4226 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4227 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4228 else
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4233 WINDRES=$ac_ct_WINDRES
4234 else
4235 WINDRES="$ac_cv_prog_WINDRES"
4238 # Find a good install program. We prefer a C program (faster),
4239 # so one script is as good as another. But avoid the broken or
4240 # incompatible versions:
4241 # SysV /etc/install, /usr/sbin/install
4242 # SunOS /usr/etc/install
4243 # IRIX /sbin/install
4244 # AIX /bin/install
4245 # AmigaOS /C/install, which installs bootblocks on floppy discs
4246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4249 # ./install, which can be erroneously created by make from ./install.sh.
4250 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4251 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4252 if test -z "$INSTALL"; then
4253 if test "${ac_cv_path_install+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 # Account for people who put trailing slashes in PATH elements.
4262 case $as_dir/ in
4263 ./ | .// | /cC/* | \
4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265 /usr/ucb/* ) ;;
4267 # OSF1 and SCO ODT 3.0 have their own names for install.
4268 # Don't use installbsd from OSF since it installs stuff as root
4269 # by default.
4270 for ac_prog in ginstall scoinst install; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4273 if test $ac_prog = install &&
4274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4275 # AIX install. It has an incompatible calling convention.
4277 elif test $ac_prog = install &&
4278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279 # program-specific install script used by HP pwplus--don't use.
4281 else
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4286 done
4287 done
4289 esac
4290 done
4294 if test "${ac_cv_path_install+set}" = set; then
4295 INSTALL=$ac_cv_path_install
4296 else
4297 # As a last resort, use the slow shell script. We don't cache a
4298 # path for INSTALL within a source directory, because that will
4299 # break other packages using the cache if that directory is
4300 # removed, or if the path is relative.
4301 INSTALL=$ac_install_sh
4304 echo "$as_me:$LINENO: result: $INSTALL" >&5
4305 echo "${ECHO_T}$INSTALL" >&6
4307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4308 # It thinks the first close brace ends the variable substitution.
4309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4315 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4316 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4317 LN_S=$as_ln_s
4318 if test "$LN_S" = "ln -s"; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320 echo "${ECHO_T}yes" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4323 echo "${ECHO_T}no, using $LN_S" >&6
4326 echo "$as_me:$LINENO: checking whether ln works" >&5
4327 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4328 rm -f conf$$ conf$$.file
4329 echo >conf$$.file
4330 if ln conf$$.file conf$$ 2>/dev/null; then
4331 LN=ln
4333 echo "$as_me:$LINENO: result: yes" >&5
4334 echo "${ECHO_T}yes" >&6
4335 else
4336 LN="cp -p"
4338 echo "$as_me:$LINENO: result: no, using $LN" >&5
4339 echo "${ECHO_T}no, using $LN" >&6
4341 rm -f conf$$ conf$$.file
4342 # Extract the first word of "c2man", so it can be a program name with args.
4343 set dummy c2man; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_C2MAN+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -n "$C2MAN"; then
4350 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_C2MAN="c2man"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4366 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4369 C2MAN=$ac_cv_prog_C2MAN
4370 if test -n "$C2MAN"; then
4371 echo "$as_me:$LINENO: result: $C2MAN" >&5
4372 echo "${ECHO_T}$C2MAN" >&6
4373 else
4374 echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4378 # Extract the first word of "ldconfig", so it can be a program name with args.
4379 set dummy ldconfig; ac_word=$2
4380 echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 case $LDCONFIG in
4386 [\\/]* | ?:[\\/]*)
4387 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in /sbin /usr/sbin $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 done
4404 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4406 esac
4408 LDCONFIG=$ac_cv_path_LDCONFIG
4410 if test -n "$LDCONFIG"; then
4411 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4412 echo "${ECHO_T}$LDCONFIG" >&6
4413 else
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4419 case $host_os in
4420 cygwin*|mingw32*)
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}ld -r --enable-stdcall-fixup", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}ld -r --enable-stdcall-fixup; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 if test -n "$LDCOMBINE"; then
4430 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r --enable-stdcall-fixup"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4448 LDCOMBINE=$ac_cv_prog_LDCOMBINE
4449 if test -n "$LDCOMBINE"; then
4450 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4451 echo "${ECHO_T}$LDCOMBINE" >&6
4452 else
4453 echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4458 if test -z "$ac_cv_prog_LDCOMBINE"; then
4459 ac_ct_LDCOMBINE=$LDCOMBINE
4460 # Extract the first word of "ld -r --enable-stdcall-fixup", so it can be a program name with args.
4461 set dummy ld -r --enable-stdcall-fixup; ac_word=$2
4462 echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464 if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 if test -n "$ac_ct_LDCOMBINE"; then
4468 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4484 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4487 ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4488 if test -n "$ac_ct_LDCOMBINE"; then
4489 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4490 echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4496 LDCOMBINE=$ac_ct_LDCOMBINE
4497 else
4498 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ld -r", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}ld -r; ac_word=$2
4505 echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507 if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if test -n "$LDCOMBINE"; then
4511 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4529 LDCOMBINE=$ac_cv_prog_LDCOMBINE
4530 if test -n "$LDCOMBINE"; then
4531 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4532 echo "${ECHO_T}$LDCOMBINE" >&6
4533 else
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4539 if test -z "$ac_cv_prog_LDCOMBINE"; then
4540 ac_ct_LDCOMBINE=$LDCOMBINE
4541 # Extract the first word of "ld -r", so it can be a program name with args.
4542 set dummy ld -r; ac_word=$2
4543 echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 if test -n "$ac_ct_LDCOMBINE"; then
4549 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4565 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4568 ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4569 if test -n "$ac_ct_LDCOMBINE"; then
4570 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4571 echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 LDCOMBINE=$ac_ct_LDCOMBINE
4578 else
4579 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4582 esac
4584 for ac_prog in lclint lint
4586 # Extract the first word of "$ac_prog", so it can be a program name with args.
4587 set dummy $ac_prog; ac_word=$2
4588 echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4590 if test "${ac_cv_prog_LINT+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 if test -n "$LINT"; then
4594 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_LINT="$ac_prog"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4612 LINT=$ac_cv_prog_LINT
4613 if test -n "$LINT"; then
4614 echo "$as_me:$LINENO: result: $LINT" >&5
4615 echo "${ECHO_T}$LINT" >&6
4616 else
4617 echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6
4621 test -n "$LINT" && break
4622 done
4624 if test "$LINT" = "lint"
4625 then
4626 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4633 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4634 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4635 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-lm $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4644 /* Override any gcc2 internal prototype to avoid an error. */
4645 #ifdef __cplusplus
4646 extern "C"
4647 #endif
4648 /* We use char because int might match the return type of a gcc2
4649 builtin and then its argument prototype would still apply. */
4650 char sqrt ();
4651 #ifdef F77_DUMMY_MAIN
4652 # ifdef __cplusplus
4653 extern "C"
4654 # endif
4655 int F77_DUMMY_MAIN() { return 1; }
4656 #endif
4658 main ()
4660 sqrt ();
4662 return 0;
4664 _ACEOF
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -s conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_cv_lib_m_sqrt=yes
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 ac_cv_lib_m_sqrt=no
4683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684 LIBS=$ac_check_lib_save_LIBS
4686 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4687 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4688 if test $ac_cv_lib_m_sqrt = yes; then
4689 cat >>confdefs.h <<_ACEOF
4690 #define HAVE_LIBM 1
4691 _ACEOF
4693 LIBS="-lm $LIBS"
4698 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4699 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4700 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 ac_check_lib_save_LIBS=$LIBS
4704 LIBS="-li386 $LIBS"
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 #include "confdefs.h"
4709 /* Override any gcc2 internal prototype to avoid an error. */
4710 #ifdef __cplusplus
4711 extern "C"
4712 #endif
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4715 char i386_set_ldt ();
4716 #ifdef F77_DUMMY_MAIN
4717 # ifdef __cplusplus
4718 extern "C"
4719 # endif
4720 int F77_DUMMY_MAIN() { return 1; }
4721 #endif
4723 main ()
4725 i386_set_ldt ();
4727 return 0;
4729 _ACEOF
4730 rm -f conftest.$ac_objext conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_lib_i386_i386_set_ldt=yes
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 ac_cv_lib_i386_i386_set_ldt=no
4748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4749 LIBS=$ac_check_lib_save_LIBS
4751 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4752 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4753 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4754 cat >>confdefs.h <<_ACEOF
4755 #define HAVE_LIBI386 1
4756 _ACEOF
4758 LIBS="-li386 $LIBS"
4763 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4764 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4765 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 ac_check_lib_save_LIBS=$LIBS
4769 LIBS="-lossaudio $LIBS"
4770 cat >conftest.$ac_ext <<_ACEOF
4771 #line $LINENO "configure"
4772 #include "confdefs.h"
4774 /* Override any gcc2 internal prototype to avoid an error. */
4775 #ifdef __cplusplus
4776 extern "C"
4777 #endif
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4780 char _oss_ioctl ();
4781 #ifdef F77_DUMMY_MAIN
4782 # ifdef __cplusplus
4783 extern "C"
4784 # endif
4785 int F77_DUMMY_MAIN() { return 1; }
4786 #endif
4788 main ()
4790 _oss_ioctl ();
4792 return 0;
4794 _ACEOF
4795 rm -f conftest.$ac_objext conftest$ac_exeext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4797 (eval $ac_link) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest$ac_exeext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_lib_ossaudio__oss_ioctl=yes
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 ac_cv_lib_ossaudio__oss_ioctl=no
4813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4817 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4818 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define HAVE_LIBOSSAUDIO 1
4821 _ACEOF
4823 LIBS="-lossaudio $LIBS"
4828 for ac_func in iswalnum
4830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4831 echo "$as_me:$LINENO: checking for $ac_func" >&5
4832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4833 if eval "test \"\${$as_ac_var+set}\" = set"; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4838 #include "confdefs.h"
4839 /* System header to define __stub macros and hopefully few prototypes,
4840 which can conflict with char $ac_func (); below. */
4841 #include <assert.h>
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 #ifdef __cplusplus
4844 extern "C"
4845 #endif
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4848 char $ac_func ();
4849 char (*f) ();
4851 #ifdef F77_DUMMY_MAIN
4852 # ifdef __cplusplus
4853 extern "C"
4854 # endif
4855 int F77_DUMMY_MAIN() { return 1; }
4856 #endif
4858 main ()
4860 /* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864 choke me
4865 #else
4866 f = $ac_func;
4867 #endif
4870 return 0;
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest$ac_exeext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 (eval $ac_try) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 eval "$as_ac_var=yes"
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 eval "$as_ac_var=no"
4891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4895 if test `eval echo '${'$as_ac_var'}'` = yes; then
4896 cat >>confdefs.h <<_ACEOF
4897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4898 _ACEOF
4900 else
4902 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4903 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4904 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907 ac_check_lib_save_LIBS=$LIBS
4908 LIBS="-lw $LIBS"
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4911 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 #ifdef __cplusplus
4915 extern "C"
4916 #endif
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4919 char iswalnum ();
4920 #ifdef F77_DUMMY_MAIN
4921 # ifdef __cplusplus
4922 extern "C"
4923 # endif
4924 int F77_DUMMY_MAIN() { return 1; }
4925 #endif
4927 main ()
4929 iswalnum ();
4931 return 0;
4933 _ACEOF
4934 rm -f conftest.$ac_objext conftest$ac_exeext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936 (eval $ac_link) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_lib_w_iswalnum=yes
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 ac_cv_lib_w_iswalnum=no
4952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4953 LIBS=$ac_check_lib_save_LIBS
4955 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4956 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4957 if test $ac_cv_lib_w_iswalnum = yes; then
4958 cat >>confdefs.h <<_ACEOF
4959 #define HAVE_LIBW 1
4960 _ACEOF
4962 LIBS="-lw $LIBS"
4967 done
4970 for ac_func in gethostbyname
4972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4973 echo "$as_me:$LINENO: checking for $ac_func" >&5
4974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4975 if eval "test \"\${$as_ac_var+set}\" = set"; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 cat >conftest.$ac_ext <<_ACEOF
4979 #line $LINENO "configure"
4980 #include "confdefs.h"
4981 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func (); below. */
4983 #include <assert.h>
4984 /* Override any gcc2 internal prototype to avoid an error. */
4985 #ifdef __cplusplus
4986 extern "C"
4987 #endif
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4990 char $ac_func ();
4991 char (*f) ();
4993 #ifdef F77_DUMMY_MAIN
4994 # ifdef __cplusplus
4995 extern "C"
4996 # endif
4997 int F77_DUMMY_MAIN() { return 1; }
4998 #endif
5000 main ()
5002 /* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5006 choke me
5007 #else
5008 f = $ac_func;
5009 #endif
5012 return 0;
5014 _ACEOF
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 eval "$as_ac_var=yes"
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5031 eval "$as_ac_var=no"
5033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5037 if test `eval echo '${'$as_ac_var'}'` = yes; then
5038 cat >>confdefs.h <<_ACEOF
5039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5040 _ACEOF
5042 else
5044 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5045 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5046 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lnsl $LIBS"
5051 cat >conftest.$ac_ext <<_ACEOF
5052 #line $LINENO "configure"
5053 #include "confdefs.h"
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 #ifdef __cplusplus
5057 extern "C"
5058 #endif
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char gethostbyname ();
5062 #ifdef F77_DUMMY_MAIN
5063 # ifdef __cplusplus
5064 extern "C"
5065 # endif
5066 int F77_DUMMY_MAIN() { return 1; }
5067 #endif
5069 main ()
5071 gethostbyname ();
5073 return 0;
5075 _ACEOF
5076 rm -f conftest.$ac_objext conftest$ac_exeext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5078 (eval $ac_link) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest$ac_exeext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 ac_cv_lib_nsl_gethostbyname=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5092 ac_cv_lib_nsl_gethostbyname=no
5094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095 LIBS=$ac_check_lib_save_LIBS
5097 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5098 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5099 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101 #define HAVE_LIBNSL 1
5102 _ACEOF
5104 LIBS="-lnsl $LIBS"
5109 done
5112 for ac_func in connect
5114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5115 echo "$as_me:$LINENO: checking for $ac_func" >&5
5116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_var+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 #include "confdefs.h"
5123 /* System header to define __stub macros and hopefully few prototypes,
5124 which can conflict with char $ac_func (); below. */
5125 #include <assert.h>
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 #ifdef __cplusplus
5128 extern "C"
5129 #endif
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5132 char $ac_func ();
5133 char (*f) ();
5135 #ifdef F77_DUMMY_MAIN
5136 # ifdef __cplusplus
5137 extern "C"
5138 # endif
5139 int F77_DUMMY_MAIN() { return 1; }
5140 #endif
5142 main ()
5144 /* The GNU C library defines this for functions which it implements
5145 to always fail with ENOSYS. Some functions are actually named
5146 something starting with __ and the normal name is an alias. */
5147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 choke me
5149 #else
5150 f = $ac_func;
5151 #endif
5154 return 0;
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest$ac_exeext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 eval "$as_ac_var=yes"
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 eval "$as_ac_var=no"
5175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5179 if test `eval echo '${'$as_ac_var'}'` = yes; then
5180 cat >>confdefs.h <<_ACEOF
5181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5182 _ACEOF
5184 else
5186 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5187 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5188 if test "${ac_cv_lib_socket_connect+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 ac_check_lib_save_LIBS=$LIBS
5192 LIBS="-lsocket $LIBS"
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 #include "confdefs.h"
5197 /* Override any gcc2 internal prototype to avoid an error. */
5198 #ifdef __cplusplus
5199 extern "C"
5200 #endif
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5203 char connect ();
5204 #ifdef F77_DUMMY_MAIN
5205 # ifdef __cplusplus
5206 extern "C"
5207 # endif
5208 int F77_DUMMY_MAIN() { return 1; }
5209 #endif
5211 main ()
5213 connect ();
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_lib_socket_connect=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 ac_cv_lib_socket_connect=no
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 LIBS=$ac_check_lib_save_LIBS
5239 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5240 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5241 if test $ac_cv_lib_socket_connect = yes; then
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_LIBSOCKET 1
5244 _ACEOF
5246 LIBS="-lsocket $LIBS"
5251 done
5254 for ac_func in inet_aton
5256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5257 echo "$as_me:$LINENO: checking for $ac_func" >&5
5258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5259 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func (); below. */
5267 #include <assert.h>
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 #ifdef __cplusplus
5270 extern "C"
5271 #endif
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274 char $ac_func ();
5275 char (*f) ();
5277 #ifdef F77_DUMMY_MAIN
5278 # ifdef __cplusplus
5279 extern "C"
5280 # endif
5281 int F77_DUMMY_MAIN() { return 1; }
5282 #endif
5284 main ()
5286 /* The GNU C library defines this for functions which it implements
5287 to always fail with ENOSYS. Some functions are actually named
5288 something starting with __ and the normal name is an alias. */
5289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5290 choke me
5291 #else
5292 f = $ac_func;
5293 #endif
5296 return 0;
5298 _ACEOF
5299 rm -f conftest.$ac_objext conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301 (eval $ac_link) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5315 eval "$as_ac_var=no"
5317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5321 if test `eval echo '${'$as_ac_var'}'` = yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5324 _ACEOF
5326 else
5328 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5329 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5330 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 ac_check_lib_save_LIBS=$LIBS
5334 LIBS="-lresolv $LIBS"
5335 cat >conftest.$ac_ext <<_ACEOF
5336 #line $LINENO "configure"
5337 #include "confdefs.h"
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 #ifdef __cplusplus
5341 extern "C"
5342 #endif
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5345 char inet_aton ();
5346 #ifdef F77_DUMMY_MAIN
5347 # ifdef __cplusplus
5348 extern "C"
5349 # endif
5350 int F77_DUMMY_MAIN() { return 1; }
5351 #endif
5353 main ()
5355 inet_aton ();
5357 return 0;
5359 _ACEOF
5360 rm -f conftest.$ac_objext conftest$ac_exeext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5362 (eval $ac_link) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -s conftest$ac_exeext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5372 ac_cv_lib_resolv_inet_aton=yes
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5376 ac_cv_lib_resolv_inet_aton=no
5378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379 LIBS=$ac_check_lib_save_LIBS
5381 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5382 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5383 if test $ac_cv_lib_resolv_inet_aton = yes; then
5384 cat >>confdefs.h <<_ACEOF
5385 #define HAVE_LIBRESOLV 1
5386 _ACEOF
5388 LIBS="-lresolv $LIBS"
5393 done
5396 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5397 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5398 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 ac_check_lib_save_LIBS=$LIBS
5402 LIBS="-lxpg4 $LIBS"
5403 cat >conftest.$ac_ext <<_ACEOF
5404 #line $LINENO "configure"
5405 #include "confdefs.h"
5407 /* Override any gcc2 internal prototype to avoid an error. */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5413 char _xpg4_setrunelocale ();
5414 #ifdef F77_DUMMY_MAIN
5415 # ifdef __cplusplus
5416 extern "C"
5417 # endif
5418 int F77_DUMMY_MAIN() { return 1; }
5419 #endif
5421 main ()
5423 _xpg4_setrunelocale ();
5425 return 0;
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -s conftest$ac_exeext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447 LIBS=$ac_check_lib_save_LIBS
5449 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5450 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5451 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5452 cat >>confdefs.h <<_ACEOF
5453 #define HAVE_LIBXPG4 1
5454 _ACEOF
5456 LIBS="-lxpg4 $LIBS"
5461 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5462 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5463 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 ac_check_lib_save_LIBS=$LIBS
5467 LIBS="-lmmap $LIBS"
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 #include "confdefs.h"
5472 /* Override any gcc2 internal prototype to avoid an error. */
5473 #ifdef __cplusplus
5474 extern "C"
5475 #endif
5476 /* We use char because int might match the return type of a gcc2
5477 builtin and then its argument prototype would still apply. */
5478 char mmap ();
5479 #ifdef F77_DUMMY_MAIN
5480 # ifdef __cplusplus
5481 extern "C"
5482 # endif
5483 int F77_DUMMY_MAIN() { return 1; }
5484 #endif
5486 main ()
5488 mmap ();
5490 return 0;
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -s conftest$ac_exeext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_lib_mmap_mmap=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5509 ac_cv_lib_mmap_mmap=no
5511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5512 LIBS=$ac_check_lib_save_LIBS
5514 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5515 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5516 if test $ac_cv_lib_mmap_mmap = yes; then
5517 cat >>confdefs.h <<_ACEOF
5518 #define HAVE_LIBMMAP 1
5519 _ACEOF
5521 LIBS="-lmmap $LIBS"
5526 JPEGLIB=""
5528 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5530 if test "${ac_cv_header_stdc+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 #include "confdefs.h"
5536 #include <stdlib.h>
5537 #include <stdarg.h>
5538 #include <string.h>
5539 #include <float.h>
5541 _ACEOF
5542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544 ac_status=$?
5545 egrep -v '^ *\+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 else
5553 ac_cpp_err=
5555 else
5556 ac_cpp_err=yes
5558 if test -z "$ac_cpp_err"; then
5559 ac_cv_header_stdc=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5563 ac_cv_header_stdc=no
5565 rm -f conftest.err conftest.$ac_ext
5567 if test $ac_cv_header_stdc = yes; then
5568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5569 cat >conftest.$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5571 #include "confdefs.h"
5572 #include <string.h>
5574 _ACEOF
5575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 egrep "memchr" >/dev/null 2>&1; then
5578 else
5579 ac_cv_header_stdc=no
5581 rm -f conftest*
5585 if test $ac_cv_header_stdc = yes; then
5586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line $LINENO "configure"
5589 #include "confdefs.h"
5590 #include <stdlib.h>
5592 _ACEOF
5593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5594 egrep "free" >/dev/null 2>&1; then
5596 else
5597 ac_cv_header_stdc=no
5599 rm -f conftest*
5603 if test $ac_cv_header_stdc = yes; then
5604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5605 if test "$cross_compiling" = yes; then
5607 else
5608 cat >conftest.$ac_ext <<_ACEOF
5609 #line $LINENO "configure"
5610 #include "confdefs.h"
5611 #include <ctype.h>
5612 #if ((' ' & 0x0FF) == 0x020)
5613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5615 #else
5616 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5617 || ('j' <= (c) && (c) <= 'r') \
5618 || ('s' <= (c) && (c) <= 'z'))
5619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5620 #endif
5622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5624 main ()
5626 int i;
5627 for (i = 0; i < 256; i++)
5628 if (XOR (islower (i), ISLOWER (i))
5629 || toupper (i) != TOUPPER (i))
5630 exit(2);
5631 exit (0);
5633 _ACEOF
5634 rm -f conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5646 else
5647 echo "$as_me: program exited with status $ac_status" >&5
5648 echo "$as_me: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 ( exit $ac_status )
5651 ac_cv_header_stdc=no
5653 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5657 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5658 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5659 if test $ac_cv_header_stdc = yes; then
5661 cat >>confdefs.h <<\_ACEOF
5662 #define STDC_HEADERS 1
5663 _ACEOF
5667 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5678 inttypes.h stdint.h unistd.h
5680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681 echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5688 #include "confdefs.h"
5689 $ac_includes_default
5691 #include <$ac_header>
5692 _ACEOF
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 eval "$as_ac_Header=yes"
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5709 eval "$as_ac_Header=no"
5711 rm -f conftest.$ac_objext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5716 cat >>confdefs.h <<_ACEOF
5717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718 _ACEOF
5722 done
5726 for ac_header in jpeglib.h
5728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo "$as_me:$LINENO: checking for $ac_header" >&5
5731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5737 else
5738 # Is the header compilable?
5739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5741 cat >conftest.$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5743 #include "confdefs.h"
5744 $ac_includes_default
5745 #include <$ac_header>
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_header_compiler=yes
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 cat conftest.$ac_ext >&5
5763 ac_header_compiler=no
5765 rm -f conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5767 echo "${ECHO_T}$ac_header_compiler" >&6
5769 # Is the header present?
5770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5774 #include "confdefs.h"
5775 #include <$ac_header>
5776 _ACEOF
5777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5779 ac_status=$?
5780 egrep -v '^ *\+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } >/dev/null; then
5785 if test -s conftest.err; then
5786 ac_cpp_err=$ac_c_preproc_warn_flag
5787 else
5788 ac_cpp_err=
5790 else
5791 ac_cpp_err=yes
5793 if test -z "$ac_cpp_err"; then
5794 ac_header_preproc=yes
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 ac_header_preproc=no
5800 rm -f conftest.err conftest.$ac_ext
5801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5802 echo "${ECHO_T}$ac_header_preproc" >&6
5804 # So? What about this header?
5805 case $ac_header_compiler:$ac_header_preproc in
5806 yes:no )
5807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5811 no:yes )
5812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5818 esac
5819 echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 eval "$as_ac_Header=$ac_header_preproc"
5826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5831 cat >>confdefs.h <<_ACEOF
5832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5833 _ACEOF
5834 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5835 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5836 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 ac_check_lib_save_LIBS=$LIBS
5840 LIBS="-ljpeg $LIBS"
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 #include "confdefs.h"
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 #ifdef __cplusplus
5847 extern "C"
5848 #endif
5849 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5851 char jpeg_start_decompress ();
5852 #ifdef F77_DUMMY_MAIN
5853 # ifdef __cplusplus
5854 extern "C"
5855 # endif
5856 int F77_DUMMY_MAIN() { return 1; }
5857 #endif
5859 main ()
5861 jpeg_start_decompress ();
5863 return 0;
5865 _ACEOF
5866 rm -f conftest.$ac_objext conftest$ac_exeext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5868 (eval $ac_link) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest$ac_exeext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 ac_cv_lib_jpeg_jpeg_start_decompress=no
5884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5888 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5889 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_LIBJPEG 1
5893 _ACEOF
5895 JPEGLIB="-ljpeg"
5902 done
5908 XFILES=""
5910 OPENGLFILES=""
5912 GLU32FILES=""
5913 if test "$have_x" = "yes"
5914 then
5915 XLIB="-lXext -lX11"
5916 ac_save_CPPFLAGS="$CPPFLAGS"
5917 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5920 for ac_header in X11/Xlib.h
5922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5931 else
5932 # Is the header compilable?
5933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 #include "confdefs.h"
5938 $ac_includes_default
5939 #include <$ac_header>
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_header_compiler=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 cat conftest.$ac_ext >&5
5957 ac_header_compiler=no
5959 rm -f conftest.$ac_objext conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961 echo "${ECHO_T}$ac_header_compiler" >&6
5963 # Is the header present?
5964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5968 #include "confdefs.h"
5969 #include <$ac_header>
5970 _ACEOF
5971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973 ac_status=$?
5974 egrep -v '^ *\+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5981 else
5982 ac_cpp_err=
5984 else
5985 ac_cpp_err=yes
5987 if test -z "$ac_cpp_err"; then
5988 ac_header_preproc=yes
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5992 ac_header_preproc=no
5994 rm -f conftest.err conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996 echo "${ECHO_T}$ac_header_preproc" >&6
5998 # So? What about this header?
5999 case $ac_header_compiler:$ac_header_preproc in
6000 yes:no )
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6005 no:yes )
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6012 esac
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 eval "$as_ac_Header=$ac_header_preproc"
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6025 cat >>confdefs.h <<_ACEOF
6026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6027 _ACEOF
6030 for ac_header in X11/XKBlib.h
6032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6041 else
6042 # Is the header compilable?
6043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6047 #include "confdefs.h"
6048 $ac_includes_default
6049 #include <$ac_header>
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_header_compiler=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6067 ac_header_compiler=no
6069 rm -f conftest.$ac_objext conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6
6073 # Is the header present?
6074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6076 cat >conftest.$ac_ext <<_ACEOF
6077 #line $LINENO "configure"
6078 #include "confdefs.h"
6079 #include <$ac_header>
6080 _ACEOF
6081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6083 ac_status=$?
6084 egrep -v '^ *\+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } >/dev/null; then
6089 if test -s conftest.err; then
6090 ac_cpp_err=$ac_c_preproc_warn_flag
6091 else
6092 ac_cpp_err=
6094 else
6095 ac_cpp_err=yes
6097 if test -z "$ac_cpp_err"; then
6098 ac_header_preproc=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 ac_header_preproc=no
6104 rm -f conftest.err conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106 echo "${ECHO_T}$ac_header_preproc" >&6
6108 # So? What about this header?
6109 case $ac_header_compiler:$ac_header_preproc in
6110 yes:no )
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6115 no:yes )
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6122 esac
6123 echo "$as_me:$LINENO: checking for $ac_header" >&5
6124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128 eval "$as_ac_Header=$ac_header_preproc"
6130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6135 cat >>confdefs.h <<_ACEOF
6136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 _ACEOF
6138 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6139 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6140 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 ac_check_lib_save_LIBS=$LIBS
6144 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6149 /* Override any gcc2 internal prototype to avoid an error. */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6155 char XkbQueryExtension ();
6156 #ifdef F77_DUMMY_MAIN
6157 # ifdef __cplusplus
6158 extern "C"
6159 # endif
6160 int F77_DUMMY_MAIN() { return 1; }
6161 #endif
6163 main ()
6165 XkbQueryExtension ();
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_lib_X11_XkbQueryExtension=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6186 ac_cv_lib_X11_XkbQueryExtension=no
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 LIBS=$ac_check_lib_save_LIBS
6191 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6192 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6193 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define HAVE_XKB 1
6197 _ACEOF
6202 else
6203 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6204 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6208 done
6212 for ac_header in X11/extensions/XShm.h
6214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 echo "$as_me:$LINENO: checking for $ac_header" >&5
6216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6222 #include "confdefs.h"
6223 #include <X11/Xlib.h>
6225 #include <$ac_header>
6226 _ACEOF
6227 rm -f conftest.$ac_objext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 eval "$as_ac_Header=yes"
6240 else
6241 echo "$as_me: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 eval "$as_ac_Header=no"
6245 rm -f conftest.$ac_objext conftest.$ac_ext
6247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6250 cat >>confdefs.h <<_ACEOF
6251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6252 _ACEOF
6253 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6254 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6255 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 ac_check_lib_save_LIBS=$LIBS
6259 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6262 #include "confdefs.h"
6264 /* Override any gcc2 internal prototype to avoid an error. */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6270 char XShmQueryExtension ();
6271 #ifdef F77_DUMMY_MAIN
6272 # ifdef __cplusplus
6273 extern "C"
6274 # endif
6275 int F77_DUMMY_MAIN() { return 1; }
6276 #endif
6278 main ()
6280 XShmQueryExtension ();
6282 return 0;
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -s conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_lib_Xext_XShmQueryExtension=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6301 ac_cv_lib_Xext_XShmQueryExtension=no
6303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304 LIBS=$ac_check_lib_save_LIBS
6306 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6307 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6308 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define HAVE_LIBXXSHM 1
6312 _ACEOF
6317 else
6318 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6319 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6322 done
6326 for ac_header in X11/extensions/shape.h
6328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6329 echo "$as_me:$LINENO: checking for $ac_header" >&5
6330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 #include "confdefs.h"
6337 #include <X11/Xlib.h>
6339 #include <$ac_header>
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 eval "$as_ac_Header=yes"
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6357 eval "$as_ac_Header=no"
6359 rm -f conftest.$ac_objext conftest.$ac_ext
6361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6364 cat >>confdefs.h <<_ACEOF
6365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366 _ACEOF
6367 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6368 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6369 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 ac_check_lib_save_LIBS=$LIBS
6373 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6374 cat >conftest.$ac_ext <<_ACEOF
6375 #line $LINENO "configure"
6376 #include "confdefs.h"
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 #ifdef __cplusplus
6380 extern "C"
6381 #endif
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6384 char XShapeQueryExtension ();
6385 #ifdef F77_DUMMY_MAIN
6386 # ifdef __cplusplus
6387 extern "C"
6388 # endif
6389 int F77_DUMMY_MAIN() { return 1; }
6390 #endif
6392 main ()
6394 XShapeQueryExtension ();
6396 return 0;
6398 _ACEOF
6399 rm -f conftest.$ac_objext conftest$ac_exeext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6401 (eval $ac_link) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -s conftest$ac_exeext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_cv_lib_Xext_XShapeQueryExtension=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 ac_cv_lib_Xext_XShapeQueryExtension=no
6417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418 LIBS=$ac_check_lib_save_LIBS
6420 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6421 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6422 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6424 cat >>confdefs.h <<\_ACEOF
6425 #define HAVE_LIBXSHAPE 1
6426 _ACEOF
6431 else
6432 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6433 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6436 done
6440 for ac_header in X11/extensions/xf86dga.h
6442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6443 echo "$as_me:$LINENO: checking for $ac_header" >&5
6444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure"
6450 #include "confdefs.h"
6451 #include <X11/Xlib.h>
6453 #include <$ac_header>
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 eval "$as_ac_Header=yes"
6468 else
6469 echo "$as_me: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 eval "$as_ac_Header=no"
6473 rm -f conftest.$ac_objext conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6478 cat >>confdefs.h <<_ACEOF
6479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6480 _ACEOF
6481 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6482 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6483 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 ac_check_lib_save_LIBS=$LIBS
6487 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6488 $LIBS"
6489 cat >conftest.$ac_ext <<_ACEOF
6490 #line $LINENO "configure"
6491 #include "confdefs.h"
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char XDGAQueryExtension ();
6500 #ifdef F77_DUMMY_MAIN
6501 # ifdef __cplusplus
6502 extern "C"
6503 # endif
6504 int F77_DUMMY_MAIN() { return 1; }
6505 #endif
6507 main ()
6509 XDGAQueryExtension ();
6511 return 0;
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -s conftest$ac_exeext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6530 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6533 LIBS=$ac_check_lib_save_LIBS
6535 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6536 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6537 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define HAVE_LIBXXF86DGA2 1
6541 _ACEOF
6543 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6545 else
6546 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6547 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6548 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 ac_check_lib_save_LIBS=$LIBS
6552 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6553 $LIBS"
6554 cat >conftest.$ac_ext <<_ACEOF
6555 #line $LINENO "configure"
6556 #include "confdefs.h"
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 #ifdef __cplusplus
6560 extern "C"
6561 #endif
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564 char XF86DGAQueryExtension ();
6565 #ifdef F77_DUMMY_MAIN
6566 # ifdef __cplusplus
6567 extern "C"
6568 # endif
6569 int F77_DUMMY_MAIN() { return 1; }
6570 #endif
6572 main ()
6574 XF86DGAQueryExtension ();
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6598 LIBS=$ac_check_lib_save_LIBS
6600 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6601 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6602 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6604 cat >>confdefs.h <<\_ACEOF
6605 #define HAVE_LIBXXF86DGA 1
6606 _ACEOF
6608 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6616 else
6617 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6618 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6621 done
6625 for ac_header in X11/extensions/xf86vmode.h
6627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628 echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 #line $LINENO "configure"
6635 #include "confdefs.h"
6636 #include <X11/Xlib.h>
6638 #include <$ac_header>
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -s conftest.$ac_objext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6652 eval "$as_ac_Header=yes"
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6656 eval "$as_ac_Header=no"
6658 rm -f conftest.$ac_objext conftest.$ac_ext
6660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6666 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6667 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6668 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 ac_check_lib_save_LIBS=$LIBS
6672 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6673 $LIBS"
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char XF86VidModeQueryExtension ();
6685 #ifdef F77_DUMMY_MAIN
6686 # ifdef __cplusplus
6687 extern "C"
6688 # endif
6689 int F77_DUMMY_MAIN() { return 1; }
6690 #endif
6692 main ()
6694 XF86VidModeQueryExtension ();
6696 return 0;
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718 LIBS=$ac_check_lib_save_LIBS
6720 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6721 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6722 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_LIBXXF86VM 1
6726 _ACEOF
6728 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6733 else
6734 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6735 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6738 done
6742 for ac_header in X11/extensions/Xvlib.h
6744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6745 echo "$as_me:$LINENO: checking for $ac_header" >&5
6746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6753 #include <X11/Xlib.h>
6755 #include <$ac_header>
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 eval "$as_ac_Header=yes"
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6773 eval "$as_ac_Header=no"
6775 rm -f conftest.$ac_objext conftest.$ac_ext
6777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782 _ACEOF
6783 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6784 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6785 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 ac_check_lib_save_LIBS=$LIBS
6789 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6790 $LIBS"
6791 cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 #include "confdefs.h"
6795 /* Override any gcc2 internal prototype to avoid an error. */
6796 #ifdef __cplusplus
6797 extern "C"
6798 #endif
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6801 char XvShmCreateImage ();
6802 #ifdef F77_DUMMY_MAIN
6803 # ifdef __cplusplus
6804 extern "C"
6805 # endif
6806 int F77_DUMMY_MAIN() { return 1; }
6807 #endif
6809 main ()
6811 XvShmCreateImage ();
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_lib_Xv_XvShmCreateImage=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6832 ac_cv_lib_Xv_XvShmCreateImage=no
6834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835 LIBS=$ac_check_lib_save_LIBS
6837 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6838 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6839 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6841 cat >>confdefs.h <<\_ACEOF
6842 #define HAVE_XVIDEO 1
6843 _ACEOF
6845 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6850 else
6851 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6852 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6855 done
6859 for ac_header in X11/extensions/Xrender.h
6861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 echo "$as_me:$LINENO: checking for $ac_header" >&5
6863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 #line $LINENO "configure"
6869 #include "confdefs.h"
6870 #include <X11/Xlib.h>
6872 #include <$ac_header>
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 eval "$as_ac_Header=yes"
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6890 eval "$as_ac_Header=no"
6892 rm -f conftest.$ac_objext conftest.$ac_ext
6894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6899 _ACEOF
6903 done
6909 done
6911 if test "x$enable_opengl" != "xno"
6912 then
6913 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6914 then
6915 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6916 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6917 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6918 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6919 { (exit 1); exit 1; }; }
6924 for ac_header in GL/gl.h GL/glx.h
6926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928 echo "$as_me:$LINENO: checking for $ac_header" >&5
6929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6935 else
6936 # Is the header compilable?
6937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6940 #line $LINENO "configure"
6941 #include "confdefs.h"
6942 $ac_includes_default
6943 #include <$ac_header>
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_header_compiler=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6961 ac_header_compiler=no
6963 rm -f conftest.$ac_objext conftest.$ac_ext
6964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965 echo "${ECHO_T}$ac_header_compiler" >&6
6967 # Is the header present?
6968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6970 cat >conftest.$ac_ext <<_ACEOF
6971 #line $LINENO "configure"
6972 #include "confdefs.h"
6973 #include <$ac_header>
6974 _ACEOF
6975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6977 ac_status=$?
6978 egrep -v '^ *\+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null; then
6983 if test -s conftest.err; then
6984 ac_cpp_err=$ac_c_preproc_warn_flag
6985 else
6986 ac_cpp_err=
6988 else
6989 ac_cpp_err=yes
6991 if test -z "$ac_cpp_err"; then
6992 ac_header_preproc=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 ac_header_preproc=no
6998 rm -f conftest.err conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7000 echo "${ECHO_T}$ac_header_preproc" >&6
7002 # So? What about this header?
7003 case $ac_header_compiler:$ac_header_preproc in
7004 yes:no )
7005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7009 no:yes )
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7016 esac
7017 echo "$as_me:$LINENO: checking for $ac_header" >&5
7018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 eval "$as_ac_Header=$ac_header_preproc"
7024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7029 cat >>confdefs.h <<_ACEOF
7030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7031 _ACEOF
7035 done
7037 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7038 then
7040 for ac_header in GL/glext.h
7042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043 echo "$as_me:$LINENO: checking for $ac_header" >&5
7044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 #include "confdefs.h"
7051 #include <GL/glx.h>
7053 #include <$ac_header>
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 eval "$as_ac_Header=yes"
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7071 eval "$as_ac_Header=no"
7073 rm -f conftest.$ac_objext conftest.$ac_ext
7075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080 _ACEOF
7084 done
7086 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7087 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7088 if test "${wine_cv_opengl_version_OK+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 #include "confdefs.h"
7094 #include <GL/gl.h>
7095 #ifdef F77_DUMMY_MAIN
7096 # ifdef __cplusplus
7097 extern "C"
7098 # endif
7099 int F77_DUMMY_MAIN() { return 1; }
7100 #endif
7102 main ()
7104 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 wine_cv_opengl_version_OK="yes"
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 wine_cv_opengl_version_OK="no"
7128 rm -f conftest.$ac_objext conftest.$ac_ext
7131 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7132 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7134 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7135 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7136 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 saved_libs=$LIBS
7140 LIBS="$X_LIBS -lGL"
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 #include "confdefs.h"
7145 #ifdef F77_DUMMY_MAIN
7146 # ifdef __cplusplus
7147 extern "C"
7148 # endif
7149 int F77_DUMMY_MAIN() { return 1; }
7150 #endif
7152 main ()
7154 pthread_getspecific();
7156 return 0;
7158 _ACEOF
7159 rm -f conftest.$ac_objext conftest$ac_exeext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7161 (eval $ac_link) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -s conftest$ac_exeext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 wine_cv_opengl_version_threadsafe="yes"
7172 else
7173 echo "$as_me: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7175 wine_cv_opengl_version_threadsafe="no"
7177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7178 LIBS=$saved_libs
7181 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7182 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7184 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7185 then
7186 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7187 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7188 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7203 char glXCreateContext ();
7204 #ifdef F77_DUMMY_MAIN
7205 # ifdef __cplusplus
7206 extern "C"
7207 # endif
7208 int F77_DUMMY_MAIN() { return 1; }
7209 #endif
7211 main ()
7213 glXCreateContext ();
7215 return 0;
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_lib_GL_glXCreateContext=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_GL_glXCreateContext=no
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7240 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7241 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7242 X_PRE_LIBS="$X_PRE_LIBS -lGL"
7247 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7248 then
7249 OPENGLFILES='$(OPENGLFILES)'
7251 cat >>confdefs.h <<\_ACEOF
7252 #define HAVE_OPENGL 1
7253 _ACEOF
7256 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7257 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7258 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 ac_check_lib_save_LIBS=$LIBS
7262 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7263 cat >conftest.$ac_ext <<_ACEOF
7264 #line $LINENO "configure"
7265 #include "confdefs.h"
7267 /* Override any gcc2 internal prototype to avoid an error. */
7268 #ifdef __cplusplus
7269 extern "C"
7270 #endif
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7273 char glXGetProcAddressARB ();
7274 #ifdef F77_DUMMY_MAIN
7275 # ifdef __cplusplus
7276 extern "C"
7277 # endif
7278 int F77_DUMMY_MAIN() { return 1; }
7279 #endif
7281 main ()
7283 glXGetProcAddressARB ();
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_lib_GL_glXGetProcAddressARB=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 ac_cv_lib_GL_glXGetProcAddressARB=no
7306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7307 LIBS=$ac_check_lib_save_LIBS
7309 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7310 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7311 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_GLX_GETPROCADDRESS 1
7315 _ACEOF
7320 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7321 then
7322 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7323 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7324 if test "${wine_cv_extension_prototypes+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 #line $LINENO "configure"
7329 #include "confdefs.h"
7330 #include <GL/gl.h>
7331 #ifdef HAVE_GL_GLEXT_H
7332 # include <GL/glext.h>
7333 #endif
7335 #ifdef F77_DUMMY_MAIN
7336 # ifdef __cplusplus
7337 extern "C"
7338 # endif
7339 int F77_DUMMY_MAIN() { return 1; }
7340 #endif
7342 main ()
7344 PFNGLCOLORTABLEEXTPROC test_proc;
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 wine_cv_extension_prototypes="yes"
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7365 wine_cv_extension_prototypes="no"
7368 rm -f conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7372 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7373 if test "$wine_cv_extension_prototypes" = "yes"
7374 then
7376 cat >>confdefs.h <<\_ACEOF
7377 #define HAVE_GLEXT_PROTOTYPES 1
7378 _ACEOF
7384 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7385 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7386 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 ac_check_lib_save_LIBS=$LIBS
7390 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7391 $LIBS"
7392 cat >conftest.$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7394 #include "confdefs.h"
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 #ifdef __cplusplus
7398 extern "C"
7399 #endif
7400 /* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7402 char gluLookAt ();
7403 #ifdef F77_DUMMY_MAIN
7404 # ifdef __cplusplus
7405 extern "C"
7406 # endif
7407 int F77_DUMMY_MAIN() { return 1; }
7408 #endif
7410 main ()
7412 gluLookAt ();
7414 return 0;
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419 (eval $ac_link) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -s conftest$ac_exeext'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 ac_cv_lib_GLU_gluLookAt=yes
7430 else
7431 echo "$as_me: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 ac_cv_lib_GLU_gluLookAt=no
7435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7436 LIBS=$ac_check_lib_save_LIBS
7438 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7439 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7440 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7441 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7442 GLU32FILES='$(GLU32FILES)'
7450 CPPFLAGS="$ac_save_CPPFLAGS"
7451 XFILES='$(XFILES)'
7452 else
7453 XLIB=""
7454 X_CFLAGS=""
7455 X_LIBS=""
7458 CURSESLIBS=""
7459 if test "x$with_curses" != "xno"
7460 then
7462 for ac_header in ncurses.h
7464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo "$as_me:$LINENO: checking for $ac_header" >&5
7467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7473 else
7474 # Is the header compilable?
7475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7477 cat >conftest.$ac_ext <<_ACEOF
7478 #line $LINENO "configure"
7479 #include "confdefs.h"
7480 $ac_includes_default
7481 #include <$ac_header>
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_header_compiler=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7499 ac_header_compiler=no
7501 rm -f conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503 echo "${ECHO_T}$ac_header_compiler" >&6
7505 # Is the header present?
7506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7509 #line $LINENO "configure"
7510 #include "confdefs.h"
7511 #include <$ac_header>
7512 _ACEOF
7513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7515 ac_status=$?
7516 egrep -v '^ *\+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } >/dev/null; then
7521 if test -s conftest.err; then
7522 ac_cpp_err=$ac_c_preproc_warn_flag
7523 else
7524 ac_cpp_err=
7526 else
7527 ac_cpp_err=yes
7529 if test -z "$ac_cpp_err"; then
7530 ac_header_preproc=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7534 ac_header_preproc=no
7536 rm -f conftest.err conftest.$ac_ext
7537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7538 echo "${ECHO_T}$ac_header_preproc" >&6
7540 # So? What about this header?
7541 case $ac_header_compiler:$ac_header_preproc in
7542 yes:no )
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7547 no:yes )
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7554 esac
7555 echo "$as_me:$LINENO: checking for $ac_header" >&5
7556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 eval "$as_ac_Header=$ac_header_preproc"
7562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7567 cat >>confdefs.h <<_ACEOF
7568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7569 _ACEOF
7570 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7571 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7572 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-lncurses $LIBS"
7577 cat >conftest.$ac_ext <<_ACEOF
7578 #line $LINENO "configure"
7579 #include "confdefs.h"
7581 /* Override any gcc2 internal prototype to avoid an error. */
7582 #ifdef __cplusplus
7583 extern "C"
7584 #endif
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7587 char waddch ();
7588 #ifdef F77_DUMMY_MAIN
7589 # ifdef __cplusplus
7590 extern "C"
7591 # endif
7592 int F77_DUMMY_MAIN() { return 1; }
7593 #endif
7595 main ()
7597 waddch ();
7599 return 0;
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -s conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_ncurses_waddch=yes
7615 else
7616 echo "$as_me: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7618 ac_cv_lib_ncurses_waddch=no
7620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7623 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7624 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7625 if test $ac_cv_lib_ncurses_waddch = yes; then
7627 cat >>confdefs.h <<\_ACEOF
7628 #define HAVE_LIBNCURSES 1
7629 _ACEOF
7631 CURSESLIBS="-lncurses"
7632 else
7634 for ac_header in curses.h
7636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7638 echo "$as_me:$LINENO: checking for $ac_header" >&5
7639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7645 else
7646 # Is the header compilable?
7647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7649 cat >conftest.$ac_ext <<_ACEOF
7650 #line $LINENO "configure"
7651 #include "confdefs.h"
7652 $ac_includes_default
7653 #include <$ac_header>
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_header_compiler=yes
7668 else
7669 echo "$as_me: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 ac_header_compiler=no
7673 rm -f conftest.$ac_objext conftest.$ac_ext
7674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7675 echo "${ECHO_T}$ac_header_compiler" >&6
7677 # Is the header present?
7678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7680 cat >conftest.$ac_ext <<_ACEOF
7681 #line $LINENO "configure"
7682 #include "confdefs.h"
7683 #include <$ac_header>
7684 _ACEOF
7685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7687 ac_status=$?
7688 egrep -v '^ *\+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } >/dev/null; then
7693 if test -s conftest.err; then
7694 ac_cpp_err=$ac_c_preproc_warn_flag
7695 else
7696 ac_cpp_err=
7698 else
7699 ac_cpp_err=yes
7701 if test -z "$ac_cpp_err"; then
7702 ac_header_preproc=yes
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 ac_header_preproc=no
7708 rm -f conftest.err conftest.$ac_ext
7709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7710 echo "${ECHO_T}$ac_header_preproc" >&6
7712 # So? What about this header?
7713 case $ac_header_compiler:$ac_header_preproc in
7714 yes:no )
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7719 no:yes )
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7726 esac
7727 echo "$as_me:$LINENO: checking for $ac_header" >&5
7728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 eval "$as_ac_Header=$ac_header_preproc"
7734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7739 cat >>confdefs.h <<_ACEOF
7740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7741 _ACEOF
7742 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7743 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7744 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 ac_check_lib_save_LIBS=$LIBS
7748 LIBS="-lcurses $LIBS"
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 #include "confdefs.h"
7753 /* Override any gcc2 internal prototype to avoid an error. */
7754 #ifdef __cplusplus
7755 extern "C"
7756 #endif
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char waddch ();
7760 #ifdef F77_DUMMY_MAIN
7761 # ifdef __cplusplus
7762 extern "C"
7763 # endif
7764 int F77_DUMMY_MAIN() { return 1; }
7765 #endif
7767 main ()
7769 waddch ();
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest$ac_exeext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_cv_lib_curses_waddch=yes
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_cv_lib_curses_waddch=no
7792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793 LIBS=$ac_check_lib_save_LIBS
7795 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7796 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7797 if test $ac_cv_lib_curses_waddch = yes; then
7799 cat >>confdefs.h <<\_ACEOF
7800 #define HAVE_LIBCURSES 1
7801 _ACEOF
7803 CURSESLIBS="-lcurses"
7808 done
7814 done
7816 saved_libs="$LIBS"
7817 LIBS="$CURSESLIBS $LIBS"
7820 for ac_func in getbkgd resizeterm
7822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7823 echo "$as_me:$LINENO: checking for $ac_func" >&5
7824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7825 if eval "test \"\${$as_ac_var+set}\" = set"; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 #include "confdefs.h"
7831 /* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char $ac_func (); below. */
7833 #include <assert.h>
7834 /* Override any gcc2 internal prototype to avoid an error. */
7835 #ifdef __cplusplus
7836 extern "C"
7837 #endif
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7840 char $ac_func ();
7841 char (*f) ();
7843 #ifdef F77_DUMMY_MAIN
7844 # ifdef __cplusplus
7845 extern "C"
7846 # endif
7847 int F77_DUMMY_MAIN() { return 1; }
7848 #endif
7850 main ()
7852 /* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7856 choke me
7857 #else
7858 f = $ac_func;
7859 #endif
7862 return 0;
7864 _ACEOF
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7881 eval "$as_ac_var=no"
7883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7887 if test `eval echo '${'$as_ac_var'}'` = yes; then
7888 cat >>confdefs.h <<_ACEOF
7889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7890 _ACEOF
7893 done
7895 LIBS="$saved_libs"
7899 CUPSLIBS=""
7900 wine_cv_warn_cups_h=no
7901 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7902 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7903 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 ac_check_lib_save_LIBS=$LIBS
7907 LIBS="-lcups $LIBS"
7908 cat >conftest.$ac_ext <<_ACEOF
7909 #line $LINENO "configure"
7910 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 #ifdef __cplusplus
7914 extern "C"
7915 #endif
7916 /* We use char because int might match the return type of a gcc2
7917 builtin and then its argument prototype would still apply. */
7918 char cupsGetPPD ();
7919 #ifdef F77_DUMMY_MAIN
7920 # ifdef __cplusplus
7921 extern "C"
7922 # endif
7923 int F77_DUMMY_MAIN() { return 1; }
7924 #endif
7926 main ()
7928 cupsGetPPD ();
7930 return 0;
7932 _ACEOF
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7935 (eval $ac_link) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } &&
7939 { ac_try='test -s conftest$ac_exeext'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 (eval $ac_try) 2>&5
7942 ac_status=$?
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; }; then
7945 ac_cv_lib_cups_cupsGetPPD=yes
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7949 ac_cv_lib_cups_cupsGetPPD=no
7951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7952 LIBS=$ac_check_lib_save_LIBS
7954 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7955 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7956 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7957 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7958 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7959 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7960 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7964 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7965 else
7966 # Is the header compilable?
7967 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7968 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7969 cat >conftest.$ac_ext <<_ACEOF
7970 #line $LINENO "configure"
7971 #include "confdefs.h"
7972 $ac_includes_default
7973 #include <cups/cups.h>
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_header_compiler=yes
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7991 ac_header_compiler=no
7993 rm -f conftest.$ac_objext conftest.$ac_ext
7994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7995 echo "${ECHO_T}$ac_header_compiler" >&6
7997 # Is the header present?
7998 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7999 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
8000 cat >conftest.$ac_ext <<_ACEOF
8001 #line $LINENO "configure"
8002 #include "confdefs.h"
8003 #include <cups/cups.h>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 egrep -v '^ *\+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 else
8016 ac_cpp_err=
8018 else
8019 ac_cpp_err=yes
8021 if test -z "$ac_cpp_err"; then
8022 ac_header_preproc=yes
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8026 ac_header_preproc=no
8028 rm -f conftest.err conftest.$ac_ext
8029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8030 echo "${ECHO_T}$ac_header_preproc" >&6
8032 # So? What about this header?
8033 case $ac_header_compiler:$ac_header_preproc in
8034 yes:no )
8035 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8036 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8038 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8039 no:yes )
8040 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8041 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8043 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8045 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8046 esac
8047 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8048 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8049 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 ac_cv_header_cups_cups_h=$ac_header_preproc
8054 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8055 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8058 if test $ac_cv_header_cups_cups_h = yes; then
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_CUPS 1
8062 _ACEOF
8064 CUPSLIBS="-lcups"
8065 else
8066 wine_cv_warn_cups_h=yes
8075 # Extract the first word of "sane-config", so it can be a program name with args.
8076 set dummy sane-config; ac_word=$2
8077 echo "$as_me:$LINENO: checking for $ac_word" >&5
8078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079 if test "${ac_cv_prog_sane_devel+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 if test -n "$sane_devel"; then
8083 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_sane_devel="sane-config"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8096 done
8097 done
8099 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8102 sane_devel=$ac_cv_prog_sane_devel
8103 if test -n "$sane_devel"; then
8104 echo "$as_me:$LINENO: result: $sane_devel" >&5
8105 echo "${ECHO_T}$sane_devel" >&6
8106 else
8107 echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6
8111 if test "$sane_devel" = "no"
8112 then
8113 SANELIBS=""
8114 SANEINCL=""
8115 else
8116 SANELIBS="`$sane_devel --libs`"
8117 SANEINCL="`$sane_devel --cflags`"
8118 ac_save_CPPFLAGS="$CPPFLAGS"
8119 ac_save_LIBS="$LIBS"
8120 CPPFLAGS="$CPPFLAGS $SANEINCL"
8121 LIBS="$LIBS $SANELIBS"
8122 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8123 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8124 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8125 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8129 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8130 else
8131 # Is the header compilable?
8132 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8133 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8135 #line $LINENO "configure"
8136 #include "confdefs.h"
8137 $ac_includes_default
8138 #include <sane/sane.h>
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 ac_header_compiler=no
8158 rm -f conftest.$ac_objext conftest.$ac_ext
8159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160 echo "${ECHO_T}$ac_header_compiler" >&6
8162 # Is the header present?
8163 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8164 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 #include "confdefs.h"
8168 #include <sane/sane.h>
8169 _ACEOF
8170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8172 ac_status=$?
8173 egrep -v '^ *\+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } >/dev/null; then
8178 if test -s conftest.err; then
8179 ac_cpp_err=$ac_c_preproc_warn_flag
8180 else
8181 ac_cpp_err=
8183 else
8184 ac_cpp_err=yes
8186 if test -z "$ac_cpp_err"; then
8187 ac_header_preproc=yes
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 ac_header_preproc=no
8193 rm -f conftest.err conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195 echo "${ECHO_T}$ac_header_preproc" >&6
8197 # So? What about this header?
8198 case $ac_header_compiler:$ac_header_preproc in
8199 yes:no )
8200 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8201 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8203 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8204 no:yes )
8205 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8206 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8208 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8210 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8211 esac
8212 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8213 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8214 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217 ac_cv_header_sane_sane_h=$ac_header_preproc
8219 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8220 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8223 if test $ac_cv_header_sane_sane_h = yes; then
8224 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8225 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8226 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 ac_check_lib_save_LIBS=$LIBS
8230 LIBS="-lsane $LIBS"
8231 cat >conftest.$ac_ext <<_ACEOF
8232 #line $LINENO "configure"
8233 #include "confdefs.h"
8235 /* Override any gcc2 internal prototype to avoid an error. */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241 char sane_open ();
8242 #ifdef F77_DUMMY_MAIN
8243 # ifdef __cplusplus
8244 extern "C"
8245 # endif
8246 int F77_DUMMY_MAIN() { return 1; }
8247 #endif
8249 main ()
8251 sane_open ();
8253 return 0;
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258 (eval $ac_link) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_lib_sane_sane_open=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8272 ac_cv_lib_sane_sane_open=no
8274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8277 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8278 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8279 if test $ac_cv_lib_sane_sane_open = yes; then
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_SANE 1
8283 _ACEOF
8285 else
8286 SANELIBS=""
8287 SANEINCL=""
8290 else
8291 SANELIBS=""
8292 SANEINCL=""
8296 LIBS="$ac_save_LIBS"
8297 CPPFLAGS="$ac_save_CPPFLAGS"
8302 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8303 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8304 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-lfreetype $X_LIBS $LIBS"
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 #include "confdefs.h"
8313 /* Override any gcc2 internal prototype to avoid an error. */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319 char FT_Init_FreeType ();
8320 #ifdef F77_DUMMY_MAIN
8321 # ifdef __cplusplus
8322 extern "C"
8323 # endif
8324 int F77_DUMMY_MAIN() { return 1; }
8325 #endif
8327 main ()
8329 FT_Init_FreeType ();
8331 return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_lib_freetype_FT_Init_FreeType=yes
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 ac_cv_lib_freetype_FT_Init_FreeType=no
8352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8353 LIBS=$ac_check_lib_save_LIBS
8355 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8356 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8357 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8358 ft_lib=yes
8359 else
8360 ft_lib=no
8363 if test "$ft_lib" = "no"
8364 then
8365 FREETYPEINCL=""
8366 wine_cv_msg_freetype=no
8367 else
8368 # Extract the first word of "freetype-config", so it can be a program name with args.
8369 set dummy freetype-config; ac_word=$2
8370 echo "$as_me:$LINENO: checking for $ac_word" >&5
8371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8372 if test "${ac_cv_prog_ft_devel+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 if test -n "$ft_devel"; then
8376 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ft_devel="freetype-config"
8386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8389 done
8390 done
8392 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8395 ft_devel=$ac_cv_prog_ft_devel
8396 if test -n "$ft_devel"; then
8397 echo "$as_me:$LINENO: result: $ft_devel" >&5
8398 echo "${ECHO_T}$ft_devel" >&6
8399 else
8400 echo "$as_me:$LINENO: result: no" >&5
8401 echo "${ECHO_T}no" >&6
8404 if test "$ft_devel" = "no"
8405 then
8406 # Extract the first word of "freetype2-config", so it can be a program name with args.
8407 set dummy freetype2-config; ac_word=$2
8408 echo "$as_me:$LINENO: checking for $ac_word" >&5
8409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 if test -n "$ft_devel2"; then
8414 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_ft_devel2="freetype2-config"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8430 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8433 ft_devel2=$ac_cv_prog_ft_devel2
8434 if test -n "$ft_devel2"; then
8435 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8436 echo "${ECHO_T}$ft_devel2" >&6
8437 else
8438 echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6
8442 if test "$ft_devel2" = "freetype2-config"
8443 then
8444 ft_devel=$ft_devel2
8447 if test "$ft_devel" = "no"
8448 then
8449 FREETYPEINCL=""
8450 wine_cv_msg_freetype=yes
8451 else
8452 FREETYPEINCL=`$ft_devel --cflags`
8453 ac_save_CPPFLAGS="$CPPFLAGS"
8454 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8463 for ac_header in freetype/freetype.h \
8464 freetype/ftglyph.h \
8465 freetype/tttables.h \
8466 freetype/ftnames.h \
8467 freetype/ftsnames.h \
8468 freetype/ttnameid.h \
8469 freetype/ftoutln.h \
8470 freetype/internal/sfnt.h
8472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo "$as_me:$LINENO: checking for $ac_header" >&5
8475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8481 else
8482 # Is the header compilable?
8483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 #include "confdefs.h"
8488 $ac_includes_default
8489 #include <$ac_header>
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest.$ac_objext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_header_compiler=yes
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8507 ac_header_compiler=no
8509 rm -f conftest.$ac_objext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8511 echo "${ECHO_T}$ac_header_compiler" >&6
8513 # Is the header present?
8514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8516 cat >conftest.$ac_ext <<_ACEOF
8517 #line $LINENO "configure"
8518 #include "confdefs.h"
8519 #include <$ac_header>
8520 _ACEOF
8521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 ac_status=$?
8524 egrep -v '^ *\+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } >/dev/null; then
8529 if test -s conftest.err; then
8530 ac_cpp_err=$ac_c_preproc_warn_flag
8531 else
8532 ac_cpp_err=
8534 else
8535 ac_cpp_err=yes
8537 if test -z "$ac_cpp_err"; then
8538 ac_header_preproc=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 ac_header_preproc=no
8544 rm -f conftest.err conftest.$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8546 echo "${ECHO_T}$ac_header_preproc" >&6
8548 # So? What about this header?
8549 case $ac_header_compiler:$ac_header_preproc in
8550 yes:no )
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8555 no:yes )
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8562 esac
8563 echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568 eval "$as_ac_Header=$ac_header_preproc"
8570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8575 cat >>confdefs.h <<_ACEOF
8576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8577 _ACEOF
8581 done
8583 cat >conftest.$ac_ext <<_ACEOF
8584 #line $LINENO "configure"
8585 #include "confdefs.h"
8586 #include <ft2build.h>
8587 #include <freetype/fttrigon.h>
8588 _ACEOF
8589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8591 ac_status=$?
8592 egrep -v '^ *\+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } >/dev/null; then
8597 if test -s conftest.err; then
8598 ac_cpp_err=$ac_c_preproc_warn_flag
8599 else
8600 ac_cpp_err=
8602 else
8603 ac_cpp_err=yes
8605 if test -z "$ac_cpp_err"; then
8607 cat >>confdefs.h <<\_ACEOF
8608 #define HAVE_FREETYPE_FTTRIGON_H 1
8609 _ACEOF
8611 wine_cv_fttrigon=yes
8612 else
8613 echo "$as_me: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8615 wine_cv_fttrigon=no
8617 rm -f conftest.err conftest.$ac_ext
8618 CPPFLAGS="$ac_save_CPPFLAGS"
8619 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8620 then
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_FREETYPE 1
8624 _ACEOF
8626 wine_cv_msg_freetype=no
8627 else
8628 FREETYPEINCL=""
8629 wine_cv_msg_freetype=yes
8635 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8636 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8637 if test "${ac_cv_c_ppdev+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 #include "confdefs.h"
8643 #include <linux/ppdev.h>
8644 #ifdef F77_DUMMY_MAIN
8645 # ifdef __cplusplus
8646 extern "C"
8647 # endif
8648 int F77_DUMMY_MAIN() { return 1; }
8649 #endif
8651 main ()
8653 ioctl (1,PPCLAIM,0)
8655 return 0;
8657 _ACEOF
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660 (eval $ac_compile) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest.$ac_objext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_c_ppdev="yes"
8671 else
8672 echo "$as_me: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8674 ac_cv_c_ppdev="no"
8676 rm -f conftest.$ac_objext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8680 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8681 if test "$ac_cv_c_ppdev" = "yes"
8682 then
8684 cat >>confdefs.h <<\_ACEOF
8685 #define HAVE_PPDEV 1
8686 _ACEOF
8690 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8691 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8692 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 cat >conftest.$ac_ext <<_ACEOF
8696 #line $LINENO "configure"
8697 #include "confdefs.h"
8698 #include <sys/socket.h>
8699 #include <netipx/ipx.h>
8700 #ifdef F77_DUMMY_MAIN
8701 # ifdef __cplusplus
8702 extern "C"
8703 # endif
8704 int F77_DUMMY_MAIN() { return 1; }
8705 #endif
8707 main ()
8709 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8716 (eval $ac_compile) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -s conftest.$ac_objext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_c_ipx_gnu="yes"
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8730 ac_cv_c_ipx_gnu="no"
8732 rm -f conftest.$ac_objext conftest.$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8736 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8737 if test "$ac_cv_c_ipx_gnu" = "yes"
8738 then
8740 cat >>confdefs.h <<\_ACEOF
8741 #define HAVE_IPX_GNU 1
8742 _ACEOF
8746 if test "$ac_cv_c_ipx_gnu" = "no"
8747 then
8748 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8749 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8750 if test "${ac_cv_c_ipx_linux+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 #include "confdefs.h"
8756 #include <sys/socket.h>
8757 #include <asm/types.h>
8758 #include <linux/ipx.h>
8759 #ifdef F77_DUMMY_MAIN
8760 # ifdef __cplusplus
8761 extern "C"
8762 # endif
8763 int F77_DUMMY_MAIN() { return 1; }
8764 #endif
8766 main ()
8768 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_c_ipx_linux="yes"
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8789 ac_cv_c_ipx_linux="no"
8791 rm -f conftest.$ac_objext conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8795 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8796 if test "$ac_cv_c_ipx_linux" = "yes"
8797 then
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_IPX_LINUX 1
8801 _ACEOF
8809 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo "$as_me:$LINENO: checking for $ac_header" >&5
8814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8820 else
8821 # Is the header compilable?
8822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8824 cat >conftest.$ac_ext <<_ACEOF
8825 #line $LINENO "configure"
8826 #include "confdefs.h"
8827 $ac_includes_default
8828 #include <$ac_header>
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -s conftest.$ac_objext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_header_compiler=yes
8843 else
8844 echo "$as_me: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8846 ac_header_compiler=no
8848 rm -f conftest.$ac_objext conftest.$ac_ext
8849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8850 echo "${ECHO_T}$ac_header_compiler" >&6
8852 # Is the header present?
8853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8857 #include "confdefs.h"
8858 #include <$ac_header>
8859 _ACEOF
8860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8862 ac_status=$?
8863 egrep -v '^ *\+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } >/dev/null; then
8868 if test -s conftest.err; then
8869 ac_cpp_err=$ac_c_preproc_warn_flag
8870 else
8871 ac_cpp_err=
8873 else
8874 ac_cpp_err=yes
8876 if test -z "$ac_cpp_err"; then
8877 ac_header_preproc=yes
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 ac_header_preproc=no
8883 rm -f conftest.err conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8885 echo "${ECHO_T}$ac_header_preproc" >&6
8887 # So? What about this header?
8888 case $ac_header_compiler:$ac_header_preproc in
8889 yes:no )
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8894 no:yes )
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8901 esac
8902 echo "$as_me:$LINENO: checking for $ac_header" >&5
8903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907 eval "$as_ac_Header=$ac_header_preproc"
8909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8914 cat >>confdefs.h <<_ACEOF
8915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8916 _ACEOF
8917 break
8920 done
8923 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8924 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8925 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 #include "confdefs.h"
8932 #if defined(HAVE_SYS_SOUNDCARD_H)
8933 #include <sys/soundcard.h>
8934 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8935 #include <machine/soundcard.h>
8936 #elif defined(HAVE_SOUNDCARD_H)
8937 #include <soundcard.h>
8938 #endif
8940 #ifdef F77_DUMMY_MAIN
8941 # ifdef __cplusplus
8942 extern "C"
8943 # endif
8944 int F77_DUMMY_MAIN() { return 1; }
8945 #endif
8947 main ()
8951 /* check for one of the Open Sound System specific SNDCTL_ defines */
8952 #if !defined(SNDCTL_DSP_STEREO)
8953 #error No open sound system
8954 #endif
8957 return 0;
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_c_opensoundsystem="yes"
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 ac_cv_c_opensoundsystem="no"
8978 rm -f conftest.$ac_objext conftest.$ac_ext
8980 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8981 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8983 if test "$ac_cv_c_opensoundsystem" = "yes"
8984 then
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_OSS 1
8988 _ACEOF
8992 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8993 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8994 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 #include "confdefs.h"
9001 #if defined(HAVE_SYS_SOUNDCARD_H)
9002 #include <sys/soundcard.h>
9003 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9004 #include <machine/soundcard.h>
9005 #elif defined(HAVE_SOUNDCARD_H)
9006 #include <soundcard.h>
9007 #endif
9009 #ifdef F77_DUMMY_MAIN
9010 # ifdef __cplusplus
9011 extern "C"
9012 # endif
9013 int F77_DUMMY_MAIN() { return 1; }
9014 #endif
9016 main ()
9020 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9021 #if !defined(SNDCTL_SEQ_SYNC)
9022 #error No open sound system MIDI interface
9023 #endif
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -s conftest.$ac_objext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_c_opensoundsystem_midi="yes"
9042 else
9043 echo "$as_me: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9045 ac_cv_c_opensoundsystem_midi="no"
9047 rm -f conftest.$ac_objext conftest.$ac_ext
9049 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9050 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9052 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9053 then
9055 cat >>confdefs.h <<\_ACEOF
9056 #define HAVE_OSS_MIDI 1
9057 _ACEOF
9061 # Extract the first word of "artsc-config", so it can be a program name with args.
9062 set dummy artsc-config; ac_word=$2
9063 echo "$as_me:$LINENO: checking for $ac_word" >&5
9064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9065 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 case $ARTSCCONFIG in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9088 esac
9090 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9092 if test -n "$ARTSCCONFIG"; then
9093 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9094 echo "${ECHO_T}$ARTSCCONFIG" >&6
9095 else
9096 echo "$as_me:$LINENO: result: no" >&5
9097 echo "${ECHO_T}no" >&6
9100 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9101 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9102 if test "${ac_cv_c_artsserver+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9106 then
9107 ac_cv_c_artsserver=no
9108 else
9109 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9110 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9111 ac_cv_c_artsserver=no
9112 save_CFLAGS="$CFLAGS"
9113 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9114 cat >conftest.$ac_ext <<_ACEOF
9115 #line $LINENO "configure"
9116 #include "confdefs.h"
9118 #include <artsc.h>
9120 #ifdef F77_DUMMY_MAIN
9121 # ifdef __cplusplus
9122 extern "C"
9123 # endif
9124 int F77_DUMMY_MAIN() { return 1; }
9125 #endif
9127 main ()
9130 arts_stream_t stream;
9133 return 0;
9135 _ACEOF
9136 rm -f conftest.$ac_objext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -s conftest.$ac_objext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9149 ac_cv_c_artsserver=yes
9151 else
9152 echo "$as_me: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 rm -f conftest.$ac_objext conftest.$ac_ext
9156 CFLAGS="$save_CFLAGS"
9159 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9160 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9162 if test "$ac_cv_c_artsserver" = "yes"
9163 then
9164 ARTSLIBS=$ARTSC_LIBS
9166 ARTSINCL=$ARTSC_CFLAGS
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_ARTS 1
9172 _ACEOF
9177 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9178 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9179 if test "${ac_cv_mmap64_works+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 if test "$cross_compiling" = yes; then
9183 ac_cv_mmap64_works="no"
9184 else
9185 cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9189 #define _FILE_OFFSET_BITS 64
9190 #include <stdio.h>
9191 #include <unistd.h>
9192 #include <fcntl.h>
9193 #include <sys/mman.h>
9194 #include <errno.h>
9196 int main(int argc,char **argv) {
9197 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9198 if (fd == -1) exit(1);
9200 unlink("conftest.map");
9202 write(fd,"test",4);
9204 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9205 (errno == EINVAL)
9207 exit(1);
9209 close(fd);
9210 fprintf(stderr,"success!\n");
9211 exit(0);
9215 _ACEOF
9216 rm -f conftest$ac_exeext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218 (eval $ac_link) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_cv_mmap64_works="yes"
9228 else
9229 echo "$as_me: program exited with status $ac_status" >&5
9230 echo "$as_me: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 ( exit $ac_status )
9233 ac_cv_mmap64_works="no"
9235 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9238 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9239 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9241 if test "$ac_cv_mmap64_works" = "yes"
9242 then
9244 cat >>confdefs.h <<\_ACEOF
9245 #define _FILE_OFFSET_BITS 64
9246 _ACEOF
9251 if test "x${GCC}" = "xyes"
9252 then
9253 CFLAGS="$CFLAGS -Wall"
9254 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9255 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9256 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 if test "$cross_compiling" = yes; then
9260 ac_cv_c_gcc_strength_bug="yes"
9261 else
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line $LINENO "configure"
9264 #include "confdefs.h"
9266 int L[4] = {0,1,2,3};
9267 int main(void) {
9268 static int Array[3];
9269 unsigned int B = 3;
9270 int i;
9271 for(i=0; i<B; i++) Array[i] = i - 3;
9272 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9273 L[i] = 4;
9275 exit( Array[1] != -2 || L[2] != 3);
9277 _ACEOF
9278 rm -f conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_c_gcc_strength_bug="no"
9290 else
9291 echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294 ( exit $ac_status )
9295 ac_cv_c_gcc_strength_bug="yes"
9297 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9300 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9301 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9302 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9303 then
9304 CFLAGS="$CFLAGS -fno-strength-reduce"
9307 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9308 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9309 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 ac_wine_try_cflags_saved=$CFLAGS
9313 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 #include "confdefs.h"
9318 #ifdef F77_DUMMY_MAIN
9319 # ifdef __cplusplus
9320 extern "C"
9321 # endif
9322 int F77_DUMMY_MAIN() { return 1; }
9323 #endif
9325 main ()
9329 return 0;
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_cv_c_gcc_stack_boundary="yes"
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9348 ac_cv_c_gcc_stack_boundary="no"
9350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9351 CFLAGS=$ac_wine_try_cflags_saved
9353 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9354 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9355 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9356 then
9357 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9362 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9363 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9364 if test "${ac_cv_c_type_in_def+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 ac_try_asm_link_saved_libs=$LIBS
9368 LIBS="conftest_asm.s $LIBS"
9369 cat > conftest_asm.s <<EOF
9370 .globl _ac_test
9371 .def _ac_test; .scl 2; .type 32; .endef
9372 _ac_test:
9373 .long 0
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9379 #ifdef F77_DUMMY_MAIN
9380 # ifdef __cplusplus
9381 extern "C"
9382 # endif
9383 int F77_DUMMY_MAIN() { return 1; }
9384 #endif
9386 main ()
9390 return 0;
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_c_type_in_def="yes"
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 ac_cv_c_type_in_def="no"
9411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9412 rm -f conftest_asm.s
9413 LIBS=$ac_try_asm_link_saved_libs
9415 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9416 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9417 if test "$ac_cv_c_type_in_def" = "yes"
9418 then
9420 cat >>confdefs.h <<\_ACEOF
9421 #define NEED_TYPE_IN_DEF 1
9422 _ACEOF
9427 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9428 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9429 if test "${ac_cv_c_extern_prefix+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 ac_try_asm_link_saved_libs=$LIBS
9433 LIBS="conftest_asm.s $LIBS"
9434 cat > conftest_asm.s <<EOF
9435 .globl _ac_test
9436 _ac_test:
9437 .long 0
9439 cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 #include "confdefs.h"
9442 extern int ac_test;
9443 #ifdef F77_DUMMY_MAIN
9444 # ifdef __cplusplus
9445 extern "C"
9446 # endif
9447 int F77_DUMMY_MAIN() { return 1; }
9448 #endif
9450 main ()
9452 if (ac_test) return 1
9454 return 0;
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_c_extern_prefix="yes"
9470 else
9471 echo "$as_me: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 ac_cv_c_extern_prefix="no"
9475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9476 rm -f conftest_asm.s
9477 LIBS=$ac_try_asm_link_saved_libs
9479 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9480 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9481 if test "$ac_cv_c_extern_prefix" = "yes"
9482 then
9484 cat >>confdefs.h <<\_ACEOF
9485 #define NEED_UNDERSCORE_PREFIX 1
9486 _ACEOF
9491 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9492 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9493 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 ac_try_asm_link_saved_libs=$LIBS
9497 LIBS="conftest_asm.s $LIBS"
9498 cat > conftest_asm.s <<EOF
9499 .globl _ac_test@0
9500 _ac_test@0:
9501 .globl ac_test@0
9502 ac_test@0:
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line $LINENO "configure"
9506 #include "confdefs.h"
9507 extern void __attribute__((__stdcall__)) ac_test(void);
9508 #ifdef F77_DUMMY_MAIN
9509 # ifdef __cplusplus
9510 extern "C"
9511 # endif
9512 int F77_DUMMY_MAIN() { return 1; }
9513 #endif
9515 main ()
9517 ac_test()
9519 return 0;
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_c_stdcall_decoration="yes"
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 ac_cv_c_stdcall_decoration="no"
9540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9541 rm -f conftest_asm.s
9542 LIBS=$ac_try_asm_link_saved_libs
9544 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9545 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9546 if test "$ac_cv_c_stdcall_decoration" = "yes"
9547 then
9549 cat >>confdefs.h <<\_ACEOF
9550 #define NEED_STDCALL_DECORATION 1
9551 _ACEOF
9556 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9557 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9558 if test "${ac_cv_c_asm_string+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 ac_try_asm_link_saved_libs=$LIBS
9562 LIBS="conftest_asm.s $LIBS"
9563 cat > conftest_asm.s <<EOF
9564 .string "test"
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 #include "confdefs.h"
9570 #ifdef F77_DUMMY_MAIN
9571 # ifdef __cplusplus
9572 extern "C"
9573 # endif
9574 int F77_DUMMY_MAIN() { return 1; }
9575 #endif
9577 main ()
9581 return 0;
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9586 (eval $ac_link) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -s conftest$ac_exeext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 (eval $ac_try) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_c_asm_string="yes"
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600 ac_cv_c_asm_string="no"
9602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9603 rm -f conftest_asm.s
9604 LIBS=$ac_try_asm_link_saved_libs
9606 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9607 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9608 if test "$ac_cv_c_asm_string" = "yes"
9609 then
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_ASM_STRING 1
9613 _ACEOF
9618 LDSHARED=""
9619 LDDLLFLAGS=""
9620 DLLIBS=""
9622 case $host_os in
9623 cygwin*|mingw32*)
9624 if test -n "$ac_tool_prefix"; then
9625 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9626 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9627 echo "$as_me:$LINENO: checking for $ac_word" >&5
9628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9629 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 if test -n "$DLLWRAP"; then
9633 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9634 else
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9646 done
9647 done
9651 DLLWRAP=$ac_cv_prog_DLLWRAP
9652 if test -n "$DLLWRAP"; then
9653 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9654 echo "${ECHO_T}$DLLWRAP" >&6
9655 else
9656 echo "$as_me:$LINENO: result: no" >&5
9657 echo "${ECHO_T}no" >&6
9661 if test -z "$ac_cv_prog_DLLWRAP"; then
9662 ac_ct_DLLWRAP=$DLLWRAP
9663 # Extract the first word of "dllwrap", so it can be a program name with args.
9664 set dummy dllwrap; ac_word=$2
9665 echo "$as_me:$LINENO: checking for $ac_word" >&5
9666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9667 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 if test -n "$ac_ct_DLLWRAP"; then
9671 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9684 done
9685 done
9687 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9690 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9691 if test -n "$ac_ct_DLLWRAP"; then
9692 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9693 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9694 else
9695 echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6
9699 DLLWRAP=$ac_ct_DLLWRAP
9700 else
9701 DLLWRAP="$ac_cv_prog_DLLWRAP"
9704 if test "$DLLWRAP" = "false"; then
9705 LIBEXT="a"
9706 else
9707 LIBEXT="dll"
9712 for ac_header in dlfcn.h
9714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716 echo "$as_me:$LINENO: checking for $ac_header" >&5
9717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723 else
9724 # Is the header compilable?
9725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9729 #include "confdefs.h"
9730 $ac_includes_default
9731 #include <$ac_header>
9732 _ACEOF
9733 rm -f conftest.$ac_objext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_header_compiler=yes
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 ac_header_compiler=no
9751 rm -f conftest.$ac_objext conftest.$ac_ext
9752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9753 echo "${ECHO_T}$ac_header_compiler" >&6
9755 # Is the header present?
9756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9759 #line $LINENO "configure"
9760 #include "confdefs.h"
9761 #include <$ac_header>
9762 _ACEOF
9763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9765 ac_status=$?
9766 egrep -v '^ *\+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } >/dev/null; then
9771 if test -s conftest.err; then
9772 ac_cpp_err=$ac_c_preproc_warn_flag
9773 else
9774 ac_cpp_err=
9776 else
9777 ac_cpp_err=yes
9779 if test -z "$ac_cpp_err"; then
9780 ac_header_preproc=yes
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 ac_header_preproc=no
9786 rm -f conftest.err conftest.$ac_ext
9787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788 echo "${ECHO_T}$ac_header_preproc" >&6
9790 # So? What about this header?
9791 case $ac_header_compiler:$ac_header_preproc in
9792 yes:no )
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9797 no:yes )
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9804 esac
9805 echo "$as_me:$LINENO: checking for $ac_header" >&5
9806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 eval "$as_ac_Header=$ac_header_preproc"
9812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9819 _ACEOF
9821 for ac_func in dlopen
9823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9824 echo "$as_me:$LINENO: checking for $ac_func" >&5
9825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9826 if eval "test \"\${$as_ac_var+set}\" = set"; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 #include "confdefs.h"
9832 /* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char $ac_func (); below. */
9834 #include <assert.h>
9835 /* Override any gcc2 internal prototype to avoid an error. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841 char $ac_func ();
9842 char (*f) ();
9844 #ifdef F77_DUMMY_MAIN
9845 # ifdef __cplusplus
9846 extern "C"
9847 # endif
9848 int F77_DUMMY_MAIN() { return 1; }
9849 #endif
9851 main ()
9853 /* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9857 choke me
9858 #else
9859 f = $ac_func;
9860 #endif
9863 return 0;
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 eval "$as_ac_var=yes"
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 eval "$as_ac_var=no"
9884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9888 if test `eval echo '${'$as_ac_var'}'` = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9891 _ACEOF
9893 else
9894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-ldl $LIBS"
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9905 /* Override any gcc2 internal prototype to avoid an error. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 /* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9911 char dlopen ();
9912 #ifdef F77_DUMMY_MAIN
9913 # ifdef __cplusplus
9914 extern "C"
9915 # endif
9916 int F77_DUMMY_MAIN() { return 1; }
9917 #endif
9919 main ()
9921 dlopen ();
9923 return 0;
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_dl_dlopen=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 ac_cv_lib_dl_dlopen=no
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9949 if test $ac_cv_lib_dl_dlopen = yes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_DLOPEN 1
9953 _ACEOF
9955 DLLIBS="-ldl"
9956 else
9957 LIBEXT="a"
9961 done
9963 else
9964 LIBEXT="a"
9967 done
9970 if test "$LIBEXT" = "so"
9971 then
9972 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
9973 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9974 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_wine_try_cflags_saved=$CFLAGS
9978 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 #include "confdefs.h"
9983 #ifdef F77_DUMMY_MAIN
9984 # ifdef __cplusplus
9985 extern "C"
9986 # endif
9987 int F77_DUMMY_MAIN() { return 1; }
9988 #endif
9990 main ()
9994 return 0;
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999 (eval $ac_link) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_c_dll_gnuelf="yes"
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 cat conftest.$ac_ext >&5
10013 ac_cv_c_dll_gnuelf="no"
10015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10016 CFLAGS=$ac_wine_try_cflags_saved
10018 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10019 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10020 if test "$ac_cv_c_dll_gnuelf" = "yes"
10021 then
10022 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10023 LDDLLFLAGS="-Wl,-Bsymbolic"
10024 else
10025 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10026 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10027 if test "${ac_cv_c_dll_unixware+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 ac_wine_try_cflags_saved=$CFLAGS
10031 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10032 cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10034 #include "confdefs.h"
10036 #ifdef F77_DUMMY_MAIN
10037 # ifdef __cplusplus
10038 extern "C"
10039 # endif
10040 int F77_DUMMY_MAIN() { return 1; }
10041 #endif
10043 main ()
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_c_dll_unixware="yes"
10063 else
10064 echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 ac_cv_c_dll_unixware="no"
10068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10069 CFLAGS=$ac_wine_try_cflags_saved
10071 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10072 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10073 if test "$ac_cv_c_dll_unixware" = "yes"
10074 then
10075 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10076 LDDLLFLAGS="-Wl,-B,symbolic"
10081 esac
10083 if test "$LIBEXT" = "a"; then
10084 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10085 It is currently not possible to build Wine without shared library
10086 (.so) support to allow transparent switch between .so and .dll files.
10087 If you are using Linux, you will need a newer binutils.
10088 " >&5
10089 echo "$as_me: error: could not find a way to build shared libraries.
10090 It is currently not possible to build Wine without shared library
10091 (.so) support to allow transparent switch between .so and .dll files.
10092 If you are using Linux, you will need a newer binutils.
10093 " >&2;}
10094 { (exit 1); exit 1; }; }
10097 DLLFLAGS=""
10099 if test "$LIBEXT" = "so"; then
10100 DLLFLAGS="-fPIC"
10101 DLLEXT=".so"
10102 elif test "$LIBEXT" = "dll"; then
10103 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
10104 DLLEXT=""
10107 case $build_os in
10108 cygwin*|mingw32*)
10109 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10111 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10112 esac
10123 if test "$LIBEXT" = "so"
10124 then
10125 # Extract the first word of "ldd", so it can be a program name with args.
10126 set dummy ldd; ac_word=$2
10127 echo "$as_me:$LINENO: checking for $ac_word" >&5
10128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10129 if test "${ac_cv_path_LDD+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 case $LDD in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in /sbin:/usr/sbin:$PATH
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10148 done
10149 done
10151 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10153 esac
10155 LDD=$ac_cv_path_LDD
10157 if test -n "$LDD"; then
10158 echo "$as_me:$LINENO: result: $LDD" >&5
10159 echo "${ECHO_T}$LDD" >&6
10160 else
10161 echo "$as_me:$LINENO: result: no" >&5
10162 echo "${ECHO_T}no" >&6
10166 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10167 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10168 if test "${ac_cv_lib_soname_X11+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 ac_get_soname_save_LIBS=$LIBS
10172 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10175 #include "confdefs.h"
10177 /* Override any gcc2 internal prototype to avoid an error. */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10183 char XCreateWindow ();
10184 #ifdef F77_DUMMY_MAIN
10185 # ifdef __cplusplus
10186 extern "C"
10187 # endif
10188 int F77_DUMMY_MAIN() { return 1; }
10189 #endif
10191 main ()
10193 XCreateWindow ();
10195 return 0;
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10211 if test "x$ac_cv_lib_soname_X11" = "x"
10212 then
10213 ac_cv_lib_soname_X11="libX11.so"
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 ac_cv_lib_soname_X11="libX11.so"
10220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_get_soname_save_LIBS
10223 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10224 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10225 if test "x$ac_cv_lib_soname_X11" != xNONE
10226 then
10227 cat >>confdefs.h <<_ACEOF
10228 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10229 _ACEOF
10232 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10233 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10234 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 ac_get_soname_save_LIBS=$LIBS
10238 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10239 cat >conftest.$ac_ext <<_ACEOF
10240 #line $LINENO "configure"
10241 #include "confdefs.h"
10243 /* Override any gcc2 internal prototype to avoid an error. */
10244 #ifdef __cplusplus
10245 extern "C"
10246 #endif
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249 char XextCreateExtension ();
10250 #ifdef F77_DUMMY_MAIN
10251 # ifdef __cplusplus
10252 extern "C"
10253 # endif
10254 int F77_DUMMY_MAIN() { return 1; }
10255 #endif
10257 main ()
10259 XextCreateExtension ();
10261 return 0;
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -s conftest$ac_exeext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10277 if test "x$ac_cv_lib_soname_Xext" = "x"
10278 then
10279 ac_cv_lib_soname_Xext="libXext.so"
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 ac_cv_lib_soname_Xext="libXext.so"
10286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_get_soname_save_LIBS
10289 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10290 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10291 if test "x$ac_cv_lib_soname_Xext" != xNONE
10292 then
10293 cat >>confdefs.h <<_ACEOF
10294 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10295 _ACEOF
10298 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10299 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10300 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 ac_get_soname_save_LIBS=$LIBS
10304 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 #include "confdefs.h"
10309 /* Override any gcc2 internal prototype to avoid an error. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 /* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315 char XRenderQueryExtension ();
10316 #ifdef F77_DUMMY_MAIN
10317 # ifdef __cplusplus
10318 extern "C"
10319 # endif
10320 int F77_DUMMY_MAIN() { return 1; }
10321 #endif
10323 main ()
10325 XRenderQueryExtension ();
10327 return 0;
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10343 if test "x$ac_cv_lib_soname_Xrender" = "x"
10344 then
10345 ac_cv_lib_soname_Xrender="libXrender.so"
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 cat conftest.$ac_ext >&5
10350 ac_cv_lib_soname_Xrender="libXrender.so"
10352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_get_soname_save_LIBS
10355 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10356 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10357 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10358 then
10359 cat >>confdefs.h <<_ACEOF
10360 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10361 _ACEOF
10364 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10365 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10366 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 ac_get_soname_save_LIBS=$LIBS
10370 LIBS="-lfreetype $X_LIBS $LIBS"
10371 cat >conftest.$ac_ext <<_ACEOF
10372 #line $LINENO "configure"
10373 #include "confdefs.h"
10375 /* Override any gcc2 internal prototype to avoid an error. */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10381 char FT_Init_FreeType ();
10382 #ifdef F77_DUMMY_MAIN
10383 # ifdef __cplusplus
10384 extern "C"
10385 # endif
10386 int F77_DUMMY_MAIN() { return 1; }
10387 #endif
10389 main ()
10391 FT_Init_FreeType ();
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10409 if test "x$ac_cv_lib_soname_freetype" = "x"
10410 then
10411 ac_cv_lib_soname_freetype="libfreetype.so"
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 ac_cv_lib_soname_freetype="libfreetype.so"
10418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_get_soname_save_LIBS
10421 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10422 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10423 if test "x$ac_cv_lib_soname_freetype" != xNONE
10424 then
10425 cat >>confdefs.h <<_ACEOF
10426 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10427 _ACEOF
10433 wine_cv_libc_reentrant=no
10434 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10435 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10436 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439 if test "$cross_compiling" = yes; then
10440 wine_cv_libc_r___errno_location=yes
10441 else
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 #include "confdefs.h"
10445 int myerrno = 0;
10446 char buf[256];
10447 int *__errno_location(){return &myerrno;}
10448 main(){connect(0,buf,255); exit(!myerrno);}
10449 _ACEOF
10450 rm -f conftest$ac_exeext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; }; then
10461 wine_cv_libc_r___errno_location=yes
10462 else
10463 echo "$as_me: program exited with status $ac_status" >&5
10464 echo "$as_me: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 ( exit $ac_status )
10467 wine_cv_libc_r___errno_location=no
10469 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10472 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10473 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10474 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10475 wine_cv_libc_reentrant=__errno_location
10476 else
10477 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10478 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10479 if test "${wine_cv_libc_r___error+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482 if test "$cross_compiling" = yes; then
10483 wine_cv_libc_r___error=yes
10484 else
10485 cat >conftest.$ac_ext <<_ACEOF
10486 #line $LINENO "configure"
10487 #include "confdefs.h"
10488 int myerrno = 0;
10489 char buf256;
10490 int *__error(){return &myerrno;}
10491 main(){connect(0,buf,255); exit(!myerrno);}
10492 _ACEOF
10493 rm -f conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 wine_cv_libc_r___error=yes
10505 else
10506 echo "$as_me: program exited with status $ac_status" >&5
10507 echo "$as_me: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10509 ( exit $ac_status )
10510 wine_cv_libc_r___error=no
10512 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
10516 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
10517 if test "$wine_cv_libc_r___error" = "yes"; then
10518 wine_cv_libc_reentrant=__error
10519 else
10520 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
10521 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10522 if test "${wine_cv_libc_r____errno+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525 if test "$cross_compiling" = yes; then
10526 wine_cv_libc_r____errno=yes
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 #line $LINENO "configure"
10530 #include "confdefs.h"
10531 int myerrno = 0;
10532 char buf256;
10533 int *___errno(){return &myerrno;}
10534 main(){connect(0,buf,255); exit(!myerrno);}
10535 _ACEOF
10536 rm -f conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538 (eval $ac_link) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 wine_cv_libc_r____errno=yes
10548 else
10549 echo "$as_me: program exited with status $ac_status" >&5
10550 echo "$as_me: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 ( exit $ac_status )
10553 wine_cv_libc_r____errno=no
10555 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10558 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10559 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10560 if test "$wine_cv_libc_r____errno" = "yes"; then
10561 wine_cv_libc_reentrant=___errno
10562 else
10563 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10564 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10565 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 if test "$cross_compiling" = yes; then
10569 wine_cv_libc_r___thr_errno=yes
10570 else
10571 cat >conftest.$ac_ext <<_ACEOF
10572 #line $LINENO "configure"
10573 #include "confdefs.h"
10574 int myerrno = 0;
10575 char buf256;
10576 int *__thr_errno(){return &myerrno;}
10577 main(){connect(0,buf,255); exit(!myerrno);}
10578 _ACEOF
10579 rm -f conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 wine_cv_libc_r___thr_errno=yes
10591 else
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 ( exit $ac_status )
10596 wine_cv_libc_r___thr_errno=no
10598 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
10602 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
10603 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10604 wine_cv_libc_reentrant=__thr_errno
10605 else
10606 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
10607 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10608 if test "${wine_cv_libc_r___errno+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 if test "$cross_compiling" = yes; then
10612 wine_cv_libc_r___errno=yes
10613 else
10614 cat >conftest.$ac_ext <<_ACEOF
10615 #line $LINENO "configure"
10616 #include "confdefs.h"
10617 int myerrno = 0;
10618 char buf256;
10619 int *__errno(){return &myerrno;}
10620 main(){connect(0,buf,255); exit(!myerrno);}
10621 _ACEOF
10622 rm -f conftest$ac_exeext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10624 (eval $ac_link) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 wine_cv_libc_r___errno=yes
10634 else
10635 echo "$as_me: program exited with status $ac_status" >&5
10636 echo "$as_me: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10638 ( exit $ac_status )
10639 wine_cv_libc_r___errno=no
10641 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10644 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
10645 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
10646 if test "$wine_cv_libc_r___errno" = "yes"; then
10647 wine_cv_libc_reentrant=__errno
10660 if test "$wine_cv_libc_reentrant" != "no"
10661 then
10663 cat >>confdefs.h <<_ACEOF
10664 #define ERRNO_LOCATION $wine_cv_libc_reentrant
10665 _ACEOF
10670 if test "$have_x" = "yes"
10671 then
10672 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
10673 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10674 if test "${wine_cv_x_reentrant+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 libX11_check=none
10678 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10679 if test -r $dir/libX11.so; then
10680 libX11_check="-D $dir/libX11.so"
10681 break
10683 if test -r $dir/libX11.a; then
10684 libX11_check="$dir/libX11.a"
10685 break
10687 done
10688 if test "$libX11_check" != "none"; then
10689 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10690 then
10691 wine_cv_x_reentrant=yes
10692 else
10693 wine_cv_x_reentrant=no
10695 else
10696 wine_cv_x_reentrant=unknown
10699 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
10700 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
10704 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10705 # for constant arguments. Useless!
10706 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10707 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10708 if test "${ac_cv_working_alloca_h+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 cat >conftest.$ac_ext <<_ACEOF
10712 #line $LINENO "configure"
10713 #include "confdefs.h"
10714 #include <alloca.h>
10715 #ifdef F77_DUMMY_MAIN
10716 # ifdef __cplusplus
10717 extern "C"
10718 # endif
10719 int F77_DUMMY_MAIN() { return 1; }
10720 #endif
10722 main ()
10724 char *p = (char *) alloca (2 * sizeof (int));
10726 return 0;
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -s conftest$ac_exeext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_working_alloca_h=yes
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 ac_cv_working_alloca_h=no
10747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10750 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10751 if test $ac_cv_working_alloca_h = yes; then
10753 cat >>confdefs.h <<\_ACEOF
10754 #define HAVE_ALLOCA_H 1
10755 _ACEOF
10759 echo "$as_me:$LINENO: checking for alloca" >&5
10760 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10761 if test "${ac_cv_func_alloca_works+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 cat >conftest.$ac_ext <<_ACEOF
10765 #line $LINENO "configure"
10766 #include "confdefs.h"
10767 #ifdef __GNUC__
10768 # define alloca __builtin_alloca
10769 #else
10770 # ifdef _MSC_VER
10771 # include <malloc.h>
10772 # define alloca _alloca
10773 # else
10774 # if HAVE_ALLOCA_H
10775 # include <alloca.h>
10776 # else
10777 # ifdef _AIX
10778 #pragma alloca
10779 # else
10780 # ifndef alloca /* predefined by HP cc +Olibcalls */
10781 char *alloca ();
10782 # endif
10783 # endif
10784 # endif
10785 # endif
10786 #endif
10788 #ifdef F77_DUMMY_MAIN
10789 # ifdef __cplusplus
10790 extern "C"
10791 # endif
10792 int F77_DUMMY_MAIN() { return 1; }
10793 #endif
10795 main ()
10797 char *p = (char *) alloca (1);
10799 return 0;
10801 _ACEOF
10802 rm -f conftest.$ac_objext conftest$ac_exeext
10803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10804 (eval $ac_link) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -s conftest$ac_exeext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_func_alloca_works=yes
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 ac_cv_func_alloca_works=no
10820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10822 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10823 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10825 if test $ac_cv_func_alloca_works = yes; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_ALLOCA 1
10829 _ACEOF
10831 else
10832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10833 # that cause trouble. Some versions do not even contain alloca or
10834 # contain a buggy version. If you still want to use their alloca,
10835 # use ar to extract alloca.o from them instead of compiling alloca.c.
10837 ALLOCA=alloca.$ac_objext
10839 cat >>confdefs.h <<\_ACEOF
10840 #define C_ALLOCA 1
10841 _ACEOF
10844 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10845 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10846 if test "${ac_cv_os_cray+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10852 #if defined(CRAY) && ! defined(CRAY2)
10853 webecray
10854 #else
10855 wenotbecray
10856 #endif
10858 _ACEOF
10859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10860 egrep "webecray" >/dev/null 2>&1; then
10861 ac_cv_os_cray=yes
10862 else
10863 ac_cv_os_cray=no
10865 rm -f conftest*
10868 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10869 echo "${ECHO_T}$ac_cv_os_cray" >&6
10870 if test $ac_cv_os_cray = yes; then
10871 for ac_func in _getb67 GETB67 getb67; do
10872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10873 echo "$as_me:$LINENO: checking for $ac_func" >&5
10874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10875 if eval "test \"\${$as_ac_var+set}\" = set"; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878 cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 #include "confdefs.h"
10881 /* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char $ac_func (); below. */
10883 #include <assert.h>
10884 /* Override any gcc2 internal prototype to avoid an error. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char $ac_func ();
10891 char (*f) ();
10893 #ifdef F77_DUMMY_MAIN
10894 # ifdef __cplusplus
10895 extern "C"
10896 # endif
10897 int F77_DUMMY_MAIN() { return 1; }
10898 #endif
10900 main ()
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906 choke me
10907 #else
10908 f = $ac_func;
10909 #endif
10912 return 0;
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10917 (eval $ac_link) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -s conftest$ac_exeext'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 eval "$as_ac_var=yes"
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 eval "$as_ac_var=no"
10933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10937 if test `eval echo '${'$as_ac_var'}'` = yes; then
10939 cat >>confdefs.h <<_ACEOF
10940 #define CRAY_STACKSEG_END $ac_func
10941 _ACEOF
10943 break
10946 done
10949 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10950 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10951 if test "${ac_cv_c_stack_direction+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954 if test "$cross_compiling" = yes; then
10955 ac_cv_c_stack_direction=0
10956 else
10957 cat >conftest.$ac_ext <<_ACEOF
10958 #line $LINENO "configure"
10959 #include "confdefs.h"
10961 find_stack_direction ()
10963 static char *addr = 0;
10964 auto char dummy;
10965 if (addr == 0)
10967 addr = &dummy;
10968 return find_stack_direction ();
10970 else
10971 return (&dummy > addr) ? 1 : -1;
10975 main ()
10977 exit (find_stack_direction () < 0);
10979 _ACEOF
10980 rm -f conftest$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982 (eval $ac_link) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_c_stack_direction=1
10992 else
10993 echo "$as_me: program exited with status $ac_status" >&5
10994 echo "$as_me: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10996 ( exit $ac_status )
10997 ac_cv_c_stack_direction=-1
10999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11002 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11003 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11005 cat >>confdefs.h <<_ACEOF
11006 #define STACK_DIRECTION $ac_cv_c_stack_direction
11007 _ACEOF
11058 for ac_func in \
11059 __libc_fork \
11060 _lwp_create \
11061 _pclose \
11062 _popen \
11063 _snprintf \
11064 _stricmp \
11065 _strnicmp \
11066 chsize \
11067 clone \
11068 ecvt \
11069 finite \
11070 fpclass \
11071 ftruncate \
11072 ftruncate64 \
11073 getnetbyaddr \
11074 getnetbyname \
11075 getpagesize \
11076 getprotobyname \
11077 getprotobynumber \
11078 getservbyport \
11079 getsockopt \
11080 inet_network \
11081 lseek64 \
11082 lstat \
11083 memmove \
11084 mmap \
11085 pclose \
11086 popen \
11087 pread \
11088 pwrite \
11089 rfork \
11090 select \
11091 sendmsg \
11092 settimeofday \
11093 sigaltstack \
11094 snprintf \
11095 statfs \
11096 strcasecmp \
11097 strerror \
11098 strncasecmp \
11099 tcgetattr \
11100 timegm \
11101 usleep \
11102 vfscanf \
11103 wait4 \
11104 waitpid \
11107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11108 echo "$as_me:$LINENO: checking for $ac_func" >&5
11109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11110 if eval "test \"\${$as_ac_var+set}\" = set"; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 cat >conftest.$ac_ext <<_ACEOF
11114 #line $LINENO "configure"
11115 #include "confdefs.h"
11116 /* System header to define __stub macros and hopefully few prototypes,
11117 which can conflict with char $ac_func (); below. */
11118 #include <assert.h>
11119 /* Override any gcc2 internal prototype to avoid an error. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11125 char $ac_func ();
11126 char (*f) ();
11128 #ifdef F77_DUMMY_MAIN
11129 # ifdef __cplusplus
11130 extern "C"
11131 # endif
11132 int F77_DUMMY_MAIN() { return 1; }
11133 #endif
11135 main ()
11137 /* The GNU C library defines this for functions which it implements
11138 to always fail with ENOSYS. Some functions are actually named
11139 something starting with __ and the normal name is an alias. */
11140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141 choke me
11142 #else
11143 f = $ac_func;
11144 #endif
11147 return 0;
11149 _ACEOF
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11152 (eval $ac_link) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 eval "$as_ac_var=yes"
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 eval "$as_ac_var=no"
11168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11172 if test `eval echo '${'$as_ac_var'}'` = yes; then
11173 cat >>confdefs.h <<_ACEOF
11174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11175 _ACEOF
11178 done
11248 for ac_header in \
11249 arpa/inet.h \
11250 arpa/nameser.h \
11251 direct.h \
11252 elf.h \
11253 float.h \
11254 ieeefp.h \
11255 io.h \
11256 libio.h \
11257 libutil.h \
11258 link.h \
11259 linux/cdrom.h \
11260 linux/hdreg.h \
11261 linux/input.h \
11262 linux/joystick.h \
11263 linux/major.h \
11264 linux/param.h \
11265 linux/serial.h \
11266 linux/ucdrom.h \
11267 net/if.h \
11268 netdb.h \
11269 netinet/in.h \
11270 netinet/in_systm.h \
11271 netinet/ip.h \
11272 netinet/tcp.h \
11273 pty.h \
11274 resolv.h \
11275 sched.h \
11276 scsi/sg.h \
11277 socket.h \
11278 stdint.h \
11279 strings.h \
11280 sys/cdio.h \
11281 sys/errno.h \
11282 sys/file.h \
11283 sys/filio.h \
11284 sys/inttypes.h \
11285 sys/ioctl.h \
11286 sys/ipc.h \
11287 sys/link.h \
11288 sys/lwp.h \
11289 sys/mman.h \
11290 sys/modem.h \
11291 sys/mount.h \
11292 sys/msg.h \
11293 sys/param.h \
11294 sys/ptrace.h \
11295 sys/reg.h \
11296 sys/shm.h \
11297 sys/signal.h \
11298 sys/socket.h \
11299 sys/sockio.h \
11300 sys/statfs.h \
11301 sys/strtio.h \
11302 sys/syscall.h \
11303 sys/sysctl.h \
11304 sys/time.h \
11305 sys/user.h \
11306 sys/v86.h \
11307 sys/v86intr.h \
11308 sys/vfs.h \
11309 sys/vm86.h \
11310 sys/wait.h \
11311 syscall.h \
11312 termios.h \
11313 ucontext.h \
11314 unistd.h \
11317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11319 echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11326 else
11327 # Is the header compilable?
11328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 #include "confdefs.h"
11333 $ac_includes_default
11334 #include <$ac_header>
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11338 (eval $ac_compile) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_header_compiler=yes
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11352 ac_header_compiler=no
11354 rm -f conftest.$ac_objext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11356 echo "${ECHO_T}$ac_header_compiler" >&6
11358 # Is the header present?
11359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11361 cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 #include "confdefs.h"
11364 #include <$ac_header>
11365 _ACEOF
11366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11368 ac_status=$?
11369 egrep -v '^ *\+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 else
11377 ac_cpp_err=
11379 else
11380 ac_cpp_err=yes
11382 if test -z "$ac_cpp_err"; then
11383 ac_header_preproc=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11387 ac_header_preproc=no
11389 rm -f conftest.err conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc in
11395 yes:no )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11400 no:yes )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11407 esac
11408 echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 eval "$as_ac_Header=$ac_header_preproc"
11415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422 _ACEOF
11426 done
11428 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11429 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11430 if test "${ac_cv_header_stat_broken+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433 cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 #include "confdefs.h"
11436 #include <sys/types.h>
11437 #include <sys/stat.h>
11439 #if defined(S_ISBLK) && defined(S_IFDIR)
11440 # if S_ISBLK (S_IFDIR)
11441 You lose.
11442 # endif
11443 #endif
11445 #if defined(S_ISBLK) && defined(S_IFCHR)
11446 # if S_ISBLK (S_IFCHR)
11447 You lose.
11448 # endif
11449 #endif
11451 #if defined(S_ISLNK) && defined(S_IFREG)
11452 # if S_ISLNK (S_IFREG)
11453 You lose.
11454 # endif
11455 #endif
11457 #if defined(S_ISSOCK) && defined(S_IFREG)
11458 # if S_ISSOCK (S_IFREG)
11459 You lose.
11460 # endif
11461 #endif
11463 _ACEOF
11464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 egrep "You lose" >/dev/null 2>&1; then
11466 ac_cv_header_stat_broken=yes
11467 else
11468 ac_cv_header_stat_broken=no
11470 rm -f conftest*
11473 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11474 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11475 if test $ac_cv_header_stat_broken = yes; then
11477 cat >>confdefs.h <<\_ACEOF
11478 #define STAT_MACROS_BROKEN 1
11479 _ACEOF
11485 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11486 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11487 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490 ac_cv_prog_cc_stdc=no
11491 ac_save_CC=$CC
11492 cat >conftest.$ac_ext <<_ACEOF
11493 #line $LINENO "configure"
11494 #include "confdefs.h"
11495 #include <stdarg.h>
11496 #include <stdio.h>
11497 #include <sys/types.h>
11498 #include <sys/stat.h>
11499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11500 struct buf { int x; };
11501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11502 static char *e (p, i)
11503 char **p;
11504 int i;
11506 return p[i];
11508 static char *f (char * (*g) (char **, int), char **p, ...)
11510 char *s;
11511 va_list v;
11512 va_start (v,p);
11513 s = g (p, va_arg (v,int));
11514 va_end (v);
11515 return s;
11517 int test (int i, double x);
11518 struct s1 {int (*f) (int a);};
11519 struct s2 {int (*f) (double a);};
11520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11521 int argc;
11522 char **argv;
11523 #ifdef F77_DUMMY_MAIN
11524 # ifdef __cplusplus
11525 extern "C"
11526 # endif
11527 int F77_DUMMY_MAIN() { return 1; }
11528 #endif
11530 main ()
11532 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11534 return 0;
11536 _ACEOF
11537 # Don't try gcc -ansi; that turns off useful extensions and
11538 # breaks some systems' header files.
11539 # AIX -qlanglvl=ansi
11540 # Ultrix and OSF/1 -std1
11541 # HP-UX 10.20 and later -Ae
11542 # HP-UX older versions -Aa -D_HPUX_SOURCE
11543 # SVR4 -Xc -D__EXTENSIONS__
11544 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11546 CC="$ac_save_CC $ac_arg"
11547 rm -f conftest.$ac_objext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11549 (eval $ac_compile) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -s conftest.$ac_objext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_cv_prog_cc_stdc=$ac_arg
11560 break
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11565 rm -f conftest.$ac_objext
11566 done
11567 rm -f conftest.$ac_ext conftest.$ac_objext
11568 CC=$ac_save_CC
11572 case "x$ac_cv_prog_cc_stdc" in
11573 x|xno)
11574 echo "$as_me:$LINENO: result: none needed" >&5
11575 echo "${ECHO_T}none needed" >&6 ;;
11577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11579 CC="$CC $ac_cv_prog_cc_stdc" ;;
11580 esac
11582 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11584 if test "${ac_cv_c_const+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11589 #include "confdefs.h"
11591 #ifdef F77_DUMMY_MAIN
11592 # ifdef __cplusplus
11593 extern "C"
11594 # endif
11595 int F77_DUMMY_MAIN() { return 1; }
11596 #endif
11598 main ()
11600 /* FIXME: Include the comments suggested by Paul. */
11601 #ifndef __cplusplus
11602 /* Ultrix mips cc rejects this. */
11603 typedef int charset[2];
11604 const charset x;
11605 /* SunOS 4.1.1 cc rejects this. */
11606 char const *const *ccp;
11607 char **p;
11608 /* NEC SVR4.0.2 mips cc rejects this. */
11609 struct point {int x, y;};
11610 static struct point const zero = {0,0};
11611 /* AIX XL C 1.02.0.0 rejects this.
11612 It does not let you subtract one const X* pointer from another in
11613 an arm of an if-expression whose if-part is not a constant
11614 expression */
11615 const char *g = "string";
11616 ccp = &g + (g ? g-g : 0);
11617 /* HPUX 7.0 cc rejects these. */
11618 ++ccp;
11619 p = (char**) ccp;
11620 ccp = (char const *const *) p;
11621 { /* SCO 3.2v4 cc rejects this. */
11622 char *t;
11623 char const *s = 0 ? (char *) 0 : (char const *) 0;
11625 *t++ = 0;
11627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11628 int x[] = {25, 17};
11629 const int *foo = &x[0];
11630 ++foo;
11632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11633 typedef const int *iptr;
11634 iptr p = 0;
11635 ++p;
11637 { /* AIX XL C 1.02.0.0 rejects this saying
11638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11639 struct s { int j; const int *ap[3]; };
11640 struct s *b; b->j = 5;
11642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11643 const int foo = 10;
11645 #endif
11648 return 0;
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_c_const=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 ac_cv_c_const=no
11669 rm -f conftest.$ac_objext conftest.$ac_ext
11671 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11672 echo "${ECHO_T}$ac_cv_c_const" >&6
11673 if test $ac_cv_c_const = no; then
11675 cat >>confdefs.h <<\_ACEOF
11676 #define const
11677 _ACEOF
11681 echo "$as_me:$LINENO: checking for inline" >&5
11682 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11683 if test "${ac_cv_c_inline+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 ac_cv_c_inline=no
11687 for ac_kw in inline __inline__ __inline; do
11688 cat >conftest.$ac_ext <<_ACEOF
11689 #line $LINENO "configure"
11690 #include "confdefs.h"
11691 #ifndef __cplusplus
11692 static $ac_kw int static_foo () {return 0; }
11693 $ac_kw int foo () {return 0; }
11694 #endif
11696 _ACEOF
11697 rm -f conftest.$ac_objext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_cv_c_inline=$ac_kw; break
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11715 done
11718 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11719 echo "${ECHO_T}$ac_cv_c_inline" >&6
11720 case $ac_cv_c_inline in
11721 inline | yes) ;;
11723 cat >>confdefs.h <<\_ACEOF
11724 #define inline
11725 _ACEOF
11727 *) cat >>confdefs.h <<_ACEOF
11728 #define inline $ac_cv_c_inline
11729 _ACEOF
11731 esac
11733 echo "$as_me:$LINENO: checking for mode_t" >&5
11734 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11735 if test "${ac_cv_type_mode_t+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 cat >conftest.$ac_ext <<_ACEOF
11739 #line $LINENO "configure"
11740 #include "confdefs.h"
11741 $ac_includes_default
11742 #ifdef F77_DUMMY_MAIN
11743 # ifdef __cplusplus
11744 extern "C"
11745 # endif
11746 int F77_DUMMY_MAIN() { return 1; }
11747 #endif
11749 main ()
11751 if ((mode_t *) 0)
11752 return 0;
11753 if (sizeof (mode_t))
11754 return 0;
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761 (eval $ac_compile) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_type_mode_t=yes
11772 else
11773 echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 ac_cv_type_mode_t=no
11777 rm -f conftest.$ac_objext conftest.$ac_ext
11779 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11780 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11781 if test $ac_cv_type_mode_t = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define HAVE_MODE_T 1
11785 _ACEOF
11789 echo "$as_me:$LINENO: checking for off_t" >&5
11790 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11791 if test "${ac_cv_type_off_t+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794 cat >conftest.$ac_ext <<_ACEOF
11795 #line $LINENO "configure"
11796 #include "confdefs.h"
11797 $ac_includes_default
11798 #ifdef F77_DUMMY_MAIN
11799 # ifdef __cplusplus
11800 extern "C"
11801 # endif
11802 int F77_DUMMY_MAIN() { return 1; }
11803 #endif
11805 main ()
11807 if ((off_t *) 0)
11808 return 0;
11809 if (sizeof (off_t))
11810 return 0;
11812 return 0;
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -s conftest.$ac_objext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_cv_type_off_t=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 ac_cv_type_off_t=no
11833 rm -f conftest.$ac_objext conftest.$ac_ext
11835 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11836 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11837 if test $ac_cv_type_off_t = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define HAVE_OFF_T 1
11841 _ACEOF
11845 echo "$as_me:$LINENO: checking for pid_t" >&5
11846 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11847 if test "${ac_cv_type_pid_t+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850 cat >conftest.$ac_ext <<_ACEOF
11851 #line $LINENO "configure"
11852 #include "confdefs.h"
11853 $ac_includes_default
11854 #ifdef F77_DUMMY_MAIN
11855 # ifdef __cplusplus
11856 extern "C"
11857 # endif
11858 int F77_DUMMY_MAIN() { return 1; }
11859 #endif
11861 main ()
11863 if ((pid_t *) 0)
11864 return 0;
11865 if (sizeof (pid_t))
11866 return 0;
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_type_pid_t=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11887 ac_cv_type_pid_t=no
11889 rm -f conftest.$ac_objext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11892 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11893 if test $ac_cv_type_pid_t = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_PID_T 1
11897 _ACEOF
11901 echo "$as_me:$LINENO: checking for size_t" >&5
11902 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11903 if test "${ac_cv_type_size_t+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 cat >conftest.$ac_ext <<_ACEOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909 $ac_includes_default
11910 #ifdef F77_DUMMY_MAIN
11911 # ifdef __cplusplus
11912 extern "C"
11913 # endif
11914 int F77_DUMMY_MAIN() { return 1; }
11915 #endif
11917 main ()
11919 if ((size_t *) 0)
11920 return 0;
11921 if (sizeof (size_t))
11922 return 0;
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_type_size_t=yes
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 ac_cv_type_size_t=no
11945 rm -f conftest.$ac_objext conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11948 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11949 if test $ac_cv_type_size_t = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define HAVE_SIZE_T 1
11953 _ACEOF
11957 echo "$as_me:$LINENO: checking for ssize_t" >&5
11958 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11959 if test "${ac_cv_type_ssize_t+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #line $LINENO "configure"
11964 #include "confdefs.h"
11965 $ac_includes_default
11966 #ifdef F77_DUMMY_MAIN
11967 # ifdef __cplusplus
11968 extern "C"
11969 # endif
11970 int F77_DUMMY_MAIN() { return 1; }
11971 #endif
11973 main ()
11975 if ((ssize_t *) 0)
11976 return 0;
11977 if (sizeof (ssize_t))
11978 return 0;
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_type_ssize_t=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 ac_cv_type_ssize_t=no
12001 rm -f conftest.$ac_objext conftest.$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12004 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12005 if test $ac_cv_type_ssize_t = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define HAVE_SSIZE_T 1
12009 _ACEOF
12014 echo "$as_me:$LINENO: checking for long long" >&5
12015 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12016 if test "${ac_cv_type_long_long+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019 cat >conftest.$ac_ext <<_ACEOF
12020 #line $LINENO "configure"
12021 #include "confdefs.h"
12022 $ac_includes_default
12023 #ifdef F77_DUMMY_MAIN
12024 # ifdef __cplusplus
12025 extern "C"
12026 # endif
12027 int F77_DUMMY_MAIN() { return 1; }
12028 #endif
12030 main ()
12032 if ((long long *) 0)
12033 return 0;
12034 if (sizeof (long long))
12035 return 0;
12037 return 0;
12039 _ACEOF
12040 rm -f conftest.$ac_objext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_cv_type_long_long=yes
12053 else
12054 echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 ac_cv_type_long_long=no
12058 rm -f conftest.$ac_objext conftest.$ac_ext
12060 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12061 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12063 echo "$as_me:$LINENO: checking size of long long" >&5
12064 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12065 if test "${ac_cv_sizeof_long_long+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 if test "$ac_cv_type_long_long" = yes; then
12069 # The cast to unsigned long works around a bug in the HP C Compiler
12070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12072 # This bug is HP SR number 8606223364.
12073 if test "$cross_compiling" = yes; then
12074 # Depending upon the size, compute the lo and hi bounds.
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 $ac_includes_default
12079 #ifdef F77_DUMMY_MAIN
12080 # ifdef __cplusplus
12081 extern "C"
12082 # endif
12083 int F77_DUMMY_MAIN() { return 1; }
12084 #endif
12086 main ()
12088 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12089 test_array [0] = 0
12092 return 0;
12094 _ACEOF
12095 rm -f conftest.$ac_objext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12097 (eval $ac_compile) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -s conftest.$ac_objext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_lo=0 ac_mid=0
12108 while :; do
12109 cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12112 $ac_includes_default
12113 #ifdef F77_DUMMY_MAIN
12114 # ifdef __cplusplus
12115 extern "C"
12116 # endif
12117 int F77_DUMMY_MAIN() { return 1; }
12118 #endif
12120 main ()
12122 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12123 test_array [0] = 0
12126 return 0;
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_hi=$ac_mid; break
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 ac_lo=`expr $ac_mid + 1`
12146 if test $ac_lo -le $ac_mid; then
12147 ac_lo= ac_hi=
12148 break
12150 ac_mid=`expr 2 '*' $ac_mid + 1`
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12153 done
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 cat >conftest.$ac_ext <<_ACEOF
12158 #line $LINENO "configure"
12159 #include "confdefs.h"
12160 $ac_includes_default
12161 #ifdef F77_DUMMY_MAIN
12162 # ifdef __cplusplus
12163 extern "C"
12164 # endif
12165 int F77_DUMMY_MAIN() { return 1; }
12166 #endif
12168 main ()
12170 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12171 test_array [0] = 0
12174 return 0;
12176 _ACEOF
12177 rm -f conftest.$ac_objext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_hi=-1 ac_mid=-1
12190 while :; do
12191 cat >conftest.$ac_ext <<_ACEOF
12192 #line $LINENO "configure"
12193 #include "confdefs.h"
12194 $ac_includes_default
12195 #ifdef F77_DUMMY_MAIN
12196 # ifdef __cplusplus
12197 extern "C"
12198 # endif
12199 int F77_DUMMY_MAIN() { return 1; }
12200 #endif
12202 main ()
12204 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12205 test_array [0] = 0
12208 return 0;
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -s conftest.$ac_objext'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_lo=$ac_mid; break
12224 else
12225 echo "$as_me: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 ac_hi=`expr '(' $ac_mid ')' - 1`
12228 if test $ac_mid -le $ac_hi; then
12229 ac_lo= ac_hi=
12230 break
12232 ac_mid=`expr 2 '*' $ac_mid`
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 done
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12239 ac_lo= ac_hi=
12241 rm -f conftest.$ac_objext conftest.$ac_ext
12243 rm -f conftest.$ac_objext conftest.$ac_ext
12244 # Binary search between lo and hi bounds.
12245 while test "x$ac_lo" != "x$ac_hi"; do
12246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12247 cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12249 #include "confdefs.h"
12250 $ac_includes_default
12251 #ifdef F77_DUMMY_MAIN
12252 # ifdef __cplusplus
12253 extern "C"
12254 # endif
12255 int F77_DUMMY_MAIN() { return 1; }
12256 #endif
12258 main ()
12260 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12261 test_array [0] = 0
12264 return 0;
12266 _ACEOF
12267 rm -f conftest.$ac_objext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -s conftest.$ac_objext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_hi=$ac_mid
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12283 ac_lo=`expr '(' $ac_mid ')' + 1`
12285 rm -f conftest.$ac_objext conftest.$ac_ext
12286 done
12287 case $ac_lo in
12288 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12290 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12291 { (exit 1); exit 1; }; } ;;
12292 esac
12293 else
12294 if test "$cross_compiling" = yes; then
12295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12296 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12297 { (exit 1); exit 1; }; }
12298 else
12299 cat >conftest.$ac_ext <<_ACEOF
12300 #line $LINENO "configure"
12301 #include "confdefs.h"
12302 $ac_includes_default
12303 long longval () { return (long) (sizeof (long long)); }
12304 unsigned long ulongval () { return (long) (sizeof (long long)); }
12305 #include <stdio.h>
12306 #include <stdlib.h>
12307 #ifdef F77_DUMMY_MAIN
12308 # ifdef __cplusplus
12309 extern "C"
12310 # endif
12311 int F77_DUMMY_MAIN() { return 1; }
12312 #endif
12314 main ()
12317 FILE *f = fopen ("conftest.val", "w");
12318 if (! f)
12319 exit (1);
12320 if (((long) (sizeof (long long))) < 0)
12322 long i = longval ();
12323 if (i != ((long) (sizeof (long long))))
12324 exit (1);
12325 fprintf (f, "%ld\n", i);
12327 else
12329 unsigned long i = ulongval ();
12330 if (i != ((long) (sizeof (long long))))
12331 exit (1);
12332 fprintf (f, "%lu\n", i);
12334 exit (ferror (f) || fclose (f) != 0);
12337 return 0;
12339 _ACEOF
12340 rm -f conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342 (eval $ac_link) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 ac_cv_sizeof_long_long=`cat conftest.val`
12352 else
12353 echo "$as_me: program exited with status $ac_status" >&5
12354 echo "$as_me: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12356 ( exit $ac_status )
12357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12358 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12359 { (exit 1); exit 1; }; }
12361 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12364 rm -f conftest.val
12365 else
12366 ac_cv_sizeof_long_long=0
12369 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12370 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12371 cat >>confdefs.h <<_ACEOF
12372 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12373 _ACEOF
12377 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12378 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12379 if test "${wine_cv_linux_input_h+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 cat >conftest.$ac_ext <<_ACEOF
12383 #line $LINENO "configure"
12384 #include "confdefs.h"
12386 #include <linux/input.h>
12388 #ifdef F77_DUMMY_MAIN
12389 # ifdef __cplusplus
12390 extern "C"
12391 # endif
12392 int F77_DUMMY_MAIN() { return 1; }
12393 #endif
12395 main ()
12398 int foo = EVIOCGBIT(EV_ABS,42);
12399 int bar = BTN_PINKIE;
12400 int fortytwo = 42;
12403 return 0;
12405 _ACEOF
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest.$ac_objext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 wine_cv_linux_input_h=yes
12419 else
12420 echo "$as_me: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12422 wine_cv_linux_input_h=no
12424 rm -f conftest.$ac_objext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12428 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12429 if test "$wine_cv_linux_input_h" = "yes"
12430 then
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_CORRECT_LINUXINPUT_H 1
12434 _ACEOF
12439 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
12440 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12441 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 #include "confdefs.h"
12448 #include <netdb.h>
12450 #ifdef F77_DUMMY_MAIN
12451 # ifdef __cplusplus
12452 extern "C"
12453 # endif
12454 int F77_DUMMY_MAIN() { return 1; }
12455 #endif
12457 main ()
12460 char *name=NULL;
12461 struct hostent he;
12462 struct hostent *result;
12463 char *buf=NULL;
12464 int bufsize=0;
12465 int res,errnr;
12466 char *addr=NULL;
12467 int addrlen=0;
12468 int addrtype=0;
12469 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12470 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
12473 return 0;
12475 _ACEOF
12476 rm -f conftest.$ac_objext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 wine_cv_linux_gethostbyname_r_6=yes
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12492 wine_cv_linux_gethostbyname_r_6=no
12495 rm -f conftest.$ac_objext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
12499 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
12500 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12501 then
12503 cat >>confdefs.h <<\_ACEOF
12504 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
12505 _ACEOF
12509 if test "$ac_cv_header_linux_joystick_h" = "yes"
12510 then
12511 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
12512 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12513 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 cat >conftest.$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12518 #include "confdefs.h"
12520 #include <sys/ioctl.h>
12521 #include <linux/joystick.h>
12523 struct js_event blub;
12524 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12525 #error "no 2.2 header"
12526 #endif
12528 #ifdef F77_DUMMY_MAIN
12529 # ifdef __cplusplus
12530 extern "C"
12531 # endif
12532 int F77_DUMMY_MAIN() { return 1; }
12533 #endif
12535 main ()
12537 /*empty*/
12539 return 0;
12541 _ACEOF
12542 rm -f conftest.$ac_objext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 wine_cv_linux_joystick_22_api=yes
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12558 wine_cv_linux_joystick_22_api=no
12560 rm -f conftest.$ac_objext conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
12564 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
12565 if test "$wine_cv_linux_joystick_22_api" = "yes"
12566 then
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_LINUX_22_JOYSTICK_API 1
12570 _ACEOF
12576 if test "$ac_cv_header_sys_vfs_h" = "yes"
12577 then
12578 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
12579 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12580 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583 cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12585 #include "confdefs.h"
12587 #include <sys/types.h>
12588 #ifdef HAVE_SYS_PARAM_H
12589 # include <sys/param.h>
12590 #endif
12591 #include <sys/vfs.h>
12593 #ifdef F77_DUMMY_MAIN
12594 # ifdef __cplusplus
12595 extern "C"
12596 # endif
12597 int F77_DUMMY_MAIN() { return 1; }
12598 #endif
12600 main ()
12603 struct statfs stfs;
12605 memset(&stfs,0,sizeof(stfs));
12608 return 0;
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 wine_cv_sys_vfs_has_statfs=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 wine_cv_sys_vfs_has_statfs=no
12630 rm -f conftest.$ac_objext conftest.$ac_ext
12633 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
12634 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
12635 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12636 then
12638 cat >>confdefs.h <<\_ACEOF
12639 #define STATFS_DEFINED_BY_SYS_VFS 1
12640 _ACEOF
12645 if test "$ac_cv_header_sys_statfs_h" = "yes"
12646 then
12647 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
12648 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12649 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652 cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12654 #include "confdefs.h"
12656 #include <sys/types.h>
12657 #ifdef HAVE_SYS_PARAM_H
12658 # include <sys/param.h>
12659 #endif
12660 #include <sys/statfs.h>
12662 #ifdef F77_DUMMY_MAIN
12663 # ifdef __cplusplus
12664 extern "C"
12665 # endif
12666 int F77_DUMMY_MAIN() { return 1; }
12667 #endif
12669 main ()
12672 struct statfs stfs;
12675 return 0;
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 wine_cv_sys_statfs_has_statfs=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 wine_cv_sys_statfs_has_statfs=no
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12700 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
12701 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
12702 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12703 then
12705 cat >>confdefs.h <<\_ACEOF
12706 #define STATFS_DEFINED_BY_SYS_STATFS 1
12707 _ACEOF
12712 if test "$ac_cv_header_sys_mount_h" = "yes"
12713 then
12714 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
12715 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12716 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 cat >conftest.$ac_ext <<_ACEOF
12720 #line $LINENO "configure"
12721 #include "confdefs.h"
12723 #include <sys/types.h>
12724 #ifdef HAVE_SYS_PARAM_H
12725 # include <sys/param.h>
12726 #endif
12727 #include <sys/mount.h>
12729 #ifdef F77_DUMMY_MAIN
12730 # ifdef __cplusplus
12731 extern "C"
12732 # endif
12733 int F77_DUMMY_MAIN() { return 1; }
12734 #endif
12736 main ()
12739 struct statfs stfs;
12742 return 0;
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 wine_cv_sys_mount_has_statfs=yes
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12761 wine_cv_sys_mount_has_statfs=no
12764 rm -f conftest.$ac_objext conftest.$ac_ext
12767 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
12768 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
12769 if test "$wine_cv_sys_mount_has_statfs" = "yes"
12770 then
12772 cat >>confdefs.h <<\_ACEOF
12773 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12774 _ACEOF
12780 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12781 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12782 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12787 #include "confdefs.h"
12788 #include <sys/types.h>
12789 #ifdef HAVE_SYS_PARAM_H
12790 # include <sys/param.h>
12791 #endif
12792 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12793 # include <sys/mount.h>
12794 #else
12795 # ifdef STATFS_DEFINED_BY_SYS_VFS
12796 # include <sys/vfs.h>
12797 # else
12798 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12799 # include <sys/statfs.h>
12800 # endif
12801 # endif
12802 #endif
12803 #ifdef F77_DUMMY_MAIN
12804 # ifdef __cplusplus
12805 extern "C"
12806 # endif
12807 int F77_DUMMY_MAIN() { return 1; }
12808 #endif
12810 main ()
12812 struct statfs s; s.f_bfree = 0
12814 return 0;
12816 _ACEOF
12817 rm -f conftest.$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_cv_c_statfs_f_bfree="yes"
12830 else
12831 echo "$as_me: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12833 ac_cv_c_statfs_f_bfree="no"
12835 rm -f conftest.$ac_objext conftest.$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12838 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12839 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12841 cat >>confdefs.h <<\_ACEOF
12842 #define STATFS_HAS_BFREE 1
12843 _ACEOF
12849 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12850 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12851 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 else
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12857 #include <sys/types.h>
12858 #ifdef HAVE_SYS_PARAM_H
12859 # include <sys/param.h>
12860 #endif
12861 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12862 # include <sys/mount.h>
12863 #else
12864 # ifdef STATFS_DEFINED_BY_SYS_VFS
12865 # include <sys/vfs.h>
12866 # else
12867 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12868 # include <sys/statfs.h>
12869 # endif
12870 # endif
12871 #endif
12872 #ifdef F77_DUMMY_MAIN
12873 # ifdef __cplusplus
12874 extern "C"
12875 # endif
12876 int F77_DUMMY_MAIN() { return 1; }
12877 #endif
12879 main ()
12881 struct statfs s; s.f_bavail = 0
12883 return 0;
12885 _ACEOF
12886 rm -f conftest.$ac_objext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12888 (eval $ac_compile) 2>&5
12889 ac_status=$?
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest.$ac_objext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_c_statfs_f_bavail="yes"
12899 else
12900 echo "$as_me: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 ac_cv_c_statfs_f_bavail="no"
12904 rm -f conftest.$ac_objext conftest.$ac_ext
12906 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
12907 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12908 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12910 cat >>confdefs.h <<\_ACEOF
12911 #define STATFS_HAS_BAVAIL 1
12912 _ACEOF
12918 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
12919 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12920 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 #include "confdefs.h"
12926 #include <sys/types.h>
12927 #include <sys/socket.h>
12928 #ifdef F77_DUMMY_MAIN
12929 # ifdef __cplusplus
12930 extern "C"
12931 # endif
12932 int F77_DUMMY_MAIN() { return 1; }
12933 #endif
12935 main ()
12937 struct msghdr s; s.msg_accrights = 0
12939 return 0;
12941 _ACEOF
12942 rm -f conftest.$ac_objext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -s conftest.$ac_objext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_c_msghdr_msg_accrights="yes"
12955 else
12956 echo "$as_me: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 ac_cv_c_msghdr_msg_accrights="no"
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12962 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
12963 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12964 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_MSGHDR_ACCRIGHTS 1
12968 _ACEOF
12974 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
12975 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12976 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12982 #include <sys/types.h>
12983 #include <sys/socket.h>
12984 #ifdef F77_DUMMY_MAIN
12985 # ifdef __cplusplus
12986 extern "C"
12987 # endif
12988 int F77_DUMMY_MAIN() { return 1; }
12989 #endif
12991 main ()
12993 struct sockaddr s; s.sa_len = 0
12995 return 0;
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest.$ac_objext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_c_sockaddr_sa_len="yes"
13011 else
13012 echo "$as_me: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13014 ac_cv_c_sockaddr_sa_len="no"
13016 rm -f conftest.$ac_objext conftest.$ac_ext
13018 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13019 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13020 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_SOCKADDR_SA_LEN 1
13024 _ACEOF
13030 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13031 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13032 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 #line $LINENO "configure"
13037 #include "confdefs.h"
13038 #include <sys/types.h>
13039 #include <sys/socket.h>
13040 #include <sys/un.h>
13041 #ifdef F77_DUMMY_MAIN
13042 # ifdef __cplusplus
13043 extern "C"
13044 # endif
13045 int F77_DUMMY_MAIN() { return 1; }
13046 #endif
13048 main ()
13050 struct sockaddr_un s; s.sun_len = 0
13052 return 0;
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_cv_c_sockaddr_un_sun_len="yes"
13068 else
13069 echo "$as_me: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13071 ac_cv_c_sockaddr_un_sun_len="no"
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13075 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13076 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13077 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_SOCKADDR_SUN_LEN 1
13081 _ACEOF
13088 case $host_cpu in
13089 *i345678986* )
13090 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13091 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13092 if test "${ac_cv_cpp_def_i386+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 cat >conftest.$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13097 #include "confdefs.h"
13098 #ifndef __i386__
13100 #endif
13101 _ACEOF
13102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13103 egrep "yes" >/dev/null 2>&1; then
13104 ac_cv_cpp_def_i386="yes"
13105 else
13106 ac_cv_cpp_def_i386="no"
13108 rm -f conftest*
13111 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13112 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13114 esac
13115 if test "$ac_cv_cpp_def_i386" = "yes"
13116 then
13117 CFLAGS="$CFLAGS -D__i386__"
13118 LINTFLAGS="$LINTFLAGS -D__i386__"
13125 ac_config_commands="$ac_config_commands controls"
13127 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13129 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13131 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13133 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13135 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13137 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13139 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13141 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13143 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13145 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13147 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13149 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13151 ac_config_commands="$ac_config_commands dlls/kernel/messages"
13153 ac_config_commands="$ac_config_commands dlls/kernel/tests"
13155 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13157 ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13159 ac_config_commands="$ac_config_commands dlls/user/dde"
13161 ac_config_commands="$ac_config_commands dlls/user/resources"
13163 ac_config_commands="$ac_config_commands dlls/user/tests"
13165 ac_config_commands="$ac_config_commands dlls/wineps/data"
13167 ac_config_commands="$ac_config_commands dlls/winsock/tests"
13169 ac_config_commands="$ac_config_commands files"
13171 ac_config_commands="$ac_config_commands graphics"
13173 ac_config_commands="$ac_config_commands graphics/x11drv"
13175 ac_config_commands="$ac_config_commands if1632"
13177 ac_config_commands="$ac_config_commands include/wine"
13179 ac_config_commands="$ac_config_commands loader"
13181 ac_config_commands="$ac_config_commands loader/ne"
13183 ac_config_commands="$ac_config_commands memory"
13185 ac_config_commands="$ac_config_commands misc"
13187 ac_config_commands="$ac_config_commands msdos"
13189 ac_config_commands="$ac_config_commands objects"
13191 ac_config_commands="$ac_config_commands programs/regapi/tests"
13193 ac_config_commands="$ac_config_commands programs/winetest/tests"
13195 ac_config_commands="$ac_config_commands relay32"
13197 ac_config_commands="$ac_config_commands scheduler"
13199 ac_config_commands="$ac_config_commands win32"
13201 ac_config_commands="$ac_config_commands windows"
13204 MAKE_RULES=Make.rules
13207 MAKE_DLL_RULES=dlls/Makedll.rules
13210 MAKE_PROG_RULES=programs/Makeprog.rules
13213 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/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/msadp32/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 include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/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 server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
13216 cat >confcache <<\_ACEOF
13217 # This file is a shell script that caches the results of configure
13218 # tests run on this system so they can be shared between configure
13219 # scripts and configure runs, see configure's option --config-cache.
13220 # It is not useful on other systems. If it contains results you don't
13221 # want to keep, you may remove or edit it.
13223 # config.status only pays attention to the cache file if you give it
13224 # the --recheck option to rerun configure.
13226 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13228 # following values.
13230 _ACEOF
13232 # The following way of writing the cache mishandles newlines in values,
13233 # but we know of no workaround that is simple, portable, and efficient.
13234 # So, don't put newlines in cache variables' values.
13235 # Ultrix sh set writes to stderr and can't be redirected directly,
13236 # and sets the high bit in the cache file unless we assign to the vars.
13238 (set) 2>&1 |
13239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13240 *ac_space=\ *)
13241 # `set' does not quote correctly, so add quotes (double-quote
13242 # substitution turns \\\\ into \\, and sed turns \\ into \).
13243 sed -n \
13244 "s/'/'\\\\''/g;
13245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13248 # `set' quotes correctly as required by POSIX, so do not add quotes.
13249 sed -n \
13250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13252 esac;
13254 sed '
13255 t clear
13256 : clear
13257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13258 t end
13259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13260 : end' >>confcache
13261 if cmp -s $cache_file confcache; then :; else
13262 if test -w $cache_file; then
13263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13264 cat confcache >$cache_file
13265 else
13266 echo "not updating unwritable cache $cache_file"
13269 rm -f confcache
13271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13272 # Let make expand exec_prefix.
13273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13277 # trailing colons and then remove the whole line if VPATH becomes empty
13278 # (actually we leave an empty line to preserve line numbers).
13279 if test "x$srcdir" = x.; then
13280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13281 s/:*\$(srcdir):*/:/;
13282 s/:*\${srcdir}:*/:/;
13283 s/:*@srcdir@:*/:/;
13284 s/^\([^=]*=[ ]*\):*/\1/;
13285 s/:*$//;
13286 s/^[^=]*=[ ]*$//;
13290 DEFS=-DHAVE_CONFIG_H
13293 : ${CONFIG_STATUS=./config.status}
13294 ac_clean_files_save=$ac_clean_files
13295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13298 cat >$CONFIG_STATUS <<_ACEOF
13299 #! $SHELL
13300 # Generated by $as_me.
13301 # Run this file to recreate the current configuration.
13302 # Compiler output produced by configure, useful for debugging
13303 # configure, is in config.log if it exists.
13305 debug=false
13306 SHELL=\${CONFIG_SHELL-$SHELL}
13307 _ACEOF
13309 cat >>$CONFIG_STATUS <<\_ACEOF
13311 ## --------------------- ##
13312 ## M4sh Initialization. ##
13313 ## --------------------- ##
13315 # Be Bourne compatible
13316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13317 emulate sh
13318 NULLCMD=:
13319 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13320 set -o posix
13323 # NLS nuisances.
13324 # Support unset when possible.
13325 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13326 as_unset=unset
13327 else
13328 as_unset=false
13331 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13332 { $as_unset LANG || test "${LANG+set}" != set; } ||
13333 { LANG=C; export LANG; }
13334 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13335 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13336 { LC_ALL=C; export LC_ALL; }
13337 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13338 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13339 { LC_TIME=C; export LC_TIME; }
13340 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13341 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13342 { LC_CTYPE=C; export LC_CTYPE; }
13343 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13344 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13345 { LANGUAGE=C; export LANGUAGE; }
13346 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13347 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13348 { LC_COLLATE=C; export LC_COLLATE; }
13349 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13350 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13351 { LC_NUMERIC=C; export LC_NUMERIC; }
13352 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13353 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13354 { LC_MESSAGES=C; export LC_MESSAGES; }
13357 # Name of the executable.
13358 as_me=`(basename "$0") 2>/dev/null ||
13359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13360 X"$0" : 'X\(//\)$' \| \
13361 X"$0" : 'X\(/\)$' \| \
13362 . : '\(.\)' 2>/dev/null ||
13363 echo X/"$0" |
13364 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13365 /^X\/\(\/\/\)$/{ s//\1/; q; }
13366 /^X\/\(\/\).*/{ s//\1/; q; }
13367 s/.*/./; q'`
13369 # PATH needs CR, and LINENO needs CR and PATH.
13370 # Avoid depending upon Character Ranges.
13371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13374 as_cr_digits='0123456789'
13375 as_cr_alnum=$as_cr_Letters$as_cr_digits
13377 # The user is always right.
13378 if test "${PATH_SEPARATOR+set}" != set; then
13379 echo "#! /bin/sh" >conftest.sh
13380 echo "exit 0" >>conftest.sh
13381 chmod +x conftest.sh
13382 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13383 PATH_SEPARATOR=';'
13384 else
13385 PATH_SEPARATOR=:
13387 rm -f conftest.sh
13391 as_lineno_1=$LINENO
13392 as_lineno_2=$LINENO
13393 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13394 test "x$as_lineno_1" != "x$as_lineno_2" &&
13395 test "x$as_lineno_3" = "x$as_lineno_2" || {
13396 # Find who we are. Look in the path if we contain no path at all
13397 # relative or not.
13398 case $0 in
13399 *[\\/]* ) as_myself=$0 ;;
13400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13406 done
13409 esac
13410 # We did not find ourselves, most probably we were run as `sh COMMAND'
13411 # in which case we are not to be found in the path.
13412 if test "x$as_myself" = x; then
13413 as_myself=$0
13415 if test ! -f "$as_myself"; then
13416 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13417 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13418 { (exit 1); exit 1; }; }
13420 case $CONFIG_SHELL in
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for as_base in sh bash ksh sh5; do
13428 case $as_dir in
13430 if ("$as_dir/$as_base" -c '
13431 as_lineno_1=$LINENO
13432 as_lineno_2=$LINENO
13433 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13434 test "x$as_lineno_1" != "x$as_lineno_2" &&
13435 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13436 CONFIG_SHELL=$as_dir/$as_base
13437 export CONFIG_SHELL
13438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13439 fi;;
13440 esac
13441 done
13442 done
13444 esac
13446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13447 # uniformly replaced by the line number. The first 'sed' inserts a
13448 # line-number line before each line; the second 'sed' does the real
13449 # work. The second script uses 'N' to pair each line-number line
13450 # with the numbered line, and appends trailing '-' during
13451 # substitution so that $LINENO is not a special case at line end.
13452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13454 sed '=' <$as_myself |
13455 sed '
13457 s,$,-,
13458 : loop
13459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13460 t loop
13461 s,-$,,
13462 s,^['$as_cr_digits']*\n,,
13463 ' >$as_me.lineno &&
13464 chmod +x $as_me.lineno ||
13465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13467 { (exit 1); exit 1; }; }
13469 # Don't try to exec as it changes $[0], causing all sort of problems
13470 # (the dirname of $[0] is not the place where we might find the
13471 # original and so on. Autoconf is especially sensible to this).
13472 . ./$as_me.lineno
13473 # Exit status is that of the last command.
13474 exit
13478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13479 *c*,-n*) ECHO_N= ECHO_C='
13480 ' ECHO_T=' ' ;;
13481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13483 esac
13485 if expr a : '\(a\)' >/dev/null 2>&1; then
13486 as_expr=expr
13487 else
13488 as_expr=false
13491 rm -f conf$$ conf$$.exe conf$$.file
13492 echo >conf$$.file
13493 if ln -s conf$$.file conf$$ 2>/dev/null; then
13494 # We could just check for DJGPP; but this test a) works b) is more generic
13495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13496 if test -f conf$$.exe; then
13497 # Don't use ln at all; we don't have any links
13498 as_ln_s='cp -p'
13499 else
13500 as_ln_s='ln -s'
13502 elif ln conf$$.file conf$$ 2>/dev/null; then
13503 as_ln_s=ln
13504 else
13505 as_ln_s='cp -p'
13507 rm -f conf$$ conf$$.exe conf$$.file
13509 as_executable_p="test -f"
13511 # Sed expression to map a string onto a valid CPP name.
13512 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13514 # Sed expression to map a string onto a valid variable name.
13515 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13518 # IFS
13519 # We need space, tab and new line, in precisely that order.
13520 as_nl='
13522 IFS=" $as_nl"
13524 # CDPATH.
13525 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
13527 exec 6>&1
13529 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13530 # report actual input values of CONFIG_FILES etc. instead of their
13531 # values after options handling. Logging --version etc. is OK.
13532 exec 5>>config.log
13534 echo
13535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13536 ## Running $as_me. ##
13537 _ASBOX
13538 } >&5
13539 cat >&5 <<_CSEOF
13541 This file was extended by Wine $as_me 20020509, which was
13542 generated by GNU Autoconf 2.53. Invocation command line was
13544 CONFIG_FILES = $CONFIG_FILES
13545 CONFIG_HEADERS = $CONFIG_HEADERS
13546 CONFIG_LINKS = $CONFIG_LINKS
13547 CONFIG_COMMANDS = $CONFIG_COMMANDS
13548 $ $0 $@
13550 _CSEOF
13551 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13552 echo >&5
13553 _ACEOF
13555 # Files that config.status was made for.
13556 if test -n "$ac_config_files"; then
13557 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13560 if test -n "$ac_config_headers"; then
13561 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13564 if test -n "$ac_config_links"; then
13565 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13568 if test -n "$ac_config_commands"; then
13569 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13572 cat >>$CONFIG_STATUS <<\_ACEOF
13574 ac_cs_usage="\
13575 \`$as_me' instantiates files from templates according to the
13576 current configuration.
13578 Usage: $0 [OPTIONS] [FILE]...
13580 -h, --help print this help, then exit
13581 -V, --version print version number, then exit
13582 -d, --debug don't remove temporary files
13583 --recheck update $as_me by reconfiguring in the same conditions
13584 --file=FILE[:TEMPLATE]
13585 instantiate the configuration file FILE
13586 --header=FILE[:TEMPLATE]
13587 instantiate the configuration header FILE
13589 Configuration files:
13590 $config_files
13592 Configuration headers:
13593 $config_headers
13595 Configuration commands:
13596 $config_commands
13598 Report bugs to <bug-autoconf@gnu.org>."
13599 _ACEOF
13601 cat >>$CONFIG_STATUS <<_ACEOF
13602 ac_cs_version="\\
13603 Wine config.status 20020509
13604 configured by $0, generated by GNU Autoconf 2.53,
13605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13608 Free Software Foundation, Inc.
13609 This config.status script is free software; the Free Software Foundation
13610 gives unlimited permission to copy, distribute and modify it."
13611 srcdir=$srcdir
13612 INSTALL="$INSTALL"
13613 _ACEOF
13615 cat >>$CONFIG_STATUS <<\_ACEOF
13616 # If no file are specified by the user, then we need to provide default
13617 # value. By we need to know if files were specified by the user.
13618 ac_need_defaults=:
13619 while test $# != 0
13621 case $1 in
13622 --*=*)
13623 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13624 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13625 shift
13626 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13627 shift
13629 -*);;
13630 *) # This is not an option, so the user has probably given explicit
13631 # arguments.
13632 ac_need_defaults=false;;
13633 esac
13635 case $1 in
13636 # Handling of the options.
13637 _ACEOF
13638 cat >>$CONFIG_STATUS <<_ACEOF
13639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13642 _ACEOF
13643 cat >>$CONFIG_STATUS <<\_ACEOF
13644 --version | --vers* | -V )
13645 echo "$ac_cs_version"; exit 0 ;;
13646 --he | --h)
13647 # Conflict between --help and --header
13648 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13649 Try \`$0 --help' for more information." >&5
13650 echo "$as_me: error: ambiguous option: $1
13651 Try \`$0 --help' for more information." >&2;}
13652 { (exit 1); exit 1; }; };;
13653 --help | --hel | -h )
13654 echo "$ac_cs_usage"; exit 0 ;;
13655 --debug | --d* | -d )
13656 debug=: ;;
13657 --file | --fil | --fi | --f )
13658 shift
13659 CONFIG_FILES="$CONFIG_FILES $1"
13660 ac_need_defaults=false;;
13661 --header | --heade | --head | --hea )
13662 shift
13663 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13664 ac_need_defaults=false;;
13666 # This is an error.
13667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13668 Try \`$0 --help' for more information." >&5
13669 echo "$as_me: error: unrecognized option: $1
13670 Try \`$0 --help' for more information." >&2;}
13671 { (exit 1); exit 1; }; } ;;
13673 *) ac_config_targets="$ac_config_targets $1" ;;
13675 esac
13676 shift
13677 done
13679 _ACEOF
13685 cat >>$CONFIG_STATUS <<\_ACEOF
13686 for ac_config_target in $ac_config_targets
13688 case "$ac_config_target" in
13689 # Handling of arguments.
13690 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13691 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13692 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13694 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13695 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13696 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13697 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13698 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
13699 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
13700 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13701 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13702 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13703 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13704 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13705 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13706 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13707 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13708 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13709 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13710 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13711 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13712 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13713 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13714 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13715 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13716 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13717 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13718 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13719 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13720 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
13721 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
13722 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
13723 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
13724 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13725 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
13726 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
13727 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13728 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13729 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13730 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13731 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13732 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13733 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13734 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13735 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13736 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13737 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13738 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13739 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13740 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13741 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13742 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13743 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13744 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13745 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13746 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13747 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13748 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13749 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13750 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13751 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13752 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13753 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
13754 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
13755 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13756 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13757 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
13758 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
13759 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13760 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13761 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13762 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13763 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13764 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13765 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13766 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13767 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13768 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13769 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13770 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13771 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13772 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13773 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13774 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13775 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13776 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
13777 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
13778 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13779 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13780 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13781 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13782 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13783 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13784 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13785 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13786 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
13787 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13788 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
13789 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13790 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13791 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13792 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13793 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13794 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13795 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13796 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
13797 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13798 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13799 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13800 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13801 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13802 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
13803 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13804 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13805 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13806 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13807 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13808 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13809 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
13810 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13811 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13812 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13813 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13814 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13815 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13816 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13817 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13818 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13819 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13820 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13821 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13822 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
13823 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13824 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13825 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13826 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13827 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13828 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13829 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13830 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13831 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13832 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13833 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13834 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13835 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13836 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13837 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13838 "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
13839 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13840 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13841 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13842 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13843 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
13844 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
13845 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
13846 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
13847 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
13848 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13849 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
13850 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
13851 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
13852 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
13853 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
13854 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
13855 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13856 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13857 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
13858 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
13859 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
13860 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
13861 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13862 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13863 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13864 { (exit 1); exit 1; }; };;
13865 esac
13866 done
13868 # If the user did not use the arguments to specify the items to instantiate,
13869 # then the envvar interface is used. Set only those that are not.
13870 # We use the long form for the default assignment because of an extremely
13871 # bizarre bug on SunOS 4.1.3.
13872 if $ac_need_defaults; then
13873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13878 # Create a temporary directory, and hook for its removal unless debugging.
13879 $debug ||
13881 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13882 trap '{ (exit 1); exit 1; }' 1 2 13 15
13885 # Create a (secure) tmp directory for tmp files.
13886 : ${TMPDIR=/tmp}
13888 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13889 test -n "$tmp" && test -d "$tmp"
13890 } ||
13892 tmp=$TMPDIR/cs$$-$RANDOM
13893 (umask 077 && mkdir $tmp)
13894 } ||
13896 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13897 { (exit 1); exit 1; }
13900 _ACEOF
13902 cat >>$CONFIG_STATUS <<_ACEOF
13905 # CONFIG_FILES section.
13908 # No need to generate the scripts if there are no CONFIG_FILES.
13909 # This happens for instance when ./config.status config.h
13910 if test -n "\$CONFIG_FILES"; then
13911 # Protect against being on the right side of a sed subst in config.status.
13912 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13913 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13914 s,@SHELL@,$SHELL,;t t
13915 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13916 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13917 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13918 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13919 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13920 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13921 s,@exec_prefix@,$exec_prefix,;t t
13922 s,@prefix@,$prefix,;t t
13923 s,@program_transform_name@,$program_transform_name,;t t
13924 s,@bindir@,$bindir,;t t
13925 s,@sbindir@,$sbindir,;t t
13926 s,@libexecdir@,$libexecdir,;t t
13927 s,@datadir@,$datadir,;t t
13928 s,@sysconfdir@,$sysconfdir,;t t
13929 s,@sharedstatedir@,$sharedstatedir,;t t
13930 s,@localstatedir@,$localstatedir,;t t
13931 s,@libdir@,$libdir,;t t
13932 s,@includedir@,$includedir,;t t
13933 s,@oldincludedir@,$oldincludedir,;t t
13934 s,@infodir@,$infodir,;t t
13935 s,@mandir@,$mandir,;t t
13936 s,@build_alias@,$build_alias,;t t
13937 s,@host_alias@,$host_alias,;t t
13938 s,@target_alias@,$target_alias,;t t
13939 s,@DEFS@,$DEFS,;t t
13940 s,@ECHO_C@,$ECHO_C,;t t
13941 s,@ECHO_N@,$ECHO_N,;t t
13942 s,@ECHO_T@,$ECHO_T,;t t
13943 s,@LIBS@,$LIBS,;t t
13944 s,@OPTIONS@,$OPTIONS,;t t
13945 s,@build@,$build,;t t
13946 s,@build_cpu@,$build_cpu,;t t
13947 s,@build_vendor@,$build_vendor,;t t
13948 s,@build_os@,$build_os,;t t
13949 s,@host@,$host,;t t
13950 s,@host_cpu@,$host_cpu,;t t
13951 s,@host_vendor@,$host_vendor,;t t
13952 s,@host_os@,$host_os,;t t
13953 s,@SET_MAKE@,$SET_MAKE,;t t
13954 s,@CC@,$CC,;t t
13955 s,@CFLAGS@,$CFLAGS,;t t
13956 s,@LDFLAGS@,$LDFLAGS,;t t
13957 s,@CPPFLAGS@,$CPPFLAGS,;t t
13958 s,@ac_ct_CC@,$ac_ct_CC,;t t
13959 s,@EXEEXT@,$EXEEXT,;t t
13960 s,@OBJEXT@,$OBJEXT,;t t
13961 s,@CPP@,$CPP,;t t
13962 s,@TOOLSDIR@,$TOOLSDIR,;t t
13963 s,@X_CFLAGS@,$X_CFLAGS,;t t
13964 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13965 s,@X_LIBS@,$X_LIBS,;t t
13966 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13967 s,@YACC@,$YACC,;t t
13968 s,@LEX@,$LEX,;t t
13969 s,@LEXLIB@,$LEXLIB,;t t
13970 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13971 s,@XYACC@,$XYACC,;t t
13972 s,@XLEX@,$XLEX,;t t
13973 s,@AR@,$AR,;t t
13974 s,@ac_ct_AR@,$ac_ct_AR,;t t
13975 s,@RANLIB@,$RANLIB,;t t
13976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13977 s,@STRIP@,$STRIP,;t t
13978 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13979 s,@WINDRES@,$WINDRES,;t t
13980 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
13981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13984 s,@LN_S@,$LN_S,;t t
13985 s,@LN@,$LN,;t t
13986 s,@C2MAN@,$C2MAN,;t t
13987 s,@LDCONFIG@,$LDCONFIG,;t t
13988 s,@LDCOMBINE@,$LDCOMBINE,;t t
13989 s,@ac_ct_LDCOMBINE@,$ac_ct_LDCOMBINE,;t t
13990 s,@LINT@,$LINT,;t t
13991 s,@LINTFLAGS@,$LINTFLAGS,;t t
13992 s,@JPEGLIB@,$JPEGLIB,;t t
13993 s,@XLIB@,$XLIB,;t t
13994 s,@XFILES@,$XFILES,;t t
13995 s,@OPENGLFILES@,$OPENGLFILES,;t t
13996 s,@GLU32FILES@,$GLU32FILES,;t t
13997 s,@CURSESLIBS@,$CURSESLIBS,;t t
13998 s,@CUPSLIBS@,$CUPSLIBS,;t t
13999 s,@sane_devel@,$sane_devel,;t t
14000 s,@SANELIBS@,$SANELIBS,;t t
14001 s,@SANEINCL@,$SANEINCL,;t t
14002 s,@ft_devel@,$ft_devel,;t t
14003 s,@ft_devel2@,$ft_devel2,;t t
14004 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14005 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14006 s,@ARTSLIBS@,$ARTSLIBS,;t t
14007 s,@ARTSINCL@,$ARTSINCL,;t t
14008 s,@DLLWRAP@,$DLLWRAP,;t t
14009 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14010 s,@DLLIBS@,$DLLIBS,;t t
14011 s,@DLLFLAGS@,$DLLFLAGS,;t t
14012 s,@DLLEXT@,$DLLEXT,;t t
14013 s,@LDSHARED@,$LDSHARED,;t t
14014 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14015 s,@LIBEXT@,$LIBEXT,;t t
14016 s,@LDPATH@,$LDPATH,;t t
14017 s,@LDD@,$LDD,;t t
14018 s,@ALLOCA@,$ALLOCA,;t t
14019 /@MAKE_RULES@/r $MAKE_RULES
14020 s,@MAKE_RULES@,,;t t
14021 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14022 s,@MAKE_DLL_RULES@,,;t t
14023 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14024 s,@MAKE_PROG_RULES@,,;t t
14025 CEOF
14027 _ACEOF
14029 cat >>$CONFIG_STATUS <<\_ACEOF
14030 # Split the substitutions into bite-sized pieces for seds with
14031 # small command number limits, like on Digital OSF/1 and HP-UX.
14032 ac_max_sed_lines=48
14033 ac_sed_frag=1 # Number of current file.
14034 ac_beg=1 # First line for current file.
14035 ac_end=$ac_max_sed_lines # Line after last line for current file.
14036 ac_more_lines=:
14037 ac_sed_cmds=
14038 while $ac_more_lines; do
14039 if test $ac_beg -gt 1; then
14040 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14041 else
14042 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14044 if test ! -s $tmp/subs.frag; then
14045 ac_more_lines=false
14046 else
14047 # The purpose of the label and of the branching condition is to
14048 # speed up the sed processing (if there are no `@' at all, there
14049 # is no need to browse any of the substitutions).
14050 # These are the two extra sed commands mentioned above.
14051 (echo ':t
14052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14053 if test -z "$ac_sed_cmds"; then
14054 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14055 else
14056 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14058 ac_sed_frag=`expr $ac_sed_frag + 1`
14059 ac_beg=$ac_end
14060 ac_end=`expr $ac_end + $ac_max_sed_lines`
14062 done
14063 if test -z "$ac_sed_cmds"; then
14064 ac_sed_cmds=cat
14066 fi # test -n "$CONFIG_FILES"
14068 _ACEOF
14069 cat >>$CONFIG_STATUS <<\_ACEOF
14070 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14072 case $ac_file in
14073 - | *:- | *:-:* ) # input from stdin
14074 cat >$tmp/stdin
14075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14079 * ) ac_file_in=$ac_file.in ;;
14080 esac
14082 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14083 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14085 X"$ac_file" : 'X\(//\)[^/]' \| \
14086 X"$ac_file" : 'X\(//\)$' \| \
14087 X"$ac_file" : 'X\(/\)' \| \
14088 . : '\(.\)' 2>/dev/null ||
14089 echo X"$ac_file" |
14090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14092 /^X\(\/\/\)$/{ s//\1/; q; }
14093 /^X\(\/\).*/{ s//\1/; q; }
14094 s/.*/./; q'`
14095 { case "$ac_dir" in
14096 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14097 *) as_incr_dir=.;;
14098 esac
14099 as_dummy="$ac_dir"
14100 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14101 case $as_mkdir_dir in
14102 # Skip DOS drivespec
14103 ?:) as_incr_dir=$as_mkdir_dir ;;
14105 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14106 test -d "$as_incr_dir" ||
14107 mkdir "$as_incr_dir" ||
14108 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14109 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14110 { (exit 1); exit 1; }; }
14112 esac
14113 done; }
14115 ac_builddir=.
14117 if test "$ac_dir" != .; then
14118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14119 # A "../" for each directory in $ac_dir_suffix.
14120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14121 else
14122 ac_dir_suffix= ac_top_builddir=
14125 case $srcdir in
14126 .) # No --srcdir option. We are building in place.
14127 ac_srcdir=.
14128 if test -z "$ac_top_builddir"; then
14129 ac_top_srcdir=.
14130 else
14131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14132 fi ;;
14133 [\\/]* | ?:[\\/]* ) # Absolute path.
14134 ac_srcdir=$srcdir$ac_dir_suffix;
14135 ac_top_srcdir=$srcdir ;;
14136 *) # Relative path.
14137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14139 esac
14140 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14141 # absolute.
14142 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14143 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14144 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14145 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14148 case $INSTALL in
14149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14150 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14151 esac
14153 if test x"$ac_file" != x-; then
14154 { echo "$as_me:$LINENO: creating $ac_file" >&5
14155 echo "$as_me: creating $ac_file" >&6;}
14156 rm -f "$ac_file"
14158 # Let's still pretend it is `configure' which instantiates (i.e., don't
14159 # use $as_me), people would be surprised to read:
14160 # /* config.h. Generated by config.status. */
14161 if test x"$ac_file" = x-; then
14162 configure_input=
14163 else
14164 configure_input="$ac_file. "
14166 configure_input=$configure_input"Generated from `echo $ac_file_in |
14167 sed 's,.*/,,'` by configure."
14169 # First look for the input files in the build tree, otherwise in the
14170 # src tree.
14171 ac_file_inputs=`IFS=:
14172 for f in $ac_file_in; do
14173 case $f in
14174 -) echo $tmp/stdin ;;
14175 [\\/$]*)
14176 # Absolute (can't be DOS-style, as IFS=:)
14177 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14178 echo "$as_me: error: cannot find input file: $f" >&2;}
14179 { (exit 1); exit 1; }; }
14180 echo $f;;
14181 *) # Relative
14182 if test -f "$f"; then
14183 # Build tree
14184 echo $f
14185 elif test -f "$srcdir/$f"; then
14186 # Source tree
14187 echo $srcdir/$f
14188 else
14189 # /dev/null tree
14190 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14191 echo "$as_me: error: cannot find input file: $f" >&2;}
14192 { (exit 1); exit 1; }; }
14193 fi;;
14194 esac
14195 done` || { (exit 1); exit 1; }
14196 _ACEOF
14197 cat >>$CONFIG_STATUS <<_ACEOF
14198 sed "$ac_vpsub
14199 $extrasub
14200 _ACEOF
14201 cat >>$CONFIG_STATUS <<\_ACEOF
14203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14204 s,@configure_input@,$configure_input,;t t
14205 s,@srcdir@,$ac_srcdir,;t t
14206 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14207 s,@top_srcdir@,$ac_top_srcdir,;t t
14208 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14209 s,@builddir@,$ac_builddir,;t t
14210 s,@abs_builddir@,$ac_abs_builddir,;t t
14211 s,@top_builddir@,$ac_top_builddir,;t t
14212 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14213 s,@INSTALL@,$ac_INSTALL,;t t
14214 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14215 rm -f $tmp/stdin
14216 if test x"$ac_file" != x-; then
14217 mv $tmp/out $ac_file
14218 else
14219 cat $tmp/out
14220 rm -f $tmp/out
14223 done
14224 _ACEOF
14225 cat >>$CONFIG_STATUS <<\_ACEOF
14228 # CONFIG_HEADER section.
14231 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14232 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14234 # ac_d sets the value in "#define NAME VALUE" lines.
14235 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14236 ac_dB='[ ].*$,\1#\2'
14237 ac_dC=' '
14238 ac_dD=',;t'
14239 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14240 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14241 ac_uB='$,\1#\2define\3'
14242 ac_uC=' '
14243 ac_uD=',;t'
14245 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14247 case $ac_file in
14248 - | *:- | *:-:* ) # input from stdin
14249 cat >$tmp/stdin
14250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14254 * ) ac_file_in=$ac_file.in ;;
14255 esac
14257 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14258 echo "$as_me: creating $ac_file" >&6;}
14260 # First look for the input files in the build tree, otherwise in the
14261 # src tree.
14262 ac_file_inputs=`IFS=:
14263 for f in $ac_file_in; do
14264 case $f in
14265 -) echo $tmp/stdin ;;
14266 [\\/$]*)
14267 # Absolute (can't be DOS-style, as IFS=:)
14268 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14269 echo "$as_me: error: cannot find input file: $f" >&2;}
14270 { (exit 1); exit 1; }; }
14271 echo $f;;
14272 *) # Relative
14273 if test -f "$f"; then
14274 # Build tree
14275 echo $f
14276 elif test -f "$srcdir/$f"; then
14277 # Source tree
14278 echo $srcdir/$f
14279 else
14280 # /dev/null tree
14281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14282 echo "$as_me: error: cannot find input file: $f" >&2;}
14283 { (exit 1); exit 1; }; }
14284 fi;;
14285 esac
14286 done` || { (exit 1); exit 1; }
14287 # Remove the trailing spaces.
14288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14290 _ACEOF
14292 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14293 # `conftest.undefs', that substitutes the proper values into
14294 # config.h.in to produce config.h. The first handles `#define'
14295 # templates, and the second `#undef' templates.
14296 # And first: Protect against being on the right side of a sed subst in
14297 # config.status. Protect against being in an unquoted here document
14298 # in config.status.
14299 rm -f conftest.defines conftest.undefs
14300 # Using a here document instead of a string reduces the quoting nightmare.
14301 # Putting comments in sed scripts is not portable.
14303 # `end' is used to avoid that the second main sed command (meant for
14304 # 0-ary CPP macros) applies to n-ary macro definitions.
14305 # See the Autoconf documentation for `clear'.
14306 cat >confdef2sed.sed <<\_ACEOF
14307 s/[\\&,]/\\&/g
14308 s,[\\$`],\\&,g
14309 t clear
14310 : clear
14311 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14312 t end
14313 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14314 : end
14315 _ACEOF
14316 # If some macros were called several times there might be several times
14317 # the same #defines, which is useless. Nevertheless, we may not want to
14318 # sort them, since we want the *last* AC-DEFINE to be honored.
14319 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14320 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14321 rm -f confdef2sed.sed
14323 # This sed command replaces #undef with comments. This is necessary, for
14324 # example, in the case of _POSIX_SOURCE, which is predefined and required
14325 # on some systems where configure will not decide to define it.
14326 cat >>conftest.undefs <<\_ACEOF
14327 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14328 _ACEOF
14330 # Break up conftest.defines because some shells have a limit on the size
14331 # of here documents, and old seds have small limits too (100 cmds).
14332 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14333 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14334 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14335 echo ' :' >>$CONFIG_STATUS
14336 rm -f conftest.tail
14337 while grep . conftest.defines >/dev/null
14339 # Write a limited-size here document to $tmp/defines.sed.
14340 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14341 # Speed up: don't consider the non `#define' lines.
14342 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14343 # Work around the forget-to-reset-the-flag bug.
14344 echo 't clr' >>$CONFIG_STATUS
14345 echo ': clr' >>$CONFIG_STATUS
14346 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14347 echo 'CEOF
14348 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14349 rm -f $tmp/in
14350 mv $tmp/out $tmp/in
14351 ' >>$CONFIG_STATUS
14352 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14353 rm -f conftest.defines
14354 mv conftest.tail conftest.defines
14355 done
14356 rm -f conftest.defines
14357 echo ' fi # egrep' >>$CONFIG_STATUS
14358 echo >>$CONFIG_STATUS
14360 # Break up conftest.undefs because some shells have a limit on the size
14361 # of here documents, and old seds have small limits too (100 cmds).
14362 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14363 rm -f conftest.tail
14364 while grep . conftest.undefs >/dev/null
14366 # Write a limited-size here document to $tmp/undefs.sed.
14367 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14368 # Speed up: don't consider the non `#undef'
14369 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14370 # Work around the forget-to-reset-the-flag bug.
14371 echo 't clr' >>$CONFIG_STATUS
14372 echo ': clr' >>$CONFIG_STATUS
14373 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14374 echo 'CEOF
14375 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14376 rm -f $tmp/in
14377 mv $tmp/out $tmp/in
14378 ' >>$CONFIG_STATUS
14379 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14380 rm -f conftest.undefs
14381 mv conftest.tail conftest.undefs
14382 done
14383 rm -f conftest.undefs
14385 cat >>$CONFIG_STATUS <<\_ACEOF
14386 # Let's still pretend it is `configure' which instantiates (i.e., don't
14387 # use $as_me), people would be surprised to read:
14388 # /* config.h. Generated by config.status. */
14389 if test x"$ac_file" = x-; then
14390 echo "/* Generated by configure. */" >$tmp/config.h
14391 else
14392 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14394 cat $tmp/in >>$tmp/config.h
14395 rm -f $tmp/in
14396 if test x"$ac_file" != x-; then
14397 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14399 echo "$as_me: $ac_file is unchanged" >&6;}
14400 else
14401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14403 X"$ac_file" : 'X\(//\)[^/]' \| \
14404 X"$ac_file" : 'X\(//\)$' \| \
14405 X"$ac_file" : 'X\(/\)' \| \
14406 . : '\(.\)' 2>/dev/null ||
14407 echo X"$ac_file" |
14408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14410 /^X\(\/\/\)$/{ s//\1/; q; }
14411 /^X\(\/\).*/{ s//\1/; q; }
14412 s/.*/./; q'`
14413 { case "$ac_dir" in
14414 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14415 *) as_incr_dir=.;;
14416 esac
14417 as_dummy="$ac_dir"
14418 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14419 case $as_mkdir_dir in
14420 # Skip DOS drivespec
14421 ?:) as_incr_dir=$as_mkdir_dir ;;
14423 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14424 test -d "$as_incr_dir" ||
14425 mkdir "$as_incr_dir" ||
14426 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14427 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14428 { (exit 1); exit 1; }; }
14430 esac
14431 done; }
14433 rm -f $ac_file
14434 mv $tmp/config.h $ac_file
14436 else
14437 cat $tmp/config.h
14438 rm -f $tmp/config.h
14440 done
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<\_ACEOF
14445 # CONFIG_COMMANDS section.
14447 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14448 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14449 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14450 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14451 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14452 X"$ac_dest" : 'X\(//\)[^/]' \| \
14453 X"$ac_dest" : 'X\(//\)$' \| \
14454 X"$ac_dest" : 'X\(/\)' \| \
14455 . : '\(.\)' 2>/dev/null ||
14456 echo X"$ac_dest" |
14457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14459 /^X\(\/\/\)$/{ s//\1/; q; }
14460 /^X\(\/\).*/{ s//\1/; q; }
14461 s/.*/./; q'`
14462 ac_builddir=.
14464 if test "$ac_dir" != .; then
14465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14466 # A "../" for each directory in $ac_dir_suffix.
14467 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14468 else
14469 ac_dir_suffix= ac_top_builddir=
14472 case $srcdir in
14473 .) # No --srcdir option. We are building in place.
14474 ac_srcdir=.
14475 if test -z "$ac_top_builddir"; then
14476 ac_top_srcdir=.
14477 else
14478 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14479 fi ;;
14480 [\\/]* | ?:[\\/]* ) # Absolute path.
14481 ac_srcdir=$srcdir$ac_dir_suffix;
14482 ac_top_srcdir=$srcdir ;;
14483 *) # Relative path.
14484 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14485 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14486 esac
14487 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14488 # absolute.
14489 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14490 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14491 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14492 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14495 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14496 echo "$as_me: executing $ac_dest commands" >&6;}
14497 case $ac_dest in
14498 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14499 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
14500 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
14501 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
14502 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
14503 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
14504 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
14505 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
14506 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
14507 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
14508 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
14509 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
14510 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
14511 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
14512 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
14513 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
14514 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
14515 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
14516 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
14517 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
14518 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
14519 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
14520 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
14521 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
14522 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
14523 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
14524 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
14525 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
14526 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
14527 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
14528 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
14529 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
14530 dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14531 echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
14532 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
14533 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
14534 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
14535 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
14536 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
14537 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
14538 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
14539 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
14540 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14541 echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
14542 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14543 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14544 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14545 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14546 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14547 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14548 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14549 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
14550 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
14551 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
14552 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14553 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14554 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14555 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14556 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14557 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14558 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14559 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14560 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14561 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14562 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14563 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
14564 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
14565 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
14566 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
14567 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
14568 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14569 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14570 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14571 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14572 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14573 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14574 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14575 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
14576 esac
14577 done
14578 _ACEOF
14580 cat >>$CONFIG_STATUS <<\_ACEOF
14582 { (exit 0); exit 0; }
14583 _ACEOF
14584 chmod +x $CONFIG_STATUS
14585 ac_clean_files=$ac_clean_files_save
14588 # configure is writing to config.log, and then calls config.status.
14589 # config.status does its own redirection, appending to config.log.
14590 # Unfortunately, on DOS this fails, as config.log is still kept open
14591 # by configure, so config.status won't be able to write to it; its
14592 # output is simply discarded. So we exec the FD to /dev/null,
14593 # effectively closing config.log, so it can be properly (re)opened and
14594 # appended to by config.status. When coming back to configure, we
14595 # need to make the FD available again.
14596 if test "$no_create" != yes; then
14597 ac_cs_success=:
14598 exec 5>/dev/null
14599 $SHELL $CONFIG_STATUS || ac_cs_success=false
14600 exec 5>>config.log
14601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14602 # would make configure fail if this is the last instruction.
14603 $ac_cs_success || { (exit 1); exit 1; }
14607 if test "$have_x" = "no"
14608 then
14609 echo
14610 echo "*** Warning: X development files not found. Wine will be built without"
14611 echo "*** X support, which currently does not work, and would probably not be"
14612 echo "*** what you want anyway. You will need to install devel packages of"
14613 echo "*** Xlib/Xfree86 at the very least."
14616 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14617 then
14618 echo
14619 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14620 echo "*** terminal resize support. Consider upgrading ncurses."
14623 if test "$wine_cv_libc_reentrant" = "no"
14624 then
14625 echo
14626 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14627 echo "*** threading support. Consider upgrading libc to a more recent"
14628 echo "*** reentrant version of libc."
14631 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14632 then
14633 echo
14634 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14635 echo "*** applications won't work properly. You should upgrade your X11 library."
14638 if test "$wine_cv_opengl_version_OK" = "no"
14639 then
14640 echo
14641 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
14642 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14645 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
14646 then
14647 echo
14648 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
14649 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
14650 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
14651 echo "*** start configure with '--enable-opengl' to force OpenGL support."
14654 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
14655 then
14656 echo
14657 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
14658 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14659 echo "*** support before reporting bugs."
14662 if test "$wine_cv_warn_cups_h" = "yes"
14663 then
14664 echo
14665 echo "*** Note: You have cups runtime libraries, but no development"
14666 echo "*** libraries. Install the cups-devel package or whichever package"
14667 echo "*** contains cups.h to enable CUPS support in Wine."
14670 if test "$wine_cv_msg_freetype" = "yes"
14671 then
14672 echo
14673 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
14674 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14675 echo "*** freetype-devel package (or its equivalent on your distribution) to"
14676 echo "*** enable Wine to use TrueType fonts."
14679 echo
14680 echo "Configure finished. Do 'make depend && make' to compile Wine."
14681 echo