2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020804.
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
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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 ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; 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
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
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
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
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
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
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).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe 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
206 elif ln conf$$.file conf$$ 2>/dev/null; then
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"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
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`
242 ac_default_prefix=/usr/local
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.
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20020804'
258 PACKAGE_STRING='Wine 20020804'
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
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'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
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 ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
415 -help | --help | --hel | --he | -h)
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)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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)
568 -version | --version | --versio | --versi | --vers | -V)
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'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
594 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
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`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
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.
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
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 ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
763 \`configure' configures Wine 20020804 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.
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 \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
821 --build=BUILD configure for building on BUILD [guessed]
822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
826 if test -n "$ac_init_help"; then
827 case $ac_init_help in
828 short | recursive ) echo "Configuration of Wine 20020804:";;
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
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>
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.
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
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'`
874 ac_dir_suffix= ac_top_builddir=
878 .) # No --srcdir option. We are building in place.
880 if test -z "$ac_top_builddir"; then
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_srcdir/configure.gnu; then
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
921 Wine configure 20020804
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.
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 20020804, which was
937 generated by GNU Autoconf 2.53. Invocation command line was
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`
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971 test -z "$as_dir" && as_dir=.
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.
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)
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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'"
1008 # Get rid of the leading space.
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.
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1026 # The following way of writing the cache mishandles newlines in values,
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1042 if test -s confdefs.h; then
1049 sed "/^$/d" confdefs.h
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1060 for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1070 # Predefined preprocessor variables.
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
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
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;}
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1132 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1162 # Pass precious variables to config.status.
1163 if test "$ac_new_set" = set; then
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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"
1218 for ac_dir in tools $srcdir/tools; do
1219 if test -f $ac_dir/install-sh; then
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1223 elif test -f $ac_dir/install.sh; then
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1227 elif test -f $ac_dir/shtool; then
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
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.
1247 # Check whether --enable-debug or --disable-debug was given.
1248 if test "${enable_debug+set}" = set; then
1249 enableval="$enable_debug"
1252 # Check whether --enable-trace or --disable-trace was given.
1253 if test "${enable_trace+set}" = set; then
1254 enableval="$enable_trace"
1257 # Check whether --enable-opengl or --disable-opengl was given.
1258 if test "${enable_opengl+set}" = set; then
1259 enableval="$enable_opengl"
1263 # Check whether --with-curses or --without-curses was given.
1264 if test "${with_curses+set}" = set; then
1265 withval="$with_curses"
1269 # Check whether --with-wine-tools or --without-wine-tools was given.
1270 if test "${with_wine_tools+set}" = set; then
1271 withval="$with_wine_tools"
1276 if test "x$enable_debug" = "xno"
1279 cat >>confdefs.h <<\_ACEOF
1280 #define NO_DEBUG_MSGS 1
1284 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1287 cat >>confdefs.h <<\_ACEOF
1288 #define NO_TRACE_MSGS 1
1294 # Make sure we can run config.sub.
1295 $ac_config_sub sun4 >/dev/null 2>&1 ||
1296 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1297 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1298 { (exit 1); exit 1; }; }
1300 echo "$as_me:$LINENO: checking build system type" >&5
1301 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1302 if test "${ac_cv_build+set}" = set; then
1303 echo $ECHO_N "(cached) $ECHO_C" >&6
1305 ac_cv_build_alias=$build_alias
1306 test -z "$ac_cv_build_alias" &&
1307 ac_cv_build_alias=`$ac_config_guess`
1308 test -z "$ac_cv_build_alias" &&
1309 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1310 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1311 { (exit 1); exit 1; }; }
1312 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1313 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1314 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1315 { (exit 1); exit 1; }; }
1318 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1319 echo "${ECHO_T}$ac_cv_build" >&6
1321 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1322 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1323 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1326 echo "$as_me:$LINENO: checking host system type" >&5
1327 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1328 if test "${ac_cv_host+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1331 ac_cv_host_alias=$host_alias
1332 test -z "$ac_cv_host_alias" &&
1333 ac_cv_host_alias=$ac_cv_build_alias
1334 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1335 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1336 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1337 { (exit 1); exit 1; }; }
1340 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1341 echo "${ECHO_T}$ac_cv_host" >&6
1343 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1349 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1350 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1351 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 cat >conftest.make <<\_ACEOF
1356 @echo 'ac_maketemp="${MAKE}"'
1358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1359 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1360 if test -n "$ac_maketemp"; then
1361 eval ac_cv_prog_make_${ac_make}_set=yes
1363 eval ac_cv_prog_make_${ac_make}_set=no
1367 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1368 echo "$as_me:$LINENO: result: yes" >&5
1369 echo "${ECHO_T}yes" >&6
1372 echo "$as_me:$LINENO: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1374 SET_MAKE="MAKE=${MAKE-make}"
1378 ac_cpp='$CPP $CPPFLAGS'
1379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382 if test -n "$ac_tool_prefix"; then
1383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410 if test -n "$CC"; then
1411 echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1414 echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1419 if test -z "$ac_cv_prog_CC"; then
1421 # Extract the first word of "gcc", so it can be a program name with args.
1422 set dummy gcc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 if test -n "$ac_ct_CC"; then
1429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_ac_ct_CC="gcc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1461 if test -z "$CC"; then
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="${ac_tool_prefix}cc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "cc", so it can be a program name with args.
1502 set dummy cc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC="cc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 # Extract the first word of "cc", so it can be a program name with args.
1544 set dummy cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1562 ac_prog_rejected=yes
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 if test $ac_prog_rejected = yes; then
1573 # We found a bogon in the path, so make sure we never use it.
1574 set dummy $ac_cv_prog_CC
1576 if test $# != 0; then
1577 # We chose a different compiler from the bogus one.
1578 # However, it has the same basename, so the bogon will be chosen
1579 # first if we set CC to just the basename; use the full file name.
1581 set dummy "$as_dir/$ac_word" ${1+"$@"}
1589 if test -n "$CC"; then
1590 echo "$as_me:$LINENO: result: $CC" >&5
1591 echo "${ECHO_T}$CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1598 if test -z "$CC"; then
1599 if test -n "$ac_tool_prefix"; then
1602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 if test -n "$CC"; then
1630 echo "$as_me:$LINENO: result: $CC" >&5
1631 echo "${ECHO_T}$CC" >&6
1633 echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1637 test -n "$CC" && break
1640 if test -z "$CC"; then
1644 # Extract the first word of "$ac_prog", so it can be a program name with args.
1645 set dummy $ac_prog; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="$ac_prog"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1679 test -n "$ac_ct_CC" && break
1688 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1689 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1690 { (exit 1); exit 1; }; }
1692 # Provide some information about the compiler.
1693 echo "$as_me:$LINENO:" \
1694 "checking for C compiler version" >&5
1695 ac_compiler=`set X $ac_compile; echo $2`
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1697 (eval $ac_compiler --version </dev/null >&5) 2>&5
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1702 (eval $ac_compiler -v </dev/null >&5) 2>&5
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1707 (eval $ac_compiler -V </dev/null >&5) 2>&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1712 cat >conftest.$ac_ext <<_ACEOF
1713 #line $LINENO "configure"
1714 #include "confdefs.h"
1716 #ifdef F77_DUMMY_MAIN
1720 int F77_DUMMY_MAIN() { return 1; }
1730 ac_clean_files_save=$ac_clean_files
1731 ac_clean_files="$ac_clean_files a.out a.exe"
1732 # Try to create an executable without -o first, disregard a.out.
1733 # It will help us diagnose broken compilers, and finding out an intuition
1735 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1736 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747 # Be careful to initialize this variable, since it used to be cached.
1748 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1750 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1751 ls a.out conftest 2>/dev/null;
1752 ls a.* conftest.* 2>/dev/null`; do
1754 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1755 a.out ) # We found the default executable, but exeext='' is most
1758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1766 echo "$as_me: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1769 echo "$as_me: error: C compiler cannot create executables" >&2;}
1770 { (exit 77); exit 77; }; }
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1777 # Check the compiler produces executables we can run. If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 if test "$cross_compiling" = maybe; then
1795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1815 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818 (eval $ac_link) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1828 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1838 { (exit 1); exit 1; }; }
1841 rm -f conftest$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1843 echo "${ECHO_T}$ac_cv_exeext" >&6
1845 rm -f conftest.$ac_ext
1846 EXEEXT=$ac_cv_exeext
1848 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1849 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1850 if test "${ac_cv_objext+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1855 #include "confdefs.h"
1857 #ifdef F77_DUMMY_MAIN
1861 int F77_DUMMY_MAIN() { return 1; }
1871 rm -f conftest.o conftest.obj
1872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; then
1877 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 echo "$as_me: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1888 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1889 { (exit 1); exit 1; }; }
1892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1894 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1895 echo "${ECHO_T}$ac_cv_objext" >&6
1896 OBJEXT=$ac_cv_objext
1898 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 cat >conftest.$ac_ext <<_ACEOF
1904 #line $LINENO "configure"
1905 #include "confdefs.h"
1907 #ifdef F77_DUMMY_MAIN
1911 int F77_DUMMY_MAIN() { return 1; }
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 echo "$as_me: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1942 rm -f conftest.$ac_objext conftest.$ac_ext
1943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1946 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948 GCC=`test $ac_compiler_gnu = yes && echo yes`
1949 ac_test_CFLAGS=${CFLAGS+set}
1950 ac_save_CFLAGS=$CFLAGS
1952 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 #include "confdefs.h"
1961 #ifdef F77_DUMMY_MAIN
1965 int F77_DUMMY_MAIN() { return 1; }
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1993 rm -f conftest.$ac_objext conftest.$ac_ext
1995 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1996 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1997 if test "$ac_test_CFLAGS" = set; then
1998 CFLAGS=$ac_save_CFLAGS
1999 elif test $ac_cv_prog_cc_g = yes; then
2000 if test "$GCC" = yes; then
2006 if test "$GCC" = yes; then
2012 # Some people use a C++ compiler to compile C. Since we use `exit',
2013 # in C++ we need to declare it. In case someone uses the same compiler
2014 # for both compiling C and C++ we need to have the C++ compiler decide
2015 # the declaration of exit, since it's the most demanding environment.
2016 cat >conftest.$ac_ext <<_ACEOF
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2033 for ac_declaration in \
2035 '#include <stdlib.h>' \
2036 'extern "C" void std::exit (int) throw (); using std::exit;' \
2037 'extern "C" void std::exit (int); using std::exit;' \
2038 'extern "C" void exit (int) throw ();' \
2039 'extern "C" void exit (int);' \
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line $LINENO "configure"
2044 #include "confdefs.h"
2047 #ifdef F77_DUMMY_MAIN
2051 int F77_DUMMY_MAIN() { return 1; }
2061 rm -f conftest.$ac_objext
2062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063 (eval $ac_compile) 2>&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2079 rm -f conftest.$ac_objext conftest.$ac_ext
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2084 #ifdef F77_DUMMY_MAIN
2088 int F77_DUMMY_MAIN() { return 1; }
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2115 rm -f conftest.$ac_objext conftest.$ac_ext
2118 if test -n "$ac_declaration"; then
2119 echo '#ifdef __cplusplus' >>confdefs.h
2120 echo $ac_declaration >>confdefs.h
2121 echo '#endif' >>confdefs.h
2125 echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 rm -f conftest.$ac_objext conftest.$ac_ext
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2141 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2142 # On Suns, sometimes $CPP names a directory.
2143 if test -n "$CPP" && test -d "$CPP"; then
2146 if test -z "$CPP"; then
2147 if test "${ac_cv_prog_CPP+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 # Double quotes because CPP needs to be expanded
2151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2154 for ac_c_preproc_warn_flag in '' yes
2156 # Use a header file that comes with gcc, so configuring glibc
2157 # with a fresh cross-compiler works.
2158 # On the NeXT, cc -E runs the code through the compiler's parser,
2159 # not just through cpp. "Syntax error" is here to catch this case.
2160 cat >conftest.$ac_ext <<_ACEOF
2161 #line $LINENO "configure"
2162 #include "confdefs.h"
2166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2169 egrep -v '^ *\+' conftest.er1 >conftest.err
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } >/dev/null; then
2174 if test -s conftest.err; then
2175 ac_cpp_err=$ac_c_preproc_warn_flag
2182 if test -z "$ac_cpp_err"; then
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 # Broken: fails on valid input.
2190 rm -f conftest.err conftest.$ac_ext
2192 # OK, works on sane cases. Now check whether non-existent headers
2193 # can be detected and how.
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line $LINENO "configure"
2196 #include "confdefs.h"
2197 #include <ac_nonexistent.h>
2199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2202 egrep -v '^ *\+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } >/dev/null; then
2207 if test -s conftest.err; then
2208 ac_cpp_err=$ac_c_preproc_warn_flag
2215 if test -z "$ac_cpp_err"; then
2216 # Broken: success on invalid input.
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 # Passes both tests.
2225 rm -f conftest.err conftest.$ac_ext
2228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2229 rm -f conftest.err conftest.$ac_ext
2230 if $ac_preproc_ok; then
2242 echo "$as_me:$LINENO: result: $CPP" >&5
2243 echo "${ECHO_T}$CPP" >&6
2245 for ac_c_preproc_warn_flag in '' yes
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
2249 # On the NeXT, cc -E runs the code through the compiler's parser,
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2273 if test -z "$ac_cpp_err"; then
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Broken: fails on valid input.
2281 rm -f conftest.err conftest.$ac_ext
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 #include "confdefs.h"
2288 #include <ac_nonexistent.h>
2290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2293 egrep -v '^ *\+' conftest.er1 >conftest.err
2295 cat conftest.err >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } >/dev/null; then
2298 if test -s conftest.err; then
2299 ac_cpp_err=$ac_c_preproc_warn_flag
2306 if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 # Passes both tests.
2316 rm -f conftest.err conftest.$ac_ext
2319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320 rm -f conftest.err conftest.$ac_ext
2321 if $ac_preproc_ok; then
2324 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2325 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2326 { (exit 1); exit 1; }; }
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2337 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2338 if test "${wine_cv_toolsdir+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 if test -z "$with_wine_tools"; then
2342 if test "$cross_compiling" = "yes"; then
2343 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2344 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2345 { (exit 1); exit 1; }; }
2347 wine_cv_toolsdir="\$(TOPOBJDIR)"
2349 elif test -d "$with_wine_tools/tools/winebuild"; then
2350 case $with_wine_tools in
2351 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2352 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2355 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2356 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2357 { (exit 1); exit 1; }; }
2360 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2361 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2362 TOOLSDIR=$wine_cv_toolsdir
2367 echo "$as_me:$LINENO: checking for X" >&5
2368 echo $ECHO_N "checking for X... $ECHO_C" >&6
2371 # Check whether --with-x or --without-x was given.
2372 if test "${with_x+set}" = set; then
2376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2377 if test "x$with_x" = xno; then
2378 # The user explicitly disabled X.
2381 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2382 # Both variables are already set.
2385 if test "${ac_cv_have_x+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 # One or both of the vars are not set, and there is no cached value.
2389 ac_x_includes=no ac_x_libraries=no
2391 if mkdir conftest.dir; then
2393 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2394 cat >Imakefile <<'_ACEOF'
2396 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2398 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2400 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2401 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2402 for ac_extension in a so sl; do
2403 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2404 test -f $ac_im_libdir/libX11.$ac_extension; then
2405 ac_im_usrlibdir=$ac_im_libdir; break
2408 # Screen out bogus values from the imake configuration. They are
2409 # bogus both because they are the default anyway, and because
2410 # using them would break gcc on systems where it needs fixed includes.
2411 case $ac_im_incroot in
2413 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2415 case $ac_im_usrlibdir in
2417 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2424 # Standard set of common directories for X headers.
2425 # Check X11 before X11Rn because it is often a symlink to the current release.
2437 /usr/local/X11/include
2438 /usr/local/X11R6/include
2439 /usr/local/X11R5/include
2440 /usr/local/X11R4/include
2442 /usr/local/include/X11
2443 /usr/local/include/X11R6
2444 /usr/local/include/X11R5
2445 /usr/local/include/X11R4
2449 /usr/XFree86/include/X11
2453 /usr/unsupported/include
2455 /usr/local/x11r5/include
2456 /usr/lpp/Xamples/include
2458 /usr/openwin/include
2459 /usr/openwin/share/include'
2461 if test "$ac_x_includes" = no; then
2462 # Guess where to find include files, by looking for Intrinsic.h.
2463 # First, try using that file with no special directory specified.
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2467 #include <X11/Intrinsic.h>
2469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2472 egrep -v '^ *\+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } >/dev/null; then
2477 if test -s conftest.err; then
2478 ac_cpp_err=$ac_c_preproc_warn_flag
2485 if test -z "$ac_cpp_err"; then
2486 # We can compile using X headers with no special include directory.
2489 echo "$as_me: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 for ac_dir in $ac_x_header_dirs; do
2492 if test -r "$ac_dir/X11/Intrinsic.h"; then
2493 ac_x_includes=$ac_dir
2498 rm -f conftest.err conftest.$ac_ext
2499 fi # $ac_x_includes = no
2501 if test "$ac_x_libraries" = no; then
2502 # Check for the libraries.
2503 # See if we find them without any special options.
2504 # Don't add to $LIBS permanently.
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 #include "confdefs.h"
2510 #include <X11/Intrinsic.h>
2511 #ifdef F77_DUMMY_MAIN
2515 int F77_DUMMY_MAIN() { return 1; }
2525 rm -f conftest.$ac_objext conftest$ac_exeext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2527 (eval $ac_link) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest$ac_exeext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2538 # We can link X programs with no special library path.
2541 echo "$as_me: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2544 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2546 # Don't even attempt the hair of trying to link an X program!
2547 for ac_extension in a so sl; do
2548 if test -r $ac_dir/libXt.$ac_extension; then
2549 ac_x_libraries=$ac_dir
2555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2556 fi # $ac_x_libraries = no
2558 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2559 # Didn't find X anywhere. Cache the known absence of X.
2560 ac_cv_have_x="have_x=no"
2562 # Record where we found X for the cache.
2563 ac_cv_have_x="have_x=yes \
2564 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2569 eval "$ac_cv_have_x"
2572 if test "$have_x" != yes; then
2573 echo "$as_me:$LINENO: result: $have_x" >&5
2574 echo "${ECHO_T}$have_x" >&6
2577 # If each of the values was on the command line, it overrides each guess.
2578 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2579 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2580 # Update the cache value to reflect the command line values.
2581 ac_cv_have_x="have_x=yes \
2582 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2583 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2584 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2587 if test "$no_x" = yes; then
2588 # Not all programs may use this symbol, but it does not hurt to define it.
2590 cat >>confdefs.h <<\_ACEOF
2591 #define X_DISPLAY_MISSING 1
2594 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2596 if test -n "$x_includes"; then
2597 X_CFLAGS="$X_CFLAGS -I$x_includes"
2600 # It would also be nice to do this for all -L options, not just this one.
2601 if test -n "$x_libraries"; then
2602 X_LIBS="$X_LIBS -L$x_libraries"
2603 # For Solaris; some versions of Sun CC require a space after -R and
2604 # others require no space. Words are not sufficient . . . .
2605 case `(uname -sr) 2>/dev/null` in
2607 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2608 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2609 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 #include "confdefs.h"
2614 #ifdef F77_DUMMY_MAIN
2618 int F77_DUMMY_MAIN() { return 1; }
2628 rm -f conftest.$ac_objext conftest$ac_exeext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2630 (eval $ac_link) 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -s conftest$ac_exeext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2642 echo "$as_me: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2647 if test $ac_R_nospace = yes; then
2648 echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2650 X_LIBS="$X_LIBS -R$x_libraries"
2652 LIBS="$ac_xsave_LIBS -R $x_libraries"
2653 cat >conftest.$ac_ext <<_ACEOF
2654 #line $LINENO "configure"
2655 #include "confdefs.h"
2657 #ifdef F77_DUMMY_MAIN
2661 int F77_DUMMY_MAIN() { return 1; }
2671 rm -f conftest.$ac_objext conftest$ac_exeext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2673 (eval $ac_link) 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -s conftest$ac_exeext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2690 if test $ac_R_space = yes; then
2691 echo "$as_me:$LINENO: result: yes" >&5
2692 echo "${ECHO_T}yes" >&6
2693 X_LIBS="$X_LIBS -R $x_libraries"
2695 echo "$as_me:$LINENO: result: neither works" >&5
2696 echo "${ECHO_T}neither works" >&6
2703 # Check for system-dependent libraries X programs must link with.
2704 # Do this before checking for the system-independent R6 libraries
2705 # (-lICE), since we may need -lsocket or whatever for X linking.
2707 if test "$ISC" = yes; then
2708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2710 # Martyn Johnson says this is needed for Ultrix, if the X
2711 # libraries were built with DECnet support. And Karl Berry says
2712 # the Alpha needs dnet_stub (dnet does not exist).
2713 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2724 char XOpenDisplay ();
2725 #ifdef F77_DUMMY_MAIN
2729 int F77_DUMMY_MAIN() { return 1; }
2739 rm -f conftest.$ac_objext conftest$ac_exeext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741 (eval $ac_link) 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -s conftest$ac_exeext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2756 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2757 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 ac_check_lib_save_LIBS=$LIBS
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2764 #include "confdefs.h"
2766 /* Override any gcc2 internal prototype to avoid an error. */
2770 /* We use char because int might match the return type of a gcc2
2771 builtin and then its argument prototype would still apply. */
2773 #ifdef F77_DUMMY_MAIN
2777 int F77_DUMMY_MAIN() { return 1; }
2787 rm -f conftest.$ac_objext conftest$ac_exeext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2789 (eval $ac_link) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest$ac_exeext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 ac_cv_lib_dnet_dnet_ntoa=yes
2801 echo "$as_me: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 ac_cv_lib_dnet_dnet_ntoa=no
2805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2806 LIBS=$ac_check_lib_save_LIBS
2808 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2809 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2810 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2815 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2816 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2817 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 ac_check_lib_save_LIBS=$LIBS
2821 LIBS="-ldnet_stub $LIBS"
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #line $LINENO "configure"
2824 #include "confdefs.h"
2826 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2833 #ifdef F77_DUMMY_MAIN
2837 int F77_DUMMY_MAIN() { return 1; }
2847 rm -f conftest.$ac_objext conftest$ac_exeext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849 (eval $ac_link) 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -s conftest$ac_exeext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2861 echo "$as_me: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2863 ac_cv_lib_dnet_stub_dnet_ntoa=no
2865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2866 LIBS=$ac_check_lib_save_LIBS
2868 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2869 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2870 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2871 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2877 LIBS="$ac_xsave_LIBS"
2879 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2880 # to get the SysV transport functions.
2881 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2883 # The nsl library prevents programs from opening the X display
2884 # on Irix 5.2, according to T.E. Dickey.
2885 # The functions gethostbyname, getservbyname, and inet_addr are
2886 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2887 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2888 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2889 if test "${ac_cv_func_gethostbyname+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes,
2896 which can conflict with char gethostbyname (); below. */
2898 /* Override any gcc2 internal prototype to avoid an error. */
2902 /* We use char because int might match the return type of a gcc2
2903 builtin and then its argument prototype would still apply. */
2904 char gethostbyname ();
2907 #ifdef F77_DUMMY_MAIN
2911 int F77_DUMMY_MAIN() { return 1; }
2916 /* The GNU C library defines this for functions which it implements
2917 to always fail with ENOSYS. Some functions are actually named
2918 something starting with __ and the normal name is an alias. */
2919 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2929 rm -f conftest.$ac_objext conftest$ac_exeext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931 (eval $ac_link) 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest$ac_exeext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_func_gethostbyname=yes
2943 echo "$as_me: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2945 ac_cv_func_gethostbyname=no
2947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2949 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2950 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2952 if test $ac_cv_func_gethostbyname = no; then
2953 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2954 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2955 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 ac_check_lib_save_LIBS=$LIBS
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 #include "confdefs.h"
2964 /* Override any gcc2 internal prototype to avoid an error. */
2968 /* We use char because int might match the return type of a gcc2
2969 builtin and then its argument prototype would still apply. */
2970 char gethostbyname ();
2971 #ifdef F77_DUMMY_MAIN
2975 int F77_DUMMY_MAIN() { return 1; }
2985 rm -f conftest.$ac_objext conftest$ac_exeext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987 (eval $ac_link) 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -s conftest$ac_exeext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 ac_cv_lib_nsl_gethostbyname=yes
2999 echo "$as_me: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 ac_cv_lib_nsl_gethostbyname=no
3003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3004 LIBS=$ac_check_lib_save_LIBS
3006 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3007 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3008 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3009 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3012 if test $ac_cv_lib_nsl_gethostbyname = no; then
3013 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3014 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3015 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_check_lib_save_LIBS=$LIBS
3020 cat >conftest.$ac_ext <<_ACEOF
3021 #line $LINENO "configure"
3022 #include "confdefs.h"
3024 /* Override any gcc2 internal prototype to avoid an error. */
3028 /* We use char because int might match the return type of a gcc2
3029 builtin and then its argument prototype would still apply. */
3030 char gethostbyname ();
3031 #ifdef F77_DUMMY_MAIN
3035 int F77_DUMMY_MAIN() { return 1; }
3045 rm -f conftest.$ac_objext conftest$ac_exeext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047 (eval $ac_link) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest$ac_exeext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_lib_bsd_gethostbyname=yes
3059 echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 ac_cv_lib_bsd_gethostbyname=no
3063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3064 LIBS=$ac_check_lib_save_LIBS
3066 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3067 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3068 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3075 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3076 # socket/setsockopt and other routines are undefined under SCO ODT
3077 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3078 # on later versions), says Simon Leinen: it contains gethostby*
3079 # variants that don't use the nameserver (or something). -lsocket
3080 # must be given before -lnsl if both are needed. We assume that
3081 # if connect needs -lnsl, so does gethostbyname.
3082 echo "$as_me:$LINENO: checking for connect" >&5
3083 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3084 if test "${ac_cv_func_connect+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3089 #include "confdefs.h"
3090 /* System header to define __stub macros and hopefully few prototypes,
3091 which can conflict with char connect (); below. */
3093 /* Override any gcc2 internal prototype to avoid an error. */
3097 /* We use char because int might match the return type of a gcc2
3098 builtin and then its argument prototype would still apply. */
3102 #ifdef F77_DUMMY_MAIN
3106 int F77_DUMMY_MAIN() { return 1; }
3111 /* The GNU C library defines this for functions which it implements
3112 to always fail with ENOSYS. Some functions are actually named
3113 something starting with __ and the normal name is an alias. */
3114 #if defined (__stub_connect) || defined (__stub___connect)
3124 rm -f conftest.$ac_objext conftest$ac_exeext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126 (eval $ac_link) 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest$ac_exeext'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3136 ac_cv_func_connect=yes
3138 echo "$as_me: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 ac_cv_func_connect=no
3142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3144 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3145 echo "${ECHO_T}$ac_cv_func_connect" >&6
3147 if test $ac_cv_func_connect = no; then
3148 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3149 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3150 if test "${ac_cv_lib_socket_connect+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_check_lib_save_LIBS=$LIBS
3154 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3155 cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 #include "confdefs.h"
3159 /* Override any gcc2 internal prototype to avoid an error. */
3163 /* We use char because int might match the return type of a gcc2
3164 builtin and then its argument prototype would still apply. */
3166 #ifdef F77_DUMMY_MAIN
3170 int F77_DUMMY_MAIN() { return 1; }
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest$ac_exeext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_lib_socket_connect=yes
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 ac_cv_lib_socket_connect=no
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 LIBS=$ac_check_lib_save_LIBS
3201 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3202 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3203 if test $ac_cv_lib_socket_connect = yes; then
3204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3209 # Guillermo Gomez says -lposix is necessary on A/UX.
3210 echo "$as_me:$LINENO: checking for remove" >&5
3211 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3212 if test "${ac_cv_func_remove+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 #include "confdefs.h"
3218 /* System header to define __stub macros and hopefully few prototypes,
3219 which can conflict with char remove (); below. */
3221 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3230 #ifdef F77_DUMMY_MAIN
3234 int F77_DUMMY_MAIN() { return 1; }
3239 /* The GNU C library defines this for functions which it implements
3240 to always fail with ENOSYS. Some functions are actually named
3241 something starting with __ and the normal name is an alias. */
3242 #if defined (__stub_remove) || defined (__stub___remove)
3252 rm -f conftest.$ac_objext conftest$ac_exeext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254 (eval $ac_link) 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -s conftest$ac_exeext'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3264 ac_cv_func_remove=yes
3266 echo "$as_me: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3268 ac_cv_func_remove=no
3270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3272 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3273 echo "${ECHO_T}$ac_cv_func_remove" >&6
3275 if test $ac_cv_func_remove = no; then
3276 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3277 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3278 if test "${ac_cv_lib_posix_remove+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_check_lib_save_LIBS=$LIBS
3282 LIBS="-lposix $LIBS"
3283 cat >conftest.$ac_ext <<_ACEOF
3284 #line $LINENO "configure"
3285 #include "confdefs.h"
3287 /* Override any gcc2 internal prototype to avoid an error. */
3291 /* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3294 #ifdef F77_DUMMY_MAIN
3298 int F77_DUMMY_MAIN() { return 1; }
3308 rm -f conftest.$ac_objext conftest$ac_exeext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3310 (eval $ac_link) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest$ac_exeext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_lib_posix_remove=yes
3322 echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 ac_cv_lib_posix_remove=no
3326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3327 LIBS=$ac_check_lib_save_LIBS
3329 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3330 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3331 if test $ac_cv_lib_posix_remove = yes; then
3332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3337 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3338 echo "$as_me:$LINENO: checking for shmat" >&5
3339 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3340 if test "${ac_cv_func_shmat+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3344 #line $LINENO "configure"
3345 #include "confdefs.h"
3346 /* System header to define __stub macros and hopefully few prototypes,
3347 which can conflict with char shmat (); below. */
3349 /* Override any gcc2 internal prototype to avoid an error. */
3353 /* We use char because int might match the return type of a gcc2
3354 builtin and then its argument prototype would still apply. */
3358 #ifdef F77_DUMMY_MAIN
3362 int F77_DUMMY_MAIN() { return 1; }
3367 /* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370 #if defined (__stub_shmat) || defined (__stub___shmat)
3380 rm -f conftest.$ac_objext conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -s conftest$ac_exeext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_func_shmat=yes
3394 echo "$as_me: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3400 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3401 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3403 if test $ac_cv_func_shmat = no; then
3404 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3405 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3406 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 ac_check_lib_save_LIBS=$LIBS
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3415 /* Override any gcc2 internal prototype to avoid an error. */
3419 /* We use char because int might match the return type of a gcc2
3420 builtin and then its argument prototype would still apply. */
3422 #ifdef F77_DUMMY_MAIN
3426 int F77_DUMMY_MAIN() { return 1; }
3436 rm -f conftest.$ac_objext conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -s conftest$ac_exeext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_lib_ipc_shmat=yes
3450 echo "$as_me: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 ac_cv_lib_ipc_shmat=no
3454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3455 LIBS=$ac_check_lib_save_LIBS
3457 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3458 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3459 if test $ac_cv_lib_ipc_shmat = yes; then
3460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3466 # Check for libraries that X11R6 Xt/Xaw programs need.
3467 ac_save_LDFLAGS=$LDFLAGS
3468 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3469 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3470 # check for ICE first), but we must link in the order -lSM -lICE or
3471 # we get undefined symbols. So assume we have SM if we have ICE.
3472 # These have to be linked with before -lX11, unlike the other
3473 # libraries we check for below, so use a different variable.
3474 # John Interrante, Karl Berry
3475 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3476 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3477 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_check_lib_save_LIBS=$LIBS
3481 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3486 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492 char IceConnectionNumber ();
3493 #ifdef F77_DUMMY_MAIN
3497 int F77_DUMMY_MAIN() { return 1; }
3502 IceConnectionNumber ();
3507 rm -f conftest.$ac_objext conftest$ac_exeext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509 (eval $ac_link) 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -s conftest$ac_exeext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_cv_lib_ICE_IceConnectionNumber=yes
3521 echo "$as_me: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3523 ac_cv_lib_ICE_IceConnectionNumber=no
3525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3526 LIBS=$ac_check_lib_save_LIBS
3528 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3529 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3530 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3531 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3534 LDFLAGS=$ac_save_LDFLAGS
3538 for ac_prog in 'bison -y' byacc
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_YACC+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$YACC"; then
3548 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_YACC="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 YACC=$ac_cv_prog_YACC
3567 if test -n "$YACC"; then
3568 echo "$as_me:$LINENO: result: $YACC" >&5
3569 echo "${ECHO_T}$YACC" >&6
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 test -n "$YACC" && break
3577 test -n "$YACC" || YACC="yacc"
3579 for ac_prog in flex lex
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585 if test "${ac_cv_prog_LEX+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test -n "$LEX"; then
3589 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_LEX="$ac_prog"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 if test -n "$LEX"; then
3609 echo "$as_me:$LINENO: result: $LEX" >&5
3610 echo "${ECHO_T}$LEX" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 test -n "$LEX" && break
3618 test -n "$LEX" || LEX=":"
3620 if test -z "$LEXLIB"
3622 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3623 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3624 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_check_lib_save_LIBS=$LIBS
3629 cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3633 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3640 #ifdef F77_DUMMY_MAIN
3644 int F77_DUMMY_MAIN() { return 1; }
3654 rm -f conftest.$ac_objext conftest$ac_exeext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -s conftest$ac_exeext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_lib_fl_yywrap=yes
3668 echo "$as_me: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3670 ac_cv_lib_fl_yywrap=no
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673 LIBS=$ac_check_lib_save_LIBS
3675 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3676 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3677 if test $ac_cv_lib_fl_yywrap = yes; then
3680 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3681 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3682 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_check_lib_save_LIBS=$LIBS
3687 cat >conftest.$ac_ext <<_ACEOF
3688 #line $LINENO "configure"
3689 #include "confdefs.h"
3691 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3698 #ifdef F77_DUMMY_MAIN
3702 int F77_DUMMY_MAIN() { return 1; }
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714 (eval $ac_link) 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest$ac_exeext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_lib_l_yywrap=yes
3726 echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 ac_cv_lib_l_yywrap=no
3730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731 LIBS=$ac_check_lib_save_LIBS
3733 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3734 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3735 if test $ac_cv_lib_l_yywrap = yes; then
3743 if test "x$LEX" != "x:"; then
3744 echo "$as_me:$LINENO: checking lex output file root" >&5
3745 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3746 if test "${ac_cv_prog_lex_root+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 # The minimal lex program is just a single line: %%. But some broken lexes
3750 # (Solaris, I think it was) want two %% lines, so accommodate them.
3751 cat >conftest.l <<_ACEOF
3755 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3756 (eval $LEX conftest.l) 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
3760 if test -f lex.yy.c; then
3761 ac_cv_prog_lex_root=lex.yy
3762 elif test -f lexyy.c; then
3763 ac_cv_prog_lex_root=lexyy
3765 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3766 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3767 { (exit 1); exit 1; }; }
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3771 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3773 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3775 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3776 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3777 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 # POSIX says lex can declare yytext either as a pointer or an array; the
3781 # default is implementation-dependent. Figure out which it is, since
3782 # not all implementations provide the %pointer and %array declarations.
3783 ac_cv_prog_lex_yytext_pointer=no
3784 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3786 LIBS="$LIBS $LEXLIB"
3787 cat >conftest.$ac_ext <<_ACEOF
3788 `cat $LEX_OUTPUT_ROOT.c`
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -s conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_prog_lex_yytext_pointer=yes
3804 echo "$as_me: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3809 rm -f "${LEX_OUTPUT_ROOT}.c"
3812 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3813 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3814 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3816 cat >>confdefs.h <<\_ACEOF
3817 #define YYTEXT_POINTER 1
3824 for ac_prog in $YACC bison yacc
3826 # Extract the first word of "$ac_prog", so it can be a program name with args.
3827 set dummy $ac_prog; ac_word=$2
3828 echo "$as_me:$LINENO: checking for $ac_word" >&5
3829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830 if test "${ac_cv_prog_XYACC+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 if test -n "$XYACC"; then
3834 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_XYACC="$ac_prog"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 XYACC=$ac_cv_prog_XYACC
3853 if test -n "$XYACC"; then
3854 echo "$as_me:$LINENO: result: $XYACC" >&5
3855 echo "${ECHO_T}$XYACC" >&6
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3861 test -n "$XYACC" && break
3863 test -n "$XYACC" || XYACC="none"
3865 if test "$XYACC" = "none"
3867 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3868 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3869 { (exit 1); exit 1; }; }
3871 for ac_prog in $LEX flex lex
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_XLEX+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if test -n "$XLEX"; then
3881 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_XLEX="$ac_prog"
3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 XLEX=$ac_cv_prog_XLEX
3900 if test -n "$XLEX"; then
3901 echo "$as_me:$LINENO: result: $XLEX" >&5
3902 echo "${ECHO_T}$XLEX" >&6
3904 echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3908 test -n "$XLEX" && break
3910 test -n "$XLEX" || XLEX="none"
3912 if test "$XLEX" = "none"
3914 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3915 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3916 { (exit 1); exit 1; }; }
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}ld; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_LD+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$LD"; then
3928 ac_cv_prog_LD="$LD" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_LD="${ac_tool_prefix}ld"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$LD"; then
3948 echo "$as_me:$LINENO: result: $LD" >&5
3949 echo "${ECHO_T}$LD" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3956 if test -z "$ac_cv_prog_LD"; then
3958 # Extract the first word of "ld", so it can be a program name with args.
3959 set dummy ld; ac_word=$2
3960 echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 if test -n "$ac_ct_LD"; then
3966 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_ac_ct_LD="ld"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3985 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3986 if test -n "$ac_ct_LD"; then
3987 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3988 echo "${ECHO_T}$ac_ct_LD" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3999 if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4001 set dummy ${ac_tool_prefix}ar; ac_word=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_prog_AR+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if test -n "$AR"; then
4008 ac_cv_prog_AR="$AR" # Let the user override the test.
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_AR="${ac_tool_prefix}ar"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 if test -n "$AR"; then
4028 echo "$as_me:$LINENO: result: $AR" >&5
4029 echo "${ECHO_T}$AR" >&6
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4036 if test -z "$ac_cv_prog_AR"; then
4038 # Extract the first word of "ar", so it can be a program name with args.
4039 set dummy ar; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test -n "$ac_ct_AR"; then
4046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_ac_ct_AR="ar"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4065 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4066 if test -n "$ac_ct_AR"; then
4067 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4068 echo "${ECHO_T}$ac_ct_AR" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_RANLIB+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 if test -n "$RANLIB"; then
4088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 RANLIB=$ac_cv_prog_RANLIB
4107 if test -n "$RANLIB"; then
4108 echo "$as_me:$LINENO: result: $RANLIB" >&5
4109 echo "${ECHO_T}$RANLIB" >&6
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4116 if test -z "$ac_cv_prog_RANLIB"; then
4117 ac_ct_RANLIB=$RANLIB
4118 # Extract the first word of "ranlib", so it can be a program name with args.
4119 set dummy ranlib; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 if test -n "$ac_ct_RANLIB"; then
4126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_RANLIB="ranlib"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4146 if test -n "$ac_ct_RANLIB"; then
4147 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4148 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4154 RANLIB=$ac_ct_RANLIB
4156 RANLIB="$ac_cv_prog_RANLIB"
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}strip; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_STRIP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 if test -n "$STRIP"; then
4168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 STRIP=$ac_cv_prog_STRIP
4187 if test -n "$STRIP"; then
4188 echo "$as_me:$LINENO: result: $STRIP" >&5
4189 echo "${ECHO_T}$STRIP" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4196 if test -z "$ac_cv_prog_STRIP"; then
4198 # Extract the first word of "strip", so it can be a program name with args.
4199 set dummy strip; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$ac_ct_STRIP"; then
4206 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_STRIP="strip"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4226 if test -n "$ac_ct_STRIP"; then
4227 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4228 echo "${ECHO_T}$ac_ct_STRIP" >&6
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4236 STRIP="$ac_cv_prog_STRIP"
4239 if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}windres; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_WINDRES+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$WINDRES"; then
4248 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 WINDRES=$ac_cv_prog_WINDRES
4267 if test -n "$WINDRES"; then
4268 echo "$as_me:$LINENO: result: $WINDRES" >&5
4269 echo "${ECHO_T}$WINDRES" >&6
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4276 if test -z "$ac_cv_prog_WINDRES"; then
4277 ac_ct_WINDRES=$WINDRES
4278 # Extract the first word of "windres", so it can be a program name with args.
4279 set dummy windres; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$ac_ct_WINDRES"; then
4286 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_ac_ct_WINDRES="windres"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4305 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4306 if test -n "$ac_ct_WINDRES"; then
4307 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4308 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 WINDRES=$ac_ct_WINDRES
4316 WINDRES="$ac_cv_prog_WINDRES"
4319 # Find a good install program. We prefer a C program (faster),
4320 # so one script is as good as another. But avoid the broken or
4321 # incompatible versions:
4322 # SysV /etc/install, /usr/sbin/install
4323 # SunOS /usr/etc/install
4324 # IRIX /sbin/install
4326 # AmigaOS /C/install, which installs bootblocks on floppy discs
4327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4330 # ./install, which can be erroneously created by make from ./install.sh.
4331 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4332 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4333 if test -z "$INSTALL"; then
4334 if test "${ac_cv_path_install+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 # Account for people who put trailing slashes in PATH elements.
4344 ./ | .// | /cC/* | \
4345 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4348 # OSF1 and SCO ODT 3.0 have their own names for install.
4349 # Don't use installbsd from OSF since it installs stuff as root
4351 for ac_prog in ginstall scoinst install; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4354 if test $ac_prog = install &&
4355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4356 # AIX install. It has an incompatible calling convention.
4358 elif test $ac_prog = install &&
4359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4360 # program-specific install script used by HP pwplus--don't use.
4363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4375 if test "${ac_cv_path_install+set}" = set; then
4376 INSTALL=$ac_cv_path_install
4378 # As a last resort, use the slow shell script. We don't cache a
4379 # path for INSTALL within a source directory, because that will
4380 # break other packages using the cache if that directory is
4381 # removed, or if the path is relative.
4382 INSTALL=$ac_install_sh
4385 echo "$as_me:$LINENO: result: $INSTALL" >&5
4386 echo "${ECHO_T}$INSTALL" >&6
4388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4389 # It thinks the first close brace ends the variable substitution.
4390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4396 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4397 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4399 if test "$LN_S" = "ln -s"; then
4400 echo "$as_me:$LINENO: result: yes" >&5
4401 echo "${ECHO_T}yes" >&6
4403 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4404 echo "${ECHO_T}no, using $LN_S" >&6
4407 echo "$as_me:$LINENO: checking whether ln works" >&5
4408 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4409 rm -f conf$$ conf$$.file
4411 if ln conf$$.file conf$$ 2>/dev/null; then
4414 echo "$as_me:$LINENO: result: yes" >&5
4415 echo "${ECHO_T}yes" >&6
4419 echo "$as_me:$LINENO: result: no, using $LN" >&5
4420 echo "${ECHO_T}no, using $LN" >&6
4422 rm -f conf$$ conf$$.file
4423 # Extract the first word of "c2man", so it can be a program name with args.
4424 set dummy c2man; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_C2MAN+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$C2MAN"; then
4431 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_C2MAN="c2man"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4450 C2MAN=$ac_cv_prog_C2MAN
4451 if test -n "$C2MAN"; then
4452 echo "$as_me:$LINENO: result: $C2MAN" >&5
4453 echo "${ECHO_T}$C2MAN" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 # Extract the first word of "ldconfig", so it can be a program name with args.
4460 set dummy ldconfig; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in /sbin /usr/sbin $PATH
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4489 LDCONFIG=$ac_cv_path_LDCONFIG
4491 if test -n "$LDCONFIG"; then
4492 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4493 echo "${ECHO_T}$LDCONFIG" >&6
4495 echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4500 for ac_prog in lclint lint
4502 # Extract the first word of "$ac_prog", so it can be a program name with args.
4503 set dummy $ac_prog; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_prog_LINT+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 if test -n "$LINT"; then
4510 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_LINT="$ac_prog"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 LINT=$ac_cv_prog_LINT
4529 if test -n "$LINT"; then
4530 echo "$as_me:$LINENO: result: $LINT" >&5
4531 echo "${ECHO_T}$LINT" >&6
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4537 test -n "$LINT" && break
4540 if test "$LINT" = "lint"
4542 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4549 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4550 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4551 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_check_lib_save_LIBS=$LIBS
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 #include "confdefs.h"
4560 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4567 #ifdef F77_DUMMY_MAIN
4571 int F77_DUMMY_MAIN() { return 1; }
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583 (eval $ac_link) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -s conftest$ac_exeext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_cv_lib_m_sqrt=yes
4595 echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4600 LIBS=$ac_check_lib_save_LIBS
4602 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4603 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4604 if test $ac_cv_lib_m_sqrt = yes; then
4605 cat >>confdefs.h <<_ACEOF
4614 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4615 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4616 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 ac_check_lib_save_LIBS=$LIBS
4621 cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 #include "confdefs.h"
4625 /* Override any gcc2 internal prototype to avoid an error. */
4629 /* We use char because int might match the return type of a gcc2
4630 builtin and then its argument prototype would still apply. */
4631 char i386_set_ldt ();
4632 #ifdef F77_DUMMY_MAIN
4636 int F77_DUMMY_MAIN() { return 1; }
4646 rm -f conftest.$ac_objext conftest$ac_exeext
4647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648 (eval $ac_link) 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_cv_lib_i386_i386_set_ldt=yes
4660 echo "$as_me: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4662 ac_cv_lib_i386_i386_set_ldt=no
4664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665 LIBS=$ac_check_lib_save_LIBS
4667 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4668 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4669 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define HAVE_LIBI386 1
4679 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4680 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4681 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_check_lib_save_LIBS=$LIBS
4685 LIBS="-lossaudio $LIBS"
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4688 #include "confdefs.h"
4690 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4697 #ifdef F77_DUMMY_MAIN
4701 int F77_DUMMY_MAIN() { return 1; }
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_ossaudio__oss_ioctl=yes
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 ac_cv_lib_ossaudio__oss_ioctl=no
4729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4730 LIBS=$ac_check_lib_save_LIBS
4732 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4733 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4734 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4735 cat >>confdefs.h <<_ACEOF
4736 #define HAVE_LIBOSSAUDIO 1
4739 LIBS="-lossaudio $LIBS"
4744 for ac_func in iswalnum
4746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4747 echo "$as_me:$LINENO: checking for $ac_func" >&5
4748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4749 if eval "test \"\${$as_ac_var+set}\" = set"; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 #include "confdefs.h"
4755 /* System header to define __stub macros and hopefully few prototypes,
4756 which can conflict with char $ac_func (); below. */
4758 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4767 #ifdef F77_DUMMY_MAIN
4771 int F77_DUMMY_MAIN() { return 1; }
4776 /* The GNU C library defines this for functions which it implements
4777 to always fail with ENOSYS. Some functions are actually named
4778 something starting with __ and the normal name is an alias. */
4779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4791 (eval $ac_link) 2>&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -s conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 eval "$as_ac_var=yes"
4803 echo "$as_me: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4805 eval "$as_ac_var=no"
4807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4811 if test `eval echo '${'$as_ac_var'}'` = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4819 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4820 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_check_lib_save_LIBS=$LIBS
4825 cat >conftest.$ac_ext <<_ACEOF
4826 #line $LINENO "configure"
4827 #include "confdefs.h"
4829 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4836 #ifdef F77_DUMMY_MAIN
4840 int F77_DUMMY_MAIN() { return 1; }
4850 rm -f conftest.$ac_objext conftest$ac_exeext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852 (eval $ac_link) 2>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -s conftest$ac_exeext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 ac_cv_lib_w_iswalnum=yes
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 ac_cv_lib_w_iswalnum=no
4868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4869 LIBS=$ac_check_lib_save_LIBS
4871 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4872 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4873 if test $ac_cv_lib_w_iswalnum = yes; then
4874 cat >>confdefs.h <<_ACEOF
4886 for ac_func in gethostbyname
4888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4889 echo "$as_me:$LINENO: checking for $ac_func" >&5
4890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4891 if eval "test \"\${$as_ac_var+set}\" = set"; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897 /* System header to define __stub macros and hopefully few prototypes,
4898 which can conflict with char $ac_func (); below. */
4900 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4909 #ifdef F77_DUMMY_MAIN
4913 int F77_DUMMY_MAIN() { return 1; }
4918 /* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4931 rm -f conftest.$ac_objext conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 eval "$as_ac_var=yes"
4945 echo "$as_me: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 eval "$as_ac_var=no"
4949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4953 if test `eval echo '${'$as_ac_var'}'` = yes; then
4954 cat >>confdefs.h <<_ACEOF
4955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4960 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4961 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4962 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 ac_check_lib_save_LIBS=$LIBS
4967 cat >conftest.$ac_ext <<_ACEOF
4968 #line $LINENO "configure"
4969 #include "confdefs.h"
4971 /* Override any gcc2 internal prototype to avoid an error. */
4975 /* We use char because int might match the return type of a gcc2
4976 builtin and then its argument prototype would still apply. */
4977 char gethostbyname ();
4978 #ifdef F77_DUMMY_MAIN
4982 int F77_DUMMY_MAIN() { return 1; }
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4994 (eval $ac_link) 2>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -s conftest$ac_exeext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_lib_nsl_gethostbyname=yes
5006 echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 ac_cv_lib_nsl_gethostbyname=no
5010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5011 LIBS=$ac_check_lib_save_LIBS
5013 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5014 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5015 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5016 cat >>confdefs.h <<_ACEOF
5017 #define HAVE_LIBNSL 1
5028 for ac_func in connect
5030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5031 echo "$as_me:$LINENO: checking for $ac_func" >&5
5032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_var+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char $ac_func (); below. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5051 #ifdef F77_DUMMY_MAIN
5055 int F77_DUMMY_MAIN() { return 1; }
5060 /* The GNU C library defines this for functions which it implements
5061 to always fail with ENOSYS. Some functions are actually named
5062 something starting with __ and the normal name is an alias. */
5063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 eval "$as_ac_var=yes"
5087 echo "$as_me: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5089 eval "$as_ac_var=no"
5091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5095 if test `eval echo '${'$as_ac_var'}'` = yes; then
5096 cat >>confdefs.h <<_ACEOF
5097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5102 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5103 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5104 if test "${ac_cv_lib_socket_connect+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lsocket $LIBS"
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5113 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5120 #ifdef F77_DUMMY_MAIN
5124 int F77_DUMMY_MAIN() { return 1; }
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_lib_socket_connect=yes
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 ac_cv_lib_socket_connect=no
5152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5155 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5156 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5157 if test $ac_cv_lib_socket_connect = yes; then
5158 cat >>confdefs.h <<_ACEOF
5159 #define HAVE_LIBSOCKET 1
5162 LIBS="-lsocket $LIBS"
5170 for ac_func in inet_aton
5172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5173 echo "$as_me:$LINENO: checking for $ac_func" >&5
5174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_var+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181 /* System header to define __stub macros and hopefully few prototypes,
5182 which can conflict with char $ac_func (); below. */
5184 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5193 #ifdef F77_DUMMY_MAIN
5197 int F77_DUMMY_MAIN() { return 1; }
5202 /* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 eval "$as_ac_var=yes"
5229 echo "$as_me: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5231 eval "$as_ac_var=no"
5233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5237 if test `eval echo '${'$as_ac_var'}'` = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5244 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5245 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5246 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lresolv $LIBS"
5251 cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 #include "confdefs.h"
5255 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5262 #ifdef F77_DUMMY_MAIN
5266 int F77_DUMMY_MAIN() { return 1; }
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278 (eval $ac_link) 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest$ac_exeext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_lib_resolv_inet_aton=yes
5290 echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 ac_cv_lib_resolv_inet_aton=no
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5297 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5298 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5299 if test $ac_cv_lib_resolv_inet_aton = yes; then
5300 cat >>confdefs.h <<_ACEOF
5301 #define HAVE_LIBRESOLV 1
5304 LIBS="-lresolv $LIBS"
5312 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5313 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5314 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 ac_check_lib_save_LIBS=$LIBS
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 #include "confdefs.h"
5323 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5329 char _xpg4_setrunelocale ();
5330 #ifdef F77_DUMMY_MAIN
5334 int F77_DUMMY_MAIN() { return 1; }
5339 _xpg4_setrunelocale ();
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5366 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5367 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5368 cat >>confdefs.h <<_ACEOF
5369 #define HAVE_LIBXPG4 1
5377 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5378 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5379 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 ac_check_lib_save_LIBS=$LIBS
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5388 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5395 #ifdef F77_DUMMY_MAIN
5399 int F77_DUMMY_MAIN() { return 1; }
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411 (eval $ac_link) 2>&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -s conftest$ac_exeext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_cv_lib_mmap_mmap=yes
5423 echo "$as_me: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5425 ac_cv_lib_mmap_mmap=no
5427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5428 LIBS=$ac_check_lib_save_LIBS
5430 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5431 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5432 if test $ac_cv_lib_mmap_mmap = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define HAVE_LIBMMAP 1
5444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5446 if test "${ac_cv_header_stdc+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5461 egrep -v '^ *\+' conftest.er1 >conftest.err
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev/null; then
5466 if test -s conftest.err; then
5467 ac_cpp_err=$ac_c_preproc_warn_flag
5474 if test -z "$ac_cpp_err"; then
5475 ac_cv_header_stdc=yes
5477 echo "$as_me: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 ac_cv_header_stdc=no
5481 rm -f conftest.err conftest.$ac_ext
5483 if test $ac_cv_header_stdc = yes; then
5484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485 cat >conftest.$ac_ext <<_ACEOF
5486 #line $LINENO "configure"
5487 #include "confdefs.h"
5491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492 egrep "memchr" >/dev/null 2>&1; then
5495 ac_cv_header_stdc=no
5501 if test $ac_cv_header_stdc = yes; then
5502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510 egrep "free" >/dev/null 2>&1; then
5513 ac_cv_header_stdc=no
5519 if test $ac_cv_header_stdc = yes; then
5520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5521 if test "$cross_compiling" = yes; then
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line $LINENO "configure"
5526 #include "confdefs.h"
5528 #if ((' ' & 0x0FF) == 0x020)
5529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5532 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5533 || ('j' <= (c) && (c) <= 'r') \
5534 || ('s' <= (c) && (c) <= 'z'))
5535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5543 for (i = 0; i < 256; i++)
5544 if (XOR (islower (i), ISLOWER (i))
5545 || toupper (i) != TOUPPER (i))
5550 rm -f conftest$ac_exeext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5563 echo "$as_me: program exited with status $ac_status" >&5
5564 echo "$as_me: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5567 ac_cv_header_stdc=no
5569 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5575 if test $ac_cv_header_stdc = yes; then
5577 cat >>confdefs.h <<\_ACEOF
5578 #define STDC_HEADERS 1
5583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5594 inttypes.h stdint.h unistd.h
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 #include "confdefs.h"
5605 $ac_includes_default
5607 #include <$ac_header>
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 eval "$as_ac_Header=yes"
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 eval "$as_ac_Header=no"
5627 rm -f conftest.$ac_objext conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5632 cat >>confdefs.h <<_ACEOF
5633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642 for ac_header in jpeglib.h
5644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646 echo "$as_me:$LINENO: checking for $ac_header" >&5
5647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5654 # Is the header compilable?
5655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 #include "confdefs.h"
5660 $ac_includes_default
5661 #include <$ac_header>
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_header_compiler=yes
5677 echo "$as_me: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 ac_header_compiler=no
5681 rm -f conftest.$ac_objext conftest.$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5683 echo "${ECHO_T}$ac_header_compiler" >&6
5685 # Is the header present?
5686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 #include <$ac_header>
5693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5696 egrep -v '^ *\+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } >/dev/null; then
5701 if test -s conftest.err; then
5702 ac_cpp_err=$ac_c_preproc_warn_flag
5709 if test -z "$ac_cpp_err"; then
5710 ac_header_preproc=yes
5712 echo "$as_me: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 ac_header_preproc=no
5716 rm -f conftest.err conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5718 echo "${ECHO_T}$ac_header_preproc" >&6
5720 # So? What about this header?
5721 case $ac_header_compiler:$ac_header_preproc in
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5735 echo "$as_me:$LINENO: checking for $ac_header" >&5
5736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 eval "$as_ac_Header=$ac_header_preproc"
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5747 cat >>confdefs.h <<_ACEOF
5748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5751 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5752 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_check_lib_save_LIBS=$LIBS
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5761 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5767 char jpeg_start_decompress ();
5768 #ifdef F77_DUMMY_MAIN
5772 int F77_DUMMY_MAIN() { return 1; }
5777 jpeg_start_decompress ();
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 ac_cv_lib_jpeg_jpeg_start_decompress=no
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 LIBS=$ac_check_lib_save_LIBS
5803 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5804 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5805 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_LIBJPEG 1
5829 if test "$have_x" = "yes"
5832 ac_save_CPPFLAGS="$CPPFLAGS"
5833 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5836 for ac_header in X11/Xlib.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840 echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5848 # Is the header compilable?
5849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5853 #include "confdefs.h"
5854 $ac_includes_default
5855 #include <$ac_header>
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_header_compiler=yes
5871 echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 ac_header_compiler=no
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5877 echo "${ECHO_T}$ac_header_compiler" >&6
5879 # Is the header present?
5880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5882 cat >conftest.$ac_ext <<_ACEOF
5883 #line $LINENO "configure"
5884 #include "confdefs.h"
5885 #include <$ac_header>
5887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5890 egrep -v '^ *\+' conftest.er1 >conftest.err
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } >/dev/null; then
5895 if test -s conftest.err; then
5896 ac_cpp_err=$ac_c_preproc_warn_flag
5903 if test -z "$ac_cpp_err"; then
5904 ac_header_preproc=yes
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_header_preproc=no
5910 rm -f conftest.err conftest.$ac_ext
5911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912 echo "${ECHO_T}$ac_header_preproc" >&6
5914 # So? What about this header?
5915 case $ac_header_compiler:$ac_header_preproc in
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5929 echo "$as_me:$LINENO: checking for $ac_header" >&5
5930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 eval "$as_ac_Header=$ac_header_preproc"
5936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5941 cat >>confdefs.h <<_ACEOF
5942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 for ac_header in X11/XKBlib.h
5948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_header" >&5
5950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 cat >conftest.$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5957 #include <X11/Xlib.h>
5959 #include <$ac_header>
5961 rm -f conftest.$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 eval "$as_ac_Header=yes"
5975 echo "$as_me: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 eval "$as_ac_Header=no"
5979 rm -f conftest.$ac_objext conftest.$ac_ext
5981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5984 cat >>confdefs.h <<_ACEOF
5985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5988 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5989 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_check_lib_save_LIBS=$LIBS
5993 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5994 cat >conftest.$ac_ext <<_ACEOF
5995 #line $LINENO "configure"
5996 #include "confdefs.h"
5998 /* Override any gcc2 internal prototype to avoid an error. */
6002 /* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6004 char XkbQueryExtension ();
6005 #ifdef F77_DUMMY_MAIN
6009 int F77_DUMMY_MAIN() { return 1; }
6014 XkbQueryExtension ();
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6021 (eval $ac_link) 2>&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try='test -s conftest$ac_exeext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_cv_lib_X11_XkbQueryExtension=yes
6033 echo "$as_me: failed program was:" >&5
6034 cat conftest.$ac_ext >&5
6035 ac_cv_lib_X11_XkbQueryExtension=no
6037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038 LIBS=$ac_check_lib_save_LIBS
6040 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6041 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6042 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6044 cat >>confdefs.h <<\_ACEOF
6052 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6053 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6060 for ac_header in X11/extensions/XShm.h
6062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6063 echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 #include "confdefs.h"
6071 #include <X11/Xlib.h>
6073 #include <$ac_header>
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 eval "$as_ac_Header=yes"
6089 echo "$as_me: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 eval "$as_ac_Header=no"
6093 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6101 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6102 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6103 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 ac_check_lib_save_LIBS=$LIBS
6107 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6108 cat >conftest.$ac_ext <<_ACEOF
6109 #line $LINENO "configure"
6110 #include "confdefs.h"
6112 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6118 char XShmQueryExtension ();
6119 #ifdef F77_DUMMY_MAIN
6123 int F77_DUMMY_MAIN() { return 1; }
6128 XShmQueryExtension ();
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6135 (eval $ac_link) 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -s conftest$ac_exeext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_lib_Xext_XShmQueryExtension=yes
6147 echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 ac_cv_lib_Xext_XShmQueryExtension=no
6151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152 LIBS=$ac_check_lib_save_LIBS
6154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6155 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6156 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6158 cat >>confdefs.h <<\_ACEOF
6159 #define HAVE_LIBXXSHM 1
6166 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6167 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6174 for ac_header in X11/Xutil.h
6176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177 echo "$as_me:$LINENO: checking for $ac_header" >&5
6178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 cat >conftest.$ac_ext <<_ACEOF
6183 #line $LINENO "configure"
6184 #include "confdefs.h"
6185 #include <X11/Xlib.h>
6187 #include <$ac_header>
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 eval "$as_ac_Header=yes"
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6205 eval "$as_ac_Header=no"
6207 rm -f conftest.$ac_objext conftest.$ac_ext
6209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6222 for ac_header in X11/extensions/shape.h
6224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6225 echo "$as_me:$LINENO: checking for $ac_header" >&5
6226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 #include "confdefs.h"
6233 #include <X11/Xlib.h>
6234 #ifdef HAVE_X11_XUTIL_H
6235 # include <X11/Xutil.h>
6238 #include <$ac_header>
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242 (eval $ac_compile) 2>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 eval "$as_ac_Header=yes"
6254 echo "$as_me: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6256 eval "$as_ac_Header=no"
6258 rm -f conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h <<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6267 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6268 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 ac_check_lib_save_LIBS=$LIBS
6272 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6273 cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 #include "confdefs.h"
6277 /* Override any gcc2 internal prototype to avoid an error. */
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char XShapeQueryExtension ();
6284 #ifdef F77_DUMMY_MAIN
6288 int F77_DUMMY_MAIN() { return 1; }
6293 XShapeQueryExtension ();
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6300 (eval $ac_link) 2>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -s conftest$ac_exeext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 ac_cv_lib_Xext_XShapeQueryExtension=yes
6312 echo "$as_me: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 ac_cv_lib_Xext_XShapeQueryExtension=no
6316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_check_lib_save_LIBS
6319 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6320 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6321 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6323 cat >>confdefs.h <<\_ACEOF
6324 #define HAVE_LIBXSHAPE 1
6331 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6332 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6339 for ac_header in X11/extensions/xf86dga.h
6341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342 echo "$as_me:$LINENO: checking for $ac_header" >&5
6343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 #include "confdefs.h"
6350 #include <X11/Xlib.h>
6352 #include <$ac_header>
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 eval "$as_ac_Header=yes"
6368 echo "$as_me: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 eval "$as_ac_Header=no"
6372 rm -f conftest.$ac_objext conftest.$ac_ext
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6377 cat >>confdefs.h <<_ACEOF
6378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6380 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6381 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6382 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_check_lib_save_LIBS=$LIBS
6386 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6388 cat >conftest.$ac_ext <<_ACEOF
6389 #line $LINENO "configure"
6390 #include "confdefs.h"
6392 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char XDGAQueryExtension ();
6399 #ifdef F77_DUMMY_MAIN
6403 int F77_DUMMY_MAIN() { return 1; }
6408 XDGAQueryExtension ();
6413 rm -f conftest.$ac_objext conftest$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6427 echo "$as_me: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432 LIBS=$ac_check_lib_save_LIBS
6434 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6435 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6436 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_LIBXXF86DGA2 1
6442 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6445 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6446 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6447 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6453 cat >conftest.$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6455 #include "confdefs.h"
6457 /* Override any gcc2 internal prototype to avoid an error. */
6461 /* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6463 char XF86DGAQueryExtension ();
6464 #ifdef F77_DUMMY_MAIN
6468 int F77_DUMMY_MAIN() { return 1; }
6473 XF86DGAQueryExtension ();
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480 (eval $ac_link) 2>&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6492 echo "$as_me: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6494 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_check_lib_save_LIBS
6499 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6500 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6501 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6503 cat >>confdefs.h <<\_ACEOF
6504 #define HAVE_LIBXXF86DGA 1
6507 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6516 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6517 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6524 for ac_header in X11/extensions/xf86vmode.h
6526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 cat >conftest.$ac_ext <<_ACEOF
6533 #line $LINENO "configure"
6534 #include "confdefs.h"
6535 #include <X11/Xlib.h>
6537 #include <$ac_header>
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_Header=yes"
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 eval "$as_ac_Header=no"
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6562 cat >>confdefs.h <<_ACEOF
6563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6566 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6567 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 ac_check_lib_save_LIBS=$LIBS
6571 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6583 char XF86VidModeQueryExtension ();
6584 #ifdef F77_DUMMY_MAIN
6588 int F77_DUMMY_MAIN() { return 1; }
6593 XF86VidModeQueryExtension ();
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6612 echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6620 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6621 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_LIBXXF86VM 1
6627 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6633 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6634 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6641 for ac_header in X11/extensions/Xvlib.h
6643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 cat >conftest.$ac_ext <<_ACEOF
6650 #line $LINENO "configure"
6651 #include "confdefs.h"
6652 #include <X11/Xlib.h>
6654 #include <$ac_header>
6656 rm -f conftest.$ac_objext
6657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 eval "$as_ac_Header=yes"
6670 echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 eval "$as_ac_Header=no"
6674 rm -f conftest.$ac_objext conftest.$ac_ext
6676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6679 cat >>confdefs.h <<_ACEOF
6680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6682 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6683 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6684 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_check_lib_save_LIBS=$LIBS
6688 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6690 cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 #include "confdefs.h"
6694 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6700 char XvShmCreateImage ();
6701 #ifdef F77_DUMMY_MAIN
6705 int F77_DUMMY_MAIN() { return 1; }
6710 XvShmCreateImage ();
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717 (eval $ac_link) 2>&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest$ac_exeext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 ac_cv_lib_Xv_XvShmCreateImage=yes
6729 echo "$as_me: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6731 ac_cv_lib_Xv_XvShmCreateImage=no
6733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6734 LIBS=$ac_check_lib_save_LIBS
6736 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6737 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6738 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_XVIDEO 1
6744 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6750 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6751 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6758 for ac_header in X11/extensions/Xrender.h
6760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6761 echo "$as_me:$LINENO: checking for $ac_header" >&5
6762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 cat >conftest.$ac_ext <<_ACEOF
6767 #line $LINENO "configure"
6768 #include "confdefs.h"
6769 #include <X11/Xlib.h>
6771 #include <$ac_header>
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 eval "$as_ac_Header=yes"
6787 echo "$as_me: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 eval "$as_ac_Header=no"
6791 rm -f conftest.$ac_objext conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6796 cat >>confdefs.h <<_ACEOF
6797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 if test "x$enable_opengl" != "xno"
6812 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6814 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6815 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6816 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6817 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6818 { (exit 1); exit 1; }; }
6823 for ac_header in GL/gl.h GL/glx.h
6825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6827 echo "$as_me:$LINENO: checking for $ac_header" >&5
6828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 # Is the header compilable?
6836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 #include "confdefs.h"
6841 $ac_includes_default
6842 #include <$ac_header>
6844 rm -f conftest.$ac_objext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -s conftest.$ac_objext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 ac_header_compiler=yes
6858 echo "$as_me: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 ac_header_compiler=no
6862 rm -f conftest.$ac_objext conftest.$ac_ext
6863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6864 echo "${ECHO_T}$ac_header_compiler" >&6
6866 # Is the header present?
6867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6870 #line $LINENO "configure"
6871 #include "confdefs.h"
6872 #include <$ac_header>
6874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6877 egrep -v '^ *\+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } >/dev/null; then
6882 if test -s conftest.err; then
6883 ac_cpp_err=$ac_c_preproc_warn_flag
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc=yes
6893 echo "$as_me: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6895 ac_header_preproc=no
6897 rm -f conftest.err conftest.$ac_ext
6898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6899 echo "${ECHO_T}$ac_header_preproc" >&6
6901 # So? What about this header?
6902 case $ac_header_compiler:$ac_header_preproc in
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6916 echo "$as_me:$LINENO: checking for $ac_header" >&5
6917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 eval "$as_ac_Header=$ac_header_preproc"
6923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6936 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6939 for ac_header in GL/glext.h
6941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6942 echo "$as_me:$LINENO: checking for $ac_header" >&5
6943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 cat >conftest.$ac_ext <<_ACEOF
6948 #line $LINENO "configure"
6949 #include "confdefs.h"
6952 #include <$ac_header>
6954 rm -f conftest.$ac_objext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956 (eval $ac_compile) 2>&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 eval "$as_ac_Header=yes"
6968 echo "$as_me: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 eval "$as_ac_Header=no"
6972 rm -f conftest.$ac_objext conftest.$ac_ext
6974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6985 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6986 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6987 if test "${wine_cv_opengl_version_OK+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 cat >conftest.$ac_ext <<_ACEOF
6991 #line $LINENO "configure"
6992 #include "confdefs.h"
6994 #ifdef F77_DUMMY_MAIN
6998 int F77_DUMMY_MAIN() { return 1; }
7003 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 wine_cv_opengl_version_OK="yes"
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 wine_cv_opengl_version_OK="no"
7027 rm -f conftest.$ac_objext conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7031 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7033 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7034 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7035 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.$ac_ext <<_ACEOF
7041 #line $LINENO "configure"
7042 #include "confdefs.h"
7044 #ifdef F77_DUMMY_MAIN
7048 int F77_DUMMY_MAIN() { return 1; }
7053 pthread_getspecific();
7058 rm -f conftest.$ac_objext conftest$ac_exeext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 (eval $ac_link) 2>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -s conftest$ac_exeext'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070 wine_cv_opengl_version_threadsafe="yes"
7072 echo "$as_me: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 wine_cv_opengl_version_threadsafe="no"
7076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7080 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7081 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7083 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7085 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7086 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7087 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 ac_check_lib_save_LIBS=$LIBS
7091 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7092 cat >conftest.$ac_ext <<_ACEOF
7093 #line $LINENO "configure"
7094 #include "confdefs.h"
7096 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7102 char glXCreateContext ();
7103 #ifdef F77_DUMMY_MAIN
7107 int F77_DUMMY_MAIN() { return 1; }
7112 glXCreateContext ();
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_lib_GL_glXCreateContext=yes
7131 echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 ac_cv_lib_GL_glXCreateContext=no
7135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_check_lib_save_LIBS
7138 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7139 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7140 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7141 X_PRE_LIBS="$X_PRE_LIBS -lGL"
7146 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7148 OPENGLFILES='$(OPENGLFILES)'
7150 cat >>confdefs.h <<\_ACEOF
7151 #define HAVE_OPENGL 1
7155 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7156 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7157 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 #line $LINENO "configure"
7164 #include "confdefs.h"
7166 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172 char glXGetProcAddressARB ();
7173 #ifdef F77_DUMMY_MAIN
7177 int F77_DUMMY_MAIN() { return 1; }
7182 glXGetProcAddressARB ();
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189 (eval $ac_link) 2>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -s conftest$ac_exeext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_cv_lib_GL_glXGetProcAddressARB=yes
7201 echo "$as_me: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 ac_cv_lib_GL_glXGetProcAddressARB=no
7205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206 LIBS=$ac_check_lib_save_LIBS
7208 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7209 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7210 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_GLX_GETPROCADDRESS 1
7219 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7221 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7222 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7223 if test "${wine_cv_extension_prototypes+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 cat >conftest.$ac_ext <<_ACEOF
7227 #line $LINENO "configure"
7228 #include "confdefs.h"
7230 #ifdef HAVE_GL_GLEXT_H
7231 # include <GL/glext.h>
7234 #ifdef F77_DUMMY_MAIN
7238 int F77_DUMMY_MAIN() { return 1; }
7243 PFNGLCOLORTABLEEXTPROC test_proc;
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250 (eval $ac_compile) 2>&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -s conftest.$ac_objext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 wine_cv_extension_prototypes="yes"
7262 echo "$as_me: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7264 wine_cv_extension_prototypes="no"
7267 rm -f conftest.$ac_objext conftest.$ac_ext
7270 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7271 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7272 if test "$wine_cv_extension_prototypes" = "yes"
7275 cat >>confdefs.h <<\_ACEOF
7276 #define HAVE_GLEXT_PROTOTYPES 1
7283 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7284 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7285 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 ac_check_lib_save_LIBS=$LIBS
7289 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7302 #ifdef F77_DUMMY_MAIN
7306 int F77_DUMMY_MAIN() { return 1; }
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7318 (eval $ac_link) 2>&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_lib_GLU_gluLookAt=yes
7330 echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 ac_cv_lib_GLU_gluLookAt=no
7334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7335 LIBS=$ac_check_lib_save_LIBS
7337 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7338 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7339 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7340 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7341 GLU32FILES='$(GLU32FILES)'
7349 CPPFLAGS="$ac_save_CPPFLAGS"
7358 if test "x$with_curses" != "xno"
7361 for ac_header in ncurses.h
7363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365 echo "$as_me:$LINENO: checking for $ac_header" >&5
7366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7373 # Is the header compilable?
7374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 #include "confdefs.h"
7379 $ac_includes_default
7380 #include <$ac_header>
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler=yes
7396 echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 ac_header_compiler=no
7400 rm -f conftest.$ac_objext conftest.$ac_ext
7401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7402 echo "${ECHO_T}$ac_header_compiler" >&6
7404 # Is the header present?
7405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line $LINENO "configure"
7409 #include "confdefs.h"
7410 #include <$ac_header>
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415 egrep -v '^ *\+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null; then
7420 if test -s conftest.err; then
7421 ac_cpp_err=$ac_c_preproc_warn_flag
7428 if test -z "$ac_cpp_err"; then
7429 ac_header_preproc=yes
7431 echo "$as_me: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 ac_header_preproc=no
7435 rm -f conftest.err conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7437 echo "${ECHO_T}$ac_header_preproc" >&6
7439 # So? What about this header?
7440 case $ac_header_compiler:$ac_header_preproc in
7442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 eval "$as_ac_Header=$ac_header_preproc"
7461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7469 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7470 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7471 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 ac_check_lib_save_LIBS=$LIBS
7475 LIBS="-lncurses $LIBS"
7476 cat >conftest.$ac_ext <<_ACEOF
7477 #line $LINENO "configure"
7478 #include "confdefs.h"
7480 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7487 #ifdef F77_DUMMY_MAIN
7491 int F77_DUMMY_MAIN() { return 1; }
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_lib_ncurses_waddch=yes
7515 echo "$as_me: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 ac_cv_lib_ncurses_waddch=no
7519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7520 LIBS=$ac_check_lib_save_LIBS
7522 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7523 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7524 if test $ac_cv_lib_ncurses_waddch = yes; then
7526 cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_LIBNCURSES 1
7530 CURSESLIBS="-lncurses"
7533 for ac_header in curses.h
7535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537 echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7545 # Is the header compilable?
7546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7549 #line $LINENO "configure"
7550 #include "confdefs.h"
7551 $ac_includes_default
7552 #include <$ac_header>
7554 rm -f conftest.$ac_objext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7568 echo "$as_me: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 ac_header_compiler=no
7572 rm -f conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7574 echo "${ECHO_T}$ac_header_compiler" >&6
7576 # Is the header present?
7577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 #include <$ac_header>
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7587 egrep -v '^ *\+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } >/dev/null; then
7592 if test -s conftest.err; then
7593 ac_cpp_err=$ac_c_preproc_warn_flag
7600 if test -z "$ac_cpp_err"; then
7601 ac_header_preproc=yes
7603 echo "$as_me: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 ac_header_preproc=no
7607 rm -f conftest.err conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7609 echo "${ECHO_T}$ac_header_preproc" >&6
7611 # So? What about this header?
7612 case $ac_header_compiler:$ac_header_preproc in
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7626 echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 eval "$as_ac_Header=$ac_header_preproc"
7633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7641 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7642 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7643 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_check_lib_save_LIBS=$LIBS
7647 LIBS="-lcurses $LIBS"
7648 cat >conftest.$ac_ext <<_ACEOF
7649 #line $LINENO "configure"
7650 #include "confdefs.h"
7652 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7659 #ifdef F77_DUMMY_MAIN
7663 int F77_DUMMY_MAIN() { return 1; }
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675 (eval $ac_link) 2>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -s conftest$ac_exeext'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_lib_curses_waddch=yes
7687 echo "$as_me: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 ac_cv_lib_curses_waddch=no
7691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7692 LIBS=$ac_check_lib_save_LIBS
7694 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7695 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7696 if test $ac_cv_lib_curses_waddch = yes; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_LIBCURSES 1
7702 CURSESLIBS="-lcurses"
7716 LIBS="$CURSESLIBS $LIBS"
7719 for ac_func in getbkgd resizeterm
7721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7722 echo "$as_me:$LINENO: checking for $ac_func" >&5
7723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_var+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char $ac_func (); below. */
7733 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7742 #ifdef F77_DUMMY_MAIN
7746 int F77_DUMMY_MAIN() { return 1; }
7751 /* The GNU C library defines this for functions which it implements
7752 to always fail with ENOSYS. Some functions are actually named
7753 something starting with __ and the normal name is an alias. */
7754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766 (eval $ac_link) 2>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -s conftest$ac_exeext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 eval "$as_ac_var=yes"
7778 echo "$as_me: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7780 eval "$as_ac_var=no"
7782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7786 if test `eval echo '${'$as_ac_var'}'` = yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7799 wine_cv_warn_cups_h=no
7800 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7801 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7802 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 ac_check_lib_save_LIBS=$LIBS
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7809 #include "confdefs.h"
7811 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7818 #ifdef F77_DUMMY_MAIN
7822 int F77_DUMMY_MAIN() { return 1; }
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_lib_cups_cupsGetPPD=yes
7846 echo "$as_me: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 ac_cv_lib_cups_cupsGetPPD=no
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7854 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7855 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7856 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7857 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7858 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7859 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7863 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7865 # Is the header compilable?
7866 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7867 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 #include "confdefs.h"
7871 $ac_includes_default
7872 #include <cups/cups.h>
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_header_compiler=yes
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_compiler=no
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894 echo "${ECHO_T}$ac_header_compiler" >&6
7896 # Is the header present?
7897 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7898 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7902 #include <cups/cups.h>
7904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7907 egrep -v '^ *\+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null; then
7912 if test -s conftest.err; then
7913 ac_cpp_err=$ac_c_preproc_warn_flag
7920 if test -z "$ac_cpp_err"; then
7921 ac_header_preproc=yes
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 ac_header_preproc=no
7927 rm -f conftest.err conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929 echo "${ECHO_T}$ac_header_preproc" >&6
7931 # So? What about this header?
7932 case $ac_header_compiler:$ac_header_preproc in
7934 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7935 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7937 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7939 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7940 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7942 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7944 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7946 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7947 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7948 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 ac_cv_header_cups_cups_h=$ac_header_preproc
7953 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7954 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7957 if test $ac_cv_header_cups_cups_h = yes; then
7959 cat >>confdefs.h <<\_ACEOF
7965 wine_cv_warn_cups_h=yes
7974 # Extract the first word of "sane-config", so it can be a program name with args.
7975 set dummy sane-config; ac_word=$2
7976 echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978 if test "${ac_cv_prog_sane_devel+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 if test -n "$sane_devel"; then
7982 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_sane_devel="sane-config"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8001 sane_devel=$ac_cv_prog_sane_devel
8002 if test -n "$sane_devel"; then
8003 echo "$as_me:$LINENO: result: $sane_devel" >&5
8004 echo "${ECHO_T}$sane_devel" >&6
8006 echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8010 if test "$sane_devel" = "no"
8015 SANELIBS="`$sane_devel --libs`"
8016 SANEINCL="`$sane_devel --cflags`"
8017 ac_save_CPPFLAGS="$CPPFLAGS"
8018 ac_save_LIBS="$LIBS"
8019 CPPFLAGS="$CPPFLAGS $SANEINCL"
8020 LIBS="$LIBS $SANELIBS"
8021 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8022 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8023 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8024 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8028 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8030 # Is the header compilable?
8031 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8032 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 $ac_includes_default
8037 #include <sane/sane.h>
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_header_compiler=yes
8053 echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 ac_header_compiler=no
8057 rm -f conftest.$ac_objext conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8059 echo "${ECHO_T}$ac_header_compiler" >&6
8061 # Is the header present?
8062 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8063 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 #include <sane/sane.h>
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8072 egrep -v '^ *\+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } >/dev/null; then
8077 if test -s conftest.err; then
8078 ac_cpp_err=$ac_c_preproc_warn_flag
8085 if test -z "$ac_cpp_err"; then
8086 ac_header_preproc=yes
8088 echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_header_preproc=no
8092 rm -f conftest.err conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094 echo "${ECHO_T}$ac_header_preproc" >&6
8096 # So? What about this header?
8097 case $ac_header_compiler:$ac_header_preproc in
8099 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8100 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8102 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8104 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8105 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8107 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8109 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8111 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8112 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8113 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 ac_cv_header_sane_sane_h=$ac_header_preproc
8118 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8122 if test $ac_cv_header_sane_sane_h = yes; then
8123 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8124 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8125 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 ac_check_lib_save_LIBS=$LIBS
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8134 /* Override any gcc2 internal prototype to avoid an error. */
8138 /* We use char because int might match the return type of a gcc2
8139 builtin and then its argument prototype would still apply. */
8141 #ifdef F77_DUMMY_MAIN
8145 int F77_DUMMY_MAIN() { return 1; }
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157 (eval $ac_link) 2>&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 ac_cv_lib_sane_sane_open=yes
8169 echo "$as_me: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 ac_cv_lib_sane_sane_open=no
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174 LIBS=$ac_check_lib_save_LIBS
8176 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8177 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8178 if test $ac_cv_lib_sane_sane_open = yes; then
8180 cat >>confdefs.h <<\_ACEOF
8195 LIBS="$ac_save_LIBS"
8196 CPPFLAGS="$ac_save_CPPFLAGS"
8201 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8202 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8203 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 ac_check_lib_save_LIBS=$LIBS
8207 LIBS="-lfreetype $X_LIBS $LIBS"
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 #include "confdefs.h"
8212 /* Override any gcc2 internal prototype to avoid an error. */
8216 /* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218 char FT_Init_FreeType ();
8219 #ifdef F77_DUMMY_MAIN
8223 int F77_DUMMY_MAIN() { return 1; }
8228 FT_Init_FreeType ();
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -s conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_lib_freetype_FT_Init_FreeType=yes
8247 echo "$as_me: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 ac_cv_lib_freetype_FT_Init_FreeType=no
8251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_check_lib_save_LIBS
8254 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8255 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8256 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8262 if test "$ft_lib" = "no"
8265 wine_cv_msg_freetype=no
8267 # Extract the first word of "freetype-config", so it can be a program name with args.
8268 set dummy freetype-config; ac_word=$2
8269 echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8271 if test "${ac_cv_prog_ft_devel+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 if test -n "$ft_devel"; then
8275 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_ft_devel="freetype-config"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8294 ft_devel=$ac_cv_prog_ft_devel
8295 if test -n "$ft_devel"; then
8296 echo "$as_me:$LINENO: result: $ft_devel" >&5
8297 echo "${ECHO_T}$ft_devel" >&6
8299 echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8303 if test "$ft_devel" = "no"
8305 # Extract the first word of "freetype2-config", so it can be a program name with args.
8306 set dummy freetype2-config; ac_word=$2
8307 echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8309 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 if test -n "$ft_devel2"; then
8313 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_ft_devel2="freetype2-config"
8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8332 ft_devel2=$ac_cv_prog_ft_devel2
8333 if test -n "$ft_devel2"; then
8334 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8335 echo "${ECHO_T}$ft_devel2" >&6
8337 echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6
8341 if test "$ft_devel2" = "freetype2-config"
8346 if test "$ft_devel" = "no"
8349 wine_cv_msg_freetype=yes
8351 FREETYPEINCL=`$ft_devel --cflags`
8352 ac_save_CPPFLAGS="$CPPFLAGS"
8353 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8362 for ac_header in freetype/freetype.h \
8363 freetype/ftglyph.h \
8364 freetype/tttables.h \
8365 freetype/ftnames.h \
8366 freetype/ftsnames.h \
8367 freetype/ttnameid.h \
8368 freetype/ftoutln.h \
8369 freetype/internal/sfnt.h
8371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381 # Is the header compilable?
8382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8386 #include "confdefs.h"
8387 $ac_includes_default
8388 #include <$ac_header>
8390 rm -f conftest.$ac_objext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8392 (eval $ac_compile) 2>&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -s conftest.$ac_objext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_header_compiler=yes
8404 echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 ac_header_compiler=no
8408 rm -f conftest.$ac_objext conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8410 echo "${ECHO_T}$ac_header_compiler" >&6
8412 # Is the header present?
8413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 #include "confdefs.h"
8418 #include <$ac_header>
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8423 egrep -v '^ *\+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8436 if test -z "$ac_cpp_err"; then
8437 ac_header_preproc=yes
8439 echo "$as_me: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 ac_header_preproc=no
8443 rm -f conftest.err conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8445 echo "${ECHO_T}$ac_header_preproc" >&6
8447 # So? What about this header?
8448 case $ac_header_compiler:$ac_header_preproc in
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8462 echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 eval "$as_ac_Header=$ac_header_preproc"
8469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 #include "confdefs.h"
8485 #include <ft2build.h>
8486 #include <freetype/fttrigon.h>
8488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8491 egrep -v '^ *\+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } >/dev/null; then
8496 if test -s conftest.err; then
8497 ac_cpp_err=$ac_c_preproc_warn_flag
8504 if test -z "$ac_cpp_err"; then
8506 cat >>confdefs.h <<\_ACEOF
8507 #define HAVE_FREETYPE_FTTRIGON_H 1
8510 wine_cv_fttrigon=yes
8512 echo "$as_me: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8516 rm -f conftest.err conftest.$ac_ext
8517 CPPFLAGS="$ac_save_CPPFLAGS"
8518 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_FREETYPE 1
8525 wine_cv_msg_freetype=no
8528 wine_cv_msg_freetype=yes
8534 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8535 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8536 if test "${ac_cv_c_ppdev+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8541 #include "confdefs.h"
8542 #include <linux/ppdev.h>
8543 #ifdef F77_DUMMY_MAIN
8547 int F77_DUMMY_MAIN() { return 1; }
8557 rm -f conftest.$ac_objext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559 (eval $ac_compile) 2>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8571 echo "$as_me: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8575 rm -f conftest.$ac_objext conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8579 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8580 if test "$ac_cv_c_ppdev" = "yes"
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_PPDEV 1
8589 echo "$as_me:$LINENO: checking for va_copy" >&5
8590 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8591 if test "${ac_cv_c_va_copy+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8596 #include "confdefs.h"
8598 #ifdef F77_DUMMY_MAIN
8602 int F77_DUMMY_MAIN() { return 1; }
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_c_va_copy="yes"
8628 echo "$as_me: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 ac_cv_c_va_copy="no"
8632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8636 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8637 if test "$ac_cv_c_va_copy" = "yes"
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_VA_COPY 1
8645 echo "$as_me:$LINENO: checking for __va_copy" >&5
8646 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8647 if test "${ac_cv_c___va_copy+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 cat >conftest.$ac_ext <<_ACEOF
8651 #line $LINENO "configure"
8652 #include "confdefs.h"
8654 #ifdef F77_DUMMY_MAIN
8658 int F77_DUMMY_MAIN() { return 1; }
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -s conftest$ac_exeext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_cv_c___va_copy="yes"
8684 echo "$as_me: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 ac_cv_c___va_copy="no"
8688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8692 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8693 if test "$ac_cv_c___va_copy" = "yes"
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE___VA_COPY 1
8702 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8703 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8704 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8709 #include "confdefs.h"
8710 #include <sys/socket.h>
8711 #include <netipx/ipx.h>
8712 #ifdef F77_DUMMY_MAIN
8716 int F77_DUMMY_MAIN() { return 1; }
8721 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_cv_c_ipx_gnu="yes"
8740 echo "$as_me: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8742 ac_cv_c_ipx_gnu="no"
8744 rm -f conftest.$ac_objext conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8748 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8749 if test "$ac_cv_c_ipx_gnu" = "yes"
8752 cat >>confdefs.h <<\_ACEOF
8753 #define HAVE_IPX_GNU 1
8758 if test "$ac_cv_c_ipx_gnu" = "no"
8760 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8761 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8762 if test "${ac_cv_c_ipx_linux+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 #include "confdefs.h"
8768 #include <sys/socket.h>
8769 #include <asm/types.h>
8770 #include <linux/ipx.h>
8771 #ifdef F77_DUMMY_MAIN
8775 int F77_DUMMY_MAIN() { return 1; }
8780 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787 (eval $ac_compile) 2>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -s conftest.$ac_objext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_cv_c_ipx_linux="yes"
8799 echo "$as_me: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 ac_cv_c_ipx_linux="no"
8803 rm -f conftest.$ac_objext conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8807 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8808 if test "$ac_cv_c_ipx_linux" = "yes"
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_IPX_LINUX 1
8821 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825 echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8833 # Is the header compilable?
8834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 $ac_includes_default
8840 #include <$ac_header>
8842 rm -f conftest.$ac_objext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844 (eval $ac_compile) 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_header_compiler=yes
8856 echo "$as_me: failed program was:" >&5
8857 cat conftest.$ac_ext >&5
8858 ac_header_compiler=no
8860 rm -f conftest.$ac_objext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862 echo "${ECHO_T}$ac_header_compiler" >&6
8864 # Is the header present?
8865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8868 #line $LINENO "configure"
8869 #include "confdefs.h"
8870 #include <$ac_header>
8872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8875 egrep -v '^ *\+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } >/dev/null; then
8880 if test -s conftest.err; then
8881 ac_cpp_err=$ac_c_preproc_warn_flag
8888 if test -z "$ac_cpp_err"; then
8889 ac_header_preproc=yes
8891 echo "$as_me: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8893 ac_header_preproc=no
8895 rm -f conftest.err conftest.$ac_ext
8896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8897 echo "${ECHO_T}$ac_header_preproc" >&6
8899 # So? What about this header?
8900 case $ac_header_compiler:$ac_header_preproc in
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8914 echo "$as_me:$LINENO: checking for $ac_header" >&5
8915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 eval "$as_ac_Header=$ac_header_preproc"
8921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8936 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8937 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 #include "confdefs.h"
8944 #if defined(HAVE_SYS_SOUNDCARD_H)
8945 #include <sys/soundcard.h>
8946 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8947 #include <machine/soundcard.h>
8948 #elif defined(HAVE_SOUNDCARD_H)
8949 #include <soundcard.h>
8952 #ifdef F77_DUMMY_MAIN
8956 int F77_DUMMY_MAIN() { return 1; }
8963 /* check for one of the Open Sound System specific SNDCTL_ defines */
8964 #if !defined(SNDCTL_DSP_STEREO)
8965 #error No open sound system
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest.$ac_objext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_c_opensoundsystem="yes"
8986 echo "$as_me: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8988 ac_cv_c_opensoundsystem="no"
8990 rm -f conftest.$ac_objext conftest.$ac_ext
8992 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8993 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8995 if test "$ac_cv_c_opensoundsystem" = "yes"
8998 cat >>confdefs.h <<\_ACEOF
9004 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9005 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9006 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9010 #line $LINENO "configure"
9011 #include "confdefs.h"
9013 #if defined(HAVE_SYS_SOUNDCARD_H)
9014 #include <sys/soundcard.h>
9015 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9016 #include <machine/soundcard.h>
9017 #elif defined(HAVE_SOUNDCARD_H)
9018 #include <soundcard.h>
9021 #ifdef F77_DUMMY_MAIN
9025 int F77_DUMMY_MAIN() { return 1; }
9032 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9033 #if !defined(SNDCTL_SEQ_SYNC)
9034 #error No open sound system MIDI interface
9041 rm -f conftest.$ac_objext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043 (eval $ac_compile) 2>&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -s conftest.$ac_objext'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_c_opensoundsystem_midi="yes"
9055 echo "$as_me: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9057 ac_cv_c_opensoundsystem_midi="no"
9059 rm -f conftest.$ac_objext conftest.$ac_ext
9061 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9062 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9064 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_OSS_MIDI 1
9073 # Extract the first word of "artsc-config", so it can be a program name with args.
9074 set dummy artsc-config; ac_word=$2
9075 echo "$as_me:$LINENO: checking for $ac_word" >&5
9076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 case $ARTSCCONFIG in
9082 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9104 if test -n "$ARTSCCONFIG"; then
9105 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9106 echo "${ECHO_T}$ARTSCCONFIG" >&6
9108 echo "$as_me:$LINENO: result: no" >&5
9109 echo "${ECHO_T}no" >&6
9112 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9113 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9114 if test "${ac_cv_c_artsserver+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9119 ac_cv_c_artsserver=no
9121 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9122 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9123 ac_cv_c_artsserver=no
9124 save_CFLAGS="$CFLAGS"
9125 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9126 cat >conftest.$ac_ext <<_ACEOF
9127 #line $LINENO "configure"
9128 #include "confdefs.h"
9132 #ifdef F77_DUMMY_MAIN
9136 int F77_DUMMY_MAIN() { return 1; }
9142 arts_stream_t stream;
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150 (eval $ac_compile) 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest.$ac_objext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9161 ac_cv_c_artsserver=yes
9164 echo "$as_me: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9168 CFLAGS="$save_CFLAGS"
9171 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9172 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9174 if test "$ac_cv_c_artsserver" = "yes"
9176 ARTSLIBS=$ARTSC_LIBS
9178 ARTSINCL=$ARTSC_CFLAGS
9182 cat >>confdefs.h <<\_ACEOF
9192 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204 # Is the header compilable?
9205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 #line $LINENO "configure"
9209 #include "confdefs.h"
9210 $ac_includes_default
9211 #include <$ac_header>
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler=yes
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 ac_header_compiler=no
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6
9235 # Is the header present?
9236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 #include "confdefs.h"
9241 #include <$ac_header>
9243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9246 egrep -v '^ *\+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } >/dev/null; then
9251 if test -s conftest.err; then
9252 ac_cpp_err=$ac_c_preproc_warn_flag
9259 if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9262 echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9264 ac_header_preproc=no
9266 rm -f conftest.err conftest.$ac_ext
9267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9268 echo "${ECHO_T}$ac_header_preproc" >&6
9270 # So? What about this header?
9271 case $ac_header_compiler:$ac_header_preproc in
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9285 echo "$as_me:$LINENO: checking for $ac_header" >&5
9286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 eval "$as_ac_Header=$ac_header_preproc"
9292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9305 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9307 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9308 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9309 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 ac_check_lib_save_LIBS=$LIBS
9313 LIBS="-lasound $LIBS"
9314 cat >conftest.$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 #include "confdefs.h"
9318 /* Override any gcc2 internal prototype to avoid an error. */
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324 char snd_pcm_open ();
9325 #ifdef F77_DUMMY_MAIN
9329 int F77_DUMMY_MAIN() { return 1; }
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341 (eval $ac_link) 2>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest$ac_exeext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_lib_asound_snd_pcm_open=yes
9353 echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 ac_cv_lib_asound_snd_pcm_open=no
9357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9360 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9361 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9362 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9364 cat >>confdefs.h <<\_ACEOF
9376 for ac_header in audio/audiolib.h
9378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9380 echo "$as_me:$LINENO: checking for $ac_header" >&5
9381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9388 # Is the header compilable?
9389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 #include "confdefs.h"
9394 $ac_includes_default
9395 #include <$ac_header>
9397 rm -f conftest.$ac_objext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399 (eval $ac_compile) 2>&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest.$ac_objext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 ac_header_compiler=yes
9411 echo "$as_me: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 ac_header_compiler=no
9415 rm -f conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417 echo "${ECHO_T}$ac_header_compiler" >&6
9419 # Is the header present?
9420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line $LINENO "configure"
9424 #include "confdefs.h"
9425 #include <$ac_header>
9427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9430 egrep -v '^ *\+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null; then
9435 if test -s conftest.err; then
9436 ac_cpp_err=$ac_c_preproc_warn_flag
9443 if test -z "$ac_cpp_err"; then
9444 ac_header_preproc=yes
9446 echo "$as_me: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 ac_header_preproc=no
9450 rm -f conftest.err conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452 echo "${ECHO_T}$ac_header_preproc" >&6
9454 # So? What about this header?
9455 case $ac_header_compiler:$ac_header_preproc in
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9469 echo "$as_me:$LINENO: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 eval "$as_ac_Header=$ac_header_preproc"
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485 for ac_header in audio/soundlib.h
9487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488 echo "$as_me:$LINENO: checking for $ac_header" >&5
9489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 cat >conftest.$ac_ext <<_ACEOF
9494 #line $LINENO "configure"
9495 #include "confdefs.h"
9496 #include <audio/audiolib.h>
9498 #include <$ac_header>
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 eval "$as_ac_Header=yes"
9514 echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 eval "$as_ac_Header=no"
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9523 cat >>confdefs.h <<_ACEOF
9524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9532 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9533 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 #line $LINENO "configure"
9540 #include "confdefs.h"
9542 /* Override any gcc2 internal prototype to avoid an error. */
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548 char AuCreateFlow ();
9549 #ifdef F77_DUMMY_MAIN
9553 int F77_DUMMY_MAIN() { return 1; }
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_audio_AuCreateFlow=yes
9577 echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 ac_cv_lib_audio_AuCreateFlow=no
9581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9585 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9586 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9592 NASLIBS="-laudio -lXt \$(X_LIBS) \$(XLIB)"
9604 for ac_header in libaudioio.h
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608 echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9616 # Is the header compilable?
9617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 #include "confdefs.h"
9622 $ac_includes_default
9623 #include <$ac_header>
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler=yes
9639 echo "$as_me: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 ac_header_compiler=no
9643 rm -f conftest.$ac_objext conftest.$ac_ext
9644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645 echo "${ECHO_T}$ac_header_compiler" >&6
9647 # Is the header present?
9648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9650 cat >conftest.$ac_ext <<_ACEOF
9651 #line $LINENO "configure"
9652 #include "confdefs.h"
9653 #include <$ac_header>
9655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9658 egrep -v '^ *\+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } >/dev/null; then
9663 if test -s conftest.err; then
9664 ac_cpp_err=$ac_c_preproc_warn_flag
9671 if test -z "$ac_cpp_err"; then
9672 ac_header_preproc=yes
9674 echo "$as_me: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 ac_header_preproc=no
9678 rm -f conftest.err conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc in
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9697 echo "$as_me:$LINENO: checking for $ac_header" >&5
9698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 eval "$as_ac_Header=$ac_header_preproc"
9704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9709 cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9713 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9714 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-laudioio $LIBS"
9719 cat >conftest.$ac_ext <<_ACEOF
9720 #line $LINENO "configure"
9721 #include "confdefs.h"
9723 /* Override any gcc2 internal prototype to avoid an error. */
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729 char AudioIOGetVersion ();
9730 #ifdef F77_DUMMY_MAIN
9734 int F77_DUMMY_MAIN() { return 1; }
9739 AudioIOGetVersion ();
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_lib_audioio_AudioIOGetVersion=yes
9758 echo "$as_me: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9760 ac_cv_lib_audioio_AudioIOGetVersion=no
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9765 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9766 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9767 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9768 AUDIOIOLIBS="-laudioio"
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_LIBAUDIOIO 1
9782 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9783 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9784 if test "${ac_cv_mmap64_works+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 if test "$cross_compiling" = yes; then
9788 ac_cv_mmap64_works="no"
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 #include "confdefs.h"
9794 #define _FILE_OFFSET_BITS 64
9798 #include <sys/mman.h>
9801 int main(int argc,char **argv) {
9802 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9803 if (fd == -1) exit(1);
9805 unlink("conftest.map");
9809 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9815 fprintf(stderr,"success!\n");
9821 rm -f conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_mmap64_works="yes"
9834 echo "$as_me: program exited with status $ac_status" >&5
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9838 ac_cv_mmap64_works="no"
9840 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9844 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9846 if test "$ac_cv_mmap64_works" = "yes"
9849 cat >>confdefs.h <<\_ACEOF
9850 #define _FILE_OFFSET_BITS 64
9856 if test "x${GCC}" = "xyes"
9858 CFLAGS="$CFLAGS -Wall"
9859 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9860 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9861 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 if test "$cross_compiling" = yes; then
9865 ac_cv_c_gcc_strength_bug="yes"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9871 int L[4] = {0,1,2,3};
9873 static int Array[3];
9876 for(i=0; i<B; i++) Array[i] = i - 3;
9877 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9880 exit( Array[1] != -2 || L[2] != 3);
9883 rm -f conftest$ac_exeext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885 (eval $ac_link) 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_c_gcc_strength_bug="no"
9896 echo "$as_me: program exited with status $ac_status" >&5
9897 echo "$as_me: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 ac_cv_c_gcc_strength_bug="yes"
9902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9906 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9907 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9909 CFLAGS="$CFLAGS -fno-strength-reduce"
9912 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9913 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9914 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 ac_wine_try_cflags_saved=$CFLAGS
9918 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9923 #ifdef F77_DUMMY_MAIN
9927 int F77_DUMMY_MAIN() { return 1; }
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_c_gcc_stack_boundary="yes"
9951 echo "$as_me: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 ac_cv_c_gcc_stack_boundary="no"
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956 CFLAGS=$ac_wine_try_cflags_saved
9958 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9959 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9960 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9962 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9967 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9968 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9969 if test "${ac_cv_asm_func_def+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9974 #include "confdefs.h"
9975 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
9977 #ifdef F77_DUMMY_MAIN
9981 int F77_DUMMY_MAIN() { return 1; }
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_asm_func_def=".def"
10005 echo "$as_me: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 cat >conftest.$ac_ext <<_ACEOF
10008 #line $LINENO "configure"
10009 #include "confdefs.h"
10010 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10012 #ifdef F77_DUMMY_MAIN
10013 # ifdef __cplusplus
10016 int F77_DUMMY_MAIN() { return 1; }
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_asm_func_def=".type @function"
10040 echo "$as_me: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10045 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10047 #ifdef F77_DUMMY_MAIN
10048 # ifdef __cplusplus
10051 int F77_DUMMY_MAIN() { return 1; }
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_asm_func_def=".type 2"
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_asm_func_def="unknown"
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10085 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10086 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10090 case "$ac_cv_asm_func_def" in
10092 cat >>confdefs.h <<\_ACEOF
10093 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10097 cat >>confdefs.h <<\_ACEOF
10098 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10102 cat >>confdefs.h <<\_ACEOF
10103 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10107 cat >>confdefs.h <<\_ACEOF
10108 #define __ASM_FUNC(name) ""
10114 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10115 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10116 if test "${ac_cv_c_extern_prefix+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10120 #line $LINENO "configure"
10121 #include "confdefs.h"
10122 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10123 extern int ac_test;
10124 #ifdef F77_DUMMY_MAIN
10125 # ifdef __cplusplus
10128 int F77_DUMMY_MAIN() { return 1; }
10133 if (ac_test) return 1
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140 (eval $ac_link) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest$ac_exeext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_c_extern_prefix="yes"
10152 echo "$as_me: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 ac_cv_c_extern_prefix="no"
10156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10158 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10159 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10163 if test "$ac_cv_c_extern_prefix" = "yes"
10165 cat >>confdefs.h <<\_ACEOF
10166 #define __ASM_NAME(name) "_" name
10170 cat >>confdefs.h <<\_ACEOF
10171 #define __ASM_NAME(name) name
10177 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
10178 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
10179 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 #include "confdefs.h"
10185 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
10186 extern void __attribute__((__stdcall__)) ac_test(void);
10187 #ifdef F77_DUMMY_MAIN
10188 # ifdef __cplusplus
10191 int F77_DUMMY_MAIN() { return 1; }
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -s conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_c_stdcall_decoration="yes"
10215 echo "$as_me: failed program was:" >&5
10216 cat conftest.$ac_ext >&5
10217 ac_cv_c_stdcall_decoration="no"
10219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10221 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
10222 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
10223 if test "$ac_cv_c_stdcall_decoration" = "yes"
10226 cat >>confdefs.h <<\_ACEOF
10227 #define NEED_STDCALL_DECORATION 1
10233 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10234 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10235 if test "${ac_cv_c_asm_string+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 #include "confdefs.h"
10241 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10243 #ifdef F77_DUMMY_MAIN
10244 # ifdef __cplusplus
10247 int F77_DUMMY_MAIN() { return 1; }
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259 (eval $ac_link) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_c_asm_string="yes"
10271 echo "$as_me: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 ac_cv_c_asm_string="no"
10275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10277 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10278 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10279 if test "$ac_cv_c_asm_string" = "yes"
10282 cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_ASM_STRING 1
10302 if test -n "$ac_tool_prefix"; then
10303 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10304 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
10305 echo "$as_me:$LINENO: checking for $ac_word" >&5
10306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10307 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 if test -n "$DLLWRAP"; then
10311 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10320 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
10321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 DLLWRAP=$ac_cv_prog_DLLWRAP
10330 if test -n "$DLLWRAP"; then
10331 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10332 echo "${ECHO_T}$DLLWRAP" >&6
10334 echo "$as_me:$LINENO: result: no" >&5
10335 echo "${ECHO_T}no" >&6
10339 if test -z "$ac_cv_prog_DLLWRAP"; then
10340 ac_ct_DLLWRAP=$DLLWRAP
10341 # Extract the first word of "dllwrap", so it can be a program name with args.
10342 set dummy dllwrap; ac_word=$2
10343 echo "$as_me:$LINENO: checking for $ac_word" >&5
10344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10345 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 if test -n "$ac_ct_DLLWRAP"; then
10349 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10368 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10369 if test -n "$ac_ct_DLLWRAP"; then
10370 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10371 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10373 echo "$as_me:$LINENO: result: no" >&5
10374 echo "${ECHO_T}no" >&6
10377 DLLWRAP=$ac_ct_DLLWRAP
10379 DLLWRAP="$ac_cv_prog_DLLWRAP"
10382 if test "$DLLWRAP" = "false"; then
10390 for ac_header in dlfcn.h
10392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10394 echo "$as_me:$LINENO: checking for $ac_header" >&5
10395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10402 # Is the header compilable?
10403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 #include "confdefs.h"
10408 $ac_includes_default
10409 #include <$ac_header>
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_header_compiler=yes
10425 echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 ac_header_compiler=no
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431 echo "${ECHO_T}$ac_header_compiler" >&6
10433 # Is the header present?
10434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10438 #include "confdefs.h"
10439 #include <$ac_header>
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10444 egrep -v '^ *\+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } >/dev/null; then
10449 if test -s conftest.err; then
10450 ac_cpp_err=$ac_c_preproc_warn_flag
10457 if test -z "$ac_cpp_err"; then
10458 ac_header_preproc=yes
10460 echo "$as_me: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 ac_header_preproc=no
10464 rm -f conftest.err conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10466 echo "${ECHO_T}$ac_header_preproc" >&6
10468 # So? What about this header?
10469 case $ac_header_compiler:$ac_header_preproc in
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10483 echo "$as_me:$LINENO: checking for $ac_header" >&5
10484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 eval "$as_ac_Header=$ac_header_preproc"
10490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499 for ac_func in dlopen
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10504 if eval "test \"\${$as_ac_var+set}\" = set"; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below. */
10512 #include <assert.h>
10513 /* Override any gcc2 internal prototype to avoid an error. */
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10522 #ifdef F77_DUMMY_MAIN
10523 # ifdef __cplusplus
10526 int F77_DUMMY_MAIN() { return 1; }
10531 /* The GNU C library defines this for functions which it implements
10532 to always fail with ENOSYS. Some functions are actually named
10533 something starting with __ and the normal name is an alias. */
10534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 eval "$as_ac_var=yes"
10558 echo "$as_me: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 eval "$as_ac_var=no"
10562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10566 if test `eval echo '${'$as_ac_var'}'` = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10572 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10573 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10574 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 ac_check_lib_save_LIBS=$LIBS
10579 cat >conftest.$ac_ext <<_ACEOF
10580 #line $LINENO "configure"
10581 #include "confdefs.h"
10583 /* Override any gcc2 internal prototype to avoid an error. */
10587 /* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10590 #ifdef F77_DUMMY_MAIN
10591 # ifdef __cplusplus
10594 int F77_DUMMY_MAIN() { return 1; }
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_lib_dl_dlopen=yes
10618 echo "$as_me: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 ac_cv_lib_dl_dlopen=no
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10627 if test $ac_cv_lib_dl_dlopen = yes; then
10629 cat >>confdefs.h <<\_ACEOF
10630 #define HAVE_DLOPEN 1
10648 if test "$LIBEXT" = "so"
10652 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10653 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10654 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 ac_wine_try_cflags_saved=$CFLAGS
10658 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 #include "confdefs.h"
10663 #ifdef F77_DUMMY_MAIN
10664 # ifdef __cplusplus
10667 int F77_DUMMY_MAIN() { return 1; }
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679 (eval $ac_link) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_cv_c_dll_gnuelf="yes"
10691 echo "$as_me: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10693 ac_cv_c_dll_gnuelf="no"
10695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10696 CFLAGS=$ac_wine_try_cflags_saved
10698 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10699 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10700 if test "$ac_cv_c_dll_gnuelf" = "yes"
10702 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10703 LDDLLFLAGS="-Wl,-Bsymbolic"
10705 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10706 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10707 if test "${ac_cv_c_dll_unixware+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_wine_try_cflags_saved=$CFLAGS
10711 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 #include "confdefs.h"
10716 #ifdef F77_DUMMY_MAIN
10717 # ifdef __cplusplus
10720 int F77_DUMMY_MAIN() { return 1; }
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_c_dll_unixware="yes"
10744 echo "$as_me: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10746 ac_cv_c_dll_unixware="no"
10748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 CFLAGS=$ac_wine_try_cflags_saved
10751 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10752 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10753 if test "$ac_cv_c_dll_unixware" = "yes"
10755 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10756 LDDLLFLAGS="-Wl,-B,symbolic"
10763 if test "$LIBEXT" = "a"; then
10764 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10765 It is currently not possible to build Wine without shared library
10766 (.so) support to allow transparent switch between .so and .dll files.
10767 If you are using Linux, you will need a newer binutils.
10769 echo "$as_me: error: could not find a way to build shared libraries.
10770 It is currently not possible to build Wine without shared library
10771 (.so) support to allow transparent switch between .so and .dll files.
10772 If you are using Linux, you will need a newer binutils.
10774 { (exit 1); exit 1; }; }
10779 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10782 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10790 CRTLIBS="-lmsvcrt" ;;
10794 if test "$LIBEXT" = "so"
10796 # Extract the first word of "ldd", so it can be a program name with args.
10797 set dummy ldd; ac_word=$2
10798 echo "$as_me:$LINENO: checking for $ac_word" >&5
10799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10800 if test "${ac_cv_path_LDD+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in /sbin:/usr/sbin:$PATH
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
10814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10826 LDD=$ac_cv_path_LDD
10828 if test -n "$LDD"; then
10829 echo "$as_me:$LINENO: result: $LDD" >&5
10830 echo "${ECHO_T}$LDD" >&6
10832 echo "$as_me:$LINENO: result: no" >&5
10833 echo "${ECHO_T}no" >&6
10837 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10838 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10839 if test "${ac_cv_lib_soname_X11+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 ac_get_soname_save_LIBS=$LIBS
10843 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10848 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char XCreateWindow ();
10855 #ifdef F77_DUMMY_MAIN
10856 # ifdef __cplusplus
10859 int F77_DUMMY_MAIN() { return 1; }
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871 (eval $ac_link) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -s conftest$ac_exeext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10882 if test "x$ac_cv_lib_soname_X11" = "x"
10884 ac_cv_lib_soname_X11="libX11.so"
10887 echo "$as_me: failed program was:" >&5
10888 cat conftest.$ac_ext >&5
10889 ac_cv_lib_soname_X11="libX11.so"
10891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_get_soname_save_LIBS
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10895 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10896 if test "x$ac_cv_lib_soname_X11" != xNONE
10898 cat >>confdefs.h <<_ACEOF
10899 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10903 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10904 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10905 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 ac_get_soname_save_LIBS=$LIBS
10909 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10910 cat >conftest.$ac_ext <<_ACEOF
10911 #line $LINENO "configure"
10912 #include "confdefs.h"
10914 /* Override any gcc2 internal prototype to avoid an error. */
10918 /* We use char because int might match the return type of a gcc2
10919 builtin and then its argument prototype would still apply. */
10920 char XextCreateExtension ();
10921 #ifdef F77_DUMMY_MAIN
10922 # ifdef __cplusplus
10925 int F77_DUMMY_MAIN() { return 1; }
10930 XextCreateExtension ();
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10937 (eval $ac_link) 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -s conftest$ac_exeext'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10948 if test "x$ac_cv_lib_soname_Xext" = "x"
10950 ac_cv_lib_soname_Xext="libXext.so"
10953 echo "$as_me: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 ac_cv_lib_soname_Xext="libXext.so"
10957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_get_soname_save_LIBS
10960 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10961 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10962 if test "x$ac_cv_lib_soname_Xext" != xNONE
10964 cat >>confdefs.h <<_ACEOF
10965 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10969 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10970 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10971 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 ac_get_soname_save_LIBS=$LIBS
10975 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10976 cat >conftest.$ac_ext <<_ACEOF
10977 #line $LINENO "configure"
10978 #include "confdefs.h"
10980 /* Override any gcc2 internal prototype to avoid an error. */
10984 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10986 char XRenderQueryExtension ();
10987 #ifdef F77_DUMMY_MAIN
10988 # ifdef __cplusplus
10991 int F77_DUMMY_MAIN() { return 1; }
10996 XRenderQueryExtension ();
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003 (eval $ac_link) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -s conftest$ac_exeext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11014 if test "x$ac_cv_lib_soname_Xrender" = "x"
11016 ac_cv_lib_soname_Xrender="libXrender.so"
11019 echo "$as_me: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 ac_cv_lib_soname_Xrender="libXrender.so"
11023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_get_soname_save_LIBS
11026 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11027 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11028 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11030 cat >>confdefs.h <<_ACEOF
11031 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11035 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11036 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11037 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 ac_get_soname_save_LIBS=$LIBS
11041 LIBS="-lfreetype $X_LIBS $LIBS"
11042 cat >conftest.$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11044 #include "confdefs.h"
11046 /* Override any gcc2 internal prototype to avoid an error. */
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char FT_Init_FreeType ();
11053 #ifdef F77_DUMMY_MAIN
11054 # ifdef __cplusplus
11057 int F77_DUMMY_MAIN() { return 1; }
11062 FT_Init_FreeType ();
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069 (eval $ac_link) 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -s conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11080 if test "x$ac_cv_lib_soname_freetype" = "x"
11082 ac_cv_lib_soname_freetype="libfreetype.so"
11085 echo "$as_me: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 ac_cv_lib_soname_freetype="libfreetype.so"
11089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_get_soname_save_LIBS
11092 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11093 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11094 if test "x$ac_cv_lib_soname_freetype" != xNONE
11096 cat >>confdefs.h <<_ACEOF
11097 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11104 wine_cv_libc_reentrant=no
11105 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
11106 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
11107 if test "${wine_cv_libc_r___errno_location+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 if test "$cross_compiling" = yes; then
11111 wine_cv_libc_r___errno_location=yes
11113 cat >conftest.$ac_ext <<_ACEOF
11114 #line $LINENO "configure"
11115 #include "confdefs.h"
11117 int *__errno_location(){return &myerrno;}
11118 main(){close(333); close(333); exit(!myerrno);}
11120 rm -f conftest$ac_exeext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11122 (eval $ac_link) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 wine_cv_libc_r___errno_location=yes
11133 echo "$as_me: program exited with status $ac_status" >&5
11134 echo "$as_me: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11136 ( exit $ac_status )
11137 wine_cv_libc_r___errno_location=no
11139 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11142 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
11143 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
11144 if test "$wine_cv_libc_r___errno_location" = "yes"; then
11145 wine_cv_libc_reentrant=__errno_location
11147 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
11148 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11149 if test "${wine_cv_libc_r___error+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 if test "$cross_compiling" = yes; then
11153 wine_cv_libc_r___error=yes
11155 cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11157 #include "confdefs.h"
11159 int *__error(){return &myerrno;}
11160 main(){close(333); close(333); exit(!myerrno);}
11162 rm -f conftest$ac_exeext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164 (eval $ac_link) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 wine_cv_libc_r___error=yes
11175 echo "$as_me: program exited with status $ac_status" >&5
11176 echo "$as_me: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 ( exit $ac_status )
11179 wine_cv_libc_r___error=no
11181 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11185 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11186 if test "$wine_cv_libc_r___error" = "yes"; then
11187 wine_cv_libc_reentrant=__error
11189 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11190 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11191 if test "${wine_cv_libc_r____errno+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 if test "$cross_compiling" = yes; then
11195 wine_cv_libc_r____errno=yes
11197 cat >conftest.$ac_ext <<_ACEOF
11198 #line $LINENO "configure"
11199 #include "confdefs.h"
11201 int *___errno(){return &myerrno;}
11202 main(){close(333); close(333); exit(!myerrno);}
11204 rm -f conftest$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 wine_cv_libc_r____errno=yes
11217 echo "$as_me: program exited with status $ac_status" >&5
11218 echo "$as_me: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 ( exit $ac_status )
11221 wine_cv_libc_r____errno=no
11223 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11226 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11227 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11228 if test "$wine_cv_libc_r____errno" = "yes"; then
11229 wine_cv_libc_reentrant=___errno
11231 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11232 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11233 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 if test "$cross_compiling" = yes; then
11237 wine_cv_libc_r___thr_errno=yes
11239 cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 #include "confdefs.h"
11243 int *__thr_errno(){return &myerrno;}
11244 main(){close(333); close(333); exit(!myerrno);}
11246 rm -f conftest$ac_exeext
11247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11248 (eval $ac_link) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 wine_cv_libc_r___thr_errno=yes
11259 echo "$as_me: program exited with status $ac_status" >&5
11260 echo "$as_me: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 ( exit $ac_status )
11263 wine_cv_libc_r___thr_errno=no
11265 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11268 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11269 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11270 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11271 wine_cv_libc_reentrant=__thr_errno
11273 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11274 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11275 if test "${wine_cv_libc_r___errno+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 if test "$cross_compiling" = yes; then
11279 wine_cv_libc_r___errno=yes
11281 cat >conftest.$ac_ext <<_ACEOF
11282 #line $LINENO "configure"
11283 #include "confdefs.h"
11285 int *__errno(){return &myerrno;}
11286 main(){close(333); close(333); exit(!myerrno);}
11288 rm -f conftest$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 wine_cv_libc_r___errno=yes
11301 echo "$as_me: program exited with status $ac_status" >&5
11302 echo "$as_me: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 ( exit $ac_status )
11305 wine_cv_libc_r___errno=no
11307 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11310 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11311 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11312 if test "$wine_cv_libc_r___errno" = "yes"; then
11313 wine_cv_libc_reentrant=__errno
11326 if test "$wine_cv_libc_reentrant" != "no"
11329 cat >>confdefs.h <<_ACEOF
11330 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11336 if test "$have_x" = "yes"
11338 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11339 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11340 if test "${wine_cv_x_reentrant+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11345 if test -r $dir/libX11.so; then
11346 libX11_check="-D $dir/libX11.so"
11349 if test -r $dir/libX11.a; then
11350 libX11_check="$dir/libX11.a"
11354 if test "$libX11_check" != "none"; then
11355 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11357 wine_cv_x_reentrant=yes
11359 wine_cv_x_reentrant=no
11362 wine_cv_x_reentrant=unknown
11365 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11366 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11370 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11371 # for constant arguments. Useless!
11372 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11373 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11374 if test "${ac_cv_working_alloca_h+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 cat >conftest.$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11379 #include "confdefs.h"
11380 #include <alloca.h>
11381 #ifdef F77_DUMMY_MAIN
11382 # ifdef __cplusplus
11385 int F77_DUMMY_MAIN() { return 1; }
11390 char *p = (char *) alloca (2 * sizeof (int));
11395 rm -f conftest.$ac_objext conftest$ac_exeext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397 (eval $ac_link) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_working_alloca_h=yes
11409 echo "$as_me: failed program was:" >&5
11410 cat conftest.$ac_ext >&5
11411 ac_cv_working_alloca_h=no
11413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11416 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11417 if test $ac_cv_working_alloca_h = yes; then
11419 cat >>confdefs.h <<\_ACEOF
11420 #define HAVE_ALLOCA_H 1
11425 echo "$as_me:$LINENO: checking for alloca" >&5
11426 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11427 if test "${ac_cv_func_alloca_works+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11432 #include "confdefs.h"
11434 # define alloca __builtin_alloca
11437 # include <malloc.h>
11438 # define alloca _alloca
11441 # include <alloca.h>
11446 # ifndef alloca /* predefined by HP cc +Olibcalls */
11454 #ifdef F77_DUMMY_MAIN
11455 # ifdef __cplusplus
11458 int F77_DUMMY_MAIN() { return 1; }
11463 char *p = (char *) alloca (1);
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11470 (eval $ac_link) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_func_alloca_works=yes
11482 echo "$as_me: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 ac_cv_func_alloca_works=no
11486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11489 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11491 if test $ac_cv_func_alloca_works = yes; then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define HAVE_ALLOCA 1
11498 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11499 # that cause trouble. Some versions do not even contain alloca or
11500 # contain a buggy version. If you still want to use their alloca,
11501 # use ar to extract alloca.o from them instead of compiling alloca.c.
11503 ALLOCA=alloca.$ac_objext
11505 cat >>confdefs.h <<\_ACEOF
11510 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11511 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11512 if test "${ac_cv_os_cray+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11518 #if defined(CRAY) && ! defined(CRAY2)
11525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11526 egrep "webecray" >/dev/null 2>&1; then
11534 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11535 echo "${ECHO_T}$ac_cv_os_cray" >&6
11536 if test $ac_cv_os_cray = yes; then
11537 for ac_func in _getb67 GETB67 getb67; do
11538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11539 echo "$as_me:$LINENO: checking for $ac_func" >&5
11540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11541 if eval "test \"\${$as_ac_var+set}\" = set"; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11545 #line $LINENO "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func (); below. */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error. */
11554 /* We use char because int might match the return type of a gcc2
11555 builtin and then its argument prototype would still apply. */
11559 #ifdef F77_DUMMY_MAIN
11560 # ifdef __cplusplus
11563 int F77_DUMMY_MAIN() { return 1; }
11568 /* The GNU C library defines this for functions which it implements
11569 to always fail with ENOSYS. Some functions are actually named
11570 something starting with __ and the normal name is an alias. */
11571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11581 rm -f conftest.$ac_objext conftest$ac_exeext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 eval "$as_ac_var=yes"
11595 echo "$as_me: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11597 eval "$as_ac_var=no"
11599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11603 if test `eval echo '${'$as_ac_var'}'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define CRAY_STACKSEG_END $ac_func
11615 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11616 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11617 if test "${ac_cv_c_stack_direction+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 if test "$cross_compiling" = yes; then
11621 ac_cv_c_stack_direction=0
11623 cat >conftest.$ac_ext <<_ACEOF
11624 #line $LINENO "configure"
11625 #include "confdefs.h"
11627 find_stack_direction ()
11629 static char *addr = 0;
11634 return find_stack_direction ();
11637 return (&dummy > addr) ? 1 : -1;
11643 exit (find_stack_direction () < 0);
11646 rm -f conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_c_stack_direction=1
11659 echo "$as_me: program exited with status $ac_status" >&5
11660 echo "$as_me: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 ( exit $ac_status )
11663 ac_cv_c_stack_direction=-1
11665 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11668 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11669 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11671 cat >>confdefs.h <<_ACEOF
11672 #define STACK_DIRECTION $ac_cv_c_stack_direction
11777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778 echo "$as_me:$LINENO: checking for $ac_func" >&5
11779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11780 if eval "test \"\${$as_ac_var+set}\" = set"; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 #include "confdefs.h"
11786 /* System header to define __stub macros and hopefully few prototypes,
11787 which can conflict with char $ac_func (); below. */
11788 #include <assert.h>
11789 /* Override any gcc2 internal prototype to avoid an error. */
11793 /* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11798 #ifdef F77_DUMMY_MAIN
11799 # ifdef __cplusplus
11802 int F77_DUMMY_MAIN() { return 1; }
11807 /* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 eval "$as_ac_var=yes"
11834 echo "$as_me: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 eval "$as_ac_var=no"
11838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11842 if test `eval echo '${'$as_ac_var'}'` = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11942 netinet/in_systm.h \
11991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11993 echo "$as_me:$LINENO: checking for $ac_header" >&5
11994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12001 # Is the header compilable?
12002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 #include "confdefs.h"
12007 $ac_includes_default
12008 #include <$ac_header>
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler=yes
12024 echo "$as_me: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 ac_header_compiler=no
12028 rm -f conftest.$ac_objext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 echo "${ECHO_T}$ac_header_compiler" >&6
12032 # Is the header present?
12033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12036 #line $LINENO "configure"
12037 #include "confdefs.h"
12038 #include <$ac_header>
12040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12043 egrep -v '^ *\+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } >/dev/null; then
12048 if test -s conftest.err; then
12049 ac_cpp_err=$ac_c_preproc_warn_flag
12056 if test -z "$ac_cpp_err"; then
12057 ac_header_preproc=yes
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12061 ac_header_preproc=no
12063 rm -f conftest.err conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065 echo "${ECHO_T}$ac_header_preproc" >&6
12067 # So? What about this header?
12068 case $ac_header_compiler:$ac_header_preproc in
12070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12082 echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 eval "$as_ac_Header=$ac_header_preproc"
12089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12094 cat >>confdefs.h <<_ACEOF
12095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12102 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12103 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12104 if test "${ac_cv_header_stat_broken+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 cat >conftest.$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12109 #include "confdefs.h"
12110 #include <sys/types.h>
12111 #include <sys/stat.h>
12113 #if defined(S_ISBLK) && defined(S_IFDIR)
12114 # if S_ISBLK (S_IFDIR)
12119 #if defined(S_ISBLK) && defined(S_IFCHR)
12120 # if S_ISBLK (S_IFCHR)
12125 #if defined(S_ISLNK) && defined(S_IFREG)
12126 # if S_ISLNK (S_IFREG)
12131 #if defined(S_ISSOCK) && defined(S_IFREG)
12132 # if S_ISSOCK (S_IFREG)
12138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12139 egrep "You lose" >/dev/null 2>&1; then
12140 ac_cv_header_stat_broken=yes
12142 ac_cv_header_stat_broken=no
12147 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12148 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12149 if test $ac_cv_header_stat_broken = yes; then
12151 cat >>confdefs.h <<\_ACEOF
12152 #define STAT_MACROS_BROKEN 1
12159 for ac_header in net/if.h
12161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12162 echo "$as_me:$LINENO: checking for $ac_header" >&5
12163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12169 #include "confdefs.h"
12170 #if HAVE_SYS_TYPES_H
12171 # include <sys/types.h>
12173 #if HAVE_SYS_SOCKET_H
12174 # include <sys/socket.h>
12177 #include <$ac_header>
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 eval "$as_ac_Header=yes"
12193 echo "$as_me: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 eval "$as_ac_Header=no"
12197 rm -f conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212 for ac_header in netinet/ip.h
12214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12215 echo "$as_me:$LINENO: checking for $ac_header" >&5
12216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12221 #line $LINENO "configure"
12222 #include "confdefs.h"
12223 #if HAVE_SYS_SOCKET_H
12224 # include <sys/socket.h>
12226 #if HAVE_NETINET_IN_SYSTM_H
12227 # include <netinet/in_systm.h>
12230 #include <$ac_header>
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -s conftest.$ac_objext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 eval "$as_ac_Header=yes"
12246 echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 eval "$as_ac_Header=no"
12250 rm -f conftest.$ac_objext conftest.$ac_ext
12252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12255 cat >>confdefs.h <<_ACEOF
12256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12265 for ac_header in resolv.h
12267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12268 echo "$as_me:$LINENO: checking for $ac_header" >&5
12269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 cat >conftest.$ac_ext <<_ACEOF
12274 #line $LINENO "configure"
12275 #include "confdefs.h"
12276 #if HAVE_SYS_SOCKET_H
12277 # include <sys/socket.h>
12280 #include <$ac_header>
12282 rm -f conftest.$ac_objext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12284 (eval $ac_compile) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -s conftest.$ac_objext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 eval "$as_ac_Header=yes"
12296 echo "$as_me: failed program was:" >&5
12297 cat conftest.$ac_ext >&5
12298 eval "$as_ac_Header=no"
12300 rm -f conftest.$ac_objext conftest.$ac_ext
12302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12305 cat >>confdefs.h <<_ACEOF
12306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12315 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12316 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12317 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 ac_cv_prog_cc_stdc=no
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line $LINENO "configure"
12324 #include "confdefs.h"
12325 #include <stdarg.h>
12327 #include <sys/types.h>
12328 #include <sys/stat.h>
12329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12330 struct buf { int x; };
12331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12332 static char *e (p, i)
12338 static char *f (char * (*g) (char **, int), char **p, ...)
12343 s = g (p, va_arg (v,int));
12347 int test (int i, double x);
12348 struct s1 {int (*f) (int a);};
12349 struct s2 {int (*f) (double a);};
12350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12353 #ifdef F77_DUMMY_MAIN
12354 # ifdef __cplusplus
12357 int F77_DUMMY_MAIN() { return 1; }
12362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12367 # Don't try gcc -ansi; that turns off useful extensions and
12368 # breaks some systems' header files.
12369 # AIX -qlanglvl=ansi
12370 # Ultrix and OSF/1 -std1
12371 # HP-UX 10.20 and later -Ae
12372 # HP-UX older versions -Aa -D_HPUX_SOURCE
12373 # SVR4 -Xc -D__EXTENSIONS__
12374 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12376 CC="$ac_save_CC $ac_arg"
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -s conftest.$ac_objext'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_cv_prog_cc_stdc=$ac_arg
12392 echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12395 rm -f conftest.$ac_objext
12397 rm -f conftest.$ac_ext conftest.$ac_objext
12402 case "x$ac_cv_prog_cc_stdc" in
12404 echo "$as_me:$LINENO: result: none needed" >&5
12405 echo "${ECHO_T}none needed" >&6 ;;
12407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12408 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12409 CC="$CC $ac_cv_prog_cc_stdc" ;;
12412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12414 if test "${ac_cv_c_const+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 cat >conftest.$ac_ext <<_ACEOF
12418 #line $LINENO "configure"
12419 #include "confdefs.h"
12421 #ifdef F77_DUMMY_MAIN
12422 # ifdef __cplusplus
12425 int F77_DUMMY_MAIN() { return 1; }
12430 /* FIXME: Include the comments suggested by Paul. */
12431 #ifndef __cplusplus
12432 /* Ultrix mips cc rejects this. */
12433 typedef int charset[2];
12435 /* SunOS 4.1.1 cc rejects this. */
12436 char const *const *ccp;
12438 /* NEC SVR4.0.2 mips cc rejects this. */
12439 struct point {int x, y;};
12440 static struct point const zero = {0,0};
12441 /* AIX XL C 1.02.0.0 rejects this.
12442 It does not let you subtract one const X* pointer from another in
12443 an arm of an if-expression whose if-part is not a constant
12445 const char *g = "string";
12446 ccp = &g + (g ? g-g : 0);
12447 /* HPUX 7.0 cc rejects these. */
12450 ccp = (char const *const *) p;
12451 { /* SCO 3.2v4 cc rejects this. */
12453 char const *s = 0 ? (char *) 0 : (char const *) 0;
12457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12458 int x[] = {25, 17};
12459 const int *foo = &x[0];
12462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12463 typedef const int *iptr;
12467 { /* AIX XL C 1.02.0.0 rejects this saying
12468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12469 struct s { int j; const int *ap[3]; };
12470 struct s *b; b->j = 5;
12472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12473 const int foo = 10;
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12495 echo "$as_me: failed program was:" >&5
12496 cat conftest.$ac_ext >&5
12499 rm -f conftest.$ac_objext conftest.$ac_ext
12501 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12502 echo "${ECHO_T}$ac_cv_c_const" >&6
12503 if test $ac_cv_c_const = no; then
12505 cat >>confdefs.h <<\_ACEOF
12511 echo "$as_me:$LINENO: checking for inline" >&5
12512 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12513 if test "${ac_cv_c_inline+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 for ac_kw in inline __inline__ __inline; do
12518 cat >conftest.$ac_ext <<_ACEOF
12519 #line $LINENO "configure"
12520 #include "confdefs.h"
12521 #ifndef __cplusplus
12522 static $ac_kw int static_foo () {return 0; }
12523 $ac_kw int foo () {return 0; }
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529 (eval $ac_compile) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -s conftest.$ac_objext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_c_inline=$ac_kw; break
12541 echo "$as_me: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12544 rm -f conftest.$ac_objext conftest.$ac_ext
12548 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12549 echo "${ECHO_T}$ac_cv_c_inline" >&6
12550 case $ac_cv_c_inline in
12553 cat >>confdefs.h <<\_ACEOF
12557 *) cat >>confdefs.h <<_ACEOF
12558 #define inline $ac_cv_c_inline
12563 echo "$as_me:$LINENO: checking for mode_t" >&5
12564 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12565 if test "${ac_cv_type_mode_t+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12570 #include "confdefs.h"
12571 $ac_includes_default
12572 #ifdef F77_DUMMY_MAIN
12573 # ifdef __cplusplus
12576 int F77_DUMMY_MAIN() { return 1; }
12583 if (sizeof (mode_t))
12589 rm -f conftest.$ac_objext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12601 ac_cv_type_mode_t=yes
12603 echo "$as_me: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 ac_cv_type_mode_t=no
12607 rm -f conftest.$ac_objext conftest.$ac_ext
12609 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12611 if test $ac_cv_type_mode_t = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_MODE_T 1
12619 echo "$as_me:$LINENO: checking for off_t" >&5
12620 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12621 if test "${ac_cv_type_off_t+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 cat >conftest.$ac_ext <<_ACEOF
12625 #line $LINENO "configure"
12626 #include "confdefs.h"
12627 $ac_includes_default
12628 #ifdef F77_DUMMY_MAIN
12629 # ifdef __cplusplus
12632 int F77_DUMMY_MAIN() { return 1; }
12639 if (sizeof (off_t))
12645 rm -f conftest.$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_type_off_t=yes
12659 echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 ac_cv_type_off_t=no
12663 rm -f conftest.$ac_objext conftest.$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12666 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12667 if test $ac_cv_type_off_t = yes; then
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_OFF_T 1
12675 echo "$as_me:$LINENO: checking for pid_t" >&5
12676 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12677 if test "${ac_cv_type_pid_t+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 cat >conftest.$ac_ext <<_ACEOF
12681 #line $LINENO "configure"
12682 #include "confdefs.h"
12683 $ac_includes_default
12684 #ifdef F77_DUMMY_MAIN
12685 # ifdef __cplusplus
12688 int F77_DUMMY_MAIN() { return 1; }
12695 if (sizeof (pid_t))
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_type_pid_t=yes
12715 echo "$as_me: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12717 ac_cv_type_pid_t=no
12719 rm -f conftest.$ac_objext conftest.$ac_ext
12721 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12722 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12723 if test $ac_cv_type_pid_t = yes; then
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_PID_T 1
12731 echo "$as_me:$LINENO: checking for size_t" >&5
12732 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12733 if test "${ac_cv_type_size_t+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 cat >conftest.$ac_ext <<_ACEOF
12737 #line $LINENO "configure"
12738 #include "confdefs.h"
12739 $ac_includes_default
12740 #ifdef F77_DUMMY_MAIN
12741 # ifdef __cplusplus
12744 int F77_DUMMY_MAIN() { return 1; }
12751 if (sizeof (size_t))
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_type_size_t=yes
12771 echo "$as_me: failed program was:" >&5
12772 cat conftest.$ac_ext >&5
12773 ac_cv_type_size_t=no
12775 rm -f conftest.$ac_objext conftest.$ac_ext
12777 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12778 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12779 if test $ac_cv_type_size_t = yes; then
12781 cat >>confdefs.h <<_ACEOF
12782 #define HAVE_SIZE_T 1
12787 echo "$as_me:$LINENO: checking for ssize_t" >&5
12788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12789 if test "${ac_cv_type_ssize_t+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 cat >conftest.$ac_ext <<_ACEOF
12793 #line $LINENO "configure"
12794 #include "confdefs.h"
12795 $ac_includes_default
12796 #ifdef F77_DUMMY_MAIN
12797 # ifdef __cplusplus
12800 int F77_DUMMY_MAIN() { return 1; }
12807 if (sizeof (ssize_t))
12813 rm -f conftest.$ac_objext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_cv_type_ssize_t=yes
12827 echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 ac_cv_type_ssize_t=no
12831 rm -f conftest.$ac_objext conftest.$ac_ext
12833 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12834 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12835 if test $ac_cv_type_ssize_t = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838 #define HAVE_SSIZE_T 1
12844 echo "$as_me:$LINENO: checking for long long" >&5
12845 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12846 if test "${ac_cv_type_long_long+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 #include "confdefs.h"
12852 $ac_includes_default
12853 #ifdef F77_DUMMY_MAIN
12854 # ifdef __cplusplus
12857 int F77_DUMMY_MAIN() { return 1; }
12862 if ((long long *) 0)
12864 if (sizeof (long long))
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872 (eval $ac_compile) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
12876 { ac_try='test -s conftest.$ac_objext'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 ac_cv_type_long_long=yes
12884 echo "$as_me: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12886 ac_cv_type_long_long=no
12888 rm -f conftest.$ac_objext conftest.$ac_ext
12890 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12891 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12893 echo "$as_me:$LINENO: checking size of long long" >&5
12894 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12895 if test "${ac_cv_sizeof_long_long+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 if test "$ac_cv_type_long_long" = yes; then
12899 # The cast to unsigned long works around a bug in the HP C Compiler
12900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12902 # This bug is HP SR number 8606223364.
12903 if test "$cross_compiling" = yes; then
12904 # Depending upon the size, compute the lo and hi bounds.
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12907 #include "confdefs.h"
12908 $ac_includes_default
12909 #ifdef F77_DUMMY_MAIN
12910 # ifdef __cplusplus
12913 int F77_DUMMY_MAIN() { return 1; }
12918 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12925 rm -f conftest.$ac_objext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12939 cat >conftest.$ac_ext <<_ACEOF
12940 #line $LINENO "configure"
12941 #include "confdefs.h"
12942 $ac_includes_default
12943 #ifdef F77_DUMMY_MAIN
12944 # ifdef __cplusplus
12947 int F77_DUMMY_MAIN() { return 1; }
12952 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_hi=$ac_mid; break
12973 echo "$as_me: failed program was:" >&5
12974 cat conftest.$ac_ext >&5
12975 ac_lo=`expr $ac_mid + 1`
12976 if test $ac_lo -le $ac_mid; then
12980 ac_mid=`expr 2 '*' $ac_mid + 1`
12982 rm -f conftest.$ac_objext conftest.$ac_ext
12985 echo "$as_me: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12987 cat >conftest.$ac_ext <<_ACEOF
12988 #line $LINENO "configure"
12989 #include "confdefs.h"
12990 $ac_includes_default
12991 #ifdef F77_DUMMY_MAIN
12992 # ifdef __cplusplus
12995 int F77_DUMMY_MAIN() { return 1; }
13000 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13007 rm -f conftest.$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -s conftest.$ac_objext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13021 cat >conftest.$ac_ext <<_ACEOF
13022 #line $LINENO "configure"
13023 #include "confdefs.h"
13024 $ac_includes_default
13025 #ifdef F77_DUMMY_MAIN
13026 # ifdef __cplusplus
13029 int F77_DUMMY_MAIN() { return 1; }
13034 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_lo=$ac_mid; break
13055 echo "$as_me: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 ac_hi=`expr '(' $ac_mid ')' - 1`
13058 if test $ac_mid -le $ac_hi; then
13062 ac_mid=`expr 2 '*' $ac_mid`
13064 rm -f conftest.$ac_objext conftest.$ac_ext
13067 echo "$as_me: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13071 rm -f conftest.$ac_objext conftest.$ac_ext
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13074 # Binary search between lo and hi bounds.
13075 while test "x$ac_lo" != "x$ac_hi"; do
13076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13077 cat >conftest.$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13079 #include "confdefs.h"
13080 $ac_includes_default
13081 #ifdef F77_DUMMY_MAIN
13082 # ifdef __cplusplus
13085 int F77_DUMMY_MAIN() { return 1; }
13090 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -s conftest.$ac_objext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13111 echo "$as_me: failed program was:" >&5
13112 cat conftest.$ac_ext >&5
13113 ac_lo=`expr '(' $ac_mid ')' + 1`
13115 rm -f conftest.$ac_objext conftest.$ac_ext
13118 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13120 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13121 { (exit 1); exit 1; }; } ;;
13124 if test "$cross_compiling" = yes; then
13125 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13126 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13127 { (exit 1); exit 1; }; }
13129 cat >conftest.$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13131 #include "confdefs.h"
13132 $ac_includes_default
13133 long longval () { return (long) (sizeof (long long)); }
13134 unsigned long ulongval () { return (long) (sizeof (long long)); }
13136 #include <stdlib.h>
13137 #ifdef F77_DUMMY_MAIN
13138 # ifdef __cplusplus
13141 int F77_DUMMY_MAIN() { return 1; }
13147 FILE *f = fopen ("conftest.val", "w");
13150 if (((long) (sizeof (long long))) < 0)
13152 long i = longval ();
13153 if (i != ((long) (sizeof (long long))))
13155 fprintf (f, "%ld\n", i);
13159 unsigned long i = ulongval ();
13160 if (i != ((long) (sizeof (long long))))
13162 fprintf (f, "%lu\n", i);
13164 exit (ferror (f) || fclose (f) != 0);
13170 rm -f conftest$ac_exeext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13172 (eval $ac_link) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 ac_cv_sizeof_long_long=`cat conftest.val`
13183 echo "$as_me: program exited with status $ac_status" >&5
13184 echo "$as_me: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 ( exit $ac_status )
13187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13188 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13189 { (exit 1); exit 1; }; }
13191 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13196 ac_cv_sizeof_long_long=0
13199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13200 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13201 cat >>confdefs.h <<_ACEOF
13202 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13207 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
13208 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
13209 if test "${wine_cv_linux_input_h+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 #include "confdefs.h"
13216 #include <linux/input.h>
13218 #ifdef F77_DUMMY_MAIN
13219 # ifdef __cplusplus
13222 int F77_DUMMY_MAIN() { return 1; }
13228 int foo = EVIOCGBIT(EV_ABS,42);
13229 int bar = BTN_PINKIE;
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 wine_cv_linux_input_h=yes
13250 echo "$as_me: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 wine_cv_linux_input_h=no
13254 rm -f conftest.$ac_objext conftest.$ac_ext
13257 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
13258 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
13259 if test "$wine_cv_linux_input_h" = "yes"
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_CORRECT_LINUXINPUT_H 1
13269 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13270 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13271 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 cat >conftest.$ac_ext <<_ACEOF
13275 #line $LINENO "configure"
13276 #include "confdefs.h"
13280 #ifdef F77_DUMMY_MAIN
13281 # ifdef __cplusplus
13284 int F77_DUMMY_MAIN() { return 1; }
13292 struct hostent *result;
13299 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13300 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13306 rm -f conftest.$ac_objext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -s conftest.$ac_objext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 wine_cv_linux_gethostbyname_r_6=yes
13320 echo "$as_me: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13322 wine_cv_linux_gethostbyname_r_6=no
13325 rm -f conftest.$ac_objext conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13329 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13330 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13339 if test "$ac_cv_header_linux_joystick_h" = "yes"
13341 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13342 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13343 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13350 #include <sys/ioctl.h>
13351 #include <linux/joystick.h>
13353 struct js_event blub;
13354 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13355 #error "no 2.2 header"
13358 #ifdef F77_DUMMY_MAIN
13359 # ifdef __cplusplus
13362 int F77_DUMMY_MAIN() { return 1; }
13372 rm -f conftest.$ac_objext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13374 (eval $ac_compile) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -s conftest.$ac_objext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 wine_cv_linux_joystick_22_api=yes
13386 echo "$as_me: failed program was:" >&5
13387 cat conftest.$ac_ext >&5
13388 wine_cv_linux_joystick_22_api=no
13390 rm -f conftest.$ac_objext conftest.$ac_ext
13393 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13394 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13395 if test "$wine_cv_linux_joystick_22_api" = "yes"
13398 cat >>confdefs.h <<\_ACEOF
13399 #define HAVE_LINUX_22_JOYSTICK_API 1
13406 if test "$ac_cv_header_sys_vfs_h" = "yes"
13408 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13409 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13410 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 cat >conftest.$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13415 #include "confdefs.h"
13417 #include <sys/types.h>
13418 #ifdef HAVE_SYS_PARAM_H
13419 # include <sys/param.h>
13421 #include <sys/vfs.h>
13423 #ifdef F77_DUMMY_MAIN
13424 # ifdef __cplusplus
13427 int F77_DUMMY_MAIN() { return 1; }
13433 struct statfs stfs;
13435 memset(&stfs,0,sizeof(stfs));
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 wine_cv_sys_vfs_has_statfs=yes
13455 echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 wine_cv_sys_vfs_has_statfs=no
13460 rm -f conftest.$ac_objext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13464 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13465 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13468 cat >>confdefs.h <<\_ACEOF
13469 #define STATFS_DEFINED_BY_SYS_VFS 1
13475 if test "$ac_cv_header_sys_statfs_h" = "yes"
13477 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13478 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13479 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13483 #line $LINENO "configure"
13484 #include "confdefs.h"
13486 #include <sys/types.h>
13487 #ifdef HAVE_SYS_PARAM_H
13488 # include <sys/param.h>
13490 #include <sys/statfs.h>
13492 #ifdef F77_DUMMY_MAIN
13493 # ifdef __cplusplus
13496 int F77_DUMMY_MAIN() { return 1; }
13502 struct statfs stfs;
13508 rm -f conftest.$ac_objext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510 (eval $ac_compile) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 wine_cv_sys_statfs_has_statfs=yes
13522 echo "$as_me: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 wine_cv_sys_statfs_has_statfs=no
13527 rm -f conftest.$ac_objext conftest.$ac_ext
13530 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13531 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13532 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13535 cat >>confdefs.h <<\_ACEOF
13536 #define STATFS_DEFINED_BY_SYS_STATFS 1
13542 if test "$ac_cv_header_sys_mount_h" = "yes"
13544 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13545 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13546 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13553 #include <sys/types.h>
13554 #ifdef HAVE_SYS_PARAM_H
13555 # include <sys/param.h>
13557 #include <sys/mount.h>
13559 #ifdef F77_DUMMY_MAIN
13560 # ifdef __cplusplus
13563 int F77_DUMMY_MAIN() { return 1; }
13569 struct statfs stfs;
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -s conftest.$ac_objext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 wine_cv_sys_mount_has_statfs=yes
13589 echo "$as_me: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 wine_cv_sys_mount_has_statfs=no
13594 rm -f conftest.$ac_objext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13598 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13599 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13602 cat >>confdefs.h <<\_ACEOF
13603 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13610 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13611 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13612 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 cat >conftest.$ac_ext <<_ACEOF
13616 #line $LINENO "configure"
13617 #include "confdefs.h"
13618 #include <sys/types.h>
13619 #ifdef HAVE_SYS_PARAM_H
13620 # include <sys/param.h>
13622 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13623 # include <sys/mount.h>
13625 # ifdef STATFS_DEFINED_BY_SYS_VFS
13626 # include <sys/vfs.h>
13628 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13629 # include <sys/statfs.h>
13633 #ifdef F77_DUMMY_MAIN
13634 # ifdef __cplusplus
13637 int F77_DUMMY_MAIN() { return 1; }
13642 struct statfs s; s.f_bfree = 0
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 (eval $ac_compile) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -s conftest.$ac_objext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 ac_cv_c_statfs_f_bfree="yes"
13661 echo "$as_me: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 ac_cv_c_statfs_f_bfree="no"
13665 rm -f conftest.$ac_objext conftest.$ac_ext
13667 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13668 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13669 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13671 cat >>confdefs.h <<\_ACEOF
13672 #define STATFS_HAS_BFREE 1
13679 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13680 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13681 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 #include <sys/types.h>
13688 #ifdef HAVE_SYS_PARAM_H
13689 # include <sys/param.h>
13691 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13692 # include <sys/mount.h>
13694 # ifdef STATFS_DEFINED_BY_SYS_VFS
13695 # include <sys/vfs.h>
13697 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13698 # include <sys/statfs.h>
13702 #ifdef F77_DUMMY_MAIN
13703 # ifdef __cplusplus
13706 int F77_DUMMY_MAIN() { return 1; }
13711 struct statfs s; s.f_bavail = 0
13716 rm -f conftest.$ac_objext
13717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -s conftest.$ac_objext'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728 ac_cv_c_statfs_f_bavail="yes"
13730 echo "$as_me: failed program was:" >&5
13731 cat conftest.$ac_ext >&5
13732 ac_cv_c_statfs_f_bavail="no"
13734 rm -f conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13737 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13738 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13740 cat >>confdefs.h <<\_ACEOF
13741 #define STATFS_HAS_BAVAIL 1
13748 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13749 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13750 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13754 #line $LINENO "configure"
13755 #include "confdefs.h"
13756 #include <sys/types.h>
13757 #include <sys/socket.h>
13758 #ifdef F77_DUMMY_MAIN
13759 # ifdef __cplusplus
13762 int F77_DUMMY_MAIN() { return 1; }
13767 struct msghdr s; s.msg_accrights = 0
13772 rm -f conftest.$ac_objext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_c_msghdr_msg_accrights="yes"
13786 echo "$as_me: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13788 ac_cv_c_msghdr_msg_accrights="no"
13790 rm -f conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13793 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13794 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_MSGHDR_ACCRIGHTS 1
13804 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13805 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13806 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13812 #include <sys/types.h>
13813 #include <sys/socket.h>
13814 #ifdef F77_DUMMY_MAIN
13815 # ifdef __cplusplus
13818 int F77_DUMMY_MAIN() { return 1; }
13823 struct sockaddr s; s.sa_len = 0
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_c_sockaddr_sa_len="yes"
13842 echo "$as_me: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 ac_cv_c_sockaddr_sa_len="no"
13846 rm -f conftest.$ac_objext conftest.$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13849 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13850 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_SOCKADDR_SA_LEN 1
13860 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13861 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13862 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13867 #include "confdefs.h"
13868 #include <sys/types.h>
13869 #include <sys/socket.h>
13870 #include <sys/un.h>
13871 #ifdef F77_DUMMY_MAIN
13872 # ifdef __cplusplus
13875 int F77_DUMMY_MAIN() { return 1; }
13880 struct sockaddr_un s; s.sun_len = 0
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_c_sockaddr_un_sun_len="yes"
13899 echo "$as_me: failed program was:" >&5
13900 cat conftest.$ac_ext >&5
13901 ac_cv_c_sockaddr_un_sun_len="no"
13903 rm -f conftest.$ac_objext conftest.$ac_ext
13905 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13906 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13907 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13909 cat >>confdefs.h <<\_ACEOF
13910 #define HAVE_SOCKADDR_SUN_LEN 1
13920 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13921 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13922 if test "${ac_cv_cpp_def_i386+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13927 #include "confdefs.h"
13932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13933 egrep "yes" >/dev/null 2>&1; then
13934 ac_cv_cpp_def_i386="yes"
13936 ac_cv_cpp_def_i386="no"
13941 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13942 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13945 if test "$ac_cv_cpp_def_i386" = "yes"
13947 CFLAGS="$CFLAGS -D__i386__"
13948 LINTFLAGS="$LINTFLAGS -D__i386__"
13954 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13955 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13956 if test "${ac_cv_cpp_def_sparc+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13960 #line $LINENO "configure"
13961 #include "confdefs.h"
13966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13967 egrep "yes" >/dev/null 2>&1; then
13968 ac_cv_cpp_def_sparc="yes"
13970 ac_cv_cpp_def_sparc="no"
13975 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13976 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13979 if test "$ac_cv_cpp_def_sparc" = "yes"
13981 CFLAGS="$CFLAGS -D__sparc__"
13982 LINTFLAGS="$LINTFLAGS -D__sparc__"
13986 case $host_vendor in
13988 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13989 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13990 if test "${ac_cv_cpp_def_sun+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 cat >conftest.$ac_ext <<_ACEOF
13994 #line $LINENO "configure"
13995 #include "confdefs.h"
14000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14001 egrep "yes" >/dev/null 2>&1; then
14002 ac_cv_cpp_def_sun="yes"
14004 ac_cv_cpp_def_sun="no"
14009 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
14010 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
14013 if test "$ac_cv_cpp_def_sun" = "yes"
14015 CFLAGS="$CFLAGS -D__sun__"
14016 LINTFLAGS="$LINTFLAGS -D__sun__"
14023 ac_config_commands="$ac_config_commands controls"
14025 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
14027 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
14029 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
14031 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
14033 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
14035 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
14037 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
14039 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
14041 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
14043 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
14045 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
14047 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
14049 ac_config_commands="$ac_config_commands dlls/kernel/messages"
14051 ac_config_commands="$ac_config_commands dlls/user/dde"
14053 ac_config_commands="$ac_config_commands dlls/user/resources"
14055 ac_config_commands="$ac_config_commands dlls/wineps/data"
14057 ac_config_commands="$ac_config_commands files"
14059 ac_config_commands="$ac_config_commands graphics"
14061 ac_config_commands="$ac_config_commands graphics/x11drv"
14063 ac_config_commands="$ac_config_commands if1632"
14065 ac_config_commands="$ac_config_commands include/wine"
14067 ac_config_commands="$ac_config_commands loader"
14069 ac_config_commands="$ac_config_commands loader/ne"
14071 ac_config_commands="$ac_config_commands memory"
14073 ac_config_commands="$ac_config_commands misc"
14075 ac_config_commands="$ac_config_commands msdos"
14077 ac_config_commands="$ac_config_commands objects"
14079 ac_config_commands="$ac_config_commands programs/regapi/tests"
14081 ac_config_commands="$ac_config_commands programs/regedit/tests"
14083 ac_config_commands="$ac_config_commands programs/winetest/tests"
14085 ac_config_commands="$ac_config_commands relay32"
14087 ac_config_commands="$ac_config_commands scheduler"
14089 ac_config_commands="$ac_config_commands win32"
14091 ac_config_commands="$ac_config_commands windows"
14094 MAKE_RULES=Make.rules
14097 MAKE_DLL_RULES=dlls/Makedll.rules
14100 MAKE_TEST_RULES=dlls/Maketest.rules
14103 MAKE_PROG_RULES=programs/Makeprog.rules
14106 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/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/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/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/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/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/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
14109 cat >confcache <<\_ACEOF
14110 # This file is a shell script that caches the results of configure
14111 # tests run on this system so they can be shared between configure
14112 # scripts and configure runs, see configure's option --config-cache.
14113 # It is not useful on other systems. If it contains results you don't
14114 # want to keep, you may remove or edit it.
14116 # config.status only pays attention to the cache file if you give it
14117 # the --recheck option to rerun configure.
14119 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14121 # following values.
14125 # The following way of writing the cache mishandles newlines in values,
14126 # but we know of no workaround that is simple, portable, and efficient.
14127 # So, don't put newlines in cache variables' values.
14128 # Ultrix sh set writes to stderr and can't be redirected directly,
14129 # and sets the high bit in the cache file unless we assign to the vars.
14132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14134 # `set' does not quote correctly, so add quotes (double-quote
14135 # substitution turns \\\\ into \\, and sed turns \\ into \).
14138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14141 # `set' quotes correctly as required by POSIX, so do not add quotes.
14143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14154 if cmp -s $cache_file confcache; then :; else
14155 if test -w $cache_file; then
14156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14157 cat confcache >$cache_file
14159 echo "not updating unwritable cache $cache_file"
14164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14165 # Let make expand exec_prefix.
14166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14170 # trailing colons and then remove the whole line if VPATH becomes empty
14171 # (actually we leave an empty line to preserve line numbers).
14172 if test "x$srcdir" = x.; then
14173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14174 s/:*\$(srcdir):*/:/;
14175 s/:*\${srcdir}:*/:/;
14177 s/^\([^=]*=[ ]*\):*/\1/;
14183 DEFS=-DHAVE_CONFIG_H
14186 : ${CONFIG_STATUS=./config.status}
14187 ac_clean_files_save=$ac_clean_files
14188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14191 cat >$CONFIG_STATUS <<_ACEOF
14193 # Generated by $as_me.
14194 # Run this file to recreate the current configuration.
14195 # Compiler output produced by configure, useful for debugging
14196 # configure, is in config.log if it exists.
14199 SHELL=\${CONFIG_SHELL-$SHELL}
14202 cat >>$CONFIG_STATUS <<\_ACEOF
14204 ## --------------------- ##
14205 ## M4sh Initialization. ##
14206 ## --------------------- ##
14208 # Be Bourne compatible
14209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14217 # Support unset when possible.
14218 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14224 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14225 { $as_unset LANG || test "${LANG+set}" != set; } ||
14226 { LANG=C; export LANG; }
14227 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14228 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14229 { LC_ALL=C; export LC_ALL; }
14230 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14231 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14232 { LC_TIME=C; export LC_TIME; }
14233 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14234 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14235 { LC_CTYPE=C; export LC_CTYPE; }
14236 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14237 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14238 { LANGUAGE=C; export LANGUAGE; }
14239 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14240 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14241 { LC_COLLATE=C; export LC_COLLATE; }
14242 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14243 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14244 { LC_NUMERIC=C; export LC_NUMERIC; }
14245 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14246 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14247 { LC_MESSAGES=C; export LC_MESSAGES; }
14250 # Name of the executable.
14251 as_me=`(basename "$0") 2>/dev/null ||
14252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14253 X"$0" : 'X\(//\)$' \| \
14254 X"$0" : 'X\(/\)$' \| \
14255 . : '\(.\)' 2>/dev/null ||
14257 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14258 /^X\/\(\/\/\)$/{ s//\1/; q; }
14259 /^X\/\(\/\).*/{ s//\1/; q; }
14262 # PATH needs CR, and LINENO needs CR and PATH.
14263 # Avoid depending upon Character Ranges.
14264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14267 as_cr_digits='0123456789'
14268 as_cr_alnum=$as_cr_Letters$as_cr_digits
14270 # The user is always right.
14271 if test "${PATH_SEPARATOR+set}" != set; then
14272 echo "#! /bin/sh" >conftest.sh
14273 echo "exit 0" >>conftest.sh
14274 chmod +x conftest.sh
14275 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14284 as_lineno_1=$LINENO
14285 as_lineno_2=$LINENO
14286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14287 test "x$as_lineno_1" != "x$as_lineno_2" &&
14288 test "x$as_lineno_3" = "x$as_lineno_2" || {
14289 # Find who we are. Look in the path if we contain no path at all
14292 *[\\/]* ) as_myself=$0 ;;
14293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14297 test -z "$as_dir" && as_dir=.
14298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14303 # We did not find ourselves, most probably we were run as `sh COMMAND'
14304 # in which case we are not to be found in the path.
14305 if test "x$as_myself" = x; then
14308 if test ! -f "$as_myself"; then
14309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14311 { (exit 1); exit 1; }; }
14313 case $CONFIG_SHELL in
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14319 test -z "$as_dir" && as_dir=.
14320 for as_base in sh bash ksh sh5; do
14323 if ("$as_dir/$as_base" -c '
14324 as_lineno_1=$LINENO
14325 as_lineno_2=$LINENO
14326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14327 test "x$as_lineno_1" != "x$as_lineno_2" &&
14328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14329 CONFIG_SHELL=$as_dir/$as_base
14330 export CONFIG_SHELL
14331 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14340 # uniformly replaced by the line number. The first 'sed' inserts a
14341 # line-number line before each line; the second 'sed' does the real
14342 # work. The second script uses 'N' to pair each line-number line
14343 # with the numbered line, and appends trailing '-' during
14344 # substitution so that $LINENO is not a special case at line end.
14345 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14346 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14347 sed '=' <$as_myself |
14352 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14355 s,^['$as_cr_digits']*\n,,
14356 ' >$as_me.lineno &&
14357 chmod +x $as_me.lineno ||
14358 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14359 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14360 { (exit 1); exit 1; }; }
14362 # Don't try to exec as it changes $[0], causing all sort of problems
14363 # (the dirname of $[0] is not the place where we might find the
14364 # original and so on. Autoconf is especially sensible to this).
14366 # Exit status is that of the last command.
14371 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14372 *c*,-n*) ECHO_N= ECHO_C='
14374 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14375 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14378 if expr a : '\(a\)' >/dev/null 2>&1; then
14384 rm -f conf$$ conf$$.exe conf$$.file
14386 if ln -s conf$$.file conf$$ 2>/dev/null; then
14387 # We could just check for DJGPP; but this test a) works b) is more generic
14388 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14389 if test -f conf$$.exe; then
14390 # Don't use ln at all; we don't have any links
14395 elif ln conf$$.file conf$$ 2>/dev/null; then
14400 rm -f conf$$ conf$$.exe conf$$.file
14402 as_executable_p="test -f"
14404 # Sed expression to map a string onto a valid CPP name.
14405 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14407 # Sed expression to map a string onto a valid variable name.
14408 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14412 # We need space, tab and new line, in precisely that order.
14418 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14423 # report actual input values of CONFIG_FILES etc. instead of their
14424 # values after options handling. Logging --version etc. is OK.
14428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14429 ## Running $as_me. ##
14434 This file was extended by Wine $as_me 20020804, which was
14435 generated by GNU Autoconf 2.53. Invocation command line was
14437 CONFIG_FILES = $CONFIG_FILES
14438 CONFIG_HEADERS = $CONFIG_HEADERS
14439 CONFIG_LINKS = $CONFIG_LINKS
14440 CONFIG_COMMANDS = $CONFIG_COMMANDS
14444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14448 # Files that config.status was made for.
14449 if test -n "$ac_config_files"; then
14450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14453 if test -n "$ac_config_headers"; then
14454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14457 if test -n "$ac_config_links"; then
14458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14461 if test -n "$ac_config_commands"; then
14462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14465 cat >>$CONFIG_STATUS <<\_ACEOF
14468 \`$as_me' instantiates files from templates according to the
14469 current configuration.
14471 Usage: $0 [OPTIONS] [FILE]...
14473 -h, --help print this help, then exit
14474 -V, --version print version number, then exit
14475 -d, --debug don't remove temporary files
14476 --recheck update $as_me by reconfiguring in the same conditions
14477 --file=FILE[:TEMPLATE]
14478 instantiate the configuration file FILE
14479 --header=FILE[:TEMPLATE]
14480 instantiate the configuration header FILE
14482 Configuration files:
14485 Configuration headers:
14488 Configuration commands:
14491 Report bugs to <bug-autoconf@gnu.org>."
14494 cat >>$CONFIG_STATUS <<_ACEOF
14496 Wine config.status 20020804
14497 configured by $0, generated by GNU Autoconf 2.53,
14498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14501 Free Software Foundation, Inc.
14502 This config.status script is free software; the Free Software Foundation
14503 gives unlimited permission to copy, distribute and modify it."
14508 cat >>$CONFIG_STATUS <<\_ACEOF
14509 # If no file are specified by the user, then we need to provide default
14510 # value. By we need to know if files were specified by the user.
14516 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14517 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14519 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14523 *) # This is not an option, so the user has probably given explicit
14525 ac_need_defaults=false;;
14529 # Handling of the options.
14531 cat >>$CONFIG_STATUS <<_ACEOF
14532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14533 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14534 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14536 cat >>$CONFIG_STATUS <<\_ACEOF
14537 --version | --vers* | -V )
14538 echo "$ac_cs_version"; exit 0 ;;
14540 # Conflict between --help and --header
14541 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14542 Try \`$0 --help' for more information." >&5
14543 echo "$as_me: error: ambiguous option: $1
14544 Try \`$0 --help' for more information." >&2;}
14545 { (exit 1); exit 1; }; };;
14546 --help | --hel | -h )
14547 echo "$ac_cs_usage"; exit 0 ;;
14548 --debug | --d* | -d )
14550 --file | --fil | --fi | --f )
14552 CONFIG_FILES="$CONFIG_FILES $1"
14553 ac_need_defaults=false;;
14554 --header | --heade | --head | --hea )
14556 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14557 ac_need_defaults=false;;
14559 # This is an error.
14560 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14561 Try \`$0 --help' for more information." >&5
14562 echo "$as_me: error: unrecognized option: $1
14563 Try \`$0 --help' for more information." >&2;}
14564 { (exit 1); exit 1; }; } ;;
14566 *) ac_config_targets="$ac_config_targets $1" ;;
14578 cat >>$CONFIG_STATUS <<\_ACEOF
14579 for ac_config_target in $ac_config_targets
14581 case "$ac_config_target" in
14582 # Handling of arguments.
14583 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14584 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14585 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14586 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14587 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14588 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
14589 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14590 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14591 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14592 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14593 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14594 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14595 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14596 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14597 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14598 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14599 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14600 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14601 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14602 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14603 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14604 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14605 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14606 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14607 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14608 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14609 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14610 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14611 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14612 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14613 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14614 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14615 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14616 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14617 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14618 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14619 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14620 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14621 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14622 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14623 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14624 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14625 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14626 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14627 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
14628 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14629 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14630 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14631 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14632 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14633 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14634 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14635 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14636 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14637 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14638 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14639 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14640 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14641 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14642 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14643 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14644 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14645 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14646 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14647 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14648 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14649 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14650 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14651 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14652 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14653 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14654 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14655 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14656 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14657 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14658 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14659 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14660 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14661 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14662 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14663 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14664 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14665 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14666 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14667 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14668 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14669 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14670 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14671 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14672 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14673 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14674 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14675 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14676 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14677 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14678 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14679 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14680 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14681 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14682 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14683 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14684 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14685 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14686 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14687 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14688 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14689 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14690 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14691 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14692 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14693 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14694 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14695 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14696 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14697 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14698 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14699 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14700 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14701 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14702 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14703 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14704 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14705 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14706 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14707 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14708 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14709 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14710 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14711 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14712 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14713 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14714 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14715 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14716 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14717 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14718 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14719 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14720 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
14721 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14722 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14723 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14724 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14725 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14726 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14727 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14728 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14729 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14730 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14731 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14732 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
14733 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14734 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14735 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14736 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14737 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14738 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14739 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14740 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14741 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14742 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14743 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14744 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14745 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14746 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14747 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14748 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14749 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14750 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14751 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14752 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14753 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14754 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14755 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14756 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14757 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14758 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14759 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14760 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14761 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14762 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14763 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14764 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
14765 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14766 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14767 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14768 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14769 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14771 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14772 { (exit 1); exit 1; }; };;
14776 # If the user did not use the arguments to specify the items to instantiate,
14777 # then the envvar interface is used. Set only those that are not.
14778 # We use the long form for the default assignment because of an extremely
14779 # bizarre bug on SunOS 4.1.3.
14780 if $ac_need_defaults; then
14781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14786 # Create a temporary directory, and hook for its removal unless debugging.
14789 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14790 trap '{ (exit 1); exit 1; }' 1 2 13 15
14793 # Create a (secure) tmp directory for tmp files.
14796 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14797 test -n "$tmp" && test -d "$tmp"
14800 tmp=$TMPDIR/cs$$-$RANDOM
14801 (umask 077 && mkdir $tmp)
14804 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14805 { (exit 1); exit 1; }
14810 cat >>$CONFIG_STATUS <<_ACEOF
14813 # CONFIG_FILES section.
14816 # No need to generate the scripts if there are no CONFIG_FILES.
14817 # This happens for instance when ./config.status config.h
14818 if test -n "\$CONFIG_FILES"; then
14819 # Protect against being on the right side of a sed subst in config.status.
14820 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14821 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14822 s,@SHELL@,$SHELL,;t t
14823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14829 s,@exec_prefix@,$exec_prefix,;t t
14830 s,@prefix@,$prefix,;t t
14831 s,@program_transform_name@,$program_transform_name,;t t
14832 s,@bindir@,$bindir,;t t
14833 s,@sbindir@,$sbindir,;t t
14834 s,@libexecdir@,$libexecdir,;t t
14835 s,@datadir@,$datadir,;t t
14836 s,@sysconfdir@,$sysconfdir,;t t
14837 s,@sharedstatedir@,$sharedstatedir,;t t
14838 s,@localstatedir@,$localstatedir,;t t
14839 s,@libdir@,$libdir,;t t
14840 s,@includedir@,$includedir,;t t
14841 s,@oldincludedir@,$oldincludedir,;t t
14842 s,@infodir@,$infodir,;t t
14843 s,@mandir@,$mandir,;t t
14844 s,@build_alias@,$build_alias,;t t
14845 s,@host_alias@,$host_alias,;t t
14846 s,@target_alias@,$target_alias,;t t
14847 s,@DEFS@,$DEFS,;t t
14848 s,@ECHO_C@,$ECHO_C,;t t
14849 s,@ECHO_N@,$ECHO_N,;t t
14850 s,@ECHO_T@,$ECHO_T,;t t
14851 s,@LIBS@,$LIBS,;t t
14852 s,@LIBEXT@,$LIBEXT,;t t
14853 s,@OPTIONS@,$OPTIONS,;t t
14854 s,@build@,$build,;t t
14855 s,@build_cpu@,$build_cpu,;t t
14856 s,@build_vendor@,$build_vendor,;t t
14857 s,@build_os@,$build_os,;t t
14858 s,@host@,$host,;t t
14859 s,@host_cpu@,$host_cpu,;t t
14860 s,@host_vendor@,$host_vendor,;t t
14861 s,@host_os@,$host_os,;t t
14862 s,@SET_MAKE@,$SET_MAKE,;t t
14864 s,@CFLAGS@,$CFLAGS,;t t
14865 s,@LDFLAGS@,$LDFLAGS,;t t
14866 s,@CPPFLAGS@,$CPPFLAGS,;t t
14867 s,@ac_ct_CC@,$ac_ct_CC,;t t
14868 s,@EXEEXT@,$EXEEXT,;t t
14869 s,@OBJEXT@,$OBJEXT,;t t
14871 s,@TOOLSDIR@,$TOOLSDIR,;t t
14872 s,@X_CFLAGS@,$X_CFLAGS,;t t
14873 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14874 s,@X_LIBS@,$X_LIBS,;t t
14875 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14876 s,@YACC@,$YACC,;t t
14878 s,@LEXLIB@,$LEXLIB,;t t
14879 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14880 s,@XYACC@,$XYACC,;t t
14881 s,@XLEX@,$XLEX,;t t
14883 s,@ac_ct_LD@,$ac_ct_LD,;t t
14885 s,@ac_ct_AR@,$ac_ct_AR,;t t
14886 s,@RANLIB@,$RANLIB,;t t
14887 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14888 s,@STRIP@,$STRIP,;t t
14889 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14890 s,@WINDRES@,$WINDRES,;t t
14891 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14892 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14893 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14894 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14895 s,@LN_S@,$LN_S,;t t
14897 s,@C2MAN@,$C2MAN,;t t
14898 s,@LDCONFIG@,$LDCONFIG,;t t
14899 s,@LINT@,$LINT,;t t
14900 s,@LINTFLAGS@,$LINTFLAGS,;t t
14901 s,@JPEGLIB@,$JPEGLIB,;t t
14902 s,@XLIB@,$XLIB,;t t
14903 s,@XFILES@,$XFILES,;t t
14904 s,@OPENGLFILES@,$OPENGLFILES,;t t
14905 s,@GLU32FILES@,$GLU32FILES,;t t
14906 s,@CURSESLIBS@,$CURSESLIBS,;t t
14907 s,@CUPSLIBS@,$CUPSLIBS,;t t
14908 s,@sane_devel@,$sane_devel,;t t
14909 s,@SANELIBS@,$SANELIBS,;t t
14910 s,@SANEINCL@,$SANEINCL,;t t
14911 s,@ft_devel@,$ft_devel,;t t
14912 s,@ft_devel2@,$ft_devel2,;t t
14913 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14914 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14915 s,@ARTSLIBS@,$ARTSLIBS,;t t
14916 s,@ARTSINCL@,$ARTSINCL,;t t
14917 s,@ALSALIBS@,$ALSALIBS,;t t
14918 s,@NASLIBS@,$NASLIBS,;t t
14919 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14920 s,@DLLEXT@,$DLLEXT,;t t
14921 s,@DLLFLAGS@,$DLLFLAGS,;t t
14922 s,@DLLIBS@,$DLLIBS,;t t
14923 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14924 s,@LDSHARED@,$LDSHARED,;t t
14925 s,@DLLWRAP@,$DLLWRAP,;t t
14926 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14927 s,@LDPATH@,$LDPATH,;t t
14928 s,@CRTLIBS@,$CRTLIBS,;t t
14930 s,@ALLOCA@,$ALLOCA,;t t
14931 /@MAKE_RULES@/r $MAKE_RULES
14932 s,@MAKE_RULES@,,;t t
14933 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14934 s,@MAKE_DLL_RULES@,,;t t
14935 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14936 s,@MAKE_TEST_RULES@,,;t t
14937 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14938 s,@MAKE_PROG_RULES@,,;t t
14943 cat >>$CONFIG_STATUS <<\_ACEOF
14944 # Split the substitutions into bite-sized pieces for seds with
14945 # small command number limits, like on Digital OSF/1 and HP-UX.
14946 ac_max_sed_lines=48
14947 ac_sed_frag=1 # Number of current file.
14948 ac_beg=1 # First line for current file.
14949 ac_end=$ac_max_sed_lines # Line after last line for current file.
14952 while $ac_more_lines; do
14953 if test $ac_beg -gt 1; then
14954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14958 if test ! -s $tmp/subs.frag; then
14959 ac_more_lines=false
14961 # The purpose of the label and of the branching condition is to
14962 # speed up the sed processing (if there are no `@' at all, there
14963 # is no need to browse any of the substitutions).
14964 # These are the two extra sed commands mentioned above.
14966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14967 if test -z "$ac_sed_cmds"; then
14968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14972 ac_sed_frag=`expr $ac_sed_frag + 1`
14974 ac_end=`expr $ac_end + $ac_max_sed_lines`
14977 if test -z "$ac_sed_cmds"; then
14980 fi # test -n "$CONFIG_FILES"
14983 cat >>$CONFIG_STATUS <<\_ACEOF
14984 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14987 - | *:- | *:-:* ) # input from stdin
14989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14993 * ) ac_file_in=$ac_file.in ;;
14996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14999 X"$ac_file" : 'X\(//\)[^/]' \| \
15000 X"$ac_file" : 'X\(//\)$' \| \
15001 X"$ac_file" : 'X\(/\)' \| \
15002 . : '\(.\)' 2>/dev/null ||
15004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15006 /^X\(\/\/\)$/{ s//\1/; q; }
15007 /^X\(\/\).*/{ s//\1/; q; }
15009 { case "$ac_dir" in
15010 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15014 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15015 case $as_mkdir_dir in
15016 # Skip DOS drivespec
15017 ?:) as_incr_dir=$as_mkdir_dir ;;
15019 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15020 test -d "$as_incr_dir" ||
15021 mkdir "$as_incr_dir" ||
15022 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15023 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15024 { (exit 1); exit 1; }; }
15031 if test "$ac_dir" != .; then
15032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15033 # A "../" for each directory in $ac_dir_suffix.
15034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15036 ac_dir_suffix= ac_top_builddir=
15040 .) # No --srcdir option. We are building in place.
15042 if test -z "$ac_top_builddir"; then
15045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15047 [\\/]* | ?:[\\/]* ) # Absolute path.
15048 ac_srcdir=$srcdir$ac_dir_suffix;
15049 ac_top_srcdir=$srcdir ;;
15050 *) # Relative path.
15051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15054 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15056 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15057 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15058 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15059 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15067 if test x"$ac_file" != x-; then
15068 { echo "$as_me:$LINENO: creating $ac_file" >&5
15069 echo "$as_me: creating $ac_file" >&6;}
15072 # Let's still pretend it is `configure' which instantiates (i.e., don't
15073 # use $as_me), people would be surprised to read:
15074 # /* config.h. Generated by config.status. */
15075 if test x"$ac_file" = x-; then
15078 configure_input="$ac_file. "
15080 configure_input=$configure_input"Generated from `echo $ac_file_in |
15081 sed 's,.*/,,'` by configure."
15083 # First look for the input files in the build tree, otherwise in the
15085 ac_file_inputs=`IFS=:
15086 for f in $ac_file_in; do
15088 -) echo $tmp/stdin ;;
15090 # Absolute (can't be DOS-style, as IFS=:)
15091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15092 echo "$as_me: error: cannot find input file: $f" >&2;}
15093 { (exit 1); exit 1; }; }
15096 if test -f "$f"; then
15099 elif test -f "$srcdir/$f"; then
15104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15105 echo "$as_me: error: cannot find input file: $f" >&2;}
15106 { (exit 1); exit 1; }; }
15109 done` || { (exit 1); exit 1; }
15111 cat >>$CONFIG_STATUS <<_ACEOF
15115 cat >>$CONFIG_STATUS <<\_ACEOF
15117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15118 s,@configure_input@,$configure_input,;t t
15119 s,@srcdir@,$ac_srcdir,;t t
15120 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15121 s,@top_srcdir@,$ac_top_srcdir,;t t
15122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15123 s,@builddir@,$ac_builddir,;t t
15124 s,@abs_builddir@,$ac_abs_builddir,;t t
15125 s,@top_builddir@,$ac_top_builddir,;t t
15126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15127 s,@INSTALL@,$ac_INSTALL,;t t
15128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15130 if test x"$ac_file" != x-; then
15131 mv $tmp/out $ac_file
15139 cat >>$CONFIG_STATUS <<\_ACEOF
15142 # CONFIG_HEADER section.
15145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15148 # ac_d sets the value in "#define NAME VALUE" lines.
15149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15150 ac_dB='[ ].*$,\1#\2'
15153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15155 ac_uB='$,\1#\2define\3'
15159 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15162 - | *:- | *:-:* ) # input from stdin
15164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15168 * ) ac_file_in=$ac_file.in ;;
15171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15172 echo "$as_me: creating $ac_file" >&6;}
15174 # First look for the input files in the build tree, otherwise in the
15176 ac_file_inputs=`IFS=:
15177 for f in $ac_file_in; do
15179 -) echo $tmp/stdin ;;
15181 # Absolute (can't be DOS-style, as IFS=:)
15182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15183 echo "$as_me: error: cannot find input file: $f" >&2;}
15184 { (exit 1); exit 1; }; }
15187 if test -f "$f"; then
15190 elif test -f "$srcdir/$f"; then
15195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15196 echo "$as_me: error: cannot find input file: $f" >&2;}
15197 { (exit 1); exit 1; }; }
15200 done` || { (exit 1); exit 1; }
15201 # Remove the trailing spaces.
15202 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15206 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15207 # `conftest.undefs', that substitutes the proper values into
15208 # config.h.in to produce config.h. The first handles `#define'
15209 # templates, and the second `#undef' templates.
15210 # And first: Protect against being on the right side of a sed subst in
15211 # config.status. Protect against being in an unquoted here document
15212 # in config.status.
15213 rm -f conftest.defines conftest.undefs
15214 # Using a here document instead of a string reduces the quoting nightmare.
15215 # Putting comments in sed scripts is not portable.
15217 # `end' is used to avoid that the second main sed command (meant for
15218 # 0-ary CPP macros) applies to n-ary macro definitions.
15219 # See the Autoconf documentation for `clear'.
15220 cat >confdef2sed.sed <<\_ACEOF
15225 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15227 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15230 # If some macros were called several times there might be several times
15231 # the same #defines, which is useless. Nevertheless, we may not want to
15232 # sort them, since we want the *last* AC-DEFINE to be honored.
15233 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15234 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15235 rm -f confdef2sed.sed
15237 # This sed command replaces #undef with comments. This is necessary, for
15238 # example, in the case of _POSIX_SOURCE, which is predefined and required
15239 # on some systems where configure will not decide to define it.
15240 cat >>conftest.undefs <<\_ACEOF
15241 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15244 # Break up conftest.defines because some shells have a limit on the size
15245 # of here documents, and old seds have small limits too (100 cmds).
15246 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15247 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15248 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15249 echo ' :' >>$CONFIG_STATUS
15250 rm -f conftest.tail
15251 while grep . conftest.defines >/dev/null
15253 # Write a limited-size here document to $tmp/defines.sed.
15254 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15255 # Speed up: don't consider the non `#define' lines.
15256 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15257 # Work around the forget-to-reset-the-flag bug.
15258 echo 't clr' >>$CONFIG_STATUS
15259 echo ': clr' >>$CONFIG_STATUS
15260 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15262 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15264 mv $tmp/out $tmp/in
15266 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15267 rm -f conftest.defines
15268 mv conftest.tail conftest.defines
15270 rm -f conftest.defines
15271 echo ' fi # egrep' >>$CONFIG_STATUS
15272 echo >>$CONFIG_STATUS
15274 # Break up conftest.undefs because some shells have a limit on the size
15275 # of here documents, and old seds have small limits too (100 cmds).
15276 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15277 rm -f conftest.tail
15278 while grep . conftest.undefs >/dev/null
15280 # Write a limited-size here document to $tmp/undefs.sed.
15281 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15282 # Speed up: don't consider the non `#undef'
15283 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15284 # Work around the forget-to-reset-the-flag bug.
15285 echo 't clr' >>$CONFIG_STATUS
15286 echo ': clr' >>$CONFIG_STATUS
15287 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15289 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15291 mv $tmp/out $tmp/in
15293 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15294 rm -f conftest.undefs
15295 mv conftest.tail conftest.undefs
15297 rm -f conftest.undefs
15299 cat >>$CONFIG_STATUS <<\_ACEOF
15300 # Let's still pretend it is `configure' which instantiates (i.e., don't
15301 # use $as_me), people would be surprised to read:
15302 # /* config.h. Generated by config.status. */
15303 if test x"$ac_file" = x-; then
15304 echo "/* Generated by configure. */" >$tmp/config.h
15306 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15308 cat $tmp/in >>$tmp/config.h
15310 if test x"$ac_file" != x-; then
15311 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15312 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15313 echo "$as_me: $ac_file is unchanged" >&6;}
15315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15317 X"$ac_file" : 'X\(//\)[^/]' \| \
15318 X"$ac_file" : 'X\(//\)$' \| \
15319 X"$ac_file" : 'X\(/\)' \| \
15320 . : '\(.\)' 2>/dev/null ||
15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15324 /^X\(\/\/\)$/{ s//\1/; q; }
15325 /^X\(\/\).*/{ s//\1/; q; }
15327 { case "$ac_dir" in
15328 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15332 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15333 case $as_mkdir_dir in
15334 # Skip DOS drivespec
15335 ?:) as_incr_dir=$as_mkdir_dir ;;
15337 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15338 test -d "$as_incr_dir" ||
15339 mkdir "$as_incr_dir" ||
15340 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15341 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15342 { (exit 1); exit 1; }; }
15348 mv $tmp/config.h $ac_file
15352 rm -f $tmp/config.h
15356 cat >>$CONFIG_STATUS <<\_ACEOF
15359 # CONFIG_COMMANDS section.
15361 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15362 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15363 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15364 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15365 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15366 X"$ac_dest" : 'X\(//\)[^/]' \| \
15367 X"$ac_dest" : 'X\(//\)$' \| \
15368 X"$ac_dest" : 'X\(/\)' \| \
15369 . : '\(.\)' 2>/dev/null ||
15371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15373 /^X\(\/\/\)$/{ s//\1/; q; }
15374 /^X\(\/\).*/{ s//\1/; q; }
15378 if test "$ac_dir" != .; then
15379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15380 # A "../" for each directory in $ac_dir_suffix.
15381 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15383 ac_dir_suffix= ac_top_builddir=
15387 .) # No --srcdir option. We are building in place.
15389 if test -z "$ac_top_builddir"; then
15392 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15394 [\\/]* | ?:[\\/]* ) # Absolute path.
15395 ac_srcdir=$srcdir$ac_dir_suffix;
15396 ac_top_srcdir=$srcdir ;;
15397 *) # Relative path.
15398 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15399 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15401 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15403 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15404 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15405 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15406 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15409 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15410 echo "$as_me: executing $ac_dest commands" >&6;}
15412 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15413 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15414 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15415 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15416 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15417 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15418 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15419 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15420 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15421 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15422 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15423 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15424 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15425 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15426 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15427 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15428 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15429 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15430 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15431 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15432 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15433 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15434 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15435 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15436 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15437 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15438 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15439 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15440 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15441 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15442 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15443 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15444 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15445 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15446 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15447 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15448 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15449 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15450 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15451 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15452 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15453 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15454 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15455 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15456 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15457 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15458 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15459 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15460 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15461 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15462 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15463 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15464 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15465 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15466 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15467 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15468 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15469 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15470 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15471 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15472 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
15473 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
15474 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15475 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15476 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15477 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15478 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15479 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15480 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15481 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15486 cat >>$CONFIG_STATUS <<\_ACEOF
15488 { (exit 0); exit 0; }
15490 chmod +x $CONFIG_STATUS
15491 ac_clean_files=$ac_clean_files_save
15494 # configure is writing to config.log, and then calls config.status.
15495 # config.status does its own redirection, appending to config.log.
15496 # Unfortunately, on DOS this fails, as config.log is still kept open
15497 # by configure, so config.status won't be able to write to it; its
15498 # output is simply discarded. So we exec the FD to /dev/null,
15499 # effectively closing config.log, so it can be properly (re)opened and
15500 # appended to by config.status. When coming back to configure, we
15501 # need to make the FD available again.
15502 if test "$no_create" != yes; then
15505 $SHELL $CONFIG_STATUS || ac_cs_success=false
15507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15508 # would make configure fail if this is the last instruction.
15509 $ac_cs_success || { (exit 1); exit 1; }
15513 if test "$have_x" = "no"
15516 echo "*** Warning: X development files not found. Wine will be built without"
15517 echo "*** X support, which currently does not work, and would probably not be"
15518 echo "*** what you want anyway. You will need to install devel packages of"
15519 echo "*** Xlib/Xfree86 at the very least."
15522 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15525 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15526 echo "*** terminal resize support. Consider upgrading ncurses."
15529 if test "$wine_cv_libc_reentrant" = "no"
15532 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15533 echo "*** threading support. Consider upgrading libc to a more recent"
15534 echo "*** reentrant version of libc."
15537 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15540 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15541 echo "*** applications won't work properly. You should upgrade your X11 library."
15544 if test "$wine_cv_opengl_version_OK" = "no"
15547 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15548 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15551 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
15554 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
15555 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
15556 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
15557 echo "*** start configure with '--enable-opengl' to force OpenGL support."
15560 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
15563 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
15564 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15565 echo "*** support before reporting bugs."
15568 if test "$wine_cv_warn_cups_h" = "yes"
15571 echo "*** Note: You have cups runtime libraries, but no development"
15572 echo "*** libraries. Install the cups-devel package or whichever package"
15573 echo "*** contains cups.h to enable CUPS support in Wine."
15576 if test "$wine_cv_msg_freetype" = "yes"
15579 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15580 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15581 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15582 echo "*** enable Wine to use TrueType fonts."
15586 echo "Configure finished. Do 'make depend && make' to compile Wine."