2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20021219.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20021219'
270 PACKAGE_STRING='Wine 20021219'
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures Wine 20021219 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of Wine 20021219:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-win16 do not include Win16 support
853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --without-opengl do not use OpenGL
860 --without-curses do not use curses
861 --with-wine-tools=<dir> use Wine tools from directory <dir>
862 --with-x use the X Window System
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix= ac_top_builddir=
895 .) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 # Check for guested configure; otherwise get Cygnus style configure.
918 if test -f $ac_srcdir/configure.gnu; then
920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
938 Wine configure 20021219
939 generated by GNU Autoconf 2.57
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
953 It was created by Wine $as_me 20021219, which was
954 generated by GNU Autoconf 2.57. Invocation command line was
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
988 test -z "$as_dir" && as_dir=.
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1013 ac_must_keep_next=false
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1042 -* ) ac_must_keep_next=true ;;
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1071 # The following way of writing the cache mishandles newlines in values,
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1094 for ac_var in $ac_subst_vars
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1101 if test -n "$ac_subst_files"; then
1108 for ac_var in $ac_subst_files
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1116 if test -s confdefs.h; then
1123 sed "/^$/d" confdefs.h | sort
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1206 # Check that the precious variables saved in the cache have kept the same
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290 ac_config_headers="$ac_config_headers include/config.h"
1293 for ac_dir in tools $srcdir/tools; do
1294 if test -f $ac_dir/install-sh; then
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 elif test -f $ac_dir/install.sh; then
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 elif test -f $ac_dir/shtool; then
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1308 if test -z "$ac_aux_dir"; then
1309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311 { (exit 1); exit 1; }; }
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1319 # Check whether --enable-win16 or --disable-win16 was given.
1320 if test "${enable_win16+set}" = set; then
1321 enableval="$enable_win16"
1324 # Check whether --enable-debug or --disable-debug was given.
1325 if test "${enable_debug+set}" = set; then
1326 enableval="$enable_debug"
1329 # Check whether --enable-trace or --disable-trace was given.
1330 if test "${enable_trace+set}" = set; then
1331 enableval="$enable_trace"
1336 # Check whether --with-opengl or --without-opengl was given.
1337 if test "${with_opengl+set}" = set; then
1338 withval="$with_opengl"
1342 # Check whether --with-curses or --without-curses was given.
1343 if test "${with_curses+set}" = set; then
1344 withval="$with_curses"
1348 # Check whether --with-wine-tools or --without-wine-tools was given.
1349 if test "${with_wine_tools+set}" = set; then
1350 withval="$with_wine_tools"
1355 WIN16_FILES="\$(WIN16_FILES)"
1357 WIN16_INSTALL="\$(WIN16_INSTALL)"
1359 if test "x$enable_win16" = "xno"
1364 if test "x$enable_debug" = "xno"
1367 cat >>confdefs.h <<\_ACEOF
1368 #define NO_DEBUG_MSGS 1
1372 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1375 cat >>confdefs.h <<\_ACEOF
1376 #define NO_TRACE_MSGS 1
1382 # Make sure we can run config.sub.
1383 $ac_config_sub sun4 >/dev/null 2>&1 ||
1384 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1385 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386 { (exit 1); exit 1; }; }
1388 echo "$as_me:$LINENO: checking build system type" >&5
1389 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390 if test "${ac_cv_build+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_build_alias=$build_alias
1394 test -z "$ac_cv_build_alias" &&
1395 ac_cv_build_alias=`$ac_config_guess`
1396 test -z "$ac_cv_build_alias" &&
1397 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1398 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399 { (exit 1); exit 1; }; }
1400 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1407 echo "${ECHO_T}$ac_cv_build" >&6
1409 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1414 echo "$as_me:$LINENO: checking host system type" >&5
1415 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416 if test "${ac_cv_host+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 ac_cv_host_alias=$host_alias
1420 test -z "$ac_cv_host_alias" &&
1421 ac_cv_host_alias=$ac_cv_build_alias
1422 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1429 echo "${ECHO_T}$ac_cv_host" >&6
1431 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1436 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1438 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1439 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 cat >conftest.make <<\_ACEOF
1444 @echo 'ac_maketemp="$(MAKE)"'
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449 eval ac_cv_prog_make_${ac_make}_set=yes
1451 eval ac_cv_prog_make_${ac_make}_set=no
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456 echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 SET_MAKE="MAKE=${MAKE-make}"
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $# != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CC" && break
1726 if test -z "$CC"; then
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CC" && break
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h. */
1816 ac_clean_files_save=$ac_clean_files
1817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1818 # Try to create an executable without -o first, disregard a.out.
1819 # It will help us diagnose broken compilers, and finding out an intuition
1821 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1822 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1825 (eval $ac_link_default) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 # Find the output, starting from the most likely. This scheme is
1830 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1833 # Be careful to initialize this variable, since it used to be cached.
1834 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1836 # b.out is created by i960 compilers.
1837 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1839 test -f "$ac_file" || continue
1841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1844 # This is the source file.
1847 # We found the default executable, but exeext='' is most
1851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852 # FIXME: I believe we export ac_cv_exeext for Libtool,
1853 # but it would be cool to find out if it's true. Does anybody
1854 # maintain Libtool? --akim.
1862 echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&2;}
1869 { (exit 77); exit 77; }; }
1872 ac_exeext=$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_file" >&5
1874 echo "${ECHO_T}$ac_file" >&6
1876 # Check the compiler produces executables we can run. If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881 # If not cross compiling, check that we can run a simple program.
1882 if test "$cross_compiling" != yes; then
1883 if { ac_try='./$ac_file'
1884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; }; then
1891 if test "$cross_compiling" = maybe; then
1894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'.
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1904 echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1908 ac_clean_files=$ac_clean_files_save
1909 # Check the compiler produces executables we can run. If not, either
1910 # the compiler is broken, or we cross compile.
1911 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1913 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1914 echo "${ECHO_T}$cross_compiling" >&6
1916 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1919 (eval $ac_link) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; then
1923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1925 # work properly (i.e., refer to `conftest.exe'), while it won't with
1927 for ac_file in conftest.exe conftest conftest.*; do
1928 test -f "$ac_file" || continue
1930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1945 rm -f conftest$ac_cv_exeext
1946 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1947 echo "${ECHO_T}$ac_cv_exeext" >&6
1949 rm -f conftest.$ac_ext
1950 EXEEXT=$ac_cv_exeext
1952 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1953 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1954 if test "${ac_cv_objext+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; then
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2091 echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2100 if test "$ac_test_CFLAGS" = set; then
2101 CFLAGS=$ac_save_CFLAGS
2102 elif test $ac_cv_prog_cc_g = yes; then
2103 if test "$GCC" = yes; then
2109 if test "$GCC" = yes; then
2115 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 ac_cv_prog_cc_stdc=no
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2147 s = g (p, va_arg (v,int));
2151 int test (int i, double x);
2152 struct s1 {int (*f) (int a);};
2153 struct s2 {int (*f) (double a);};
2154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2160 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2165 # Don't try gcc -ansi; that turns off useful extensions and
2166 # breaks some systems' header files.
2167 # AIX -qlanglvl=ansi
2168 # Ultrix and OSF/1 -std1
2169 # HP-UX 10.20 and later -Ae
2170 # HP-UX older versions -Aa -D_HPUX_SOURCE
2171 # SVR4 -Xc -D__EXTENSIONS__
2172 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2174 CC="$ac_save_CC $ac_arg"
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.$ac_objext
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2201 case "x$ac_cv_prog_cc_stdc" in
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } &&
2226 { ac_try='test -s conftest.$ac_objext'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 for ac_declaration in \
2234 '#include <stdlib.h>' \
2235 'extern "C" void std::exit (int) throw (); using std::exit;' \
2236 'extern "C" void std::exit (int); using std::exit;' \
2237 'extern "C" void exit (int) throw ();' \
2238 'extern "C" void exit (int);' \
2241 cat >conftest.$ac_ext <<_ACEOF
2242 #line $LINENO "configure"
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2278 cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2308 echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2315 if test -n "$ac_declaration"; then
2316 echo '#ifdef __cplusplus' >>confdefs.h
2317 echo $ac_declaration >>confdefs.h
2318 echo '#endif' >>confdefs.h
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2339 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2340 # On Suns, sometimes $CPP names a directory.
2341 if test -n "$CPP" && test -d "$CPP"; then
2344 if test -z "$CPP"; then
2345 if test "${ac_cv_prog_CPP+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 # Double quotes because CPP needs to be expanded
2349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2352 for ac_c_preproc_warn_flag in '' yes
2354 # Use a header file that comes with gcc, so configuring glibc
2355 # with a fresh cross-compiler works.
2356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2357 # <limits.h> exists even on freestanding compilers.
2358 # On the NeXT, cc -E runs the code through the compiler's parser,
2359 # not just through cpp. "Syntax error" is here to catch this case.
2360 cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2368 # include <limits.h>
2370 # include <assert.h>
2374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1 >conftest.err
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } >/dev/null; then
2382 if test -s conftest.err; then
2383 ac_cpp_err=$ac_c_preproc_warn_flag
2390 if test -z "$ac_cpp_err"; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2396 # Broken: fails on valid input.
2399 rm -f conftest.err conftest.$ac_ext
2401 # OK, works on sane cases. Now check whether non-existent headers
2402 # can be detected and how.
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #line $LINENO "configure"
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2410 #include <ac_nonexistent.h>
2412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } >/dev/null; then
2420 if test -s conftest.err; then
2421 ac_cpp_err=$ac_c_preproc_warn_flag
2428 if test -z "$ac_cpp_err"; then
2429 # Broken: success on invalid input.
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 # Passes both tests.
2439 rm -f conftest.err conftest.$ac_ext
2442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2443 rm -f conftest.err conftest.$ac_ext
2444 if $ac_preproc_ok; then
2456 echo "$as_me:$LINENO: result: $CPP" >&5
2457 echo "${ECHO_T}$CPP" >&6
2459 for ac_c_preproc_warn_flag in '' yes
2461 # Use a header file that comes with gcc, so configuring glibc
2462 # with a fresh cross-compiler works.
2463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 # <limits.h> exists even on freestanding compilers.
2465 # On the NeXT, cc -E runs the code through the compiler's parser,
2466 # not just through cpp. "Syntax error" is here to catch this case.
2467 cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2475 # include <limits.h>
2477 # include <assert.h>
2481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2484 grep -v '^ *+' conftest.er1 >conftest.err
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } >/dev/null; then
2489 if test -s conftest.err; then
2490 ac_cpp_err=$ac_c_preproc_warn_flag
2497 if test -z "$ac_cpp_err"; then
2500 echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2503 # Broken: fails on valid input.
2506 rm -f conftest.err conftest.$ac_ext
2508 # OK, works on sane cases. Now check whether non-existent headers
2509 # can be detected and how.
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 #include <ac_nonexistent.h>
2519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } >/dev/null; then
2527 if test -s conftest.err; then
2528 ac_cpp_err=$ac_c_preproc_warn_flag
2535 if test -z "$ac_cpp_err"; then
2536 # Broken: success on invalid input.
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 # Passes both tests.
2546 rm -f conftest.err conftest.$ac_ext
2549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550 rm -f conftest.err conftest.$ac_ext
2551 if $ac_preproc_ok; then
2554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2557 See \`config.log' for more details." >&2;}
2558 { (exit 1); exit 1; }; }
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2569 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2570 if test "${wine_cv_toolsdir+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -z "$with_wine_tools"; then
2574 if test "$cross_compiling" = "yes"; then
2575 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2576 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2577 { (exit 1); exit 1; }; }
2579 wine_cv_toolsdir="\$(TOPOBJDIR)"
2581 elif test -d "$with_wine_tools/tools/winebuild"; then
2582 case $with_wine_tools in
2583 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2584 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2587 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2588 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2589 { (exit 1); exit 1; }; }
2592 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2593 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2594 TOOLSDIR=$wine_cv_toolsdir
2599 echo "$as_me:$LINENO: checking for X" >&5
2600 echo $ECHO_N "checking for X... $ECHO_C" >&6
2603 # Check whether --with-x or --without-x was given.
2604 if test "${with_x+set}" = set; then
2608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2609 if test "x$with_x" = xno; then
2610 # The user explicitly disabled X.
2613 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2614 # Both variables are already set.
2617 if test "${ac_cv_have_x+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 # One or both of the vars are not set, and there is no cached value.
2621 ac_x_includes=no ac_x_libraries=no
2623 if mkdir conftest.dir; then
2625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2626 cat >Imakefile <<'_ACEOF'
2628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2630 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2634 for ac_extension in a so sl; do
2635 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2636 test -f $ac_im_libdir/libX11.$ac_extension; then
2637 ac_im_usrlibdir=$ac_im_libdir; break
2640 # Screen out bogus values from the imake configuration. They are
2641 # bogus both because they are the default anyway, and because
2642 # using them would break gcc on systems where it needs fixed includes.
2643 case $ac_im_incroot in
2645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2647 case $ac_im_usrlibdir in
2649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2656 # Standard set of common directories for X headers.
2657 # Check X11 before X11Rn because it is often a symlink to the current release.
2669 /usr/local/X11/include
2670 /usr/local/X11R6/include
2671 /usr/local/X11R5/include
2672 /usr/local/X11R4/include
2674 /usr/local/include/X11
2675 /usr/local/include/X11R6
2676 /usr/local/include/X11R5
2677 /usr/local/include/X11R4
2681 /usr/XFree86/include/X11
2685 /usr/unsupported/include
2687 /usr/local/x11r5/include
2688 /usr/lpp/Xamples/include
2690 /usr/openwin/include
2691 /usr/openwin/share/include'
2693 if test "$ac_x_includes" = no; then
2694 # Guess where to find include files, by looking for Intrinsic.h.
2695 # First, try using that file with no special directory specified.
2696 cat >conftest.$ac_ext <<_ACEOF
2697 #line $LINENO "configure"
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703 #include <X11/Intrinsic.h>
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } >/dev/null; then
2713 if test -s conftest.err; then
2714 ac_cpp_err=$ac_c_preproc_warn_flag
2721 if test -z "$ac_cpp_err"; then
2722 # We can compile using X headers with no special include directory.
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 for ac_dir in $ac_x_header_dirs; do
2729 if test -r "$ac_dir/X11/Intrinsic.h"; then
2730 ac_x_includes=$ac_dir
2735 rm -f conftest.err conftest.$ac_ext
2736 fi # $ac_x_includes = no
2738 if test "$ac_x_libraries" = no; then
2739 # Check for the libraries.
2740 # See if we find them without any special options.
2741 # Don't add to $LIBS permanently.
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2751 #include <X11/Intrinsic.h>
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest$ac_exeext'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2773 # We can link X programs with no special library path.
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2780 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2782 # Don't even attempt the hair of trying to link an X program!
2783 for ac_extension in a so sl; do
2784 if test -r $ac_dir/libXt.$ac_extension; then
2785 ac_x_libraries=$ac_dir
2791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792 fi # $ac_x_libraries = no
2794 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2795 # Didn't find X anywhere. Cache the known absence of X.
2796 ac_cv_have_x="have_x=no"
2798 # Record where we found X for the cache.
2799 ac_cv_have_x="have_x=yes \
2800 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2805 eval "$ac_cv_have_x"
2808 if test "$have_x" != yes; then
2809 echo "$as_me:$LINENO: result: $have_x" >&5
2810 echo "${ECHO_T}$have_x" >&6
2813 # If each of the values was on the command line, it overrides each guess.
2814 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2815 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2816 # Update the cache value to reflect the command line values.
2817 ac_cv_have_x="have_x=yes \
2818 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2819 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2820 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2823 if test "$no_x" = yes; then
2824 # Not all programs may use this symbol, but it does not hurt to define it.
2826 cat >>confdefs.h <<\_ACEOF
2827 #define X_DISPLAY_MISSING 1
2830 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2832 if test -n "$x_includes"; then
2833 X_CFLAGS="$X_CFLAGS -I$x_includes"
2836 # It would also be nice to do this for all -L options, not just this one.
2837 if test -n "$x_libraries"; then
2838 X_LIBS="$X_LIBS -L$x_libraries"
2839 # For Solaris; some versions of Sun CC require a space after -R and
2840 # others require no space. Words are not sufficient . . . .
2841 case `(uname -sr) 2>/dev/null` in
2843 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2844 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2845 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864 (eval $ac_link) 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest$ac_exeext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882 if test $ac_R_nospace = yes; then
2883 echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885 X_LIBS="$X_LIBS -R$x_libraries"
2887 LIBS="$ac_xsave_LIBS -R $x_libraries"
2888 cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.$ac_objext conftest$ac_exeext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906 (eval $ac_link) 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest$ac_exeext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2924 if test $ac_R_space = yes; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927 X_LIBS="$X_LIBS -R $x_libraries"
2929 echo "$as_me:$LINENO: result: neither works" >&5
2930 echo "${ECHO_T}neither works" >&6
2937 # Check for system-dependent libraries X programs must link with.
2938 # Do this before checking for the system-independent R6 libraries
2939 # (-lICE), since we may need -lsocket or whatever for X linking.
2941 if test "$ISC" = yes; then
2942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2944 # Martyn Johnson says this is needed for Ultrix, if the X
2945 # libraries were built with DECnet support. And Karl Berry says
2946 # the Alpha needs dnet_stub (dnet does not exist).
2947 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2956 /* Override any gcc2 internal prototype to avoid an error. */
2960 /* We use char because int might match the return type of a gcc2
2961 builtin and then its argument prototype would still apply. */
2962 char XOpenDisplay ();
2971 rm -f conftest.$ac_objext conftest$ac_exeext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973 (eval $ac_link) 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -s conftest$ac_exeext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2989 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2990 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 ac_check_lib_save_LIBS=$LIBS
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 /* Override any gcc2 internal prototype to avoid an error. */
3007 /* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest$ac_exeext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 ac_cv_lib_dnet_dnet_ntoa=yes
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ac_cv_lib_dnet_dnet_ntoa=no
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 LIBS=$ac_check_lib_save_LIBS
3040 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3041 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3042 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3046 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3047 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3048 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3049 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 ac_check_lib_save_LIBS=$LIBS
3053 LIBS="-ldnet_stub $LIBS"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3062 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3077 rm -f conftest.$ac_objext conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079 (eval $ac_link) 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest$ac_exeext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 ac_cv_lib_dnet_stub_dnet_ntoa=no
3096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3097 LIBS=$ac_check_lib_save_LIBS
3099 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3100 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3101 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3102 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108 LIBS="$ac_xsave_LIBS"
3110 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3111 # to get the SysV transport functions.
3112 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3114 # The nsl library prevents programs from opening the X display
3115 # on Irix 5.2, according to T.E. Dickey.
3116 # The functions gethostbyname, getservbyname, and inet_addr are
3117 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3118 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3119 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3120 if test "${ac_cv_func_gethostbyname+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 /* System header to define __stub macros and hopefully few prototypes,
3131 which can conflict with char gethostbyname (); below.
3132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133 <limits.h> exists even on freestanding compilers. */
3135 # include <limits.h>
3137 # include <assert.h>
3139 /* Override any gcc2 internal prototype to avoid an error. */
3144 /* We use char because int might match the return type of a gcc2
3145 builtin and then its argument prototype would still apply. */
3146 char gethostbyname ();
3147 /* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3153 char (*f) () = gethostbyname;
3162 return f != gethostbyname;
3167 rm -f conftest.$ac_objext conftest$ac_exeext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169 (eval $ac_link) 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -s conftest$ac_exeext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_cv_func_gethostbyname=yes
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_cv_func_gethostbyname=no
3186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3188 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3189 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3191 if test $ac_cv_func_gethostbyname = no; then
3192 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3193 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3194 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_check_lib_save_LIBS=$LIBS
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3207 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3213 char gethostbyname ();
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224 (eval $ac_link) 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -s conftest$ac_exeext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_lib_nsl_gethostbyname=yes
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_lib_nsl_gethostbyname=no
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3245 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3246 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3250 if test $ac_cv_lib_nsl_gethostbyname = no; then
3251 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3252 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3253 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 ac_check_lib_save_LIBS=$LIBS
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3266 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272 char gethostbyname ();
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283 (eval $ac_link) 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest$ac_exeext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_lib_bsd_gethostbyname=yes
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_cv_lib_bsd_gethostbyname=no
3300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301 LIBS=$ac_check_lib_save_LIBS
3303 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3304 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3305 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3312 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3313 # socket/setsockopt and other routines are undefined under SCO ODT
3314 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3315 # on later versions), says Simon Leinen: it contains gethostby*
3316 # variants that don't use the name server (or something). -lsocket
3317 # must be given before -lnsl if both are needed. We assume that
3318 # if connect needs -lnsl, so does gethostbyname.
3319 echo "$as_me:$LINENO: checking for connect" >&5
3320 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3321 if test "${ac_cv_func_connect+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 /* System header to define __stub macros and hopefully few prototypes,
3332 which can conflict with char connect (); below.
3333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3334 <limits.h> exists even on freestanding compilers. */
3336 # include <limits.h>
3338 # include <assert.h>
3340 /* Override any gcc2 internal prototype to avoid an error. */
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3348 /* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351 #if defined (__stub_connect) || defined (__stub___connect)
3354 char (*f) () = connect;
3363 return f != connect;
3368 rm -f conftest.$ac_objext conftest$ac_exeext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3370 (eval $ac_link) 2>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -s conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_func_connect=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ac_cv_func_connect=no
3387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3390 echo "${ECHO_T}$ac_cv_func_connect" >&6
3392 if test $ac_cv_func_connect = no; then
3393 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3395 if test "${ac_cv_lib_socket_connect+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 ac_check_lib_save_LIBS=$LIBS
3399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3408 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425 (eval $ac_link) 2>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -s conftest$ac_exeext'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3435 ac_cv_lib_socket_connect=yes
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 ac_cv_lib_socket_connect=no
3442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443 LIBS=$ac_check_lib_save_LIBS
3445 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3446 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3447 if test $ac_cv_lib_socket_connect = yes; then
3448 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3453 # Guillermo Gomez says -lposix is necessary on A/UX.
3454 echo "$as_me:$LINENO: checking for remove" >&5
3455 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3456 if test "${ac_cv_func_remove+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 /* System header to define __stub macros and hopefully few prototypes,
3467 which can conflict with char remove (); below.
3468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 <limits.h> exists even on freestanding compilers. */
3471 # include <limits.h>
3473 # include <assert.h>
3475 /* Override any gcc2 internal prototype to avoid an error. */
3480 /* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3483 /* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486 #if defined (__stub_remove) || defined (__stub___remove)
3489 char (*f) () = remove;
3503 rm -f conftest.$ac_objext conftest$ac_exeext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505 (eval $ac_link) 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -s conftest$ac_exeext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 ac_cv_func_remove=yes
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_cv_func_remove=no
3522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3524 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3525 echo "${ECHO_T}$ac_cv_func_remove" >&6
3527 if test $ac_cv_func_remove = no; then
3528 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3529 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3530 if test "${ac_cv_lib_posix_remove+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_check_lib_save_LIBS=$LIBS
3534 LIBS="-lposix $LIBS"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3543 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3558 rm -f conftest.$ac_objext conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560 (eval $ac_link) 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -s conftest$ac_exeext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 ac_cv_lib_posix_remove=yes
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 ac_cv_lib_posix_remove=no
3577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578 LIBS=$ac_check_lib_save_LIBS
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3581 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3582 if test $ac_cv_lib_posix_remove = yes; then
3583 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3588 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3589 echo "$as_me:$LINENO: checking for shmat" >&5
3590 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3591 if test "${ac_cv_func_shmat+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char shmat (); below.
3603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 <limits.h> exists even on freestanding compilers. */
3606 # include <limits.h>
3608 # include <assert.h>
3610 /* Override any gcc2 internal prototype to avoid an error. */
3615 /* We use char because int might match the return type of a gcc2
3616 builtin and then its argument prototype would still apply. */
3618 /* The GNU C library defines this for functions which it implements
3619 to always fail with ENOSYS. Some functions are actually named
3620 something starting with __ and the normal name is an alias. */
3621 #if defined (__stub_shmat) || defined (__stub___shmat)
3624 char (*f) () = shmat;
3638 rm -f conftest.$ac_objext conftest$ac_exeext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640 (eval $ac_link) 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -s conftest$ac_exeext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_cv_func_shmat=yes
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3659 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3660 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3662 if test $ac_cv_func_shmat = no; then
3663 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3664 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3665 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_check_lib_save_LIBS=$LIBS
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3678 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3693 rm -f conftest.$ac_objext conftest$ac_exeext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695 (eval $ac_link) 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -s conftest$ac_exeext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 ac_cv_lib_ipc_shmat=yes
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 ac_cv_lib_ipc_shmat=no
3712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3715 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3716 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3717 if test $ac_cv_lib_ipc_shmat = yes; then
3718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3724 # Check for libraries that X11R6 Xt/Xaw programs need.
3725 ac_save_LDFLAGS=$LDFLAGS
3726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3728 # check for ICE first), but we must link in the order -lSM -lICE or
3729 # we get undefined symbols. So assume we have SM if we have ICE.
3730 # These have to be linked with before -lX11, unlike the other
3731 # libraries we check for below, so use a different variable.
3732 # John Interrante, Karl Berry
3733 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3734 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3735 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3748 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3754 char IceConnectionNumber ();
3758 IceConnectionNumber ();
3763 rm -f conftest.$ac_objext conftest$ac_exeext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765 (eval $ac_link) 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -s conftest$ac_exeext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 ac_cv_lib_ICE_IceConnectionNumber=yes
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3780 ac_cv_lib_ICE_IceConnectionNumber=no
3782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3783 LIBS=$ac_check_lib_save_LIBS
3785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3788 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3791 LDFLAGS=$ac_save_LDFLAGS
3795 for ac_prog in 'bison -y' byacc
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_YACC+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 if test -n "$YACC"; then
3805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_YACC="$ac_prog"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 YACC=$ac_cv_prog_YACC
3824 if test -n "$YACC"; then
3825 echo "$as_me:$LINENO: result: $YACC" >&5
3826 echo "${ECHO_T}$YACC" >&6
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 test -n "$YACC" && break
3834 test -n "$YACC" || YACC="yacc"
3836 for ac_prog in flex lex
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_LEX+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 if test -n "$LEX"; then
3846 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_LEX="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 if test -n "$LEX"; then
3866 echo "$as_me:$LINENO: result: $LEX" >&5
3867 echo "${ECHO_T}$LEX" >&6
3869 echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3873 test -n "$LEX" && break
3875 test -n "$LEX" || LEX=":"
3877 if test -z "$LEXLIB"
3879 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3880 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3881 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 ac_check_lib_save_LIBS=$LIBS
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3894 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3909 rm -f conftest.$ac_objext conftest$ac_exeext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911 (eval $ac_link) 2>&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -s conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_fl_yywrap=yes
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_lib_fl_yywrap=no
3928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929 LIBS=$ac_check_lib_save_LIBS
3931 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3932 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3933 if test $ac_cv_lib_fl_yywrap = yes; then
3936 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3937 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3938 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 ac_check_lib_save_LIBS=$LIBS
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3951 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest$ac_exeext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_lib_l_yywrap=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_cv_lib_l_yywrap=no
3985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986 LIBS=$ac_check_lib_save_LIBS
3988 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3989 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3990 if test $ac_cv_lib_l_yywrap = yes; then
3998 if test "x$LEX" != "x:"; then
3999 echo "$as_me:$LINENO: checking lex output file root" >&5
4000 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4001 if test "${ac_cv_prog_lex_root+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 # The minimal lex program is just a single line: %%. But some broken lexes
4005 # (Solaris, I think it was) want two %% lines, so accommodate them.
4006 cat >conftest.l <<_ACEOF
4010 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4011 (eval $LEX conftest.l) 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }
4015 if test -f lex.yy.c; then
4016 ac_cv_prog_lex_root=lex.yy
4017 elif test -f lexyy.c; then
4018 ac_cv_prog_lex_root=lexyy
4020 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4021 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4022 { (exit 1); exit 1; }; }
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4026 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4028 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4030 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4031 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4032 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 # POSIX says lex can declare yytext either as a pointer or an array; the
4036 # default is implementation-dependent. Figure out which it is, since
4037 # not all implementations provide the %pointer and %array declarations.
4038 ac_cv_prog_lex_yytext_pointer=no
4039 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4041 LIBS="$LIBS $LEXLIB"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 `cat $LEX_OUTPUT_ROOT.c`
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047 (eval $ac_link) 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -s conftest$ac_exeext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_cv_prog_lex_yytext_pointer=yes
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4065 rm -f "${LEX_OUTPUT_ROOT}.c"
4068 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4069 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4070 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4072 cat >>confdefs.h <<\_ACEOF
4073 #define YYTEXT_POINTER 1
4080 for ac_prog in $YACC bison yacc
4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_XYACC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$XYACC"; then
4090 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_XYACC="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 XYACC=$ac_cv_prog_XYACC
4109 if test -n "$XYACC"; then
4110 echo "$as_me:$LINENO: result: $XYACC" >&5
4111 echo "${ECHO_T}$XYACC" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 test -n "$XYACC" && break
4119 test -n "$XYACC" || XYACC="none"
4121 if test "$XYACC" = "none"
4123 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4124 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4125 { (exit 1); exit 1; }; }
4127 for ac_prog in $LEX flex lex
4129 # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy $ac_prog; ac_word=$2
4131 echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_XLEX+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$XLEX"; then
4137 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_XLEX="$ac_prog"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 XLEX=$ac_cv_prog_XLEX
4156 if test -n "$XLEX"; then
4157 echo "$as_me:$LINENO: result: $XLEX" >&5
4158 echo "${ECHO_T}$XLEX" >&6
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4164 test -n "$XLEX" && break
4166 test -n "$XLEX" || XLEX="none"
4168 if test "$XLEX" = "none"
4170 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4171 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4172 { (exit 1); exit 1; }; }
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}ld; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_LD+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$LD"; then
4184 ac_cv_prog_LD="$LD" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_LD="${ac_tool_prefix}ld"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$LD"; then
4204 echo "$as_me:$LINENO: result: $LD" >&5
4205 echo "${ECHO_T}$LD" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4212 if test -z "$ac_cv_prog_LD"; then
4214 # Extract the first word of "ld", so it can be a program name with args.
4215 set dummy ld; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$ac_ct_LD"; then
4222 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_LD="ld"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4241 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4242 if test -n "$ac_ct_LD"; then
4243 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4244 echo "${ECHO_T}$ac_ct_LD" >&6
4246 echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}ar; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_AR+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$AR"; then
4264 ac_cv_prog_AR="$AR" # Let the user override the test.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_AR="${ac_tool_prefix}ar"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$AR"; then
4284 echo "$as_me:$LINENO: result: $AR" >&5
4285 echo "${ECHO_T}$AR" >&6
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4292 if test -z "$ac_cv_prog_AR"; then
4294 # Extract the first word of "ar", so it can be a program name with args.
4295 set dummy ar; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$ac_ct_AR"; then
4302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_AR="ar"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4321 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4322 if test -n "$ac_ct_AR"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4324 echo "${ECHO_T}$ac_ct_AR" >&6
4326 echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4335 if test -n "$ac_tool_prefix"; then
4336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_RANLIB+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$RANLIB"; then
4344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 RANLIB=$ac_cv_prog_RANLIB
4363 if test -n "$RANLIB"; then
4364 echo "$as_me:$LINENO: result: $RANLIB" >&5
4365 echo "${ECHO_T}$RANLIB" >&6
4367 echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4372 if test -z "$ac_cv_prog_RANLIB"; then
4373 ac_ct_RANLIB=$RANLIB
4374 # Extract the first word of "ranlib", so it can be a program name with args.
4375 set dummy ranlib; ac_word=$2
4376 echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 if test -n "$ac_ct_RANLIB"; then
4382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_RANLIB="ranlib"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4402 if test -n "$ac_ct_RANLIB"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4404 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4406 echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4410 RANLIB=$ac_ct_RANLIB
4412 RANLIB="$ac_cv_prog_RANLIB"
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}strip; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_STRIP+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 STRIP=$ac_cv_prog_STRIP
4443 if test -n "$STRIP"; then
4444 echo "$as_me:$LINENO: result: $STRIP" >&5
4445 echo "${ECHO_T}$STRIP" >&6
4447 echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4452 if test -z "$ac_cv_prog_STRIP"; then
4454 # Extract the first word of "strip", so it can be a program name with args.
4455 set dummy strip; ac_word=$2
4456 echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$ac_ct_STRIP"; then
4462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_STRIP="strip"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4482 if test -n "$ac_ct_STRIP"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4484 echo "${ECHO_T}$ac_ct_STRIP" >&6
4486 echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4492 STRIP="$ac_cv_prog_STRIP"
4495 if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}windres; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_WINDRES+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$WINDRES"; then
4504 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 WINDRES=$ac_cv_prog_WINDRES
4523 if test -n "$WINDRES"; then
4524 echo "$as_me:$LINENO: result: $WINDRES" >&5
4525 echo "${ECHO_T}$WINDRES" >&6
4527 echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4532 if test -z "$ac_cv_prog_WINDRES"; then
4533 ac_ct_WINDRES=$WINDRES
4534 # Extract the first word of "windres", so it can be a program name with args.
4535 set dummy windres; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test -n "$ac_ct_WINDRES"; then
4542 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_ac_ct_WINDRES="windres"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4561 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4562 if test -n "$ac_ct_WINDRES"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4564 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4570 WINDRES=$ac_ct_WINDRES
4572 WINDRES="$ac_cv_prog_WINDRES"
4575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4578 if test "$LN_S" = "ln -s"; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4582 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4583 echo "${ECHO_T}no, using $LN_S" >&6
4586 echo "$as_me:$LINENO: checking whether ln works" >&5
4587 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4588 rm -f conf$$ conf$$.file
4590 if ln conf$$.file conf$$ 2>/dev/null; then
4593 echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4598 echo "$as_me:$LINENO: result: no, using $LN" >&5
4599 echo "${ECHO_T}no, using $LN" >&6
4601 rm -f conf$$ conf$$.file
4602 # Extract the first word of "c2man", so it can be a program name with args.
4603 set dummy c2man; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_C2MAN+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$C2MAN"; then
4610 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_C2MAN="c2man"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4629 C2MAN=$ac_cv_prog_C2MAN
4630 if test -n "$C2MAN"; then
4631 echo "$as_me:$LINENO: result: $C2MAN" >&5
4632 echo "${ECHO_T}$C2MAN" >&6
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4638 # Extract the first word of "ldconfig", so it can be a program name with args.
4639 set dummy ldconfig; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in /sbin /usr/sbin $PATH
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4668 LDCONFIG=$ac_cv_path_LDCONFIG
4670 if test -n "$LDCONFIG"; then
4671 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4672 echo "${ECHO_T}$LDCONFIG" >&6
4674 echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4678 # Find a good install program. We prefer a C program (faster),
4679 # so one script is as good as another. But avoid the broken or
4680 # incompatible versions:
4681 # SysV /etc/install, /usr/sbin/install
4682 # SunOS /usr/etc/install
4683 # IRIX /sbin/install
4685 # AmigaOS /C/install, which installs bootblocks on floppy discs
4686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689 # ./install, which can be erroneously created by make from ./install.sh.
4690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4692 if test -z "$INSTALL"; then
4693 if test "${ac_cv_path_install+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 # Account for people who put trailing slashes in PATH elements.
4703 ./ | .// | /cC/* | \
4704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4707 # OSF1 and SCO ODT 3.0 have their own names for install.
4708 # Don't use installbsd from OSF since it installs stuff as root
4710 for ac_prog in ginstall scoinst install; do
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4713 if test $ac_prog = install &&
4714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715 # AIX install. It has an incompatible calling convention.
4717 elif test $ac_prog = install &&
4718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719 # program-specific install script used by HP pwplus--don't use.
4722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4734 if test "${ac_cv_path_install+set}" = set; then
4735 INSTALL=$ac_cv_path_install
4737 # As a last resort, use the slow shell script. We don't cache a
4738 # path for INSTALL within a source directory, because that will
4739 # break other packages using the cache if that directory is
4740 # removed, or if the path is relative.
4741 INSTALL=$ac_install_sh
4744 echo "$as_me:$LINENO: result: $INSTALL" >&5
4745 echo "${ECHO_T}$INSTALL" >&6
4747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4748 # It thinks the first close brace ends the variable substitution.
4749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4756 [\\/$]* | ?:[\\/]* ) ;;
4757 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4760 for ac_prog in lclint lint
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766 if test "${ac_cv_prog_LINT+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$LINT"; then
4770 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_LINT="$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 LINT=$ac_cv_prog_LINT
4789 if test -n "$LINT"; then
4790 echo "$as_me:$LINENO: result: $LINT" >&5
4791 echo "${ECHO_T}$LINT" >&6
4793 echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4797 test -n "$LINT" && break
4800 if test "$LINT" = "lint"
4802 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4807 for ac_prog in docbook2html db2html
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$DB2HTML"; then
4817 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_DB2HTML="$ac_prog"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 DB2HTML=$ac_cv_prog_DB2HTML
4836 if test -n "$DB2HTML"; then
4837 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4838 echo "${ECHO_T}$DB2HTML" >&6
4840 echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4844 test -n "$DB2HTML" && break
4846 test -n "$DB2HTML" || DB2HTML="false"
4850 for ac_prog in docbook2pdf db2pdf
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test -n "$DB2PDF"; then
4860 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_DB2PDF="$ac_prog"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 DB2PDF=$ac_cv_prog_DB2PDF
4879 if test -n "$DB2PDF"; then
4880 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4881 echo "${ECHO_T}$DB2PDF" >&6
4883 echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4887 test -n "$DB2PDF" && break
4889 test -n "$DB2PDF" || DB2PDF="false"
4893 for ac_prog in docbook2ps db2ps
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_DB2PS+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$DB2PS"; then
4903 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_DB2PS="$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 DB2PS=$ac_cv_prog_DB2PS
4922 if test -n "$DB2PS"; then
4923 echo "$as_me:$LINENO: result: $DB2PS" >&5
4924 echo "${ECHO_T}$DB2PS" >&6
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$DB2PS" && break
4932 test -n "$DB2PS" || DB2PS="false"
4938 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4939 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4940 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_check_lib_save_LIBS=$LIBS
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_lib_m_sqrt=yes
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4990 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4991 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4992 if test $ac_cv_lib_m_sqrt = yes; then
4993 cat >>confdefs.h <<_ACEOF
5002 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5003 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5004 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5023 char i386_set_ldt ();
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest$ac_exeext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_lib_i386_i386_set_ldt=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_cv_lib_i386_i386_set_ldt=no
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5055 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5056 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBI386 1
5066 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5067 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5068 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_check_lib_save_LIBS=$LIBS
5072 LIBS="-lossaudio $LIBS"
5073 cat >conftest.$ac_ext <<_ACEOF
5074 #line $LINENO "configure"
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_lib_ossaudio__oss_ioctl=yes
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_cv_lib_ossaudio__oss_ioctl=no
5115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5116 LIBS=$ac_check_lib_save_LIBS
5118 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5119 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5120 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5121 cat >>confdefs.h <<_ACEOF
5122 #define HAVE_LIBOSSAUDIO 1
5125 LIBS="-lossaudio $LIBS"
5130 for ac_func in iswalnum
5132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5133 echo "$as_me:$LINENO: checking for $ac_func" >&5
5134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_var+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.$ac_ext <<_ACEOF
5139 #line $LINENO "configure"
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 /* System header to define __stub macros and hopefully few prototypes,
5146 which can conflict with char $ac_func (); below.
5147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 <limits.h> exists even on freestanding compilers. */
5150 # include <limits.h>
5152 # include <assert.h>
5154 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5162 /* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5168 char (*f) () = $ac_func;
5177 return f != $ac_func;
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -s conftest$ac_exeext'
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 eval "$as_ac_var=yes"
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 eval "$as_ac_var=no"
5201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5205 if test `eval echo '${'$as_ac_var'}'` = yes; then
5206 cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5212 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5213 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5214 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 ac_check_lib_save_LIBS=$LIBS
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5227 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244 (eval $ac_link) 2>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_lib_w_iswalnum=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_lib_w_iswalnum=no
5261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5264 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5265 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5266 if test $ac_cv_lib_w_iswalnum = yes; then
5267 cat >>confdefs.h <<_ACEOF
5279 for ac_func in gethostbyname
5281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5282 echo "$as_me:$LINENO: checking for $ac_func" >&5
5283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5284 if eval "test \"\${$as_ac_var+set}\" = set"; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 /* System header to define __stub macros and hopefully few prototypes,
5295 which can conflict with char $ac_func (); below.
5296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297 <limits.h> exists even on freestanding compilers. */
5299 # include <limits.h>
5301 # include <assert.h>
5303 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5311 /* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5317 char (*f) () = $ac_func;
5326 return f != $ac_func;
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 eval "$as_ac_var=yes"
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 eval "$as_ac_var=no"
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5354 if test `eval echo '${'$as_ac_var'}'` = yes; then
5355 cat >>confdefs.h <<_ACEOF
5356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5361 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5362 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5363 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 ac_check_lib_save_LIBS=$LIBS
5368 cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5376 /* Override any gcc2 internal prototype to avoid an error. */
5380 /* We use char because int might match the return type of a gcc2
5381 builtin and then its argument prototype would still apply. */
5382 char gethostbyname ();
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393 (eval $ac_link) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_lib_nsl_gethostbyname=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_cv_lib_nsl_gethostbyname=no
5410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5413 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5414 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5415 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define HAVE_LIBNSL 1
5428 for ac_func in connect
5430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5431 echo "$as_me:$LINENO: checking for $ac_func" >&5
5432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_var+set}\" = set"; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 /* System header to define __stub macros and hopefully few prototypes,
5444 which can conflict with char $ac_func (); below.
5445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 <limits.h> exists even on freestanding compilers. */
5448 # include <limits.h>
5450 # include <assert.h>
5452 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5460 /* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5466 char (*f) () = $ac_func;
5475 return f != $ac_func;
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -s conftest$ac_exeext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 eval "$as_ac_var=yes"
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 eval "$as_ac_var=no"
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5503 if test `eval echo '${'$as_ac_var'}'` = yes; then
5504 cat >>confdefs.h <<_ACEOF
5505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5510 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5511 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5512 if test "${ac_cv_lib_socket_connect+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lsocket $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5525 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_lib_socket_connect=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_lib_socket_connect=no
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5563 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5564 if test $ac_cv_lib_socket_connect = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBSOCKET 1
5569 LIBS="-lsocket $LIBS"
5577 for ac_func in inet_aton
5579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5580 echo "$as_me:$LINENO: checking for $ac_func" >&5
5581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5582 if eval "test \"\${$as_ac_var+set}\" = set"; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char $ac_func (); below.
5594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595 <limits.h> exists even on freestanding compilers. */
5597 # include <limits.h>
5599 # include <assert.h>
5601 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5615 char (*f) () = $ac_func;
5624 return f != $ac_func;
5629 rm -f conftest.$ac_objext conftest$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest$ac_exeext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 eval "$as_ac_var=yes"
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 eval "$as_ac_var=no"
5648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5652 if test `eval echo '${'$as_ac_var'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5659 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5660 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5661 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lresolv $LIBS"
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5674 /* Override any gcc2 internal prototype to avoid an error. */
5678 /* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 ac_cv_lib_resolv_inet_aton=yes
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 ac_cv_lib_resolv_inet_aton=no
5708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5709 LIBS=$ac_check_lib_save_LIBS
5711 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5712 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5713 if test $ac_cv_lib_resolv_inet_aton = yes; then
5714 cat >>confdefs.h <<_ACEOF
5715 #define HAVE_LIBRESOLV 1
5718 LIBS="-lresolv $LIBS"
5726 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5727 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5728 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 ac_check_lib_save_LIBS=$LIBS
5733 cat >conftest.$ac_ext <<_ACEOF
5734 #line $LINENO "configure"
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5741 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5747 char _xpg4_setrunelocale ();
5751 _xpg4_setrunelocale ();
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758 (eval $ac_link) 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -s conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_check_lib_save_LIBS
5778 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5779 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5780 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5781 cat >>confdefs.h <<_ACEOF
5782 #define HAVE_LIBXPG4 1
5790 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5791 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5792 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_check_lib_save_LIBS=$LIBS
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5805 /* Override any gcc2 internal prototype to avoid an error. */
5809 /* We use char because int might match the return type of a gcc2
5810 builtin and then its argument prototype would still apply. */
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822 (eval $ac_link) 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -s conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_lib_mmap_mmap=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ac_cv_lib_mmap_mmap=no
5839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840 LIBS=$ac_check_lib_save_LIBS
5842 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5843 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5844 if test $ac_cv_lib_mmap_mmap = yes; then
5845 cat >>confdefs.h <<_ACEOF
5846 #define HAVE_LIBMMAP 1
5856 echo "$as_me:$LINENO: checking for egrep" >&5
5857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5858 if test "${ac_cv_prog_egrep+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5862 then ac_cv_prog_egrep='grep -E'
5863 else ac_cv_prog_egrep='egrep'
5866 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5867 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5868 EGREP=$ac_cv_prog_egrep
5871 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5873 if test "${ac_cv_header_stdc+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_header_stdc=yes
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_cv_header_stdc=no
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5917 if test $ac_cv_header_stdc = yes; then
5918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919 cat >conftest.$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "memchr" >/dev/null 2>&1; then
5933 ac_cv_header_stdc=no
5939 if test $ac_cv_header_stdc = yes; then
5940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941 cat >conftest.$ac_ext <<_ACEOF
5942 #line $LINENO "configure"
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 $EGREP "free" >/dev/null 2>&1; then
5955 ac_cv_header_stdc=no
5961 if test $ac_cv_header_stdc = yes; then
5962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5963 if test "$cross_compiling" = yes; then
5966 cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5978 # define ISLOWER(c) \
5979 (('a' <= (c) && (c) <= 'i') \
5980 || ('j' <= (c) && (c) <= 'r') \
5981 || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5990 for (i = 0; i < 256; i++)
5991 if (XOR (islower (i), ISLOWER (i))
5992 || toupper (i) != TOUPPER (i))
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6010 echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_header_stdc=no
6017 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6022 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6023 if test $ac_cv_header_stdc = yes; then
6025 cat >>confdefs.h <<\_ACEOF
6026 #define STDC_HEADERS 1
6031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6042 inttypes.h stdint.h unistd.h
6044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6045 echo "$as_me:$LINENO: checking for $ac_header" >&5
6046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.$ac_ext <<_ACEOF
6051 #line $LINENO "configure"
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 $ac_includes_default
6059 #include <$ac_header>
6061 rm -f conftest.$ac_objext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 eval "$as_ac_Header=yes"
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 eval "$as_ac_Header=no"
6080 rm -f conftest.$ac_objext conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085 cat >>confdefs.h <<_ACEOF
6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 for ac_header in jpeglib.h
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107 # Is the header compilable?
6108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 $ac_includes_default
6118 #include <$ac_header>
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_header_compiler=yes
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_header_compiler=no
6139 rm -f conftest.$ac_objext conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6141 echo "${ECHO_T}$ac_header_compiler" >&6
6143 # Is the header present?
6144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <$ac_header>
6155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } >/dev/null; then
6163 if test -s conftest.err; then
6164 ac_cpp_err=$ac_c_preproc_warn_flag
6171 if test -z "$ac_cpp_err"; then
6172 ac_header_preproc=yes
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_header_preproc=no
6179 rm -f conftest.err conftest.$ac_ext
6180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6181 echo "${ECHO_T}$ac_header_preproc" >&6
6183 # So? What about this header?
6184 case $ac_header_compiler:$ac_header_preproc in
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6192 ## ------------------------------------ ##
6193 ## Report this to bug-autoconf@gnu.org. ##
6194 ## ------------------------------------ ##
6197 sed "s/^/$as_me: WARNING: /" >&2
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6208 ## ------------------------------------ ##
6209 ## Report this to bug-autoconf@gnu.org. ##
6210 ## ------------------------------------ ##
6213 sed "s/^/$as_me: WARNING: /" >&2
6216 echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 eval "$as_ac_Header=$ac_header_preproc"
6223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6228 cat >>confdefs.h <<_ACEOF
6229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6231 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6232 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6233 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_check_lib_save_LIBS=$LIBS
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6246 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6252 char jpeg_start_decompress ();
6256 jpeg_start_decompress ();
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cv_lib_jpeg_jpeg_start_decompress=no
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6283 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6284 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6285 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_LIBJPEG 1
6311 if test "$have_x" = "yes"
6314 ac_save_CPPFLAGS="$CPPFLAGS"
6315 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6318 for ac_header in X11/Xlib.h
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322 echo "$as_me:$LINENO: checking for $ac_header" >&5
6323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 # Is the header compilable?
6331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6341 #include <$ac_header>
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_header_compiler=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ac_header_compiler=no
6362 rm -f conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 #include <$ac_header>
6378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6381 grep -v '^ *+' conftest.er1 >conftest.err
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } >/dev/null; then
6386 if test -s conftest.err; then
6387 ac_cpp_err=$ac_c_preproc_warn_flag
6394 if test -z "$ac_cpp_err"; then
6395 ac_header_preproc=yes
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_header_preproc=no
6402 rm -f conftest.err conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6
6406 # So? What about this header?
6407 case $ac_header_compiler:$ac_header_preproc in
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6415 ## ------------------------------------ ##
6416 ## Report this to bug-autoconf@gnu.org. ##
6417 ## ------------------------------------ ##
6420 sed "s/^/$as_me: WARNING: /" >&2
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6431 ## ------------------------------------ ##
6432 ## Report this to bug-autoconf@gnu.org. ##
6433 ## ------------------------------------ ##
6436 sed "s/^/$as_me: WARNING: /" >&2
6439 echo "$as_me:$LINENO: checking for $ac_header" >&5
6440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 eval "$as_ac_Header=$ac_header_preproc"
6446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6456 for ac_header in X11/XKBlib.h
6458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <X11/Xlib.h>
6473 #include <$ac_header>
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 eval "$as_ac_Header=yes"
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 eval "$as_ac_Header=no"
6494 rm -f conftest.$ac_objext conftest.$ac_ext
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6503 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6504 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 ac_check_lib_save_LIBS=$LIBS
6508 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6517 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6523 char XkbQueryExtension ();
6527 XkbQueryExtension ();
6532 rm -f conftest.$ac_objext conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534 (eval $ac_link) 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -s conftest$ac_exeext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_lib_X11_XkbQueryExtension=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 ac_cv_lib_X11_XkbQueryExtension=no
6551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6552 LIBS=$ac_check_lib_save_LIBS
6554 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6555 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6556 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6558 cat >>confdefs.h <<\_ACEOF
6566 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6567 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6574 for ac_header in X11/extensions/XShm.h
6576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 #include <X11/Xlib.h>
6591 #include <$ac_header>
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 eval "$as_ac_Header=yes"
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 eval "$as_ac_Header=no"
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6617 cat >>confdefs.h <<_ACEOF
6618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6620 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6621 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6622 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6635 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */
6641 char XShmQueryExtension ();
6645 XShmQueryExtension ();
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest$ac_exeext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_lib_Xext_XShmQueryExtension=yes
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_lib_Xext_XShmQueryExtension=no
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6673 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6674 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6676 cat >>confdefs.h <<\_ACEOF
6677 #define HAVE_LIBXXSHM 1
6684 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6685 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6692 for ac_header in X11/Xutil.h
6694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <X11/Xlib.h>
6709 #include <$ac_header>
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 eval "$as_ac_Header=yes"
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 eval "$as_ac_Header=no"
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6745 for ac_header in X11/extensions/shape.h
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <X11/Xlib.h>
6761 #ifdef HAVE_X11_XUTIL_H
6762 # include <X11/Xutil.h>
6765 #include <$ac_header>
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 eval "$as_ac_Header=yes"
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 eval "$as_ac_Header=no"
6786 rm -f conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6794 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6795 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6796 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 ac_check_lib_save_LIBS=$LIBS
6800 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6809 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6815 char XShapeQueryExtension ();
6819 XShapeQueryExtension ();
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -s conftest$ac_exeext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_cv_lib_Xext_XShapeQueryExtension=yes
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 ac_cv_lib_Xext_XShapeQueryExtension=no
6843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6844 LIBS=$ac_check_lib_save_LIBS
6846 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6847 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6848 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_LIBXSHAPE 1
6858 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6859 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6866 for ac_header in X11/extensions/xf86dga.h
6868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6869 echo "$as_me:$LINENO: checking for $ac_header" >&5
6870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <X11/Xlib.h>
6883 #include <$ac_header>
6885 rm -f conftest.$ac_objext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 eval "$as_ac_Header=yes"
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 eval "$as_ac_Header=no"
6904 rm -f conftest.$ac_objext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6909 cat >>confdefs.h <<_ACEOF
6910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6912 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6913 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6914 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char XDGAQueryExtension ();
6938 XDGAQueryExtension ();
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -s conftest$ac_exeext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6963 LIBS=$ac_check_lib_save_LIBS
6965 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6966 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6967 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_LIBXXF86DGA2 1
6973 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6976 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6977 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6978 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 ac_check_lib_save_LIBS=$LIBS
6982 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any gcc2 internal prototype to avoid an error. */
6996 /* We use char because int might match the return type of a gcc2
6997 builtin and then its argument prototype would still apply. */
6998 char XF86DGAQueryExtension ();
7002 XF86DGAQueryExtension ();
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 LIBS=$ac_check_lib_save_LIBS
7029 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7030 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7031 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7033 cat >>confdefs.h <<\_ACEOF
7034 #define HAVE_LIBXXF86DGA 1
7037 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7046 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7047 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7054 for ac_header in X11/extensions/xf86vmode.h
7056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7057 echo "$as_me:$LINENO: checking for $ac_header" >&5
7058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line $LINENO "configure"
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <X11/Xlib.h>
7071 #include <$ac_header>
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 eval "$as_ac_Header=yes"
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 eval "$as_ac_Header=no"
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7101 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7102 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7116 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7122 char XF86VidModeQueryExtension ();
7126 XF86VidModeQueryExtension ();
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7153 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7154 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7155 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7157 cat >>confdefs.h <<\_ACEOF
7158 #define HAVE_LIBXXF86VM 1
7161 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7167 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7168 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7175 for ac_header in X11/extensions/Xvlib.h
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <X11/Xlib.h>
7192 #include <$ac_header>
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 eval "$as_ac_Header=yes"
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 eval "$as_ac_Header=no"
7213 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218 cat >>confdefs.h <<_ACEOF
7219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7221 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7222 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7223 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7237 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7243 char XvShmCreateImage ();
7247 XvShmCreateImage ();
7252 rm -f conftest.$ac_objext conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254 (eval $ac_link) 2>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_lib_Xv_XvShmCreateImage=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_lib_Xv_XvShmCreateImage=no
7271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7274 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7275 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7276 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7278 cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_XVIDEO 1
7282 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7288 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7289 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7296 for ac_header in X11/extensions/Xrender.h
7298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7299 echo "$as_me:$LINENO: checking for $ac_header" >&5
7300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 #include <X11/Xlib.h>
7313 #include <$ac_header>
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 eval "$as_ac_Header=yes"
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 eval "$as_ac_Header=no"
7334 rm -f conftest.$ac_objext conftest.$ac_ext
7336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7339 cat >>confdefs.h <<_ACEOF
7340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353 if test "x$with_opengl" != "xno"
7355 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7357 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7358 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7359 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7360 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7361 { (exit 1); exit 1; }; }
7366 for ac_header in GL/gl.h GL/glx.h
7368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370 echo "$as_me:$LINENO: checking for $ac_header" >&5
7371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378 # Is the header compilable?
7379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 #include <$ac_header>
7391 rm -f conftest.$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_header_compiler=yes
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 ac_header_compiler=no
7410 rm -f conftest.$ac_objext conftest.$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412 echo "${ECHO_T}$ac_header_compiler" >&6
7414 # Is the header present?
7415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #include <$ac_header>
7426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7429 grep -v '^ *+' conftest.er1 >conftest.err
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev/null; then
7434 if test -s conftest.err; then
7435 ac_cpp_err=$ac_c_preproc_warn_flag
7442 if test -z "$ac_cpp_err"; then
7443 ac_header_preproc=yes
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 ac_header_preproc=no
7450 rm -f conftest.err conftest.$ac_ext
7451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452 echo "${ECHO_T}$ac_header_preproc" >&6
7454 # So? What about this header?
7455 case $ac_header_compiler:$ac_header_preproc in
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7463 ## ------------------------------------ ##
7464 ## Report this to bug-autoconf@gnu.org. ##
7465 ## ------------------------------------ ##
7468 sed "s/^/$as_me: WARNING: /" >&2
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7479 ## ------------------------------------ ##
7480 ## Report this to bug-autoconf@gnu.org. ##
7481 ## ------------------------------------ ##
7484 sed "s/^/$as_me: WARNING: /" >&2
7487 echo "$as_me:$LINENO: checking for $ac_header" >&5
7488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 eval "$as_ac_Header=$ac_header_preproc"
7494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7510 for ac_header in GL/glext.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7527 #include <$ac_header>
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531 (eval $ac_compile) 2>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 eval "$as_ac_Header=yes"
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 eval "$as_ac_Header=no"
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553 cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7561 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7562 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7563 if test "${wine_cv_opengl_version_OK+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 cat >conftest.$ac_ext <<_ACEOF
7567 #line $LINENO "configure"
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7577 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7582 rm -f conftest.$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 wine_cv_opengl_version_OK="yes"
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 wine_cv_opengl_version_OK="no"
7602 rm -f conftest.$ac_objext conftest.$ac_ext
7605 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7606 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7608 if test "$wine_cv_opengl_version_OK" = "yes"
7610 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7611 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7612 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7625 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7631 char glXCreateContext ();
7635 glXCreateContext ();
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 2>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -s conftest$ac_exeext'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_lib_GL_glXCreateContext=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_lib_GL_glXCreateContext=no
7659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7662 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7663 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7664 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7670 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7672 OPENGLFILES='$(OPENGLFILES)'
7674 cat >>confdefs.h <<\_ACEOF
7675 #define HAVE_OPENGL 1
7679 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7680 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7681 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7694 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char glXGetProcAddressARB ();
7704 glXGetProcAddressARB ();
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_cv_lib_GL_glXGetProcAddressARB=yes
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 ac_cv_lib_GL_glXGetProcAddressARB=no
7728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7729 LIBS=$ac_check_lib_save_LIBS
7731 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7732 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7733 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_GLX_GETPROCADDRESS 1
7742 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7744 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7745 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7746 if test "${wine_cv_extension_prototypes+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7757 #ifdef HAVE_GL_GLEXT_H
7758 # include <GL/glext.h>
7764 PFNGLCOLORTABLEEXTPROC test_proc;
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 wine_cv_extension_prototypes="yes"
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 wine_cv_extension_prototypes="no"
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7792 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7793 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7794 if test "$wine_cv_extension_prototypes" = "yes"
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_GLEXT_PROTOTYPES 1
7805 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7806 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7807 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7821 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_GLU_gluLookAt=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_GLU_gluLookAt=no
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7859 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7860 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7861 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7862 GLU32FILES='$(GLU32FILES)'
7873 for ac_header in audio/audiolib.h
7875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877 echo "$as_me:$LINENO: checking for $ac_header" >&5
7878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7885 # Is the header compilable?
7886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7888 cat >conftest.$ac_ext <<_ACEOF
7889 #line $LINENO "configure"
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 #include <$ac_header>
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_header_compiler=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 ac_header_compiler=no
7917 rm -f conftest.$ac_objext conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7919 echo "${ECHO_T}$ac_header_compiler" >&6
7921 # Is the header present?
7922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #include <$ac_header>
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7936 grep -v '^ *+' conftest.er1 >conftest.err
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } >/dev/null; then
7941 if test -s conftest.err; then
7942 ac_cpp_err=$ac_c_preproc_warn_flag
7949 if test -z "$ac_cpp_err"; then
7950 ac_header_preproc=yes
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 ac_header_preproc=no
7957 rm -f conftest.err conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959 echo "${ECHO_T}$ac_header_preproc" >&6
7961 # So? What about this header?
7962 case $ac_header_compiler:$ac_header_preproc in
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7970 ## ------------------------------------ ##
7971 ## Report this to bug-autoconf@gnu.org. ##
7972 ## ------------------------------------ ##
7975 sed "s/^/$as_me: WARNING: /" >&2
7978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7986 ## ------------------------------------ ##
7987 ## Report this to bug-autoconf@gnu.org. ##
7988 ## ------------------------------------ ##
7991 sed "s/^/$as_me: WARNING: /" >&2
7994 echo "$as_me:$LINENO: checking for $ac_header" >&5
7995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 eval "$as_ac_Header=$ac_header_preproc"
8001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006 cat >>confdefs.h <<_ACEOF
8007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8010 for ac_header in audio/soundlib.h
8012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <audio/audiolib.h>
8027 #include <$ac_header>
8029 rm -f conftest.$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 eval "$as_ac_Header=yes"
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 eval "$as_ac_Header=no"
8048 rm -f conftest.$ac_objext conftest.$ac_ext
8050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053 cat >>confdefs.h <<_ACEOF
8054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8062 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8063 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 ac_check_lib_save_LIBS=$LIBS
8067 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8076 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8082 char AuCreateFlow ();
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8093 (eval $ac_link) 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 ac_cv_lib_audio_AuCreateFlow=yes
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8108 ac_cv_lib_audio_AuCreateFlow=no
8110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8111 LIBS=$ac_check_lib_save_LIBS
8113 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8114 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8115 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8117 cat >>confdefs.h <<\_ACEOF
8121 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8129 CPPFLAGS="$ac_save_CPPFLAGS"
8138 if test "x$with_curses" != "xno"
8141 for ac_header in ncurses.h
8143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145 echo "$as_me:$LINENO: checking for $ac_header" >&5
8146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8153 # Is the header compilable?
8154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8157 #line $LINENO "configure"
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 #include <$ac_header>
8166 rm -f conftest.$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -s conftest.$ac_objext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 ac_header_compiler=yes
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_header_compiler=no
8185 rm -f conftest.$ac_objext conftest.$ac_ext
8186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8187 echo "${ECHO_T}$ac_header_compiler" >&6
8189 # Is the header present?
8190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8193 #line $LINENO "configure"
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <$ac_header>
8201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } >/dev/null; then
8209 if test -s conftest.err; then
8210 ac_cpp_err=$ac_c_preproc_warn_flag
8217 if test -z "$ac_cpp_err"; then
8218 ac_header_preproc=yes
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_header_preproc=no
8225 rm -f conftest.err conftest.$ac_ext
8226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8227 echo "${ECHO_T}$ac_header_preproc" >&6
8229 # So? What about this header?
8230 case $ac_header_compiler:$ac_header_preproc in
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8238 ## ------------------------------------ ##
8239 ## Report this to bug-autoconf@gnu.org. ##
8240 ## ------------------------------------ ##
8243 sed "s/^/$as_me: WARNING: /" >&2
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8254 ## ------------------------------------ ##
8255 ## Report this to bug-autoconf@gnu.org. ##
8256 ## ------------------------------------ ##
8259 sed "s/^/$as_me: WARNING: /" >&2
8262 echo "$as_me:$LINENO: checking for $ac_header" >&5
8263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 eval "$as_ac_Header=$ac_header_preproc"
8269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8274 cat >>confdefs.h <<_ACEOF
8275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8278 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8279 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lncurses $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8292 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_lib_ncurses_waddch=yes
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_cv_lib_ncurses_waddch=no
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8330 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8331 if test $ac_cv_lib_ncurses_waddch = yes; then
8333 cat >>confdefs.h <<\_ACEOF
8334 #define HAVE_LIBNCURSES 1
8337 CURSESLIBS="-lncurses"
8340 for ac_header in curses.h
8342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo "$as_me:$LINENO: checking for $ac_header" >&5
8345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8352 # Is the header compilable?
8353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 $ac_includes_default
8363 #include <$ac_header>
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_header_compiler=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_header_compiler=no
8384 rm -f conftest.$ac_objext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8386 echo "${ECHO_T}$ac_header_compiler" >&6
8388 # Is the header present?
8389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 #include <$ac_header>
8400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } >/dev/null; then
8408 if test -s conftest.err; then
8409 ac_cpp_err=$ac_c_preproc_warn_flag
8416 if test -z "$ac_cpp_err"; then
8417 ac_header_preproc=yes
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 ac_header_preproc=no
8424 rm -f conftest.err conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8426 echo "${ECHO_T}$ac_header_preproc" >&6
8428 # So? What about this header?
8429 case $ac_header_compiler:$ac_header_preproc in
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8437 ## ------------------------------------ ##
8438 ## Report this to bug-autoconf@gnu.org. ##
8439 ## ------------------------------------ ##
8442 sed "s/^/$as_me: WARNING: /" >&2
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8453 ## ------------------------------------ ##
8454 ## Report this to bug-autoconf@gnu.org. ##
8455 ## ------------------------------------ ##
8458 sed "s/^/$as_me: WARNING: /" >&2
8461 echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 eval "$as_ac_Header=$ac_header_preproc"
8468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8477 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8478 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 ac_check_lib_save_LIBS=$LIBS
8482 LIBS="-lcurses $LIBS"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8491 /* Override any gcc2 internal prototype to avoid an error. */
8495 /* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8506 rm -f conftest.$ac_objext conftest$ac_exeext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508 (eval $ac_link) 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_cv_lib_curses_waddch=yes
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_cv_lib_curses_waddch=no
8525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8526 LIBS=$ac_check_lib_save_LIBS
8528 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8529 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8530 if test $ac_cv_lib_curses_waddch = yes; then
8532 cat >>confdefs.h <<\_ACEOF
8533 #define HAVE_LIBCURSES 1
8536 CURSESLIBS="-lcurses"
8550 LIBS="$CURSESLIBS $LIBS"
8553 for ac_func in getbkgd resizeterm
8555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8556 echo "$as_me:$LINENO: checking for $ac_func" >&5
8557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_var+set}\" = set"; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 cat >conftest.$ac_ext <<_ACEOF
8562 #line $LINENO "configure"
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 /* System header to define __stub macros and hopefully few prototypes,
8569 which can conflict with char $ac_func (); below.
8570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571 <limits.h> exists even on freestanding compilers. */
8573 # include <limits.h>
8575 # include <assert.h>
8577 /* Override any gcc2 internal prototype to avoid an error. */
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8585 /* The GNU C library defines this for functions which it implements
8586 to always fail with ENOSYS. Some functions are actually named
8587 something starting with __ and the normal name is an alias. */
8588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8591 char (*f) () = $ac_func;
8600 return f != $ac_func;
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607 (eval $ac_link) 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 eval "$as_ac_var=yes"
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 eval "$as_ac_var=no"
8624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8628 if test `eval echo '${'$as_ac_var'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8640 # Extract the first word of "sane-config", so it can be a program name with args.
8641 set dummy sane-config; ac_word=$2
8642 echo "$as_me:$LINENO: checking for $ac_word" >&5
8643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644 if test "${ac_cv_prog_sane_devel+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 if test -n "$sane_devel"; then
8648 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657 ac_cv_prog_sane_devel="sane-config"
8658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8667 sane_devel=$ac_cv_prog_sane_devel
8668 if test -n "$sane_devel"; then
8669 echo "$as_me:$LINENO: result: $sane_devel" >&5
8670 echo "${ECHO_T}$sane_devel" >&6
8672 echo "$as_me:$LINENO: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8676 if test "$sane_devel" = "no"
8681 SANELIBS="`$sane_devel --libs`"
8682 SANEINCL="`$sane_devel --cflags`"
8683 ac_save_CPPFLAGS="$CPPFLAGS"
8684 ac_save_LIBS="$LIBS"
8685 CPPFLAGS="$CPPFLAGS $SANEINCL"
8686 LIBS="$LIBS $SANELIBS"
8687 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8688 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8689 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8690 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8694 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8696 # Is the header compilable?
8697 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8698 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8699 cat >conftest.$ac_ext <<_ACEOF
8700 #line $LINENO "configure"
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 $ac_includes_default
8707 #include <sane/sane.h>
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_header_compiler=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_header_compiler=no
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8734 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 #include <sane/sane.h>
8744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } >/dev/null; then
8752 if test -s conftest.err; then
8753 ac_cpp_err=$ac_c_preproc_warn_flag
8760 if test -z "$ac_cpp_err"; then
8761 ac_header_preproc=yes
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 ac_header_preproc=no
8768 rm -f conftest.err conftest.$ac_ext
8769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8770 echo "${ECHO_T}$ac_header_preproc" >&6
8772 # So? What about this header?
8773 case $ac_header_compiler:$ac_header_preproc in
8775 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8776 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8778 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8781 ## ------------------------------------ ##
8782 ## Report this to bug-autoconf@gnu.org. ##
8783 ## ------------------------------------ ##
8786 sed "s/^/$as_me: WARNING: /" >&2
8789 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8790 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8792 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8794 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8797 ## ------------------------------------ ##
8798 ## Report this to bug-autoconf@gnu.org. ##
8799 ## ------------------------------------ ##
8802 sed "s/^/$as_me: WARNING: /" >&2
8805 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8806 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8807 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 ac_cv_header_sane_sane_h=$ac_header_preproc
8812 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8816 if test $ac_cv_header_sane_sane_h = yes; then
8817 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8818 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8819 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 ac_check_lib_save_LIBS=$LIBS
8824 cat >conftest.$ac_ext <<_ACEOF
8825 #line $LINENO "configure"
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8832 /* Override any gcc2 internal prototype to avoid an error. */
8836 /* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849 (eval $ac_link) 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_cv_lib_sane_sane_open=yes
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 ac_cv_lib_sane_sane_open=no
8866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_lib_save_LIBS
8869 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8870 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8871 if test $ac_cv_lib_sane_sane_open = yes; then
8873 cat >>confdefs.h <<\_ACEOF
8888 LIBS="$ac_save_LIBS"
8889 CPPFLAGS="$ac_save_CPPFLAGS"
8894 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8895 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8896 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lfreetype $X_LIBS $LIBS"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 /* Override any gcc2 internal prototype to avoid an error. */
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915 char FT_Init_FreeType ();
8919 FT_Init_FreeType ();
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926 (eval $ac_link) 2>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_lib_freetype_FT_Init_FreeType=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_lib_freetype_FT_Init_FreeType=no
8943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_lib_save_LIBS
8946 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8947 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8948 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8954 if test "$ft_lib" = "no"
8957 wine_cv_msg_freetype=no
8959 # Extract the first word of "freetype-config", so it can be a program name with args.
8960 set dummy freetype-config; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_prog_ft_devel+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 if test -n "$ft_devel"; then
8967 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_ft_devel="freetype-config"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8986 ft_devel=$ac_cv_prog_ft_devel
8987 if test -n "$ft_devel"; then
8988 echo "$as_me:$LINENO: result: $ft_devel" >&5
8989 echo "${ECHO_T}$ft_devel" >&6
8991 echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6
8995 if test "$ft_devel" = "no"
8997 # Extract the first word of "freetype2-config", so it can be a program name with args.
8998 set dummy freetype2-config; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 if test -n "$ft_devel2"; then
9005 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_ft_devel2="freetype2-config"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9024 ft_devel2=$ac_cv_prog_ft_devel2
9025 if test -n "$ft_devel2"; then
9026 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9027 echo "${ECHO_T}$ft_devel2" >&6
9029 echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9033 if test "$ft_devel2" = "freetype2-config"
9038 if test "$ft_devel" = "no"
9041 wine_cv_msg_freetype=yes
9043 FREETYPEINCL=`$ft_devel --cflags`
9044 ac_save_CPPFLAGS="$CPPFLAGS"
9045 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9054 for ac_header in freetype/freetype.h \
9055 freetype/ftglyph.h \
9056 freetype/tttables.h \
9057 freetype/ftnames.h \
9058 freetype/ftsnames.h \
9059 freetype/ttnameid.h \
9060 freetype/ftoutln.h \
9061 freetype/internal/sfnt.h
9063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065 echo "$as_me:$LINENO: checking for $ac_header" >&5
9066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073 # Is the header compilable?
9074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9077 #line $LINENO "configure"
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 #include <$ac_header>
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -s conftest.$ac_objext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_header_compiler=yes
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 ac_header_compiler=no
9105 rm -f conftest.$ac_objext conftest.$ac_ext
9106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107 echo "${ECHO_T}$ac_header_compiler" >&6
9109 # Is the header present?
9110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 #include <$ac_header>
9121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9124 grep -v '^ *+' conftest.er1 >conftest.err
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } >/dev/null; then
9129 if test -s conftest.err; then
9130 ac_cpp_err=$ac_c_preproc_warn_flag
9137 if test -z "$ac_cpp_err"; then
9138 ac_header_preproc=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_header_preproc=no
9145 rm -f conftest.err conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9147 echo "${ECHO_T}$ac_header_preproc" >&6
9149 # So? What about this header?
9150 case $ac_header_compiler:$ac_header_preproc in
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9158 ## ------------------------------------ ##
9159 ## Report this to bug-autoconf@gnu.org. ##
9160 ## ------------------------------------ ##
9163 sed "s/^/$as_me: WARNING: /" >&2
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9174 ## ------------------------------------ ##
9175 ## Report this to bug-autoconf@gnu.org. ##
9176 ## ------------------------------------ ##
9179 sed "s/^/$as_me: WARNING: /" >&2
9182 echo "$as_me:$LINENO: checking for $ac_header" >&5
9183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 eval "$as_ac_Header=$ac_header_preproc"
9189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9194 cat >>confdefs.h <<_ACEOF
9195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line $LINENO "configure"
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <ft2build.h>
9210 #include <freetype/fttrigon.h>
9212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } >/dev/null; then
9220 if test -s conftest.err; then
9221 ac_cpp_err=$ac_c_preproc_warn_flag
9228 if test -z "$ac_cpp_err"; then
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_FREETYPE_FTTRIGON_H 1
9234 wine_cv_fttrigon=yes
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9241 rm -f conftest.err conftest.$ac_ext
9242 CPPFLAGS="$ac_save_CPPFLAGS"
9243 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_FREETYPE 1
9250 wine_cv_msg_freetype=no
9253 wine_cv_msg_freetype=yes
9259 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9260 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9261 if test "${ac_cv_c_ppdev+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271 #include <linux/ppdev.h>
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -s conftest.$ac_objext'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9302 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9303 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9304 if test "$ac_cv_c_ppdev" = "yes"
9307 cat >>confdefs.h <<\_ACEOF
9308 #define HAVE_PPDEV 1
9313 echo "$as_me:$LINENO: checking for va_copy" >&5
9314 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9315 if test "${ac_cv_c_va_copy+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -s conftest$ac_exeext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_c_va_copy="yes"
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_cv_c_va_copy="no"
9355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9359 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9360 if test "$ac_cv_c_va_copy" = "yes"
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_VA_COPY 1
9368 echo "$as_me:$LINENO: checking for __va_copy" >&5
9369 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9370 if test "${ac_cv_c___va_copy+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 cat >conftest.$ac_ext <<_ACEOF
9374 #line $LINENO "configure"
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_c___va_copy="yes"
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_c___va_copy="no"
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9414 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9415 if test "$ac_cv_c___va_copy" = "yes"
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE___VA_COPY 1
9424 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
9425 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
9426 if test "${ac_cv_c_ipx_gnu+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 cat >conftest.$ac_ext <<_ACEOF
9430 #line $LINENO "configure"
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 #include <sys/types.h>
9437 #ifdef HAVE_SYS_SOCKET_H
9438 # include <sys/socket.h>
9440 #include <netipx/ipx.h>
9444 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9449 rm -f conftest.$ac_objext
9450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -s conftest.$ac_objext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_cv_c_ipx_gnu="yes"
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 ac_cv_c_ipx_gnu="no"
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
9472 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
9473 if test "$ac_cv_c_ipx_gnu" = "yes"
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_IPX_GNU 1
9482 if test "$ac_cv_c_ipx_gnu" = "no"
9484 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
9485 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
9486 if test "${ac_cv_c_ipx_linux+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 #include <sys/types.h>
9497 #ifdef HAVE_SYS_SOCKET_H
9498 # include <sys/socket.h>
9500 #include <asm/types.h>
9501 #include <linux/ipx.h>
9505 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -s conftest.$ac_objext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_c_ipx_linux="yes"
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_cv_c_ipx_linux="no"
9529 rm -f conftest.$ac_objext conftest.$ac_ext
9532 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
9533 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
9534 if test "$ac_cv_c_ipx_linux" = "yes"
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_IPX_LINUX 1
9547 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551 echo "$as_me:$LINENO: checking for $ac_header" >&5
9552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9559 # Is the header compilable?
9560 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 $ac_includes_default
9570 #include <$ac_header>
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574 (eval $ac_compile) 2>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_header_compiler=no
9591 rm -f conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6
9595 # Is the header present?
9596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 #include <$ac_header>
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_c_preproc_warn_flag
9623 if test -z "$ac_cpp_err"; then
9624 ac_header_preproc=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_header_preproc=no
9631 rm -f conftest.err conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6
9635 # So? What about this header?
9636 case $ac_header_compiler:$ac_header_preproc in
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9644 ## ------------------------------------ ##
9645 ## Report this to bug-autoconf@gnu.org. ##
9646 ## ------------------------------------ ##
9649 sed "s/^/$as_me: WARNING: /" >&2
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9665 sed "s/^/$as_me: WARNING: /" >&2
9668 echo "$as_me:$LINENO: checking for $ac_header" >&5
9669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 eval "$as_ac_Header=$ac_header_preproc"
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9689 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9690 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9691 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9702 #if defined(HAVE_SYS_SOUNDCARD_H)
9703 #include <sys/soundcard.h>
9704 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9705 #include <machine/soundcard.h>
9706 #elif defined(HAVE_SOUNDCARD_H)
9707 #include <soundcard.h>
9715 /* check for one of the Open Sound System specific SNDCTL_ defines */
9716 #if !defined(SNDCTL_DSP_STEREO)
9717 #error No open sound system
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -s conftest.$ac_objext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_c_opensoundsystem="yes"
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_c_opensoundsystem="no"
9743 rm -f conftest.$ac_objext conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9746 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9748 if test "$ac_cv_c_opensoundsystem" = "yes"
9751 cat >>confdefs.h <<\_ACEOF
9757 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9758 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9759 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 #if defined(HAVE_SYS_SOUNDCARD_H)
9771 #include <sys/soundcard.h>
9772 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9773 #include <machine/soundcard.h>
9774 #elif defined(HAVE_SOUNDCARD_H)
9775 #include <soundcard.h>
9783 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9784 #if !defined(SNDCTL_SEQ_SYNC)
9785 #error No open sound system MIDI interface
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest.$ac_objext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_c_opensoundsystem_midi="yes"
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_c_opensoundsystem_midi="no"
9811 rm -f conftest.$ac_objext conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9814 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9816 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_OSS_MIDI 1
9825 # Extract the first word of "artsc-config", so it can be a program name with args.
9826 set dummy artsc-config; ac_word=$2
9827 echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 case $ARTSCCONFIG in
9834 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9856 if test -n "$ARTSCCONFIG"; then
9857 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9858 echo "${ECHO_T}$ARTSCCONFIG" >&6
9860 echo "$as_me:$LINENO: result: no" >&5
9861 echo "${ECHO_T}no" >&6
9864 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9865 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9866 if test "${ac_cv_c_artsserver+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9871 ac_cv_c_artsserver=no
9873 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9874 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9875 ac_cv_c_artsserver=no
9876 save_CFLAGS="$CFLAGS"
9877 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9892 arts_stream_t stream;
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -s conftest.$ac_objext'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9911 ac_cv_c_artsserver=yes
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 rm -f conftest.$ac_objext conftest.$ac_ext
9919 CFLAGS="$save_CFLAGS"
9922 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9923 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9925 if test "$ac_cv_c_artsserver" = "yes"
9927 ARTSLIBS=$ARTSC_LIBS
9929 ARTSINCL=$ARTSC_CFLAGS
9933 cat >>confdefs.h <<\_ACEOF
9943 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9955 # Is the header compilable?
9956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 #include <$ac_header>
9968 rm -f conftest.$ac_objext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970 (eval $ac_compile) 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -s conftest.$ac_objext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_header_compiler=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_header_compiler=no
9987 rm -f conftest.$ac_objext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6
9991 # Is the header present?
9992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9994 cat >conftest.$ac_ext <<_ACEOF
9995 #line $LINENO "configure"
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <$ac_header>
10003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10006 grep -v '^ *+' conftest.er1 >conftest.err
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } >/dev/null; then
10011 if test -s conftest.err; then
10012 ac_cpp_err=$ac_c_preproc_warn_flag
10019 if test -z "$ac_cpp_err"; then
10020 ac_header_preproc=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_preproc=no
10027 rm -f conftest.err conftest.$ac_ext
10028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029 echo "${ECHO_T}$ac_header_preproc" >&6
10031 # So? What about this header?
10032 case $ac_header_compiler:$ac_header_preproc in
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10040 ## ------------------------------------ ##
10041 ## Report this to bug-autoconf@gnu.org. ##
10042 ## ------------------------------------ ##
10045 sed "s/^/$as_me: WARNING: /" >&2
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10056 ## ------------------------------------ ##
10057 ## Report this to bug-autoconf@gnu.org. ##
10058 ## ------------------------------------ ##
10061 sed "s/^/$as_me: WARNING: /" >&2
10064 echo "$as_me:$LINENO: checking for $ac_header" >&5
10065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 eval "$as_ac_Header=$ac_header_preproc"
10071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10084 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10086 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10087 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10088 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lasound $LIBS"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10101 /* Override any gcc2 internal prototype to avoid an error. */
10105 /* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107 char snd_pcm_open ();
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_asound_snd_pcm_open=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_asound_snd_pcm_open=no
10135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10138 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10139 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10140 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_ALSA 1
10146 ALSALIBS="-lasound"
10155 for ac_header in libaudioio.h
10157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10159 echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10167 # Is the header compilable?
10168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 $ac_includes_default
10178 #include <$ac_header>
10180 rm -f conftest.$ac_objext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182 (eval $ac_compile) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_header_compiler=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_header_compiler=no
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10201 echo "${ECHO_T}$ac_header_compiler" >&6
10203 # Is the header present?
10204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 #include <$ac_header>
10215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } >/dev/null; then
10223 if test -s conftest.err; then
10224 ac_cpp_err=$ac_c_preproc_warn_flag
10231 if test -z "$ac_cpp_err"; then
10232 ac_header_preproc=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_header_preproc=no
10239 rm -f conftest.err conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241 echo "${ECHO_T}$ac_header_preproc" >&6
10243 # So? What about this header?
10244 case $ac_header_compiler:$ac_header_preproc in
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10252 ## ------------------------------------ ##
10253 ## Report this to bug-autoconf@gnu.org. ##
10254 ## ------------------------------------ ##
10257 sed "s/^/$as_me: WARNING: /" >&2
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10268 ## ------------------------------------ ##
10269 ## Report this to bug-autoconf@gnu.org. ##
10270 ## ------------------------------------ ##
10273 sed "s/^/$as_me: WARNING: /" >&2
10276 echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 eval "$as_ac_Header=$ac_header_preproc"
10283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10291 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10292 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10293 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 ac_check_lib_save_LIBS=$LIBS
10297 LIBS="-laudioio $LIBS"
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10306 /* Override any gcc2 internal prototype to avoid an error. */
10310 /* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312 char AudioIOGetVersion ();
10316 AudioIOGetVersion ();
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_lib_audioio_AudioIOGetVersion=yes
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_cv_lib_audioio_AudioIOGetVersion=no
10340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10343 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10344 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10345 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10346 AUDIOIOLIBS="-laudioio"
10348 cat >>confdefs.h <<\_ACEOF
10349 #define HAVE_LIBAUDIOIO 1
10360 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10361 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10362 if test "${ac_cv_mmap64_works+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 if test "$cross_compiling" = yes; then
10366 ac_cv_mmap64_works="no"
10368 cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 #define _FILE_OFFSET_BITS 64
10378 #include <unistd.h>
10380 #include <sys/mman.h>
10383 int main(int argc,char **argv) {
10384 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10385 if (fd == -1) exit(1);
10387 unlink("conftest.map");
10389 write(fd,"test",4);
10391 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10397 fprintf(stderr,"success!\n");
10403 rm -f conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_mmap64_works="yes"
10416 echo "$as_me: program exited with status $ac_status" >&5
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ( exit $ac_status )
10421 ac_cv_mmap64_works="no"
10423 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10426 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10427 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10429 if test "$ac_cv_mmap64_works" = "yes"
10432 cat >>confdefs.h <<\_ACEOF
10433 #define _FILE_OFFSET_BITS 64
10439 if test "x${GCC}" = "xyes"
10441 CFLAGS="$CFLAGS -Wall"
10442 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10443 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10444 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 if test "$cross_compiling" = yes; then
10448 ac_cv_c_gcc_strength_bug="yes"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10458 int L[4] = {0,1,2,3};
10460 static int Array[3];
10461 unsigned int B = 3;
10463 for(i=0; i<B; i++) Array[i] = i - 3;
10464 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10467 exit( Array[1] != -2 || L[2] != 3);
10470 rm -f conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_cv_c_gcc_strength_bug="no"
10483 echo "$as_me: program exited with status $ac_status" >&5
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 ( exit $ac_status )
10488 ac_cv_c_gcc_strength_bug="yes"
10490 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10493 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10494 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10495 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10497 CFLAGS="$CFLAGS -fno-strength-reduce"
10500 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10501 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10502 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 ac_wine_try_cflags_saved=$CFLAGS
10506 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_c_gcc_stack_boundary="yes"
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 ac_cv_c_gcc_stack_boundary="no"
10542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543 CFLAGS=$ac_wine_try_cflags_saved
10545 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10546 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10547 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10549 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10552 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10553 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10554 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 ac_wine_try_cflags_saved=$CFLAGS
10558 CFLAGS="$CFLAGS -gstabs+"
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577 (eval $ac_link) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_c_gcc_gstabs="yes"
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_c_gcc_gstabs="no"
10594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10595 CFLAGS=$ac_wine_try_cflags_saved
10597 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10598 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10599 if test "$ac_cv_c_gcc_gstabs" = "yes"
10601 CFLAGS="$CFLAGS -gstabs+"
10606 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10607 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10608 if test "${ac_cv_asm_func_def+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 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"); }
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_asm_func_def=".def"
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 cat >conftest.$ac_ext <<_ACEOF
10646 #line $LINENO "configure"
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_asm_func_def=".type @function"
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line $LINENO "configure"
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_asm_func_def=".type 2"
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 ac_cv_asm_func_def="unknown"
10715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10722 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10726 case "$ac_cv_asm_func_def" in
10728 cat >>confdefs.h <<\_ACEOF
10729 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10733 cat >>confdefs.h <<\_ACEOF
10734 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10738 cat >>confdefs.h <<\_ACEOF
10739 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10743 cat >>confdefs.h <<\_ACEOF
10744 #define __ASM_FUNC(name) ""
10750 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10751 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10752 if test "${ac_cv_c_extern_prefix+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10763 extern int ac_test;
10767 if (ac_test) return 1
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_c_extern_prefix="yes"
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_c_extern_prefix="no"
10791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10794 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10798 if test "$ac_cv_c_extern_prefix" = "yes"
10800 cat >>confdefs.h <<\_ACEOF
10801 #define __ASM_NAME(name) "_" name
10805 cat >>confdefs.h <<\_ACEOF
10806 #define __ASM_NAME(name) name
10812 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10813 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10814 if test "${ac_cv_c_asm_string+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10818 #line $LINENO "configure"
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_cv_c_asm_string="yes"
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_c_asm_string="no"
10853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10855 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10856 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10857 if test "$ac_cv_c_asm_string" = "yes"
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_ASM_STRING 1
10884 if test -n "$ac_tool_prefix"; then
10885 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10886 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10887 echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 if test -n "$DLLTOOL"; then
10893 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 DLLTOOL=$ac_cv_prog_DLLTOOL
10912 if test -n "$DLLTOOL"; then
10913 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10914 echo "${ECHO_T}$DLLTOOL" >&6
10916 echo "$as_me:$LINENO: result: no" >&5
10917 echo "${ECHO_T}no" >&6
10921 if test -z "$ac_cv_prog_DLLTOOL"; then
10922 ac_ct_DLLTOOL=$DLLTOOL
10923 # Extract the first word of "dlltool", so it can be a program name with args.
10924 set dummy dlltool; ac_word=$2
10925 echo "$as_me:$LINENO: checking for $ac_word" >&5
10926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 if test -n "$ac_ct_DLLTOOL"; then
10931 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10950 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10951 if test -n "$ac_ct_DLLTOOL"; then
10952 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10953 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10955 echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10959 DLLTOOL=$ac_ct_DLLTOOL
10961 DLLTOOL="$ac_cv_prog_DLLTOOL"
10964 if test -n "$ac_tool_prefix"; then
10965 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10966 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
10967 echo "$as_me:$LINENO: checking for $ac_word" >&5
10968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 if test -n "$DLLWRAP"; then
10973 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 DLLWRAP=$ac_cv_prog_DLLWRAP
10992 if test -n "$DLLWRAP"; then
10993 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10994 echo "${ECHO_T}$DLLWRAP" >&6
10996 echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
11001 if test -z "$ac_cv_prog_DLLWRAP"; then
11002 ac_ct_DLLWRAP=$DLLWRAP
11003 # Extract the first word of "dllwrap", so it can be a program name with args.
11004 set dummy dllwrap; ac_word=$2
11005 echo "$as_me:$LINENO: checking for $ac_word" >&5
11006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 if test -n "$ac_ct_DLLWRAP"; then
11011 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11030 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11031 if test -n "$ac_ct_DLLWRAP"; then
11032 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11033 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11035 echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6
11039 DLLWRAP=$ac_ct_DLLWRAP
11041 DLLWRAP="$ac_cv_prog_DLLWRAP"
11044 if test "$DLLWRAP" = "false"; then
11053 for ac_header in dlfcn.h
11055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11057 echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11065 # Is the header compilable?
11066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 $ac_includes_default
11076 #include <$ac_header>
11078 rm -f conftest.$ac_objext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11080 (eval $ac_compile) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -s conftest.$ac_objext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_header_compiler=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_header_compiler=no
11097 rm -f conftest.$ac_objext conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11099 echo "${ECHO_T}$ac_header_compiler" >&6
11101 # Is the header present?
11102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11104 cat >conftest.$ac_ext <<_ACEOF
11105 #line $LINENO "configure"
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <$ac_header>
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11116 grep -v '^ *+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11129 if test -z "$ac_cpp_err"; then
11130 ac_header_preproc=yes
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_header_preproc=no
11137 rm -f conftest.err conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11139 echo "${ECHO_T}$ac_header_preproc" >&6
11141 # So? What about this header?
11142 case $ac_header_compiler:$ac_header_preproc in
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11150 ## ------------------------------------ ##
11151 ## Report this to bug-autoconf@gnu.org. ##
11152 ## ------------------------------------ ##
11155 sed "s/^/$as_me: WARNING: /" >&2
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11166 ## ------------------------------------ ##
11167 ## Report this to bug-autoconf@gnu.org. ##
11168 ## ------------------------------------ ##
11171 sed "s/^/$as_me: WARNING: /" >&2
11174 echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 eval "$as_ac_Header=$ac_header_preproc"
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11190 for ac_func in dlopen
11192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11193 echo "$as_me:$LINENO: checking for $ac_func" >&5
11194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11195 if eval "test \"\${$as_ac_var+set}\" = set"; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 /* System header to define __stub macros and hopefully few prototypes,
11206 which can conflict with char $ac_func (); below.
11207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11208 <limits.h> exists even on freestanding compilers. */
11210 # include <limits.h>
11212 # include <assert.h>
11214 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11228 char (*f) () = $ac_func;
11237 return f != $ac_func;
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 eval "$as_ac_var=yes"
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 eval "$as_ac_var=no"
11261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11265 if test `eval echo '${'$as_ac_var'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11271 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 ac_check_lib_save_LIBS=$LIBS
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11286 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_dl_dlopen=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_cv_lib_dl_dlopen=no
11320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11325 if test $ac_cv_lib_dl_dlopen = yes; then
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_DLOPEN 1
11346 if test "$LIBEXT" = "so"
11350 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11351 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11352 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 ac_wine_try_cflags_saved=$CFLAGS
11356 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11357 cat >conftest.$ac_ext <<_ACEOF
11358 #line $LINENO "configure"
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_c_dll_gnuelf="yes"
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_cv_c_dll_gnuelf="no"
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 CFLAGS=$ac_wine_try_cflags_saved
11395 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11396 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11397 if test "$ac_cv_c_dll_gnuelf" = "yes"
11399 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11400 LDDLLFLAGS="-Wl,-Bsymbolic"
11401 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11402 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11403 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 ac_wine_try_cflags_saved=$CFLAGS
11407 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_c_dll_zdefs="yes"
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_cv_c_dll_zdefs="no"
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 CFLAGS=$ac_wine_try_cflags_saved
11446 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11447 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11448 if test "$ac_cv_c_dll_zdefs" = "yes"
11450 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11453 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
11454 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11455 if test "${ac_cv_c_dll_unixware+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_wine_try_cflags_saved=$CFLAGS
11459 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11478 (eval $ac_link) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -s conftest$ac_exeext'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 ac_cv_c_dll_unixware="yes"
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11493 ac_cv_c_dll_unixware="no"
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11496 CFLAGS=$ac_wine_try_cflags_saved
11498 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
11499 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
11500 if test "$ac_cv_c_dll_unixware" = "yes"
11502 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11503 LDDLLFLAGS="-Wl,-B,symbolic"
11510 if test "$cross_compiling" = "no"
11512 for ac_prog in i586-mingw32msvc-gcc
11514 # Extract the first word of "$ac_prog", so it can be a program name with args.
11515 set dummy $ac_prog; ac_word=$2
11516 echo "$as_me:$LINENO: checking for $ac_word" >&5
11517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518 if test "${ac_cv_prog_CROSSCC+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 if test -n "$CROSSCC"; then
11522 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_CROSSCC="$ac_prog"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 CROSSCC=$ac_cv_prog_CROSSCC
11541 if test -n "$CROSSCC"; then
11542 echo "$as_me:$LINENO: result: $CROSSCC" >&5
11543 echo "${ECHO_T}$CROSSCC" >&6
11545 echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6
11549 test -n "$CROSSCC" && break
11551 test -n "$CROSSCC" || CROSSCC="false"
11553 for ac_prog in i586-mingw32msvc-dlltool
11555 # Extract the first word of "$ac_prog", so it can be a program name with args.
11556 set dummy $ac_prog; ac_word=$2
11557 echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 if test -n "$DLLTOOL"; then
11563 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_prog_DLLTOOL="$ac_prog"
11573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 DLLTOOL=$ac_cv_prog_DLLTOOL
11582 if test -n "$DLLTOOL"; then
11583 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11584 echo "${ECHO_T}$DLLTOOL" >&6
11586 echo "$as_me:$LINENO: result: no" >&5
11587 echo "${ECHO_T}no" >&6
11590 test -n "$DLLTOOL" && break
11592 test -n "$DLLTOOL" || DLLTOOL="false"
11594 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11599 if test "$LIBEXT" = "a"; then
11600 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
11601 It is currently not possible to build Wine without shared library
11602 (.so) support to allow transparent switch between .so and .dll files.
11603 If you are using Linux, you will need a newer binutils.
11605 echo "$as_me: error: could not find a way to build shared libraries.
11606 It is currently not possible to build Wine without shared library
11607 (.so) support to allow transparent switch between .so and .dll files.
11608 If you are using Linux, you will need a newer binutils.
11610 { (exit 1); exit 1; }; }
11615 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11618 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11626 CRTLIBS="-lmsvcrt" ;;
11630 if test "$LIBEXT" = "so"
11632 # Extract the first word of "ldd", so it can be a program name with args.
11633 set dummy ldd; ac_word=$2
11634 echo "$as_me:$LINENO: checking for $ac_word" >&5
11635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11636 if test "${ac_cv_path_LDD+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 as_dummy="/sbin:/usr/sbin:$PATH"
11646 for as_dir in $as_dummy
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11663 LDD=$ac_cv_path_LDD
11665 if test -n "$LDD"; then
11666 echo "$as_me:$LINENO: result: $LDD" >&5
11667 echo "${ECHO_T}$LDD" >&6
11669 echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6
11674 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11675 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11676 if test "${ac_cv_lib_soname_X11+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 ac_get_soname_save_LIBS=$LIBS
11680 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11681 cat >conftest.$ac_ext <<_ACEOF
11682 #line $LINENO "configure"
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11689 /* Override any gcc2 internal prototype to avoid an error. */
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11695 char XCreateWindow ();
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11717 if test "x$ac_cv_lib_soname_X11" = "x"
11719 ac_cv_lib_soname_X11="libX11.so"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_lib_soname_X11="libX11.so"
11727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_get_soname_save_LIBS
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
11731 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11732 if test "x$ac_cv_lib_soname_X11" != xNONE
11734 cat >>confdefs.h <<_ACEOF
11735 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11739 echo "$as_me:$LINENO: checking for -lXext soname" >&5
11740 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11741 if test "${ac_cv_lib_soname_Xext+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 ac_get_soname_save_LIBS=$LIBS
11745 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11754 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11760 char XextCreateExtension ();
11764 XextCreateExtension ();
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11782 if test "x$ac_cv_lib_soname_Xext" = "x"
11784 ac_cv_lib_soname_Xext="libXext.so"
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_lib_soname_Xext="libXext.so"
11792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11793 LIBS=$ac_get_soname_save_LIBS
11795 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11796 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11797 if test "x$ac_cv_lib_soname_Xext" != xNONE
11799 cat >>confdefs.h <<_ACEOF
11800 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11804 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11805 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11806 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 ac_get_soname_save_LIBS=$LIBS
11810 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11819 /* Override any gcc2 internal prototype to avoid an error. */
11823 /* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */
11825 char XRenderQueryExtension ();
11829 XRenderQueryExtension ();
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836 (eval $ac_link) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11847 if test "x$ac_cv_lib_soname_Xrender" = "x"
11849 ac_cv_lib_soname_Xrender="libXrender.so"
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_cv_lib_soname_Xrender="libXrender.so"
11857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11858 LIBS=$ac_get_soname_save_LIBS
11860 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11861 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11862 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11864 cat >>confdefs.h <<_ACEOF
11865 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11869 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11870 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11871 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 ac_get_soname_save_LIBS=$LIBS
11875 LIBS="-lfreetype $X_LIBS $LIBS"
11876 cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11884 /* Override any gcc2 internal prototype to avoid an error. */
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11890 char FT_Init_FreeType ();
11894 FT_Init_FreeType ();
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901 (eval $ac_link) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11912 if test "x$ac_cv_lib_soname_freetype" = "x"
11914 ac_cv_lib_soname_freetype="libfreetype.so"
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_soname_freetype="libfreetype.so"
11922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_get_soname_save_LIBS
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11926 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11927 if test "x$ac_cv_lib_soname_freetype" != xNONE
11929 cat >>confdefs.h <<_ACEOF
11930 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11934 echo "$as_me:$LINENO: checking for -lGL soname" >&5
11935 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
11936 if test "${ac_cv_lib_soname_GL+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_get_soname_save_LIBS=$LIBS
11940 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 #line $LINENO "configure"
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11949 /* Override any gcc2 internal prototype to avoid an error. */
11953 /* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */
11955 char glXQueryExtension ();
11959 glXQueryExtension ();
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966 (eval $ac_link) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11977 if test "x$ac_cv_lib_soname_GL" = "x"
11979 ac_cv_lib_soname_GL="libGL.so"
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 ac_cv_lib_soname_GL="libGL.so"
11987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_get_soname_save_LIBS
11990 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
11991 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
11992 if test "x$ac_cv_lib_soname_GL" != xNONE
11994 cat >>confdefs.h <<_ACEOF
11995 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
11999 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12000 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12001 if test "${ac_cv_lib_soname_cups+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_get_soname_save_LIBS=$LIBS
12005 LIBS="-lcups $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 #line $LINENO "configure"
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12014 /* Override any gcc2 internal prototype to avoid an error. */
12018 /* We use char because int might match the return type of a gcc2
12019 builtin and then its argument prototype would still apply. */
12020 char cupsGetDefault ();
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12042 if test "x$ac_cv_lib_soname_cups" = "x"
12044 ac_cv_lib_soname_cups="libcups.so"
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_cv_lib_soname_cups="libcups.so"
12052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_get_soname_save_LIBS
12055 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12056 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12057 if test "x$ac_cv_lib_soname_cups" != xNONE
12059 cat >>confdefs.h <<_ACEOF
12060 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12064 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12065 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12066 if test "${ac_cv_lib_soname_jack+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 ac_get_soname_save_LIBS=$LIBS
12070 LIBS="-ljack $LIBS"
12071 cat >conftest.$ac_ext <<_ACEOF
12072 #line $LINENO "configure"
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12079 /* Override any gcc2 internal prototype to avoid an error. */
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char jack_client_new ();
12089 jack_client_new ();
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12107 if test "x$ac_cv_lib_soname_jack" = "x"
12109 ac_cv_lib_soname_jack="libjack.so"
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_cv_lib_soname_jack="libjack.so"
12117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_get_soname_save_LIBS
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12121 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12122 if test "x$ac_cv_lib_soname_jack" != xNONE
12124 cat >>confdefs.h <<_ACEOF
12125 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12132 wine_cv_libc_reentrant=no
12133 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
12134 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12135 if test "${wine_cv_libc_r___errno_location+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 if test "$cross_compiling" = yes; then
12139 wine_cv_libc_r___errno_location=yes
12141 cat >conftest.$ac_ext <<_ACEOF
12142 #line $LINENO "configure"
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12149 int *__errno_location(){return &myerrno;}
12150 main(){close(333); close(333); exit(!myerrno);}
12152 rm -f conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
12163 wine_cv_libc_r___errno_location=yes
12165 echo "$as_me: program exited with status $ac_status" >&5
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ( exit $ac_status )
12170 wine_cv_libc_r___errno_location=no
12172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12175 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
12176 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
12177 if test "$wine_cv_libc_r___errno_location" = "yes"; then
12178 wine_cv_libc_reentrant=__errno_location
12180 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
12181 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12182 if test "${wine_cv_libc_r___error+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 if test "$cross_compiling" = yes; then
12186 wine_cv_libc_r___error=yes
12188 cat >conftest.$ac_ext <<_ACEOF
12189 #line $LINENO "configure"
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12196 int *__error(){return &myerrno;}
12197 main(){close(333); close(333); exit(!myerrno);}
12199 rm -f conftest$ac_exeext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 wine_cv_libc_r___error=yes
12212 echo "$as_me: program exited with status $ac_status" >&5
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ( exit $ac_status )
12217 wine_cv_libc_r___error=no
12219 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12222 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
12223 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
12224 if test "$wine_cv_libc_r___error" = "yes"; then
12225 wine_cv_libc_reentrant=__error
12227 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
12228 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12229 if test "${wine_cv_libc_r____errno+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 if test "$cross_compiling" = yes; then
12233 wine_cv_libc_r____errno=yes
12235 cat >conftest.$ac_ext <<_ACEOF
12236 #line $LINENO "configure"
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12243 int *___errno(){return &myerrno;}
12244 main(){close(333); close(333); exit(!myerrno);}
12246 rm -f conftest$ac_exeext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248 (eval $ac_link) 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 wine_cv_libc_r____errno=yes
12259 echo "$as_me: program exited with status $ac_status" >&5
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12263 ( exit $ac_status )
12264 wine_cv_libc_r____errno=no
12266 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
12270 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
12271 if test "$wine_cv_libc_r____errno" = "yes"; then
12272 wine_cv_libc_reentrant=___errno
12274 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
12275 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12276 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 if test "$cross_compiling" = yes; then
12280 wine_cv_libc_r___thr_errno=yes
12282 cat >conftest.$ac_ext <<_ACEOF
12283 #line $LINENO "configure"
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12290 int *__thr_errno(){return &myerrno;}
12291 main(){close(333); close(333); exit(!myerrno);}
12293 rm -f conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 wine_cv_libc_r___thr_errno=yes
12306 echo "$as_me: program exited with status $ac_status" >&5
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ( exit $ac_status )
12311 wine_cv_libc_r___thr_errno=no
12313 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12316 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
12317 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
12318 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12319 wine_cv_libc_reentrant=__thr_errno
12321 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
12322 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12323 if test "${wine_cv_libc_r___errno+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 if test "$cross_compiling" = yes; then
12327 wine_cv_libc_r___errno=yes
12329 cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12337 int *__errno(){return &myerrno;}
12338 main(){close(333); close(333); exit(!myerrno);}
12340 rm -f conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342 (eval $ac_link) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 wine_cv_libc_r___errno=yes
12353 echo "$as_me: program exited with status $ac_status" >&5
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ( exit $ac_status )
12358 wine_cv_libc_r___errno=no
12360 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12363 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
12364 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
12365 if test "$wine_cv_libc_r___errno" = "yes"; then
12366 wine_cv_libc_reentrant=__errno
12379 if test "$wine_cv_libc_reentrant" != "no"
12382 cat >>confdefs.h <<_ACEOF
12383 #define ERRNO_LOCATION $wine_cv_libc_reentrant
12389 if test "$have_x" = "yes"
12391 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
12392 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12393 if test "${wine_cv_x_reentrant+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12398 if test -r $dir/libX11.so; then
12399 libX11_check="-D $dir/libX11.so"
12402 if test -r $dir/libX11.a; then
12403 libX11_check="$dir/libX11.a"
12407 if test "$libX11_check" != "none"; then
12408 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12410 wine_cv_x_reentrant=yes
12412 wine_cv_x_reentrant=no
12415 wine_cv_x_reentrant=unknown
12418 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
12419 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
12423 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12424 # for constant arguments. Useless!
12425 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12426 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12427 if test "${ac_cv_working_alloca_h+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 #include <alloca.h>
12441 char *p = (char *) alloca (2 * sizeof (int));
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_working_alloca_h=yes
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_cv_working_alloca_h=no
12465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12467 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12468 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12469 if test $ac_cv_working_alloca_h = yes; then
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_ALLOCA_H 1
12477 echo "$as_me:$LINENO: checking for alloca" >&5
12478 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12479 if test "${ac_cv_func_alloca_works+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12490 # define alloca __builtin_alloca
12493 # include <malloc.h>
12494 # define alloca _alloca
12497 # include <alloca.h>
12502 # ifndef alloca /* predefined by HP cc +Olibcalls */
12513 char *p = (char *) alloca (1);
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest$ac_exeext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_func_alloca_works=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_cv_func_alloca_works=no
12537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12539 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12540 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12542 if test $ac_cv_func_alloca_works = yes; then
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_ALLOCA 1
12549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12550 # that cause trouble. Some versions do not even contain alloca or
12551 # contain a buggy version. If you still want to use their alloca,
12552 # use ar to extract alloca.o from them instead of compiling alloca.c.
12554 ALLOCA=alloca.$ac_objext
12556 cat >>confdefs.h <<\_ACEOF
12561 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12562 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12563 if test "${ac_cv_os_cray+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #if defined(CRAY) && ! defined(CRAY2)
12580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12581 $EGREP "webecray" >/dev/null 2>&1; then
12589 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12590 echo "${ECHO_T}$ac_cv_os_cray" >&6
12591 if test $ac_cv_os_cray = yes; then
12592 for ac_func in _getb67 GETB67 getb67; do
12593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594 echo "$as_me:$LINENO: checking for $ac_func" >&5
12595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12596 if eval "test \"\${$as_ac_var+set}\" = set"; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 /* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char $ac_func (); below.
12608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609 <limits.h> exists even on freestanding compilers. */
12611 # include <limits.h>
12613 # include <assert.h>
12615 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12623 /* The GNU C library defines this for functions which it implements
12624 to always fail with ENOSYS. Some functions are actually named
12625 something starting with __ and the normal name is an alias. */
12626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12629 char (*f) () = $ac_func;
12638 return f != $ac_func;
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645 (eval $ac_link) 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 eval "$as_ac_var=yes"
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12660 eval "$as_ac_var=no"
12662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12666 if test `eval echo '${'$as_ac_var'}'` = yes; then
12668 cat >>confdefs.h <<_ACEOF
12669 #define CRAY_STACKSEG_END $ac_func
12678 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12679 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12680 if test "${ac_cv_c_stack_direction+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 if test "$cross_compiling" = yes; then
12684 ac_cv_c_stack_direction=0
12686 cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12694 find_stack_direction ()
12696 static char *addr = 0;
12701 return find_stack_direction ();
12704 return (&dummy > addr) ? 1 : -1;
12710 exit (find_stack_direction () < 0);
12713 rm -f conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_c_stack_direction=1
12726 echo "$as_me: program exited with status $ac_status" >&5
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12730 ( exit $ac_status )
12731 ac_cv_c_stack_direction=-1
12733 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12736 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12737 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12739 cat >>confdefs.h <<_ACEOF
12740 #define STACK_DIRECTION $ac_cv_c_stack_direction
12835 pthread_getspecific \
12836 pthread_key_create \
12837 pthread_mutex_lock \
12838 pthread_mutex_unlock \
12839 pthread_setspecific \
12859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12860 echo "$as_me:$LINENO: checking for $ac_func" >&5
12861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12862 if eval "test \"\${$as_ac_var+set}\" = set"; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 /* System header to define __stub macros and hopefully few prototypes,
12873 which can conflict with char $ac_func (); below.
12874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12875 <limits.h> exists even on freestanding compilers. */
12877 # include <limits.h>
12879 # include <assert.h>
12881 /* Override any gcc2 internal prototype to avoid an error. */
12886 /* We use char because int might match the return type of a gcc2
12887 builtin and then its argument prototype would still apply. */
12889 /* The GNU C library defines this for functions which it implements
12890 to always fail with ENOSYS. Some functions are actually named
12891 something starting with __ and the normal name is an alias. */
12892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12895 char (*f) () = $ac_func;
12904 return f != $ac_func;
12909 rm -f conftest.$ac_objext conftest$ac_exeext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12911 (eval $ac_link) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 eval "$as_ac_var=yes"
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 eval "$as_ac_var=no"
12928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12932 if test `eval echo '${'$as_ac_var'}'` = yes; then
12933 cat >>confdefs.h <<_ACEOF
12934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13035 netinet/in_systm.h \
13083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo "$as_me:$LINENO: checking for $ac_header" >&5
13086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13093 # Is the header compilable?
13094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13104 #include <$ac_header>
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_header_compiler=yes
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13123 ac_header_compiler=no
13125 rm -f conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13127 echo "${ECHO_T}$ac_header_compiler" >&6
13129 # Is the header present?
13130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 #include <$ac_header>
13141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13144 grep -v '^ *+' conftest.er1 >conftest.err
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } >/dev/null; then
13149 if test -s conftest.err; then
13150 ac_cpp_err=$ac_c_preproc_warn_flag
13157 if test -z "$ac_cpp_err"; then
13158 ac_header_preproc=yes
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 ac_header_preproc=no
13165 rm -f conftest.err conftest.$ac_ext
13166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13167 echo "${ECHO_T}$ac_header_preproc" >&6
13169 # So? What about this header?
13170 case $ac_header_compiler:$ac_header_preproc in
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13178 ## ------------------------------------ ##
13179 ## Report this to bug-autoconf@gnu.org. ##
13180 ## ------------------------------------ ##
13183 sed "s/^/$as_me: WARNING: /" >&2
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13194 ## ------------------------------------ ##
13195 ## Report this to bug-autoconf@gnu.org. ##
13196 ## ------------------------------------ ##
13199 sed "s/^/$as_me: WARNING: /" >&2
13202 echo "$as_me:$LINENO: checking for $ac_header" >&5
13203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 eval "$as_ac_Header=$ac_header_preproc"
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13214 cat >>confdefs.h <<_ACEOF
13215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13222 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13223 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13224 if test "${ac_cv_header_stat_broken+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 #include <sys/types.h>
13235 #include <sys/stat.h>
13237 #if defined(S_ISBLK) && defined(S_IFDIR)
13238 # if S_ISBLK (S_IFDIR)
13243 #if defined(S_ISBLK) && defined(S_IFCHR)
13244 # if S_ISBLK (S_IFCHR)
13249 #if defined(S_ISLNK) && defined(S_IFREG)
13250 # if S_ISLNK (S_IFREG)
13255 #if defined(S_ISSOCK) && defined(S_IFREG)
13256 # if S_ISSOCK (S_IFREG)
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263 $EGREP "You lose" >/dev/null 2>&1; then
13264 ac_cv_header_stat_broken=yes
13266 ac_cv_header_stat_broken=no
13271 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13272 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13273 if test $ac_cv_header_stat_broken = yes; then
13275 cat >>confdefs.h <<\_ACEOF
13276 #define STAT_MACROS_BROKEN 1
13285 for ac_header in sys/mount.h sys/user.h
13287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13288 echo "$as_me:$LINENO: checking for $ac_header" >&5
13289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 cat >conftest.$ac_ext <<_ACEOF
13294 #line $LINENO "configure"
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <sys/types.h>
13301 #if HAVE_SYS_PARAM_H
13302 # include <sys/param.h>
13305 #include <$ac_header>
13307 rm -f conftest.$ac_objext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309 (eval $ac_compile) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 eval "$as_ac_Header=yes"
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 eval "$as_ac_Header=no"
13326 rm -f conftest.$ac_objext conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13331 cat >>confdefs.h <<_ACEOF
13332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13341 for ac_header in net/if.h
13343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13344 echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 cat >conftest.$ac_ext <<_ACEOF
13350 #line $LINENO "configure"
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <sys/types.h>
13357 #if HAVE_SYS_SOCKET_H
13358 # include <sys/socket.h>
13361 #include <$ac_header>
13363 rm -f conftest.$ac_objext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13365 (eval $ac_compile) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 eval "$as_ac_Header=yes"
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 eval "$as_ac_Header=no"
13382 rm -f conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13387 cat >>confdefs.h <<_ACEOF
13388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13397 for ac_header in netinet/ip.h
13399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_header" >&5
13401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 #include <sys/types.h>
13413 #if HAVE_SYS_SOCKET_H
13414 # include <sys/socket.h>
13416 #if HAVE_NETINET_IN_SYSTM_H
13417 # include <netinet/in_systm.h>
13420 #include <$ac_header>
13422 rm -f conftest.$ac_objext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424 (eval $ac_compile) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 eval "$as_ac_Header=yes"
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 eval "$as_ac_Header=no"
13441 rm -f conftest.$ac_objext conftest.$ac_ext
13443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446 cat >>confdefs.h <<_ACEOF
13447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13456 for ac_header in resolv.h
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 echo "$as_me:$LINENO: checking for $ac_header" >&5
13460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 cat >conftest.$ac_ext <<_ACEOF
13465 #line $LINENO "configure"
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 #include <sys/types.h>
13472 #if HAVE_SYS_SOCKET_H
13473 # include <sys/socket.h>
13476 #include <$ac_header>
13478 rm -f conftest.$ac_objext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13480 (eval $ac_compile) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 eval "$as_ac_Header=yes"
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 eval "$as_ac_Header=no"
13497 rm -f conftest.$ac_objext conftest.$ac_ext
13499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13502 cat >>confdefs.h <<_ACEOF
13503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13512 for ac_header in ucontext.h
13514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13515 echo "$as_me:$LINENO: checking for $ac_header" >&5
13516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <signal.h>
13529 #include <$ac_header>
13531 rm -f conftest.$ac_objext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533 (eval $ac_compile) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 eval "$as_ac_Header=yes"
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 eval "$as_ac_Header=no"
13550 rm -f conftest.$ac_objext conftest.$ac_ext
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13565 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13567 if test "${ac_cv_c_const+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13581 /* FIXME: Include the comments suggested by Paul. */
13582 #ifndef __cplusplus
13583 /* Ultrix mips cc rejects this. */
13584 typedef int charset[2];
13586 /* SunOS 4.1.1 cc rejects this. */
13587 char const *const *ccp;
13589 /* NEC SVR4.0.2 mips cc rejects this. */
13590 struct point {int x, y;};
13591 static struct point const zero = {0,0};
13592 /* AIX XL C 1.02.0.0 rejects this.
13593 It does not let you subtract one const X* pointer from another in
13594 an arm of an if-expression whose if-part is not a constant
13596 const char *g = "string";
13597 ccp = &g + (g ? g-g : 0);
13598 /* HPUX 7.0 cc rejects these. */
13601 ccp = (char const *const *) p;
13602 { /* SCO 3.2v4 cc rejects this. */
13604 char const *s = 0 ? (char *) 0 : (char const *) 0;
13608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13609 int x[] = {25, 17};
13610 const int *foo = &x[0];
13613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13614 typedef const int *iptr;
13618 { /* AIX XL C 1.02.0.0 rejects this saying
13619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13620 struct s { int j; const int *ap[3]; };
13621 struct s *b; b->j = 5;
13623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13624 const int foo = 10;
13632 rm -f conftest.$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try='test -s conftest.$ac_objext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13651 rm -f conftest.$ac_objext conftest.$ac_ext
13653 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13654 echo "${ECHO_T}$ac_cv_c_const" >&6
13655 if test $ac_cv_c_const = no; then
13657 cat >>confdefs.h <<\_ACEOF
13663 echo "$as_me:$LINENO: checking for inline" >&5
13664 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13665 if test "${ac_cv_c_inline+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 for ac_kw in inline __inline__ __inline; do
13670 cat >conftest.$ac_ext <<_ACEOF
13671 #line $LINENO "configure"
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #ifndef __cplusplus
13679 static $ac_kw foo_t static_foo () {return 0; }
13680 $ac_kw foo_t foo () {return 0; }
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686 (eval $ac_compile) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_cv_c_inline=$ac_kw; break
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13702 rm -f conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13707 echo "${ECHO_T}$ac_cv_c_inline" >&6
13708 case $ac_cv_c_inline in
13711 cat >>confdefs.h <<\_ACEOF
13715 *) cat >>confdefs.h <<_ACEOF
13716 #define inline $ac_cv_c_inline
13721 echo "$as_me:$LINENO: checking for mode_t" >&5
13722 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13723 if test "${ac_cv_type_mode_t+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13727 #line $LINENO "configure"
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 $ac_includes_default
13739 if (sizeof (mode_t))
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_type_mode_t=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_cv_type_mode_t=no
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13767 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13768 if test $ac_cv_type_mode_t = yes; then
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_MODE_T 1
13776 echo "$as_me:$LINENO: checking for off_t" >&5
13777 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13778 if test "${ac_cv_type_off_t+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 cat >conftest.$ac_ext <<_ACEOF
13782 #line $LINENO "configure"
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 $ac_includes_default
13794 if (sizeof (off_t))
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -s conftest.$ac_objext'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13812 ac_cv_type_off_t=yes
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_cv_type_off_t=no
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13822 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13823 if test $ac_cv_type_off_t = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_OFF_T 1
13831 echo "$as_me:$LINENO: checking for pid_t" >&5
13832 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13833 if test "${ac_cv_type_pid_t+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 cat >conftest.$ac_ext <<_ACEOF
13837 #line $LINENO "configure"
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843 $ac_includes_default
13849 if (sizeof (pid_t))
13855 rm -f conftest.$ac_objext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857 (eval $ac_compile) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_cv_type_pid_t=yes
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 ac_cv_type_pid_t=no
13874 rm -f conftest.$ac_objext conftest.$ac_ext
13876 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13877 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13878 if test $ac_cv_type_pid_t = yes; then
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_PID_T 1
13886 echo "$as_me:$LINENO: checking for size_t" >&5
13887 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13888 if test "${ac_cv_type_size_t+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13892 #line $LINENO "configure"
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 $ac_includes_default
13904 if (sizeof (size_t))
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912 (eval $ac_compile) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_cv_type_size_t=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_cv_type_size_t=no
13929 rm -f conftest.$ac_objext conftest.$ac_ext
13931 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13932 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13933 if test $ac_cv_type_size_t = yes; then
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_SIZE_T 1
13941 echo "$as_me:$LINENO: checking for ssize_t" >&5
13942 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13943 if test "${ac_cv_type_ssize_t+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 cat >conftest.$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13959 if (sizeof (ssize_t))
13965 rm -f conftest.$ac_objext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967 (eval $ac_compile) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -s conftest.$ac_objext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 ac_cv_type_ssize_t=yes
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ac_cv_type_ssize_t=no
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13987 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13988 if test $ac_cv_type_ssize_t = yes; then
13990 cat >>confdefs.h <<_ACEOF
13991 #define HAVE_SSIZE_T 1
13997 echo "$as_me:$LINENO: checking for long long" >&5
13998 echo $ECHO_N "checking for long long... $ECHO_C" >&6
13999 if test "${ac_cv_type_long_long+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 $ac_includes_default
14013 if ((long long *) 0)
14015 if (sizeof (long long))
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_type_long_long=yes
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_cv_type_long_long=no
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14042 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14043 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14045 echo "$as_me:$LINENO: checking size of long long" >&5
14046 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14047 if test "${ac_cv_sizeof_long_long+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 if test "$ac_cv_type_long_long" = yes; then
14051 # The cast to unsigned long works around a bug in the HP C Compiler
14052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14054 # This bug is HP SR number 8606223364.
14055 if test "$cross_compiling" = yes; then
14056 # Depending upon the size, compute the lo and hi bounds.
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 $ac_includes_default
14068 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -s conftest.$ac_objext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14089 cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 $ac_includes_default
14100 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_hi=$ac_mid; break
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_lo=`expr $ac_mid + 1`
14125 if test $ac_lo -le $ac_mid; then
14129 ac_mid=`expr 2 '*' $ac_mid + 1`
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 $ac_includes_default
14148 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14169 cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 $ac_includes_default
14180 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -s conftest.$ac_objext'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 ac_lo=$ac_mid; break
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_hi=`expr '(' $ac_mid ')' - 1`
14205 if test $ac_mid -le $ac_hi; then
14209 ac_mid=`expr 2 '*' $ac_mid`
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14219 rm -f conftest.$ac_objext conftest.$ac_ext
14221 rm -f conftest.$ac_objext conftest.$ac_ext
14222 # Binary search between lo and hi bounds.
14223 while test "x$ac_lo" != "x$ac_hi"; do
14224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14236 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_lo=`expr '(' $ac_mid ')' + 1`
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14265 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14266 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14267 See \`config.log' for more details." >&5
14268 echo "$as_me: error: cannot compute sizeof (long long), 77
14269 See \`config.log' for more details." >&2;}
14270 { (exit 1); exit 1; }; } ;;
14273 if test "$cross_compiling" = yes; then
14274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14275 See \`config.log' for more details." >&5
14276 echo "$as_me: error: cannot run test program while cross compiling
14277 See \`config.log' for more details." >&2;}
14278 { (exit 1); exit 1; }; }
14280 cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 $ac_includes_default
14288 long longval () { return (long) (sizeof (long long)); }
14289 unsigned long ulongval () { return (long) (sizeof (long long)); }
14291 #include <stdlib.h>
14296 FILE *f = fopen ("conftest.val", "w");
14299 if (((long) (sizeof (long long))) < 0)
14301 long i = longval ();
14302 if (i != ((long) (sizeof (long long))))
14304 fprintf (f, "%ld\n", i);
14308 unsigned long i = ulongval ();
14309 if (i != ((long) (sizeof (long long))))
14311 fprintf (f, "%lu\n", i);
14313 exit (ferror (f) || fclose (f) != 0);
14319 rm -f conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321 (eval $ac_link) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_sizeof_long_long=`cat conftest.val`
14332 echo "$as_me: program exited with status $ac_status" >&5
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ( exit $ac_status )
14337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14338 See \`config.log' for more details." >&5
14339 echo "$as_me: error: cannot compute sizeof (long long), 77
14340 See \`config.log' for more details." >&2;}
14341 { (exit 1); exit 1; }; }
14343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14348 ac_cv_sizeof_long_long=0
14351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14352 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14353 cat >>confdefs.h <<_ACEOF
14354 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14359 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14360 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14361 if test "${wine_cv_linux_input_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14372 #include <linux/input.h>
14378 int foo = EVIOCGBIT(EV_ABS,42);
14379 int bar = BTN_PINKIE;
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 wine_cv_linux_input_h=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 wine_cv_linux_input_h=no
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14409 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14410 if test "$wine_cv_linux_input_h" = "yes"
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_CORRECT_LINUXINPUT_H 1
14420 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14421 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14422 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 cat >conftest.$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14441 struct hostent *result;
14448 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14449 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457 (eval $ac_compile) 2>&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 wine_cv_linux_gethostbyname_r_6=yes
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 wine_cv_linux_gethostbyname_r_6=no
14475 rm -f conftest.$ac_objext conftest.$ac_ext
14478 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14479 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14480 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14483 cat >>confdefs.h <<\_ACEOF
14484 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14489 if test "$ac_cv_header_linux_joystick_h" = "yes"
14491 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14492 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14493 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 cat >conftest.$ac_ext <<_ACEOF
14497 #line $LINENO "configure"
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14504 #include <sys/ioctl.h>
14505 #include <linux/joystick.h>
14507 struct js_event blub;
14508 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14509 #error "no 2.2 header"
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 wine_cv_linux_joystick_22_api=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 wine_cv_linux_joystick_22_api=no
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14542 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
14543 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
14544 if test "$wine_cv_linux_joystick_22_api" = "yes"
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_LINUX_22_JOYSTICK_API 1
14555 if test "$ac_cv_header_sys_vfs_h" = "yes"
14557 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
14558 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14559 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14563 #line $LINENO "configure"
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14570 #include <sys/types.h>
14571 #ifdef HAVE_SYS_PARAM_H
14572 # include <sys/param.h>
14574 #include <sys/vfs.h>
14580 struct statfs stfs;
14582 memset(&stfs,0,sizeof(stfs));
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 wine_cv_sys_vfs_has_statfs=yes
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 wine_cv_sys_vfs_has_statfs=no
14608 rm -f conftest.$ac_objext conftest.$ac_ext
14611 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
14612 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
14613 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14616 cat >>confdefs.h <<\_ACEOF
14617 #define STATFS_DEFINED_BY_SYS_VFS 1
14623 if test "$ac_cv_header_sys_statfs_h" = "yes"
14625 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
14626 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14627 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14631 #line $LINENO "configure"
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14638 #include <sys/types.h>
14639 #ifdef HAVE_SYS_PARAM_H
14640 # include <sys/param.h>
14642 #include <sys/statfs.h>
14648 struct statfs stfs;
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 wine_cv_sys_statfs_has_statfs=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 wine_cv_sys_statfs_has_statfs=no
14674 rm -f conftest.$ac_objext conftest.$ac_ext
14677 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
14678 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
14679 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14682 cat >>confdefs.h <<\_ACEOF
14683 #define STATFS_DEFINED_BY_SYS_STATFS 1
14689 if test "$ac_cv_header_sys_mount_h" = "yes"
14691 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
14692 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14693 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14696 cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14704 #include <sys/types.h>
14705 #ifdef HAVE_SYS_PARAM_H
14706 # include <sys/param.h>
14708 #include <sys/mount.h>
14714 struct statfs stfs;
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 wine_cv_sys_mount_has_statfs=yes
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 wine_cv_sys_mount_has_statfs=no
14740 rm -f conftest.$ac_objext conftest.$ac_ext
14743 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
14744 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
14745 if test "$wine_cv_sys_mount_has_statfs" = "yes"
14748 cat >>confdefs.h <<\_ACEOF
14749 #define STATFS_DEFINED_BY_SYS_MOUNT 1
14756 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
14757 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
14758 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 cat >conftest.$ac_ext <<_ACEOF
14762 #line $LINENO "configure"
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <sys/types.h>
14769 #ifdef HAVE_SYS_PARAM_H
14770 # include <sys/param.h>
14772 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14773 # include <sys/mount.h>
14775 # ifdef STATFS_DEFINED_BY_SYS_VFS
14776 # include <sys/vfs.h>
14778 # ifdef STATFS_DEFINED_BY_SYS_STATFS
14779 # include <sys/statfs.h>
14786 struct statfs s; s.f_bfree = 0
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_c_statfs_f_bfree="yes"
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_cv_c_statfs_f_bfree="no"
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
14813 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
14814 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
14816 cat >>confdefs.h <<\_ACEOF
14817 #define STATFS_HAS_BFREE 1
14824 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
14825 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
14826 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 #include <sys/types.h>
14837 #ifdef HAVE_SYS_PARAM_H
14838 # include <sys/param.h>
14840 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
14841 # include <sys/mount.h>
14843 # ifdef STATFS_DEFINED_BY_SYS_VFS
14844 # include <sys/vfs.h>
14846 # ifdef STATFS_DEFINED_BY_SYS_STATFS
14847 # include <sys/statfs.h>
14854 struct statfs s; s.f_bavail = 0
14859 rm -f conftest.$ac_objext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861 (eval $ac_compile) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 ac_cv_c_statfs_f_bavail="yes"
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 ac_cv_c_statfs_f_bavail="no"
14878 rm -f conftest.$ac_objext conftest.$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
14881 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
14882 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
14884 cat >>confdefs.h <<\_ACEOF
14885 #define STATFS_HAS_BAVAIL 1
14892 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
14893 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
14894 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 cat >conftest.$ac_ext <<_ACEOF
14898 #line $LINENO "configure"
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #ifdef HAVE_SYS_SOCKET_H
14906 # include <sys/socket.h>
14911 struct msghdr s; s.msg_accrights = 0
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -s conftest.$ac_objext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_c_msghdr_msg_accrights="yes"
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_c_msghdr_msg_accrights="no"
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14937 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
14938 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
14939 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_MSGHDR_ACCRIGHTS 1
14949 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
14950 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
14951 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <sys/types.h>
14962 #ifdef HAVE_SYS_SOCKET_H
14963 # include <sys/socket.h>
14968 struct sockaddr s; s.sa_len = 0
14973 rm -f conftest.$ac_objext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14975 (eval $ac_compile) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_c_sockaddr_sa_len="yes"
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_c_sockaddr_sa_len="no"
14992 rm -f conftest.$ac_objext conftest.$ac_ext
14994 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
14995 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
14996 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_SOCKADDR_SA_LEN 1
15006 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
15007 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
15008 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012 #line $LINENO "configure"
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 #include <sys/types.h>
15019 #ifdef HAVE_SYS_SOCKET_H
15020 # include <sys/socket.h>
15022 #ifdef HAVE_SYS_UN_H
15023 # include <sys/un.h>
15028 struct sockaddr_un s; s.sun_len = 0
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035 (eval $ac_compile) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045 ac_cv_c_sockaddr_un_sun_len="yes"
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 ac_cv_c_sockaddr_un_sun_len="no"
15052 rm -f conftest.$ac_objext conftest.$ac_ext
15054 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
15055 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15056 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
15058 cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_SOCKADDR_SUN_LEN 1
15068 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
15069 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
15070 if test "${ac_cv_cpp_def___i386__+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085 $EGREP "yes" >/dev/null 2>&1; then
15086 ac_cv_cpp_def___i386__=yes
15088 ac_cv_cpp_def___i386__=no
15093 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15094 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15095 if test $ac_cv_cpp_def___i386__ = yes; then
15096 CFLAGS="$CFLAGS -D__i386__"
15097 LINTFLAGS="$LINTFLAGS -D__i386__"
15100 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
15101 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
15102 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15117 $EGREP "yes" >/dev/null 2>&1; then
15118 ac_cv_cpp_def___ALPHA__=yes
15120 ac_cv_cpp_def___ALPHA__=no
15125 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15126 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15127 if test $ac_cv_cpp_def___ALPHA__ = yes; then
15128 CFLAGS="$CFLAGS -D__ALPHA__"
15129 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
15132 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
15133 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
15134 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15149 $EGREP "yes" >/dev/null 2>&1; then
15150 ac_cv_cpp_def___sparc__=yes
15152 ac_cv_cpp_def___sparc__=no
15157 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15158 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15159 if test $ac_cv_cpp_def___sparc__ = yes; then
15160 CFLAGS="$CFLAGS -D__sparc__"
15161 LINTFLAGS="$LINTFLAGS -D__sparc__"
15166 case $host_vendor in
15167 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
15168 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
15169 if test "${ac_cv_cpp_def___sun__+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 cat >conftest.$ac_ext <<_ACEOF
15173 #line $LINENO "configure"
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15184 $EGREP "yes" >/dev/null 2>&1; then
15185 ac_cv_cpp_def___sun__=yes
15187 ac_cv_cpp_def___sun__=no
15192 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15193 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15194 if test $ac_cv_cpp_def___sun__ = yes; then
15195 CFLAGS="$CFLAGS -D__sun__"
15196 LINTFLAGS="$LINTFLAGS -D__sun__"
15205 ac_config_commands="$ac_config_commands controls"
15207 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
15209 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
15211 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
15213 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
15215 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
15217 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
15219 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
15221 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
15223 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
15225 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
15227 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
15229 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
15231 ac_config_commands="$ac_config_commands dlls/kernel/messages"
15233 ac_config_commands="$ac_config_commands dlls/user/dde"
15235 ac_config_commands="$ac_config_commands dlls/user/resources"
15237 ac_config_commands="$ac_config_commands dlls/wineps/data"
15239 ac_config_commands="$ac_config_commands files"
15241 ac_config_commands="$ac_config_commands graphics"
15243 ac_config_commands="$ac_config_commands graphics/x11drv"
15245 ac_config_commands="$ac_config_commands if1632"
15247 ac_config_commands="$ac_config_commands include/wine"
15249 ac_config_commands="$ac_config_commands loader"
15251 ac_config_commands="$ac_config_commands loader/ne"
15253 ac_config_commands="$ac_config_commands memory"
15255 ac_config_commands="$ac_config_commands misc"
15257 ac_config_commands="$ac_config_commands msdos"
15259 ac_config_commands="$ac_config_commands objects"
15261 ac_config_commands="$ac_config_commands programs/regapi/tests"
15263 ac_config_commands="$ac_config_commands programs/regedit/tests"
15265 ac_config_commands="$ac_config_commands relay32"
15267 ac_config_commands="$ac_config_commands scheduler"
15269 ac_config_commands="$ac_config_commands win32"
15271 ac_config_commands="$ac_config_commands windows"
15274 MAKE_RULES=Make.rules
15277 MAKE_DLL_RULES=dlls/Makedll.rules
15280 MAKE_TEST_RULES=dlls/Maketest.rules
15283 MAKE_PROG_RULES=programs/Makeprog.rules
15286 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dx8/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/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/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/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/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/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintab32/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/rpcss/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/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 unicode/Makefile"
15289 cat >confcache <<\_ACEOF
15290 # This file is a shell script that caches the results of configure
15291 # tests run on this system so they can be shared between configure
15292 # scripts and configure runs, see configure's option --config-cache.
15293 # It is not useful on other systems. If it contains results you don't
15294 # want to keep, you may remove or edit it.
15296 # config.status only pays attention to the cache file if you give it
15297 # the --recheck option to rerun configure.
15299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15301 # following values.
15305 # The following way of writing the cache mishandles newlines in values,
15306 # but we know of no workaround that is simple, portable, and efficient.
15307 # So, don't put newlines in cache variables' values.
15308 # Ultrix sh set writes to stderr and can't be redirected directly,
15309 # and sets the high bit in the cache file unless we assign to the vars.
15312 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15314 # `set' does not quote correctly, so add quotes (double-quote
15315 # substitution turns \\\\ into \\, and sed turns \\ into \).
15318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15321 # `set' quotes correctly as required by POSIX, so do not add quotes.
15323 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15330 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15332 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15334 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15335 if test -w $cache_file; then
15336 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15337 cat confcache >$cache_file
15339 echo "not updating unwritable cache $cache_file"
15344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15345 # Let make expand exec_prefix.
15346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15348 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15349 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15350 # trailing colons and then remove the whole line if VPATH becomes empty
15351 # (actually we leave an empty line to preserve line numbers).
15352 if test "x$srcdir" = x.; then
15353 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15354 s/:*\$(srcdir):*/:/;
15355 s/:*\${srcdir}:*/:/;
15357 s/^\([^=]*=[ ]*\):*/\1/;
15363 DEFS=-DHAVE_CONFIG_H
15367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15368 # 1. Remove the extension, and $U if already installed.
15369 ac_i=`echo "$ac_i" |
15370 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15372 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15373 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15375 LIBOBJS=$ac_libobjs
15377 LTLIBOBJS=$ac_ltlibobjs
15381 : ${CONFIG_STATUS=./config.status}
15382 ac_clean_files_save=$ac_clean_files
15383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15384 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15386 cat >$CONFIG_STATUS <<_ACEOF
15388 # Generated by $as_me.
15389 # Run this file to recreate the current configuration.
15390 # Compiler output produced by configure, useful for debugging
15391 # configure, is in config.log if it exists.
15394 ac_cs_recheck=false
15396 SHELL=\${CONFIG_SHELL-$SHELL}
15399 cat >>$CONFIG_STATUS <<\_ACEOF
15400 ## --------------------- ##
15401 ## M4sh Initialization. ##
15402 ## --------------------- ##
15404 # Be Bourne compatible
15405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15408 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15409 # is contrary to our usage. Disable this feature.
15410 alias -g '${1+"$@"}'='"$@"'
15411 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15415 # Support unset when possible.
15416 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15423 # Work around bugs in pre-3.0 UWIN ksh.
15424 $as_unset ENV MAIL MAILPATH
15431 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15432 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15433 LC_TELEPHONE LC_TIME
15435 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15436 eval $as_var=C; export $as_var
15442 # Required to use basename.
15443 if expr a : '\(a\)' >/dev/null 2>&1; then
15449 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15450 as_basename=basename
15456 # Name of the executable.
15457 as_me=`$as_basename "$0" ||
15458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15459 X"$0" : 'X\(//\)$' \| \
15460 X"$0" : 'X\(/\)$' \| \
15461 . : '\(.\)' 2>/dev/null ||
15463 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15464 /^X\/\(\/\/\)$/{ s//\1/; q; }
15465 /^X\/\(\/\).*/{ s//\1/; q; }
15469 # PATH needs CR, and LINENO needs CR and PATH.
15470 # Avoid depending upon Character Ranges.
15471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15474 as_cr_digits='0123456789'
15475 as_cr_alnum=$as_cr_Letters$as_cr_digits
15477 # The user is always right.
15478 if test "${PATH_SEPARATOR+set}" != set; then
15479 echo "#! /bin/sh" >conf$$.sh
15480 echo "exit 0" >>conf$$.sh
15482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15491 as_lineno_1=$LINENO
15492 as_lineno_2=$LINENO
15493 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15494 test "x$as_lineno_1" != "x$as_lineno_2" &&
15495 test "x$as_lineno_3" = "x$as_lineno_2" || {
15496 # Find who we are. Look in the path if we contain no path at all
15499 *[\\/]* ) as_myself=$0 ;;
15500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15501 for as_dir in $PATH
15504 test -z "$as_dir" && as_dir=.
15505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15510 # We did not find ourselves, most probably we were run as `sh COMMAND'
15511 # in which case we are not to be found in the path.
15512 if test "x$as_myself" = x; then
15515 if test ! -f "$as_myself"; then
15516 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15517 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15518 { (exit 1); exit 1; }; }
15520 case $CONFIG_SHELL in
15522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15526 test -z "$as_dir" && as_dir=.
15527 for as_base in sh bash ksh sh5; do
15530 if ("$as_dir/$as_base" -c '
15531 as_lineno_1=$LINENO
15532 as_lineno_2=$LINENO
15533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15534 test "x$as_lineno_1" != "x$as_lineno_2" &&
15535 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15536 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15537 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15538 CONFIG_SHELL=$as_dir/$as_base
15539 export CONFIG_SHELL
15540 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15548 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15549 # uniformly replaced by the line number. The first 'sed' inserts a
15550 # line-number line before each line; the second 'sed' does the real
15551 # work. The second script uses 'N' to pair each line-number line
15552 # with the numbered line, and appends trailing '-' during
15553 # substitution so that $LINENO is not a special case at line end.
15554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15555 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15556 sed '=' <$as_myself |
15561 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15564 s,^['$as_cr_digits']*\n,,
15565 ' >$as_me.lineno &&
15566 chmod +x $as_me.lineno ||
15567 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15568 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15569 { (exit 1); exit 1; }; }
15571 # Don't try to exec as it changes $[0], causing all sort of problems
15572 # (the dirname of $[0] is not the place where we might find the
15573 # original and so on. Autoconf is especially sensible to this).
15575 # Exit status is that of the last command.
15580 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15581 *c*,-n*) ECHO_N= ECHO_C='
15583 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15584 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15587 if expr a : '\(a\)' >/dev/null 2>&1; then
15593 rm -f conf$$ conf$$.exe conf$$.file
15595 if ln -s conf$$.file conf$$ 2>/dev/null; then
15596 # We could just check for DJGPP; but this test a) works b) is more generic
15597 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15598 if test -f conf$$.exe; then
15599 # Don't use ln at all; we don't have any links
15604 elif ln conf$$.file conf$$ 2>/dev/null; then
15609 rm -f conf$$ conf$$.exe conf$$.file
15611 if mkdir -p . 2>/dev/null; then
15617 as_executable_p="test -f"
15619 # Sed expression to map a string onto a valid CPP name.
15620 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15622 # Sed expression to map a string onto a valid variable name.
15623 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15627 # We need space, tab and new line, in precisely that order.
15637 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15638 # report actual input values of CONFIG_FILES etc. instead of their
15639 # values after options handling. Logging --version etc. is OK.
15643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15644 ## Running $as_me. ##
15649 This file was extended by Wine $as_me 20021219, which was
15650 generated by GNU Autoconf 2.57. Invocation command line was
15652 CONFIG_FILES = $CONFIG_FILES
15653 CONFIG_HEADERS = $CONFIG_HEADERS
15654 CONFIG_LINKS = $CONFIG_LINKS
15655 CONFIG_COMMANDS = $CONFIG_COMMANDS
15659 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15663 # Files that config.status was made for.
15664 if test -n "$ac_config_files"; then
15665 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15668 if test -n "$ac_config_headers"; then
15669 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15672 if test -n "$ac_config_links"; then
15673 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15676 if test -n "$ac_config_commands"; then
15677 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15680 cat >>$CONFIG_STATUS <<\_ACEOF
15683 \`$as_me' instantiates files from templates according to the
15684 current configuration.
15686 Usage: $0 [OPTIONS] [FILE]...
15688 -h, --help print this help, then exit
15689 -V, --version print version number, then exit
15690 -q, --quiet do not print progress messages
15691 -d, --debug don't remove temporary files
15692 --recheck update $as_me by reconfiguring in the same conditions
15693 --file=FILE[:TEMPLATE]
15694 instantiate the configuration file FILE
15695 --header=FILE[:TEMPLATE]
15696 instantiate the configuration header FILE
15698 Configuration files:
15701 Configuration headers:
15704 Configuration commands:
15707 Report bugs to <bug-autoconf@gnu.org>."
15710 cat >>$CONFIG_STATUS <<_ACEOF
15712 Wine config.status 20021219
15713 configured by $0, generated by GNU Autoconf 2.57,
15714 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15716 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15717 Free Software Foundation, Inc.
15718 This config.status script is free software; the Free Software Foundation
15719 gives unlimited permission to copy, distribute and modify it."
15724 cat >>$CONFIG_STATUS <<\_ACEOF
15725 # If no file are specified by the user, then we need to provide default
15726 # value. By we need to know if files were specified by the user.
15732 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15733 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15741 *) # This is not an option, so the user has probably given explicit
15744 ac_need_defaults=false;;
15748 # Handling of the options.
15750 cat >>$CONFIG_STATUS <<\_ACEOF
15751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15753 --version | --vers* | -V )
15754 echo "$ac_cs_version"; exit 0 ;;
15756 # Conflict between --help and --header
15757 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15758 Try \`$0 --help' for more information." >&5
15759 echo "$as_me: error: ambiguous option: $1
15760 Try \`$0 --help' for more information." >&2;}
15761 { (exit 1); exit 1; }; };;
15762 --help | --hel | -h )
15763 echo "$ac_cs_usage"; exit 0 ;;
15764 --debug | --d* | -d )
15766 --file | --fil | --fi | --f )
15768 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15769 ac_need_defaults=false;;
15770 --header | --heade | --head | --hea )
15772 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15773 ac_need_defaults=false;;
15774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15778 # This is an error.
15779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15780 Try \`$0 --help' for more information." >&5
15781 echo "$as_me: error: unrecognized option: $1
15782 Try \`$0 --help' for more information." >&2;}
15783 { (exit 1); exit 1; }; } ;;
15785 *) ac_config_targets="$ac_config_targets $1" ;;
15791 ac_configure_extra_args=
15793 if $ac_cs_silent; then
15795 ac_configure_extra_args="$ac_configure_extra_args --silent"
15799 cat >>$CONFIG_STATUS <<_ACEOF
15800 if \$ac_cs_recheck; then
15801 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15802 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15811 cat >>$CONFIG_STATUS <<\_ACEOF
15812 for ac_config_target in $ac_config_targets
15814 case "$ac_config_target" in
15815 # Handling of arguments.
15816 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15817 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15818 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
15819 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15820 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15821 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
15822 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
15823 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
15824 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
15825 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
15826 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
15827 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
15828 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
15829 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
15830 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
15831 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
15832 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
15833 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
15834 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
15835 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
15836 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
15837 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
15838 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
15839 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
15840 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
15841 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
15842 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
15843 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
15844 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
15845 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
15846 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
15847 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
15848 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
15849 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
15850 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
15851 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
15852 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
15853 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
15854 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
15855 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
15856 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
15857 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
15858 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
15859 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
15860 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
15861 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
15862 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
15863 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
15864 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
15865 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
15866 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
15867 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
15868 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
15869 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
15870 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
15871 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
15872 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
15873 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
15874 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
15875 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
15876 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
15877 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
15878 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
15879 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
15880 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
15881 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
15882 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
15883 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
15884 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
15885 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
15886 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
15887 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
15888 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
15889 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
15890 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
15891 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
15892 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
15893 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
15894 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
15895 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
15896 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
15897 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
15898 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
15899 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
15900 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
15901 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
15902 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
15903 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
15904 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
15905 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
15906 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
15907 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
15908 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
15909 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
15910 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
15911 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
15912 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
15913 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
15914 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
15915 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
15916 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
15917 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
15918 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
15919 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
15920 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
15921 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
15922 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
15923 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
15924 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
15925 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
15926 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
15927 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
15928 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
15929 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
15930 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
15931 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
15932 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
15933 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
15934 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
15935 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
15936 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
15937 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
15938 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
15939 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
15940 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15941 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
15942 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
15943 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
15944 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
15945 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
15946 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
15947 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
15948 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
15949 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
15950 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
15951 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
15952 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
15953 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
15954 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
15955 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
15956 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
15957 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
15958 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
15959 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
15960 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
15961 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
15962 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
15963 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
15964 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
15965 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
15966 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
15967 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
15968 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
15969 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
15970 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
15971 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15972 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
15973 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
15974 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
15975 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
15976 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
15977 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
15978 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
15979 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
15980 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
15981 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
15982 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
15983 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
15984 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
15985 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
15986 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
15987 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
15988 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
15989 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
15990 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
15991 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
15992 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
15993 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
15994 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
15995 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
15996 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
15997 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
15998 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
15999 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16000 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
16001 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16002 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16003 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16004 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16005 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16006 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16007 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
16008 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
16009 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
16010 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16011 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16012 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16013 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
16014 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16015 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16017 { (exit 1); exit 1; }; };;
16021 # If the user did not use the arguments to specify the items to instantiate,
16022 # then the envvar interface is used. Set only those that are not.
16023 # We use the long form for the default assignment because of an extremely
16024 # bizarre bug on SunOS 4.1.3.
16025 if $ac_need_defaults; then
16026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16031 # Have a temporary directory for convenience. Make it in the build tree
16032 # simply because there is no reason to put it here, and in addition,
16033 # creating and moving files from /tmp can sometimes cause problems.
16034 # Create a temporary directory, and hook for its removal unless debugging.
16037 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16038 trap '{ (exit 1); exit 1; }' 1 2 13 15
16041 # Create a (secure) tmp directory for tmp files.
16044 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16045 test -n "$tmp" && test -d "$tmp"
16048 tmp=./confstat$$-$RANDOM
16049 (umask 077 && mkdir $tmp)
16052 echo "$me: cannot create a temporary directory in ." >&2
16053 { (exit 1); exit 1; }
16058 cat >>$CONFIG_STATUS <<_ACEOF
16061 # CONFIG_FILES section.
16064 # No need to generate the scripts if there are no CONFIG_FILES.
16065 # This happens for instance when ./config.status config.h
16066 if test -n "\$CONFIG_FILES"; then
16067 # Protect against being on the right side of a sed subst in config.status.
16068 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16069 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16070 s,@SHELL@,$SHELL,;t t
16071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16077 s,@exec_prefix@,$exec_prefix,;t t
16078 s,@prefix@,$prefix,;t t
16079 s,@program_transform_name@,$program_transform_name,;t t
16080 s,@bindir@,$bindir,;t t
16081 s,@sbindir@,$sbindir,;t t
16082 s,@libexecdir@,$libexecdir,;t t
16083 s,@datadir@,$datadir,;t t
16084 s,@sysconfdir@,$sysconfdir,;t t
16085 s,@sharedstatedir@,$sharedstatedir,;t t
16086 s,@localstatedir@,$localstatedir,;t t
16087 s,@libdir@,$libdir,;t t
16088 s,@includedir@,$includedir,;t t
16089 s,@oldincludedir@,$oldincludedir,;t t
16090 s,@infodir@,$infodir,;t t
16091 s,@mandir@,$mandir,;t t
16092 s,@build_alias@,$build_alias,;t t
16093 s,@host_alias@,$host_alias,;t t
16094 s,@target_alias@,$target_alias,;t t
16095 s,@DEFS@,$DEFS,;t t
16096 s,@ECHO_C@,$ECHO_C,;t t
16097 s,@ECHO_N@,$ECHO_N,;t t
16098 s,@ECHO_T@,$ECHO_T,;t t
16099 s,@LIBS@,$LIBS,;t t
16100 s,@OPTIONS@,$OPTIONS,;t t
16101 s,@WIN16_FILES@,$WIN16_FILES,;t t
16102 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
16103 s,@build@,$build,;t t
16104 s,@build_cpu@,$build_cpu,;t t
16105 s,@build_vendor@,$build_vendor,;t t
16106 s,@build_os@,$build_os,;t t
16107 s,@host@,$host,;t t
16108 s,@host_cpu@,$host_cpu,;t t
16109 s,@host_vendor@,$host_vendor,;t t
16110 s,@host_os@,$host_os,;t t
16111 s,@SET_MAKE@,$SET_MAKE,;t t
16113 s,@CFLAGS@,$CFLAGS,;t t
16114 s,@LDFLAGS@,$LDFLAGS,;t t
16115 s,@CPPFLAGS@,$CPPFLAGS,;t t
16116 s,@ac_ct_CC@,$ac_ct_CC,;t t
16117 s,@EXEEXT@,$EXEEXT,;t t
16118 s,@OBJEXT@,$OBJEXT,;t t
16120 s,@TOOLSDIR@,$TOOLSDIR,;t t
16121 s,@X_CFLAGS@,$X_CFLAGS,;t t
16122 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16123 s,@X_LIBS@,$X_LIBS,;t t
16124 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16125 s,@YACC@,$YACC,;t t
16127 s,@LEXLIB@,$LEXLIB,;t t
16128 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16129 s,@XYACC@,$XYACC,;t t
16130 s,@XLEX@,$XLEX,;t t
16132 s,@ac_ct_LD@,$ac_ct_LD,;t t
16134 s,@ac_ct_AR@,$ac_ct_AR,;t t
16135 s,@RANLIB@,$RANLIB,;t t
16136 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16137 s,@STRIP@,$STRIP,;t t
16138 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16139 s,@WINDRES@,$WINDRES,;t t
16140 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16141 s,@LN_S@,$LN_S,;t t
16143 s,@C2MAN@,$C2MAN,;t t
16144 s,@LDCONFIG@,$LDCONFIG,;t t
16145 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16146 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16147 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16148 s,@LINT@,$LINT,;t t
16149 s,@LINTFLAGS@,$LINTFLAGS,;t t
16150 s,@DB2HTML@,$DB2HTML,;t t
16151 s,@DB2PDF@,$DB2PDF,;t t
16152 s,@DB2PS@,$DB2PS,;t t
16153 s,@JPEGLIB@,$JPEGLIB,;t t
16154 s,@EGREP@,$EGREP,;t t
16155 s,@XLIB@,$XLIB,;t t
16156 s,@XFILES@,$XFILES,;t t
16157 s,@OPENGLFILES@,$OPENGLFILES,;t t
16158 s,@GLU32FILES@,$GLU32FILES,;t t
16159 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
16160 s,@NASLIBS@,$NASLIBS,;t t
16161 s,@CURSESLIBS@,$CURSESLIBS,;t t
16162 s,@sane_devel@,$sane_devel,;t t
16163 s,@SANELIBS@,$SANELIBS,;t t
16164 s,@SANEINCL@,$SANEINCL,;t t
16165 s,@ft_devel@,$ft_devel,;t t
16166 s,@ft_devel2@,$ft_devel2,;t t
16167 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
16168 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16169 s,@ARTSLIBS@,$ARTSLIBS,;t t
16170 s,@ARTSINCL@,$ARTSINCL,;t t
16171 s,@ALSALIBS@,$ALSALIBS,;t t
16172 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
16173 s,@DLLEXT@,$DLLEXT,;t t
16174 s,@DLLFLAGS@,$DLLFLAGS,;t t
16175 s,@DLLIBS@,$DLLIBS,;t t
16176 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16177 s,@LDSHARED@,$LDSHARED,;t t
16178 s,@LIBEXT@,$LIBEXT,;t t
16179 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16180 s,@DLLTOOL@,$DLLTOOL,;t t
16181 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
16182 s,@DLLWRAP@,$DLLWRAP,;t t
16183 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
16184 s,@CROSSTEST@,$CROSSTEST,;t t
16185 s,@CROSSCC@,$CROSSCC,;t t
16186 s,@LDPATH@,$LDPATH,;t t
16187 s,@CRTLIBS@,$CRTLIBS,;t t
16189 s,@ALLOCA@,$ALLOCA,;t t
16190 s,@LIBOBJS@,$LIBOBJS,;t t
16191 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16192 /@MAKE_RULES@/r $MAKE_RULES
16193 s,@MAKE_RULES@,,;t t
16194 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16195 s,@MAKE_DLL_RULES@,,;t t
16196 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16197 s,@MAKE_TEST_RULES@,,;t t
16198 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16199 s,@MAKE_PROG_RULES@,,;t t
16204 cat >>$CONFIG_STATUS <<\_ACEOF
16205 # Split the substitutions into bite-sized pieces for seds with
16206 # small command number limits, like on Digital OSF/1 and HP-UX.
16207 ac_max_sed_lines=48
16208 ac_sed_frag=1 # Number of current file.
16209 ac_beg=1 # First line for current file.
16210 ac_end=$ac_max_sed_lines # Line after last line for current file.
16213 while $ac_more_lines; do
16214 if test $ac_beg -gt 1; then
16215 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16217 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16219 if test ! -s $tmp/subs.frag; then
16220 ac_more_lines=false
16222 # The purpose of the label and of the branching condition is to
16223 # speed up the sed processing (if there are no `@' at all, there
16224 # is no need to browse any of the substitutions).
16225 # These are the two extra sed commands mentioned above.
16227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16228 if test -z "$ac_sed_cmds"; then
16229 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16231 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16233 ac_sed_frag=`expr $ac_sed_frag + 1`
16235 ac_end=`expr $ac_end + $ac_max_sed_lines`
16238 if test -z "$ac_sed_cmds"; then
16241 fi # test -n "$CONFIG_FILES"
16244 cat >>$CONFIG_STATUS <<\_ACEOF
16245 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16248 - | *:- | *:-:* ) # input from stdin
16250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16254 * ) ac_file_in=$ac_file.in ;;
16257 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16258 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16260 X"$ac_file" : 'X\(//\)[^/]' \| \
16261 X"$ac_file" : 'X\(//\)$' \| \
16262 X"$ac_file" : 'X\(/\)' \| \
16263 . : '\(.\)' 2>/dev/null ||
16265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16267 /^X\(\/\/\)$/{ s//\1/; q; }
16268 /^X\(\/\).*/{ s//\1/; q; }
16270 { if $as_mkdir_p; then
16275 while test ! -d "$as_dir"; do
16276 as_dirs="$as_dir $as_dirs"
16277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16279 X"$as_dir" : 'X\(//\)[^/]' \| \
16280 X"$as_dir" : 'X\(//\)$' \| \
16281 X"$as_dir" : 'X\(/\)' \| \
16282 . : '\(.\)' 2>/dev/null ||
16284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16286 /^X\(\/\/\)$/{ s//\1/; q; }
16287 /^X\(\/\).*/{ s//\1/; q; }
16290 test ! -n "$as_dirs" || mkdir $as_dirs
16291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16292 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16293 { (exit 1); exit 1; }; }; }
16297 if test "$ac_dir" != .; then
16298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16299 # A "../" for each directory in $ac_dir_suffix.
16300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16302 ac_dir_suffix= ac_top_builddir=
16306 .) # No --srcdir option. We are building in place.
16308 if test -z "$ac_top_builddir"; then
16311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16313 [\\/]* | ?:[\\/]* ) # Absolute path.
16314 ac_srcdir=$srcdir$ac_dir_suffix;
16315 ac_top_srcdir=$srcdir ;;
16316 *) # Relative path.
16317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16318 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16320 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16322 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16323 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16324 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16325 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16330 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16333 if test x"$ac_file" != x-; then
16334 { echo "$as_me:$LINENO: creating $ac_file" >&5
16335 echo "$as_me: creating $ac_file" >&6;}
16338 # Let's still pretend it is `configure' which instantiates (i.e., don't
16339 # use $as_me), people would be surprised to read:
16340 # /* config.h. Generated by config.status. */
16341 if test x"$ac_file" = x-; then
16344 configure_input="$ac_file. "
16346 configure_input=$configure_input"Generated from `echo $ac_file_in |
16347 sed 's,.*/,,'` by configure."
16349 # First look for the input files in the build tree, otherwise in the
16351 ac_file_inputs=`IFS=:
16352 for f in $ac_file_in; do
16354 -) echo $tmp/stdin ;;
16356 # Absolute (can't be DOS-style, as IFS=:)
16357 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16358 echo "$as_me: error: cannot find input file: $f" >&2;}
16359 { (exit 1); exit 1; }; }
16362 if test -f "$f"; then
16365 elif test -f "$srcdir/$f"; then
16370 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16371 echo "$as_me: error: cannot find input file: $f" >&2;}
16372 { (exit 1); exit 1; }; }
16375 done` || { (exit 1); exit 1; }
16377 cat >>$CONFIG_STATUS <<_ACEOF
16381 cat >>$CONFIG_STATUS <<\_ACEOF
16383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16384 s,@configure_input@,$configure_input,;t t
16385 s,@srcdir@,$ac_srcdir,;t t
16386 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16387 s,@top_srcdir@,$ac_top_srcdir,;t t
16388 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16389 s,@builddir@,$ac_builddir,;t t
16390 s,@abs_builddir@,$ac_abs_builddir,;t t
16391 s,@top_builddir@,$ac_top_builddir,;t t
16392 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16393 s,@INSTALL@,$ac_INSTALL,;t t
16394 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16396 if test x"$ac_file" != x-; then
16397 mv $tmp/out $ac_file
16405 cat >>$CONFIG_STATUS <<\_ACEOF
16408 # CONFIG_HEADER section.
16411 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16412 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16414 # ac_d sets the value in "#define NAME VALUE" lines.
16415 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16416 ac_dB='[ ].*$,\1#\2'
16419 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16420 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16421 ac_uB='$,\1#\2define\3'
16425 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16426 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16428 - | *:- | *:-:* ) # input from stdin
16430 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16432 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16433 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16434 * ) ac_file_in=$ac_file.in ;;
16437 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16438 echo "$as_me: creating $ac_file" >&6;}
16440 # First look for the input files in the build tree, otherwise in the
16442 ac_file_inputs=`IFS=:
16443 for f in $ac_file_in; do
16445 -) echo $tmp/stdin ;;
16447 # Absolute (can't be DOS-style, as IFS=:)
16448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16449 echo "$as_me: error: cannot find input file: $f" >&2;}
16450 { (exit 1); exit 1; }; }
16453 if test -f "$f"; then
16456 elif test -f "$srcdir/$f"; then
16461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16462 echo "$as_me: error: cannot find input file: $f" >&2;}
16463 { (exit 1); exit 1; }; }
16466 done` || { (exit 1); exit 1; }
16467 # Remove the trailing spaces.
16468 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16472 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16473 # `conftest.undefs', that substitutes the proper values into
16474 # config.h.in to produce config.h. The first handles `#define'
16475 # templates, and the second `#undef' templates.
16476 # And first: Protect against being on the right side of a sed subst in
16477 # config.status. Protect against being in an unquoted here document
16478 # in config.status.
16479 rm -f conftest.defines conftest.undefs
16480 # Using a here document instead of a string reduces the quoting nightmare.
16481 # Putting comments in sed scripts is not portable.
16483 # `end' is used to avoid that the second main sed command (meant for
16484 # 0-ary CPP macros) applies to n-ary macro definitions.
16485 # See the Autoconf documentation for `clear'.
16486 cat >confdef2sed.sed <<\_ACEOF
16491 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16493 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16496 # If some macros were called several times there might be several times
16497 # the same #defines, which is useless. Nevertheless, we may not want to
16498 # sort them, since we want the *last* AC-DEFINE to be honored.
16499 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16500 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16501 rm -f confdef2sed.sed
16503 # This sed command replaces #undef with comments. This is necessary, for
16504 # example, in the case of _POSIX_SOURCE, which is predefined and required
16505 # on some systems where configure will not decide to define it.
16506 cat >>conftest.undefs <<\_ACEOF
16507 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16510 # Break up conftest.defines because some shells have a limit on the size
16511 # of here documents, and old seds have small limits too (100 cmds).
16512 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16513 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16514 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16515 echo ' :' >>$CONFIG_STATUS
16516 rm -f conftest.tail
16517 while grep . conftest.defines >/dev/null
16519 # Write a limited-size here document to $tmp/defines.sed.
16520 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16521 # Speed up: don't consider the non `#define' lines.
16522 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16523 # Work around the forget-to-reset-the-flag bug.
16524 echo 't clr' >>$CONFIG_STATUS
16525 echo ': clr' >>$CONFIG_STATUS
16526 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16528 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16530 mv $tmp/out $tmp/in
16532 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16533 rm -f conftest.defines
16534 mv conftest.tail conftest.defines
16536 rm -f conftest.defines
16537 echo ' fi # grep' >>$CONFIG_STATUS
16538 echo >>$CONFIG_STATUS
16540 # Break up conftest.undefs because some shells have a limit on the size
16541 # of here documents, and old seds have small limits too (100 cmds).
16542 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16543 rm -f conftest.tail
16544 while grep . conftest.undefs >/dev/null
16546 # Write a limited-size here document to $tmp/undefs.sed.
16547 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16548 # Speed up: don't consider the non `#undef'
16549 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16550 # Work around the forget-to-reset-the-flag bug.
16551 echo 't clr' >>$CONFIG_STATUS
16552 echo ': clr' >>$CONFIG_STATUS
16553 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16555 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16557 mv $tmp/out $tmp/in
16559 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16560 rm -f conftest.undefs
16561 mv conftest.tail conftest.undefs
16563 rm -f conftest.undefs
16565 cat >>$CONFIG_STATUS <<\_ACEOF
16566 # Let's still pretend it is `configure' which instantiates (i.e., don't
16567 # use $as_me), people would be surprised to read:
16568 # /* config.h. Generated by config.status. */
16569 if test x"$ac_file" = x-; then
16570 echo "/* Generated by configure. */" >$tmp/config.h
16572 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16574 cat $tmp/in >>$tmp/config.h
16576 if test x"$ac_file" != x-; then
16577 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16578 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16579 echo "$as_me: $ac_file is unchanged" >&6;}
16581 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16583 X"$ac_file" : 'X\(//\)[^/]' \| \
16584 X"$ac_file" : 'X\(//\)$' \| \
16585 X"$ac_file" : 'X\(/\)' \| \
16586 . : '\(.\)' 2>/dev/null ||
16588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16590 /^X\(\/\/\)$/{ s//\1/; q; }
16591 /^X\(\/\).*/{ s//\1/; q; }
16593 { if $as_mkdir_p; then
16598 while test ! -d "$as_dir"; do
16599 as_dirs="$as_dir $as_dirs"
16600 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16602 X"$as_dir" : 'X\(//\)[^/]' \| \
16603 X"$as_dir" : 'X\(//\)$' \| \
16604 X"$as_dir" : 'X\(/\)' \| \
16605 . : '\(.\)' 2>/dev/null ||
16607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16609 /^X\(\/\/\)$/{ s//\1/; q; }
16610 /^X\(\/\).*/{ s//\1/; q; }
16613 test ! -n "$as_dirs" || mkdir $as_dirs
16614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16616 { (exit 1); exit 1; }; }; }
16619 mv $tmp/config.h $ac_file
16623 rm -f $tmp/config.h
16627 cat >>$CONFIG_STATUS <<\_ACEOF
16630 # CONFIG_COMMANDS section.
16632 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16633 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16634 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16635 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16636 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16637 X"$ac_dest" : 'X\(//\)[^/]' \| \
16638 X"$ac_dest" : 'X\(//\)$' \| \
16639 X"$ac_dest" : 'X\(/\)' \| \
16640 . : '\(.\)' 2>/dev/null ||
16642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16644 /^X\(\/\/\)$/{ s//\1/; q; }
16645 /^X\(\/\).*/{ s//\1/; q; }
16649 if test "$ac_dir" != .; then
16650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16651 # A "../" for each directory in $ac_dir_suffix.
16652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16654 ac_dir_suffix= ac_top_builddir=
16658 .) # No --srcdir option. We are building in place.
16660 if test -z "$ac_top_builddir"; then
16663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16665 [\\/]* | ?:[\\/]* ) # Absolute path.
16666 ac_srcdir=$srcdir$ac_dir_suffix;
16667 ac_top_srcdir=$srcdir ;;
16668 *) # Relative path.
16669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16672 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16674 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16675 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16676 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16677 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16680 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16681 echo "$as_me: executing $ac_dest commands" >&6;}
16683 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
16684 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
16685 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
16686 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
16687 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
16688 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
16689 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
16690 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
16691 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
16692 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
16693 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
16694 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
16695 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
16696 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
16697 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
16698 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
16699 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
16700 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
16701 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
16702 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
16703 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
16704 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
16705 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
16706 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
16707 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
16708 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
16709 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
16710 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
16711 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
16712 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
16713 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
16714 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
16715 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
16716 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
16717 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
16718 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
16719 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
16720 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
16721 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
16722 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
16723 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
16724 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
16725 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
16726 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
16727 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
16728 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
16729 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
16730 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
16731 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
16732 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
16733 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
16734 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
16735 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
16736 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
16737 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
16738 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
16739 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
16740 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
16741 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
16742 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
16743 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
16744 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
16745 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
16746 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
16747 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
16748 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
16749 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
16750 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
16755 cat >>$CONFIG_STATUS <<\_ACEOF
16757 { (exit 0); exit 0; }
16759 chmod +x $CONFIG_STATUS
16760 ac_clean_files=$ac_clean_files_save
16763 # configure is writing to config.log, and then calls config.status.
16764 # config.status does its own redirection, appending to config.log.
16765 # Unfortunately, on DOS this fails, as config.log is still kept open
16766 # by configure, so config.status won't be able to write to it; its
16767 # output is simply discarded. So we exec the FD to /dev/null,
16768 # effectively closing config.log, so it can be properly (re)opened and
16769 # appended to by config.status. When coming back to configure, we
16770 # need to make the FD available again.
16771 if test "$no_create" != yes; then
16773 ac_config_status_args=
16774 test "$silent" = yes &&
16775 ac_config_status_args="$ac_config_status_args --quiet"
16777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16780 # would make configure fail if this is the last instruction.
16781 $ac_cs_success || { (exit 1); exit 1; }
16785 if test "$have_x" = "no"
16788 echo "*** Warning: X development files not found. Wine will be built without"
16789 echo "*** X support, which currently does not work, and would probably not be"
16790 echo "*** what you want anyway. You will need to install devel packages of"
16791 echo "*** Xlib/Xfree86 at the very least."
16794 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
16797 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
16798 echo "*** terminal resize support. Consider upgrading ncurses."
16801 if test "$wine_cv_libc_reentrant" = "no"
16804 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
16805 echo "*** threading support. Consider upgrading libc to a more recent"
16806 echo "*** reentrant version of libc."
16809 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
16812 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
16813 echo "*** applications won't work properly. You should upgrade your X11 library."
16816 if test "$wine_cv_opengl_version_OK" = "no"
16819 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
16820 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
16823 if test "$wine_cv_msg_freetype" = "yes"
16826 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
16827 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
16828 echo "*** freetype-devel package (or its equivalent on your distribution) to"
16829 echo "*** enable Wine to use TrueType fonts."
16833 echo "Configure finished. Do 'make depend && make' to compile Wine."